:root {
  --bf-card-gap: 12px;
  --v2-r: 22px;
  --v2-r-sm: 14px;
  --v2-card: var(--surface);
  --v2-line: var(--border2, var(--border));
  --v2-grad: linear-gradient(135deg, var(--accent-lite, #FF7A3D) 0%, var(--accent2, #FF5A1F) 100%);
}

.workout-fs {
  display: flex !important; flex-direction: column !important;
  height: 100vh; height: 100dvh; overflow: hidden !important;
}
.wfs-hdr {
  display: flex !important; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px !important;
  background: transparent !important; border-bottom: none !important;
}
.wfs-hdr .workout-fs-close { width: 40px; height: 40px; flex-shrink: 0; }
.wfs-hdr .bf-snd { width: 40px; height: 40px; margin: 0; }
.wfs-hdr-mid { flex: 1; min-width: 0; text-align: center; }
.wfs-hdr .workout-fs-plan { font-size: 14px !important; font-weight: 800 !important; color: var(--text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfs-hdr-meta { font-size: 11.5px; color: var(--text3); font-weight: 600; margin-top: 2px; }
.workout-fs-progress { margin: 0 16px; height: 4px !important; border-radius: 99px; overflow: hidden; }
.workout-fs-progress-fill { border-radius: 99px; background: var(--v2-grad) !important; }

.workout-fs-body.wfs-focus {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex !important; flex-direction: column; gap: 12px !important;
  padding: 14px 16px 12px !important;
}

.wfs-exbar {
  display: flex !important; align-items: center; gap: 12px; text-align: left !important;
  padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important;
}
.wfs-thumb {
  width: 62px; height: 62px; border-radius: 16px; flex-shrink: 0; overflow: hidden; padding: 0;
  border: 1px solid var(--v2-line); background: var(--surface2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.wfs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfs-exbar-txt { min-width: 0; flex: 1; }
.wfs-exbar .wfs-ex-name {
  font-size: 21px !important; margin: 0 !important; line-height: 1.08 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wfs-exbar-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--text3); font-weight: 700; }
.wfs-exbar .wfs-ex-muscle { margin: 0 !important; padding: 3px 9px !important; font-size: 11px !important; }

.wfs-pips { display: flex; gap: 8px; }
.wfs-pip {
  flex: 1 1 0; min-width: 0; min-height: 46px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--v2-line); background: var(--surface); color: var(--text2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-family: inherit; -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s;
}
.wfs-pip b { font-size: 15px; font-weight: 900; line-height: 1; }
.wfs-pip span { font-size: 10.5px; font-weight: 700; color: var(--text3); white-space: nowrap; }
.wfs-pip.is-done { border-color: rgba(52,199,89,.35); background: rgba(52,199,89,.08); }
.wfs-pip.is-done b { color: var(--duel-win, #34C759); }
.wfs-pip.is-focus { border-color: var(--duel-you); background: rgba(var(--accent-rgb, 255,107,43),.12); color: var(--text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 255,107,43),.14); }
.wfs-pip.is-focus.has-log b { color: var(--duel-win, #34C759); }
.wfs-pip:active { transform: scale(.94); }

.wfs-focus .duel { padding: 11px 14px 10px; border-radius: 18px; }
.wfs-focus .duel-track { height: 54px; margin: 4px 6px 2px; }
.wfs-focus .duel-line, .wfs-focus .duel-mk { top: 38px; }
.wfs-focus .duel-mk-ghost { top: 0; }
.wfs-focus .duel-mk-ghost i { height: 14px; }
.wfs-focus .duel-first-t { font-size: 12.5px; margin-top: 4px; }

.wfs-stage {
  margin-top: auto; border-radius: 26px; padding: 16px 14px 14px;
  background: var(--surface); border: 1px solid var(--v2-line);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
}
.wfs-stage-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 2px; }
.wfs-stage-k { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 22px; color: var(--text); font-stretch: 112%; }
.wfs-stage-k em { font-style: italic; color: var(--text3); font-size: 16px; }
.wfs-stage-target { font-size: 12px; font-weight: 800; color: var(--text2); }

.wfs-stepper {
  display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 8px;
  background: var(--surface2); border-radius: 20px; padding: 7px;
}
.wfs-step {
  width: 58px; height: 58px; border-radius: 16px; border: none; cursor: pointer;
  background: var(--surface3, var(--bg3)); color: var(--text); font-size: 28px; font-weight: 600; line-height: 1;
  font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.wfs-step:active { transform: scale(.9); background: rgba(var(--accent-rgb, 255,107,43),.2); }
.wfs-step:disabled { opacity: .35; }
.wfs-step-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
.workout-fs .wfs-step-val input {
  width: 100% !important; max-width: 150px; min-width: 0; height: auto !important; min-height: 0 !important;
  text-align: right !important; background: none !important; border: none !important; outline: none; box-shadow: none !important;
  font-family: var(--font-display) !important; font-style: italic !important; font-weight: 900 !important; font-size: 40px !important;
  font-stretch: 112%; line-height: 1.1 !important; color: var(--text) !important; padding: 0 !important; border-radius: 0 !important;
  -moz-appearance: textfield;
}
.wfs-step-val input::-webkit-outer-spin-button, .wfs-step-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wfs-step-val input:disabled { color: var(--text2); -webkit-text-fill-color: var(--text2); opacity: 1; }
.wfs-step-val span { font-size: 13px; font-weight: 800; color: var(--text3); min-width: 30px; }
.wfs-stepper.bump .wfs-step-val input { animation: v2Bump .22s var(--ease-pop, ease); }
@keyframes v2Bump { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }

.wfs-cta {
  width: 100%; min-height: 60px; border: none; border-radius: 20px; cursor: pointer;
  background: var(--v2-grad); color: #fff; font-family: inherit; font-size: 17px; font-weight: 900; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb, 255,107,43),.35); -webkit-tap-highlight-color: transparent;
}
.wfs-cta svg { width: 20px; height: 20px; }
.wfs-cta:active { transform: scale(.97); }
.wfs-cta.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--v2-line); box-shadow: none; }

.wfs-stage-done { align-items: center; text-align: center; padding: 22px 16px 16px; }
.wfs-done-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(52,199,89,.14); color: var(--duel-win, #34C759); display: flex; align-items: center; justify-content: center; }
.wfs-done-ic svg { width: 28px; height: 28px; }
.wfs-done-t { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 26px; font-stretch: 112%; color: var(--text); }
.wfs-done-s { font-size: 13px; color: var(--text2); font-weight: 600; line-height: 1.5; margin-bottom: 6px; }

.workout-fs .wfs-nav {
  padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  background: transparent !important; border-top: none !important; gap: 8px !important;
}
.workout-fs .wfs-nav-btn { padding: 11px !important; font-size: 13px !important; border-radius: 14px !important; background: transparent !important; }

.bf-rest-adj { display: flex; gap: 10px; }
.bf-rest-adj button {
  min-width: 84px; height: 42px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
}
.bf-rest-adj button:active { transform: scale(.94); }

@media (max-height: 700px) {
  .wfs-thumb { width: 50px; height: 50px; }
  .wfs-exbar .wfs-ex-name { font-size: 18px !important; }
  .wfs-step { width: 50px; height: 50px; }
  .wfs-stepper { grid-template-columns: 50px 1fr 50px; }
  .workout-fs .wfs-step-val input { font-size: 34px !important; }
  .wfs-cta { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfs-stepper.bump .wfs-step-val input { animation: none; }
  .wfs-pip, .wfs-step, .wfs-cta { transition: none; }
}

.bf-sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 4px 10px !important; }
.bf-sec > span { font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text2); }
.bf-sec > button { background: none; border: none; padding: 4px 0; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--duel-you); cursor: pointer; }

.bf-av { width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: var(--v2-grad); color: #fff; font-weight: 900; }
.bf-av img, .bf-av-btn img, .bf-me-pic img, #sidebar-avatar img, #mehr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.np-av.bf-av-btn { padding: 0; overflow: hidden; border: 2px solid var(--v2-line); cursor: pointer; font-family: inherit; }
#sidebar-avatar, #mehr-avatar { overflow: hidden; }

.bf-bar { height: 7px !important; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.bf-bar > i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease-out, ease); }

.bf-empty { text-align: center; padding: 26px 20px !important; }
.bf-empty-t { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 20px; font-stretch: 112%; color: var(--text); }
.bf-empty-s { font-size: 13px; color: var(--text2); margin: 6px auto 16px; max-width: 280px; line-height: 1.5; }
.bf-empty-a { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.bf-today {
  position: relative; overflow: hidden; border-radius: 26px; padding: 18px 18px 16px; margin-bottom: 12px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43),.30), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(142,156,255,.16), transparent 60%),
    var(--surface);
  border: 1px solid rgba(var(--accent-rgb, 255,107,43),.28);
}
.bf-today-k { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--duel-you); }
.bf-today-t { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 30px; line-height: 1.02; letter-spacing: -.02em; color: var(--text); margin-top: 6px; }
.bf-today-m { font-size: 12.5px; color: var(--text2); font-weight: 700; margin-top: 6px; }
.bf-today-th { display: flex; align-items: center; margin: 14px 0 16px; padding-left: 6px; }
.bf-today-th .bf-td-th {
  width: 48px; height: 48px; border-radius: 14px; overflow: hidden; margin-left: -8px; flex-shrink: 0;
  border: 2px solid var(--surface); background: var(--surface2); display: flex; align-items: center; justify-content: center;
  transform: rotate(calc((var(--i) - 2) * 2deg)); box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bf-td-th img { width: 100%; height: 100%; object-fit: cover; }
.bf-td-th em { font-style: normal; font-size: 20px; }
.bf-td-more { margin-left: 8px; font-size: 13px; font-weight: 900; color: var(--duel-you); }
.bf-today-cta {
  width: 100%; min-height: 54px; border: none; border-radius: 18px; cursor: pointer;
  background: var(--v2-grad); color: #fff; font-family: inherit; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 26px rgba(var(--accent-rgb, 255,107,43),.35);
}
.bf-today-cta svg { width: 16px; height: 16px; }
.bf-today-cta:active { transform: scale(.97); }
.bf-today-plan { text-align: center; font-size: 11.5px; color: var(--text3); font-weight: 700; margin-top: 9px; }
.bf-today.is-compact .bf-today-t { font-size: 26px; }
.bf-today.is-compact .bf-today-th { margin: 12px 0 14px; }

.bf-done-today { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bf-done-ic { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: rgba(52,199,89,.14); color: var(--duel-win, #34C759); display: flex; align-items: center; justify-content: center; }
.bf-done-ic svg { width: 22px; height: 22px; }
.bf-done-today b { display: block; font-size: 16px; font-weight: 900; color: var(--text); }
.bf-done-today span { display: block; font-size: 12.5px; color: var(--text2); margin-top: 2px; }

.bf-sw { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.bf-sw-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bf-sw-hd span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-sw-hd b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 20px; color: var(--text); }
.bf-sw-hd small { color: var(--text3); font-size: 14px; }
.bf-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bf-wd { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bf-wd i { width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 12px; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: #fff; }
.bf-wd i svg { width: 16px; height: 16px; }
.bf-wd b { font-size: 10.5px; font-weight: 800; color: var(--text3); }
.bf-wd.on i { background: var(--v2-grad); box-shadow: 0 4px 12px rgba(var(--accent-rgb, 255,107,43),.3); }
.bf-wd.today i { outline: 2px solid var(--duel-ghost); outline-offset: 2px; }
.bf-wd.today b { color: var(--text); }
.bf-wd.miss i { opacity: .55; }
.bf-sw-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.bf-sw-stats > div { text-align: center; }
.bf-sw-stats > div + div { border-left: 1px solid var(--border); }
.bf-sw-stats b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 20px; color: var(--text); }
.bf-sw-stats small { font-size: 12px; color: var(--text3); }
.bf-sw-stats span { font-size: 11px; font-weight: 700; color: var(--text3); }
.bf-streak .bf-hm { margin-top: 16px; }
.bf-streak.is-compact { cursor: pointer; }

.bf-plans { padding: 6px !important; }
.bf-plan { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; }
.bf-plan + .bf-plan { margin-top: 2px; }
.bf-plan.is-active { background: rgba(var(--accent-rgb, 255,107,43),.08); }
.bf-plan-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; text-align: left; font-family: inherit; cursor: pointer; }
.bf-plan-ic { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; background: var(--bg3); color: var(--text2); display: flex; align-items: center; justify-content: center; }
.bf-plan-ic svg { width: 17px; height: 17px; }
.bf-plan.is-active .bf-plan-ic { background: var(--v2-grad); color: #fff; }
.bf-plan-txt { min-width: 0; }
.bf-plan-txt b { display: block; font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-plan-txt span { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; font-weight: 600; }
.bf-plan-txt em { font-style: normal; color: var(--duel-you); font-weight: 800; }
.bf-plan-act { background: none; border: 1.5px solid var(--v2-line); border-radius: 99px; padding: 7px 12px; font-family: inherit; font-size: 12px; font-weight: 800; color: var(--text); cursor: pointer; flex-shrink: 0; }
.bf-plan .plan-icon-btn { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; }

.bf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.bf-tile { text-align: left; padding: 14px; border-radius: 20px; border: 1px solid var(--v2-line); background: var(--surface); font-family: inherit; cursor: pointer; }
.bf-tile svg { width: 20px; height: 20px; color: var(--duel-you); }
.bf-tile b { display: block; font-size: 15px; font-weight: 800; color: var(--text); margin-top: 10px; }
.bf-tile span { display: block; font-size: 11.5px; color: var(--text3); margin-top: 2px; font-weight: 600; }
.bf-tile:active { transform: scale(.97); }

.bf-food-top { display: flex; align-items: center; gap: 16px; }
.bf-food-ring { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.bf-food-ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bf-food-ring-v b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 24px; color: var(--text); letter-spacing: -.02em; }
.bf-food-ring-v span { font-size: 10.5px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.bf-food-macros { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bf-mac-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.bf-mac-hd span { font-size: 12px; font-weight: 800; color: var(--text2); }
.bf-mac-hd b { font-size: 13px; font-weight: 900; color: var(--text); }
.bf-mac-hd small { font-size: 11px; color: var(--text3); font-weight: 700; }
.bf-food-water { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.bf-water-l { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.bf-water-l svg { width: 14px; height: 14px; color: #5AB0FF; align-self: center; margin-right: 2px; }
.bf-water-l b { font-size: 15px; font-weight: 900; color: var(--text); }
.bf-water-l span { font-size: 11.5px; color: var(--text3); font-weight: 700; }
.bf-bar-water { flex: 1; }
.bf-bar-water > i { background: linear-gradient(90deg, #5AB0FF, #8E9CFF); }
.bf-chip-btn { flex-shrink: 0; border: 1px solid var(--v2-line); background: var(--surface2); color: var(--text); border-radius: 99px; padding: 7px 11px; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.bf-chip-btn:active { transform: scale(.94); }
.bf-food-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.bf-food-cta span { font-size: 12px; color: var(--text3); font-weight: 700; }

.bf-coach .chat-messages { max-height: 180px; overflow-y: auto; margin-bottom: 10px; }
.bf-coach-chips { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 11px; padding-bottom: 2px; scrollbar-width: none; }
.bf-coach-chips::-webkit-scrollbar { display: none; }
.bf-coach-chips .np-chip { white-space: nowrap; flex-shrink: 0; }
.bf-coach-in { display: flex; gap: 8px; }
.bf-coach-in .form-input { flex: 1; min-width: 0; }
.bf-coach-in .btn { width: 48px; padding: 0 !important; font-size: 18px; flex-shrink: 0; }

.bf-me { text-align: center; padding: 6px 0 4px; }
.bf-me-av { position: relative; width: 132px; height: 132px; margin: 0 auto 12px; }
.bf-me-ring { position: absolute; inset: 0; }
.bf-me-pic {
  position: absolute; inset: 12px; border-radius: 50%; overflow: hidden; border: none; padding: 0; cursor: pointer;
  background: var(--v2-grad); color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 44px;
  display: flex; align-items: center; justify-content: center;
}
.bf-me-cam {
  position: absolute; right: 4px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 2px solid var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.bf-me-cam svg { width: 17px; height: 17px; }
.bf-me-lv { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--v2-grad); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--bg); white-space: nowrap; }
.bf-me-name { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 26px; color: var(--text); letter-spacing: -.02em; margin-top: 8px; }
.bf-me-xp { font-size: 12.5px; color: var(--text2); font-weight: 700; margin-top: 4px; }
.bf-me-rm { background: none; border: none; color: var(--text3); font-family: inherit; font-size: 12px; font-weight: 700; margin-top: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bf-me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 4px; background: var(--surface); border: 1px solid var(--v2-line); border-radius: 20px; padding: 14px 0; }
.bf-me-stats > div + div { border-left: 1px solid var(--border); }
.bf-me-stats b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 24px; color: var(--text); }
.bf-me-stats span { font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }

.bf-rows { padding: 0 !important; overflow: hidden; }
.bf-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 16px; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bf-row + .bf-row { border-top: 1px solid var(--border); }
.bf-row-ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(var(--accent-rgb, 255,107,43),.1); color: var(--duel-you); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-row-t { flex: 1; font-size: 15px; font-weight: 700; color: var(--text); }
.bf-row-t small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text3); margin-top: 1px; }
.bf-row-chev { color: var(--text3); }
.bf-row:active { background: var(--surface2); }
.bf-seg { display: flex; gap: 6px; padding: 5px; border-radius: 18px; background: var(--surface); border: 1px solid var(--v2-line); }
.bf-seg button { flex: 1; padding: 11px 6px; border-radius: 13px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--text2); cursor: pointer; }
.bf-seg button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--duel-you); }
.bf-logout { width: 100%; margin: 20px 0 8px; padding: 15px; border-radius: 18px; border: 1px solid var(--v2-line); background: transparent; color: #FF4D4D; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .bf-bar > i { transition: none; }
  .bf-today-cta:active, .bf-tile:active, .bf-chip-btn:active { transform: none; }
}
.bf-done-txt { flex: 1; min-width: 0; }
.bf-coach .chat-messages { min-height: 0 !important; height: auto !important; background: none !important; border: none !important; padding: 0 !important; }
.bf-coach .chat-messages:empty { display: none; }
.bf-kcal-eaten { margin-bottom: 2px; }
.bf-kcal-eaten b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 22px; color: var(--text); }
.bf-kcal-eaten span { font-size: 12px; color: var(--text3); font-weight: 700; }

.bf-pr-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 20px 20px 18px; margin-bottom: 4px;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(255,176,32,.28), transparent 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(var(--accent-rgb, 255,107,43),.22), transparent 60%),
    var(--surface);
  border: 1px solid rgba(255,176,32,.32);
}
.bf-pr-hero::after {
  content: ''; position: absolute; right: -18px; top: -10px; width: 120px; height: 120px; opacity: .10;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB020' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-2'/%3E%3Cpath d='M6 2h12v9a6 6 0 0 1-12 0V2z'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3C/svg%3E");
}
.bf-pr-k { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #FFB020; }
.bf-pr-v { font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 48px; line-height: 1; color: var(--text); margin-top: 8px; letter-spacing: -.03em; }
.bf-pr-v small { font-size: 20px; color: var(--text2); }
.bf-pr-v span { font-size: 28px; color: var(--text2); }
.bf-pr-ex { font-size: 15px; font-weight: 800; color: var(--text); margin-top: 8px; }
.bf-pr-1rm { font-size: 12px; font-weight: 700; color: var(--text3); margin-top: 3px; }

.bf-pbwall {
  display: grid; grid-auto-flow: column; grid-auto-columns: 136px; grid-template-rows: auto; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none;
}
.bf-pbwall::-webkit-scrollbar { display: none; }
.bf-pbwall.is-open { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; }
.bf-pb {
  scroll-snap-align: start; text-align: left; border-radius: 20px; padding: 14px 14px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--v2-line); font-family: inherit;
  display: flex; flex-direction: column; min-height: 132px;
}
.bf-pb b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 28px; color: var(--text); line-height: 1; }
.bf-pb b small { font-size: 13px; color: var(--text3); margin-left: 2px; }
.bf-pb-r { font-size: 13px; font-weight: 800; color: var(--duel-you); margin-top: 3px; }
.bf-pb-ex { font-size: 12.5px; font-weight: 700; color: var(--text2); margin-top: auto; padding-top: 10px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-pb-d { font-size: 11px; color: var(--text3); font-weight: 700; margin-top: 3px; }
.bf-pb:active { transform: scale(.97); }

.bf-split-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bf-split-hd span { font-size: 15px; font-weight: 900; color: var(--text); }
.bf-split-hd em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text3); }
.bf-split-row { display: grid; grid-template-columns: 82px 1fr 38px; align-items: center; gap: 10px; padding: 5px 0; }
.bf-split-m { font-size: 13px; font-weight: 700; color: var(--text2); }
.bf-split-bar { height: 10px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.bf-split-bar i { display: block; height: 100%; border-radius: 99px; background: var(--v2-grad); }
.bf-split-n { font-size: 12.5px; font-weight: 900; color: var(--text); text-align: right; }
.bf-split-miss { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--duel-ghost-dim); color: var(--text2); font-size: 12.5px; font-weight: 600; }
.bf-split-miss b { color: var(--duel-ghost); }

.bf-select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--v2-line); background: var(--surface2);
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 700; outline: none; margin-bottom: 8px;
}
.bf-chart .chart-container { margin-top: 6px; }

#tab-dashboard .np-top { margin: 4px 2px 18px !important; gap: 12px; }
#tab-dashboard .np-top > div:first-child { flex: 1; min-width: 0; }
#tab-dashboard .np-hi { font-size: clamp(26px, 8vw, 34px) !important; line-height: 1.02 !important; }
#tab-dashboard .np-sub { margin-top: 6px; }
#tab-dashboard .np-av.bf-av-btn { width: 46px; height: 46px; flex-shrink: 0; }

.bf-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 4px; }
.bf-quick button {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px;
  border-radius: 18px; border: 1px solid var(--v2-line); background: var(--surface); cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bf-quick button:active { transform: scale(.95); }
.bf-quick b { font-size: 11.5px; font-weight: 800; color: var(--text); }
.bf-q-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.bf-q-ic svg { width: 19px; height: 19px; }
.bf-q-ic.q1 { background: rgba(var(--accent-rgb, 255,107,43),.14); color: var(--accent); }
.bf-q-ic.q2 { background: rgba(255,176,32,.14); color: #FFB020; }
.bf-q-ic.q3 { background: var(--duel-ghost-dim); color: var(--duel-ghost); }
.bf-q-ic.q4 { background: rgba(52,199,89,.14); color: var(--duel-win, #34C759); }
.bf-done-today b { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-done-today span { font-size: 12px !important; }
.bf-done-today .bf-chip-btn { align-self: center; }

.bf-hero { position: relative; overflow: hidden; border-radius: 26px !important; }
.bf-hero-k { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.bf-hero--fuel {
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43),.26), transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(255,176,32,.14), transparent 60%), var(--surface) !important;
  border: 1px solid rgba(var(--accent-rgb, 255,107,43),.28) !important;
}
.bf-hero--fuel .bf-hero-k { color: var(--duel-you); }
.bf-hero--recover {
  background: radial-gradient(120% 90% at 100% 0%, rgba(52,199,89,.22), transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(142,156,255,.16), transparent 60%), var(--surface) !important;
  border: 1px solid rgba(52,199,89,.28) !important;
}
.bf-hero--recover .bf-hero-k { color: var(--duel-win, #34C759); margin-bottom: 6px; }
.bf-hero--recover .bf-gcard-row > div:first-child > div:nth-child(2) { font-size: 14px !important; color: var(--text) !important; font-weight: 600; }
.bf-hero-k { text-align: left !important; }

.main-content :is(.nut-yaz-meal-card, .nut-yaz-meals-section, .nut-yaz-water-card, .db-card) {
  margin-top: 0 !important;
  margin-bottom: var(--bf-card-gap, 12px) !important;
}

[data-theme="light"] { --sh: 0 1px 2px rgba(42,40,35,.04), 0 6px 18px rgba(42,40,35,.05); }

.np-cal-rem-l, .np-macro-l {
  font-size: 11px !important; font-weight: 800 !important;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text3) !important;
}
.nut-yaz-section-title { font-size: 18px !important; letter-spacing: -.02em !important; font-weight: 800 !important; }

.bf-eyebrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text2); line-height: 1.2;
}
.bf-eyebrow > button, .bf-eyebrow-action {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; padding: 0 !important; margin: 0 !important;
  color: var(--accent) !important; font-family: inherit !important;
  font-size: 12px !important; font-weight: 700 !important; font-style: normal !important;
  text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; -webkit-appearance: none;
}
.bf-eyebrow > button:active { opacity: .6; }
.bf-sec.bf-sec-empty { display: none !important; }

.main-content .tab-content > * { margin-top: 0 !important; margin-bottom: var(--bf-card-gap, 12px) !important; }
.bf-eyebrow + * { margin-top: 0 !important; }
