:root {
  --bf-display: var(--font-display, 'Archivo', 'Plus Jakarta Sans', sans-serif);
  --bf-ease: cubic-bezier(.22, 1, .36, 1);
}

.bf-num, .bf-meal-kcal, .bf-fi-kcal, .bf-water-v b, .bf-hx-v, .bf-hs-v, .bf-bmi-v,
.bf-weight-v, .bf-rec-status, .bf-af-title, .bf-af-ri-kcal, .bf-tg-v {
  font-family: var(--bf-display) !important; font-style: italic; font-weight: 900 !important;
  font-stretch: 112%; letter-spacing: -.02em !important; font-variant-numeric: tabular-nums;
}

.page-hdr { align-items: flex-end !important; gap: 12px; }
.page-hdr > div:first-child { min-width: 0; }
.page-hdr-sub { white-space: nowrap; width: max-content; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }

.bf-eyebrow-val {
  font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.card > .bf-eyebrow { margin-bottom: 14px; }

.bf-meals { padding: 18px 18px 16px !important; }
.bf-meal-list { display: flex; flex-direction: column; }
.bf-meal + .bf-meal { border-top: 1px solid var(--border); }
.bf-meal-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  -webkit-tap-highlight-color: transparent;
}
.bf-meal.has-items .bf-meal-row { cursor: pointer; }
.bf-meal-ic {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--text3); transition: background .2s, color .2s;
}
.bf-meal-ic svg { width: 19px; height: 19px; }
.bf-meal.has-items .bf-meal-ic { background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); }
.bf-meal-txt { flex: 1; min-width: 0; }
.bf-meal-txt b { display: block; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.bf-meal-txt span { display: block; font-size: 12px; font-weight: 600; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-meal-kcal { font-size: 19px; color: var(--text); line-height: 1; white-space: nowrap; }
.bf-meal-kcal small, .bf-fi-kcal small, .bf-af-ri-kcal small {
  font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-size: 10.5px; font-weight: 700;
  color: var(--text3); margin-left: 3px; letter-spacing: 0;
}
.bf-meal-kcal.is-zero { color: var(--text3); opacity: .55; }
.bf-meal-chev { color: var(--text3); display: flex; margin-left: -4px; transition: transform .25s var(--bf-ease); }
.bf-meal-chev svg { width: 15px; height: 15px; }
.bf-meal-add {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0; cursor: pointer;
  border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface2); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: transform .15s, background .15s, border-color .15s;
}
.bf-meal-add svg { width: 17px; height: 17px; }
.bf-meal-add:hover { border-color: var(--accent); color: var(--accent); }
.bf-meal-add:active { transform: scale(.9); }

.bf-meal-items { padding: 0 0 10px; }
.bf-fi {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 12px; margin-top: 4px;
  border-radius: 14px; background: var(--surface2); cursor: pointer;
}
.bf-fi:active { background: var(--bg3); }
.bf-fi-txt { flex: 1; min-width: 0; }
.bf-fi-txt b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-fi-txt span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-fi-kcal { font-size: 15px; color: var(--text); white-space: nowrap; }
.bf-fi-del {
  width: 32px; height: 32px; border-radius: 10px; border: none; background: none; cursor: pointer;
  color: var(--text3); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bf-fi-del svg { width: 15px; height: 15px; }
.bf-fi-del:hover { color: #FF4D4D; background: rgba(255,77,77,.1); }

.bf-log { display: flex; gap: 8px; margin-top: 12px; }
.bf-log-main {
  flex: 1; 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; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 26px rgba(var(--accent-rgb, 255,107,43), .32); -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.bf-log-main svg { width: 18px; height: 18px; }
.bf-log-q {
  width: 54px; min-height: 54px; border-radius: 18px; cursor: pointer; flex-shrink: 0;
  border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, border-color .15s;
}
.bf-log-q svg { width: 21px; height: 21px; }
.bf-log-q:hover { border-color: var(--accent); color: var(--accent); }
.bf-log-main:active, .bf-log-q:active { transform: scale(.96); }

.bf-water .bf-eyebrow-val { color: #5AB0FF; }
.bf-water-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.bf-water-v { display: flex; align-items: baseline; gap: 6px; }
.bf-water-v i { width: 18px; height: 18px; color: #5AB0FF; align-self: center; display: flex; }
.bf-water-v i svg { width: 18px; height: 18px; }
.bf-water-v b { font-size: 30px; color: var(--text); line-height: 1; }
.bf-water-v span { font-size: 13px; font-weight: 700; color: var(--text3); }
.bf-water .bf-bar-water { height: 8px !important; }
.bf-water-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.bf-water-btns button {
  padding: 10px 4px; border-radius: 14px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--v2-line, var(--border)); background: var(--surface2);
  display: flex; flex-direction: column; align-items: center; gap: 1px; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, border-color .15s;
}
.bf-water-btns b { font-size: 13px; font-weight: 900; color: var(--text); }
.bf-water-btns span { font-size: 10.5px; font-weight: 700; color: var(--text3); }
.bf-water-btns button:hover { border-color: #5AB0FF; }
.bf-water-btns button:active { transform: scale(.94); }

.bf-wk { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; }
.bf-wk-goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(var(--accent-rgb, 255,107,43), .35); pointer-events: none; z-index: 1; }
.bf-wk-d {
  display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.bf-wk-d em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text3); min-height: 12px; line-height: 12px; }
.bf-wk-col { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; border-radius: 10px; background: var(--bg3); overflow: hidden; }
.bf-wk-col i { display: block; width: 100%; border-radius: 10px; background: rgba(var(--accent-rgb, 255,107,43), .35); transition: height .6s var(--bf-ease); }
.bf-wk-d.is-hit .bf-wk-col i { background: linear-gradient(180deg, #4ADE80, #34C759); }
.bf-wk-d.is-sel .bf-wk-col i { background: var(--v2-grad); box-shadow: 0 6px 16px rgba(var(--accent-rgb, 255,107,43), .35); }
.bf-wk-d.is-sel.is-hit .bf-wk-col i { background: linear-gradient(180deg, #4ADE80, #34C759); }
.bf-wk-d b { font-size: 11px; font-weight: 800; color: var(--text3); }
.bf-wk-d.is-sel b, .bf-wk-d.is-sel em { color: var(--text); }
.bf-wk-d.is-sel .bf-wk-col { outline: 2px solid rgba(var(--accent-rgb, 255,107,43), .35); outline-offset: 2px; }
.bf-wk-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--text3); }
.bf-wk-foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #34C759; vertical-align: 0; }

html.bf-af-lock, html.bf-af-lock body { overflow: hidden !important; }
.bf-af {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(10, 10, 8, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s ease;
}
.bf-af.open { opacity: 1; }
.bf-af-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(100%); transition: transform .42s var(--bf-ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.bf-af.open .bf-af-panel { transform: none; }
@media (min-width: 720px) {
  .bf-af-panel { left: 50%; right: auto; width: 560px; top: 5vh; bottom: 0; margin-left: -280px; border-radius: 30px 30px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
}
.bf-af-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; flex-shrink: 0; }
.bf-af-x, .bf-af-back {
  height: 42px; border-radius: 14px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 800; font-size: 13px; -webkit-tap-highlight-color: transparent;
}
.bf-af-x { width: 42px; }
.bf-af-x svg { width: 18px; height: 18px; }
.bf-af-back { padding: 0 14px 0 10px; margin-bottom: 14px; }
.bf-af-back svg { width: 17px; height: 17px; }
.bf-af-date { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-af-body {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.bf-af-title { font-size: 34px; line-height: 1.02; color: var(--text); margin: 4px 2px 16px; }

.bf-af-meals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 20px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-af-meal {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 9px; border-radius: 15px;
  border: none; background: none; cursor: pointer; font-family: inherit; color: var(--text3);
  -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s;
}
.bf-af-meal i { display: flex; }
.bf-af-meal svg { width: 18px; height: 18px; }
.bf-af-meal span { font-size: 11.5px; font-weight: 800; }
.bf-af-meal.on { background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb, 255,107,43), .5); }

.bf-af-search {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 0 16px; height: 54px;
  border-radius: 18px; background: var(--surface); border: 1.5px solid var(--v2-line, var(--border));
  color: var(--text3); transition: border-color .2s, box-shadow .2s; cursor: text;
}
.bf-af-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); }
.bf-af-search svg { width: 19px; height: 19px; flex-shrink: 0; }
.bf-af-search input {
  flex: 1; min-width: 0; height: 100%; border: none !important; outline: none; background: none !important; box-shadow: none !important;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text); padding: 0 !important;
}
.bf-af-search input:focus, .bf-af-field input:focus { outline: none !important; box-shadow: none !important; }
.bf-af-search input::placeholder { color: var(--text3); font-weight: 500; }
.bf-af-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bf-af-results[hidden], #bf-af-home[hidden] { display: none !important; }
.bf-af-results { margin-top: 12px; }
#bf-addfood #food-search-results > div[onclick] {
  background: var(--surface) !important; border: 1px solid var(--v2-line, var(--border)) !important;
  border-radius: 16px !important; padding: 13px 14px !important; margin-bottom: 8px !important;
}
#bf-addfood #food-search-results > div[onclick] > div > div:first-child { font-size: 14px !important; font-weight: 700 !important; }
#bf-addfood #food-search-results > div[onclick]:active { transform: scale(.985); }

.bf-af-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); margin: 24px 4px 10px; }
.bf-af-k-row { display: flex; justify-content: space-between; align-items: baseline; }
.bf-af-k-row small { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text3); }

.bf-af-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.bf-af-tile {
  position: relative; overflow: hidden; text-align: left; min-height: 158px; padding: 16px; border-radius: 24px; cursor: pointer;
  border: 1px solid var(--v2-line, var(--border)); background: var(--surface); font-family: inherit;
  display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.bf-af-tile b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 21px; color: var(--text); margin-top: auto; letter-spacing: -.01em; }
.bf-af-tile > span:not(.bf-af-tile-ic) { font-size: 12px; font-weight: 600; color: var(--text2); line-height: 1.35; margin-top: 4px; }
.bf-af-tile-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--text); }
.bf-af-tile-ic svg { width: 22px; height: 22px; }
.bf-af-tile.is-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43), .30), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(255,176,32,.16), transparent 60%), var(--surface);
  border-color: rgba(var(--accent-rgb, 255,107,43), .3);
}
.bf-af-tile.is-hero .bf-af-tile-ic { background: var(--v2-grad); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb, 255,107,43), .35); }
.bf-af-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px;
  font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px 4px 6px; border-radius: 99px; background: rgba(var(--accent-rgb, 255,107,43), .14); color: var(--accent);
}
.bf-af-badge svg { width: 12px; height: 12px; }
.bf-af-tile:active, .bf-af-opt:active { transform: scale(.97); }

.bf-af-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.bf-af-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--v2-line, var(--border)); background: var(--surface); font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s;
}
.bf-af-opt:hover, .bf-af-tile:hover { border-color: rgba(var(--accent-rgb, 255,107,43), .45); }
.bf-af-opt b { font-size: 11.5px; font-weight: 800; color: var(--text); text-align: center; line-height: 1.2; hyphens: manual; }
.bf-af-opt-ic { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .1); color: var(--accent); }
.bf-af-opt-ic svg { width: 19px; height: 19px; }

.bf-af-recent { background: var(--surface); border: 1px solid var(--v2-line, var(--border)); border-radius: 22px; overflow: hidden; }
.bf-af-recent-load { display: flex; justify-content: center; padding: 22px; }
.bf-af-ri {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; text-align: left;
  border: none; background: none; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.bf-af-ri + .bf-af-ri { border-top: 1px solid var(--border); }
.bf-af-ri:active { background: var(--surface2); }
.bf-af-ri-txt { flex: 1; min-width: 0; }
.bf-af-ri-txt b { display: block; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-af-ri-txt span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text3); margin-top: 1px; }
.bf-af-ri-kcal { font-size: 16px; color: var(--text); white-space: nowrap; }
.bf-af-ri-add {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); transition: background .2s, color .2s, transform .2s;
}
.bf-af-ri-add svg { width: 16px; height: 16px; }
.bf-af-ri.is-busy .bf-af-ri-add { animation: bfPulse .8s ease-in-out infinite; }
.bf-af-ri.is-done .bf-af-ri-add { background: #34C759; color: #fff; transform: scale(1.05); }
.bf-af-empty { padding: 18px 16px; font-size: 13px; color: var(--text3); line-height: 1.5; text-align: center; }

#bf-addfood .bf-af-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.bf-af-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.bf-af-field > div > input { width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; }
.bf-af-field { display: block; }
.bf-af-field > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); margin: 0 4px 6px; }
.bf-af-field > div {
  display: flex; align-items: center; height: 54px; padding: 0 14px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid var(--v2-line, var(--border)); transition: border-color .2s, box-shadow .2s;
}
.bf-af-field > div:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 255,107,43), .12); }
.bf-af-field input {
  flex: 1; min-width: 0; border: none !important; outline: none; background: none !important; box-shadow: none !important; padding: 0 !important;
  font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text); -moz-appearance: textfield;
}
.bf-af-field input[type=number] { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-size: 20px; font-stretch: 112%; }
.bf-af-field input::-webkit-outer-spin-button, .bf-af-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bf-af-field em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--text3); margin-left: 6px; }
.bf-af-msg { font-size: 13px; font-weight: 700; padding: 10px 12px; border-radius: 12px; background: rgba(255,77,77,.1); }
.bf-af-foot { position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom, 0px)); margin: 18px -16px 0; padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.bf-af-submit {
  width: 100%; min-height: 58px; border: none; border-radius: 20px; cursor: pointer;
  background: var(--v2-grad); color: #fff; font-family: inherit; font-size: 17px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 28px rgba(var(--accent-rgb, 255,107,43), .35);
}
.bf-af-submit svg { width: 19px; height: 19px; }
.bf-af-submit:disabled { opacity: .6; }
.bf-af-submit:active { transform: scale(.97); }

#tab-health .card { padding: 18px !important; }
.bf-rec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bf-rec-txt { flex: 1; min-width: 0; text-align: left !important; }
#tab-health .bf-rec-txt p, #tab-health .bf-rec-txt div { text-align: left !important; }
.bf-rec-txt p { font-size: 13px; font-weight: 600; color: var(--text2); line-height: 1.5; margin: 6px 0 0; }
.bf-rec .bf-hero-k { margin-bottom: 4px !important; }
.bf-rec-status { font-size: 34px; line-height: 1; color: var(--text); margin-top: 4px; }
.bf-hs-v, .bf-weight-v { font-size: 42px; line-height: 1; color: var(--text); }
.bf-hs-v small, .bf-weight-v small, .bf-hx-v small {
  font-size: .42em; color: var(--text3); margin-left: 4px; letter-spacing: 0;
}
.bf-hs-v.is-empty { color: var(--text3); }
.bf-pill-soft {
  display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 99px;
  background: rgba(59,130,246,.12); color: #3B82F6; font-size: 11.5px; font-weight: 800;
}
.bf-tg-v { font-size: 26px !important; letter-spacing: -.02em !important; }
.bf-tg-s { font-size: 10px !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--text3) !important; margin-top: 4px !important; }

.bf-hx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bf-card-gap, 12px); }
.bf-hx {
  background: var(--surface); border: 1px solid var(--v2-line, var(--border)); border-radius: var(--r-lg, 24px);
  padding: 16px; box-shadow: var(--sh); min-width: 0;
}
.bf-hx-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bf-hx-hd span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-hx-hd i {
  width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent);
}
.bf-hx-hd i svg { width: 16px; height: 16px; }
.bf-hx-v { font-size: 30px; line-height: 1; color: var(--text); white-space: nowrap; }
.bf-hx-sub { font-size: 12px; font-weight: 600; color: var(--text3); margin-top: 7px; }
.bf-hx-sub .bf-bar { display: block; height: 5px !important; margin-bottom: 6px; }
.bf-hx-sub .bf-bar > i { background: var(--v2-grad); }

.bf-bmi-v { font-size: 42px; line-height: 1; color: var(--text); margin-bottom: 16px; }
.bf-bmi-scale { position: relative; height: 10px; margin-bottom: 10px; }
.bf-bmi-track { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, #3B82F6, #34C759 34%, #FFB020 64%, #FF4D4D); opacity: .9; }
.bf-bmi-scale i {
  position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--surface); border: 4px solid var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.bf-bmi-lbl { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800; color: var(--text3); }

.bf-weight-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bf-trend {
  display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 900;
  background: var(--bg3); color: var(--text2); white-space: nowrap;
}
.bf-trend.is-down { background: rgba(52,199,89,.13); color: #22A04B; }
.bf-trend.is-up { background: rgba(255,77,77,.12); color: #E5484D; }
.bf-comp { margin: 6px 0 12px; }
.bf-comp-hd { display: flex; justify-content: space-between; margin-bottom: 7px; }
.bf-comp-hd span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-comp-hd b { font-size: 12px; font-weight: 800; color: var(--text); }
.bf-comp-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg3); gap: 2px; }
.bf-muted { font-size: 13px; color: var(--text3); margin: 6px 0 2px; line-height: 1.5; }

#tab-health .bf-sync { padding: 0 !important; overflow: hidden; }
.bf-sync .bf-row { padding: 16px 18px; }
.bf-row-ic svg { width: 17px; height: 17px; }
.bf-row-ic.is-on { background: rgba(52,199,89,.13); color: #22A04B; }
.bf-row-chev { display: flex; }
.bf-row-chev svg { width: 16px; height: 16px; }

.hsheet-title { font-family: var(--bf-display) !important; font-style: italic; font-weight: 900 !important; font-stretch: 112%; font-size: 24px !important; letter-spacing: -.02em !important; }

:is(.loading, .nut-loading, .yaz-loading, .bf-af-recent-load) > :is(.spinner, .loading-spinner) {
  width: 34px !important; height: 34px !important; border: none !important; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb, 255,107,43), 0) 0deg, rgba(var(--accent-rgb, 255,107,43), .15) 90deg, var(--accent) 330deg, var(--accent) 360deg) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
  animation: bfSpin .8s linear infinite !important;
}
.bf-af-recent-load > .loading-spinner { width: 26px !important; height: 26px !important; }
@keyframes bfSpin { to { transform: rotate(360deg); } }
@keyframes bfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

#app-preloader { background: var(--bg, #F2F2EF) !important; overflow: hidden; }
#app-preloader::before {
  content: ''; position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb, 255,107,43), .14), transparent 70%);
  animation: plGlow 2.4s ease-in-out infinite;
}
#app-preloader .pl { position: relative; display: flex; flex-direction: column; align-items: center; }
#app-preloader .pl-bb { width: 250px; height: 116px; overflow: visible; }
#app-preloader .pl-g1a { stop-color: var(--accent-lite, #FF7A3D); }
#app-preloader .pl-g1b { stop-color: var(--accent2, #FF5A1F); }
#app-preloader .pl-bar { fill: var(--text, #15150F); transform-box: fill-box; transform-origin: center; transform: scaleX(0); animation: plBarIn .38s var(--bf-ease) forwards; }
#app-preloader .pl-knurl { fill: var(--text3, #8A8A80); opacity: 0; animation: plFade .3s ease forwards .22s; }
#app-preloader .pl-collar { fill: var(--text2, #55554E); transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: plCollar .22s cubic-bezier(.34, 1.56, .64, 1) forwards .74s; }
#app-preloader .pl-p { stroke: rgba(255,255,255,.22); stroke-width: 1.5; opacity: 0; animation: plPlateL .36s cubic-bezier(.34, 1.45, .64, 1) forwards; }
#app-preloader .pl-r .pl-p { animation-name: plPlateR; }
#app-preloader .pl-p1 { fill: url(#plG1); animation-delay: .14s; }
#app-preloader .pl-p2 { fill: var(--text, #15150F); animation-delay: .3s; }
#app-preloader .pl-p3 { fill: #FFB020; animation-delay: .46s; }
#app-preloader .pl-lift { animation: plLift .5s cubic-bezier(.3, 0, .15, 1) forwards .92s, plRep 1.5s ease-in-out 2s infinite; }
#app-preloader .pl-shadow { fill: rgba(0,0,0,.13); transform-box: fill-box; transform-origin: center; animation: plShadow .5s cubic-bezier(.3, 0, .15, 1) forwards .92s, plShadowRep 1.5s ease-in-out 2s infinite; }
[data-theme="dark"] #app-preloader .pl-shadow { fill: rgba(0,0,0,.55); }
#app-preloader .pl-word {
  margin-top: 16px; display: flex; overflow: hidden; padding: 2px 6px;
  font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%;
  font-size: 30px; letter-spacing: -.02em; color: var(--text, #15150F); line-height: 1.1;
}
#app-preloader .pl-word span { display: inline-block; transform: translateY(110%); animation: plRise .6s var(--bf-ease) forwards; animation-delay: calc(var(--i) * 30ms + 560ms); }
#app-preloader .pl-word span.acc { color: var(--accent, #FF6B2B); }
#app-preloader .pl-tag {
  margin-top: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text3, #8A8A80); opacity: 0; animation: plFade .5s ease forwards 1.1s;
}
#app-preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
#app-preloader.hide .pl { transform: scale(1.06); transition: transform .4s ease; }
@keyframes plBarIn { to { transform: scaleX(1); } }
@keyframes plCollar { to { transform: scaleY(1); } }
@keyframes plPlateL { from { opacity: 0; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
@keyframes plPlateR { from { opacity: 0; transform: translateX(64px); } to { opacity: 1; transform: none; } }
@keyframes plLift { from { transform: none; } to { transform: translateY(-24px); } }
@keyframes plRep { 0%, 100% { transform: translateY(-24px); } 50% { transform: translateY(-6px); } }
@keyframes plShadow { to { transform: scaleX(.7); opacity: .55; } }
@keyframes plShadowRep { 0%, 100% { transform: scaleX(.7); opacity: .55; } 50% { transform: scaleX(.94); opacity: .9; } }
@keyframes plRise { to { transform: none; } }
@keyframes plFade { to { opacity: 1; } }
@keyframes plGlow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .bf-af, .bf-af-panel, .bf-wk-col i, .bf-meal-chev { transition: none !important; }
  #app-preloader *, #app-preloader::before { animation: none !important; }
  #app-preloader .pl-word span, #app-preloader .pl-bar, #app-preloader .pl-collar { transform: none; }
  #app-preloader .pl-tag, #app-preloader .pl-p, #app-preloader .pl-knurl { opacity: 1; }
  #app-preloader .pl-lift { transform: translateY(-24px); }
  :is(.loading, .nut-loading, .yaz-loading, .bf-af-recent-load) > :is(.spinner, .loading-spinner) { animation-duration: 2.4s !important; }
}

.bf-af-back { margin-bottom: 10px; }
.bf-af-state { display: flex; justify-content: center; padding: 26px; }
.bf-af-hit, .bf-af-alt {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; margin-bottom: 8px; text-align: left;
  border-radius: 18px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s;
}
.bf-af-hit:active, .bf-af-alt:active { transform: scale(.985); }
.bf-af-hit:hover { border-color: rgba(var(--accent-rgb, 255,107,43), .45); }
.bf-af-hit-txt { flex: 1; min-width: 0; }
.bf-af-hit-txt b { display: block; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-af-hit-txt b em { font-style: normal; font-weight: 600; color: var(--text3); }
.bf-af-hit-txt > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text3); margin-top: 2px; }
.bf-af-hit .bf-af-ri-add { background: var(--surface2); color: var(--text3); }
.bf-af-alt { justify-content: center; border-style: dashed; color: var(--accent); font-size: 13.5px; font-weight: 800; background: transparent; }
.bf-af-alt svg { width: 17px; height: 17px; }

.bf-af-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 20px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); margin-bottom: 14px; }
.bf-af-modes button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 9px; border-radius: 15px; border: none; background: none;
  cursor: pointer; font-family: inherit; color: var(--text3); -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s;
}
.bf-af-modes i { display: flex; }
.bf-af-modes svg { width: 18px; height: 18px; }
.bf-af-modes span { font-size: 11.5px; font-weight: 800; }
.bf-af-modes button.on { background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb, 255,107,43), .5); }

.bf-af-cap { display: flex; flex-direction: column; gap: 12px; }
.bf-cam { position: relative; border-radius: 26px; overflow: hidden; background: #0b0b0a; aspect-ratio: 4 / 3.4; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.bf-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-cam-frame { position: absolute; inset: 18% 12%; pointer-events: none; }
.bf-cam-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; opacity: .95; }
.bf-cam-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.bf-cam-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.bf-cam-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.bf-cam-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.bf-cam-frame b { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: bfScanLine 2s ease-in-out infinite; }
@keyframes bfScanLine { 0%, 100% { transform: translateY(-40px); opacity: .6; } 50% { transform: translateY(40px); opacity: 1; } }
.bf-cam-status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; padding: 7px 14px; border-radius: 99px;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 700; }
.bf-af-code { display: flex; gap: 8px; }
.bf-af-code input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px !important; border-radius: 16px !important; border: 1.5px solid var(--v2-line, var(--border)) !important;
  background: var(--surface) !important; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 700; outline: none !important; box-shadow: none !important;
}
.bf-af-code input:focus { border-color: var(--accent) !important; }
.bf-af-code button { height: 52px; padding: 0 18px; border-radius: 16px; border: none; background: var(--text); color: var(--bg); font-family: inherit; font-weight: 900; font-size: 14px; cursor: pointer; }

.bf-drop {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3.2; width: 100%; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 26px; border: 2px dashed rgba(var(--accent-rgb, 255,107,43), .35);
  background: radial-gradient(90% 80% at 50% 0%, rgba(var(--accent-rgb, 255,107,43), .12), transparent 70%), var(--surface); font-family: inherit;
}
.bf-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-drop-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; }
.bf-drop-ph i { width: 64px; height: 64px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--v2-grad); color: #fff; margin-bottom: 6px; box-shadow: 0 10px 26px rgba(var(--accent-rgb, 255,107,43), .35); }
.bf-drop-ph i svg { width: 28px; height: 28px; }
.bf-drop-ph b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 20px; color: var(--text); }
.bf-drop-ph span { font-size: 12.5px; font-weight: 600; color: var(--text2); max-width: 260px; line-height: 1.45; }

.bf-voice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-voice-btn {
  width: 112px; height: 112px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
  background: var(--v2-grad); color: #fff; box-shadow: 0 16px 36px rgba(var(--accent-rgb, 255,107,43), .4); -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.bf-voice-btn span { display: flex; color: #fff !important; }
.bf-voice-btn svg { width: 40px; height: 40px; }
.bf-voice-btn:active { transform: scale(.94); }
.bf-voice-btn.is-rec { background: linear-gradient(135deg, #FF5A5A, #E5484D); animation: bfRec 1.4s ease-in-out infinite; }
@keyframes bfRec { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.45), 0 16px 36px rgba(229,72,77,.35); } 50% { box-shadow: 0 0 0 18px rgba(229,72,77,0), 0 16px 36px rgba(229,72,77,.35); } }
.bf-voice b { font-size: 16px; font-weight: 900; color: var(--text); }
.bf-voice-t { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-size: 22px; color: var(--text2); font-variant-numeric: tabular-nums; }
.bf-voice p { font-size: 12.5px; color: var(--text3); line-height: 1.5; margin: 6px 0 0; max-width: 300px; }

.bf-af-status { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); font-size: 13px; }
.bf-af-status > div { font-size: 13px !important; line-height: 1.5; }
.bf-af-status .form-input { height: 46px; border-radius: 14px !important; }
.bf-af-status .btn { border-radius: 14px !important; }

.bf-af-busy { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 60px 20px; }
.bf-af-busy p { font-size: 15px; font-weight: 700; color: var(--text2); margin: 0; max-width: 280px; line-height: 1.45; }
.bf-af-busy.is-error p { color: #E5484D; }
.bf-af-busy .bf-af-submit { max-width: 260px; }
.bf-af-busy-ring > .loading-spinner { width: 52px !important; height: 52px !important; border: none !important; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb, 255,107,43), 0), var(--accent)) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: bfSpin .8s linear infinite !important; }

.bf-fd-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.bf-fd-img { width: 64px; height: 64px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); flex-shrink: 0; }
.bf-fd-img svg { width: 28px; height: 28px; }
.bf-fd-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bf-fd-src { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bf-fd-src span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-fd-src em { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); }
.bf-fd-name { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.bf-fd-name:focus-within { border-bottom-color: var(--accent); }
.bf-fd-name input {
  flex: 1; min-width: 0; border: none !important; background: none !important; padding: 0 !important; outline: none !important; box-shadow: none !important;
  font-family: var(--bf-display) !important; font-style: italic !important; font-weight: 900 !important; font-stretch: 112%; font-size: 28px !important; letter-spacing: -.02em !important; color: var(--text) !important; line-height: 1.15 !important; height: auto !important;
}
.bf-fd-name i { display: flex; color: var(--text3); }
.bf-fd-name i svg { width: 16px; height: 16px; }
.bf-fd-brand { font-size: 13px; font-weight: 700; color: var(--text3); margin-top: 2px; }
.bf-fd-notes { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin: 8px 0 0; }

.bf-fd-sum { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px; border-radius: 24px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43), .18), transparent 58%), var(--surface); border: 1px solid rgba(var(--accent-rgb, 255,107,43), .22); }
.bf-fd-kcal { display: flex; flex-direction: column; align-items: flex-start; min-width: 104px; }
.bf-fd-kcal b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 44px; line-height: 1; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bf-fd-kcal span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-top: 4px; }
.bf-fd-macros { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bf-fd-macros div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bf-fd-macros i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bf-fd-macros span { flex: 1; font-weight: 700; color: var(--text2); }
.bf-fd-macros b { font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }

.bf-fd-amt { display: grid; grid-template-columns: 58px 1fr 58px; gap: 8px; align-items: center; padding: 7px; border-radius: 22px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-fd-amt > button { width: 58px; height: 58px; border-radius: 16px; border: none; background: var(--surface2); color: var(--text); font-size: 28px; font-weight: 600; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bf-fd-amt > button:active { transform: scale(.9); background: rgba(var(--accent-rgb, 255,107,43), .18); }
.bf-fd-amt-v { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.bf-fd-amt-v input {
  width: 100%; max-width: 120px; min-width: 0; text-align: right; border: none !important; background: none !important; padding: 0 !important; outline: none !important; box-shadow: none !important; height: auto !important;
  font-family: var(--bf-display) !important; font-style: italic !important; font-weight: 900 !important; font-stretch: 112%; font-size: 36px !important; color: var(--text) !important; -moz-appearance: textfield;
}
.bf-fd-amt-v input::-webkit-outer-spin-button, .bf-fd-amt-v input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bf-fd-unit { display: flex; flex-direction: column; gap: 3px; }
.bf-fd-unit button { width: 36px; height: 24px; border-radius: 8px; border: none; background: var(--surface2); color: var(--text3); font-family: inherit; font-size: 11.5px; font-weight: 900; cursor: pointer; }
.bf-fd-unit button.on { background: var(--text); color: var(--bg); }
.bf-fd-x { font-size: 13px; font-weight: 800; color: var(--text3); }
.bf-fd-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.bf-fd-chips:empty { display: none; }
.bf-fd-chips button { padding: 9px 13px; border-radius: 99px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.bf-fd-chips button.on { border-color: var(--accent); background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); }
.bf-fd-items { border-radius: 20px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); overflow: hidden; }
.bf-fd-items div { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; }
.bf-fd-items div + div { border-top: 1px solid var(--border); }
.bf-fd-items span { flex: 1; font-weight: 700; color: var(--text); }
.bf-fd-items em { font-style: normal; color: var(--text3); font-weight: 700; }
.bf-fd-items b { font-weight: 900; color: var(--text2); min-width: 64px; text-align: right; }

.bf-fd-name.is-long input { font-size: 21px !important; }
.bf-hs .bf-tg-v { font-size: 19px !important; }
.bf-hx-grid > .bf-hx { margin: 0 !important; }

.bf-shell .bf-af-panel { display: flex; flex-direction: column; }
.bf-shell .bf-af-body { padding-bottom: 24px; }
.bf-shell-foot { flex-shrink: 0; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); background: linear-gradient(180deg, transparent, var(--bg) 26%); }
.bf-shell-foot[hidden], .bf-shell-foot:empty { display: none; }

.bf-in-load .loading { padding: 34px; }
.bf-in-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px !important; }
.bf-in-empty-ic { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); margin-bottom: 6px; }
.bf-in-empty-ic svg { width: 24px; height: 24px; }
.bf-in-empty b { font-size: 15px; font-weight: 800; color: var(--text); }
.bf-in-empty span { font-size: 13px; color: var(--text2); line-height: 1.5; max-width: 300px; }

.bf-in-vol { padding: 18px !important; background: radial-gradient(120% 90% at 100% 0%, rgba(142,156,255,.22), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(var(--accent-rgb, 255,107,43), .14), transparent 60%), var(--surface) !important; border: 1px solid rgba(142,156,255,.28) !important; }
.bf-in-vol .bf-hero-k { color: #6F7DF0; margin-bottom: 6px; }
.bf-in-big { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 48px; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-in-big small { font-size: 22px; color: var(--text3); margin-left: 4px; }
.bf-in-sub { font-size: 12.5px; font-weight: 700; color: var(--text2); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bf-in-delta { display: inline-flex; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 900; background: var(--bg3); color: var(--text2); }
.bf-in-delta.up { background: rgba(52,199,89,.14); color: #22A04B; }
.bf-in-delta.down { background: rgba(255,77,77,.12); color: #E5484D; }
.bf-in-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 128px; margin-top: 16px; }
.bf-in-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bf-in-bar em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--text3); min-height: 12px; line-height: 12px; white-space: nowrap; }
.bf-in-bar span { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; border-radius: 9px; background: var(--bg3); overflow: hidden; }
.bf-in-bar span i { display: block; width: 100%; border-radius: 9px; background: rgba(142,156,255,.55); transition: height .6s var(--bf-ease); }
.bf-in-bar.is-now span i { background: linear-gradient(180deg, #8E9CFF, #6F7DF0); box-shadow: 0 6px 16px rgba(111,125,240,.35); }
.bf-in-bar b { font-size: 9.5px; font-weight: 800; color: var(--text3); white-space: nowrap; }
.bf-in-bar.is-now b, .bf-in-bar.is-now em { color: var(--text); }

.bf-in-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bf-card-gap, 12px); margin-bottom: var(--bf-card-gap, 12px); }
.bf-in-tile { background: var(--surface); border: 1px solid var(--v2-line, var(--border)); border-radius: var(--r-lg, 24px); box-shadow: var(--sh); padding: 14px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.bf-in-tile b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-in-tile > span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.bf-in-tile .bf-in-delta { margin-top: 4px; }

.bf-pe-lead { font-size: 14px; color: var(--text2); line-height: 1.5; margin: -6px 2px 16px; }
.bf-pe-ai {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 24px; cursor: pointer; font-family: inherit;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43), .30), transparent 58%), radial-gradient(90% 80% at 0% 100%, rgba(255,176,32,.16), transparent 60%), var(--surface);
  border: 1px solid rgba(var(--accent-rgb, 255,107,43), .3); -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.bf-pe-ai:active, .bf-pe-tpl:active { transform: scale(.985); }
.bf-pe-ai-ic { width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--v2-grad); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb, 255,107,43), .35); }
.bf-pe-ai-ic svg { width: 24px; height: 24px; }
.bf-pe-ai-t { flex: 1; min-width: 0; }
.bf-pe-ai-t b { display: block; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 19px; color: var(--text); }
.bf-pe-ai-t span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-top: 3px; }
.bf-pe-chev { display: flex; color: var(--text3); transform: rotate(180deg); }
.bf-pe-chev svg { width: 18px; height: 18px; }
.bf-pe-tpls { display: flex; flex-direction: column; gap: 10px; }
.bf-pe-tpl {
  width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border-radius: 22px; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--v2-line, var(--border)); -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s;
}
.bf-pe-tpl:hover { border-color: rgba(var(--accent-rgb, 255,107,43), .45); }
.bf-pe-tpl-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bf-pe-tpl-hd b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 20px; color: var(--text); }
.bf-pe-tpl-hd em { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--bg3); color: var(--text2); white-space: nowrap; }
.bf-pe-tpl-d { font-size: 13px; color: var(--text2); line-height: 1.45; }
.bf-pe-tpl-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.bf-pe-tpl-days i { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: rgba(var(--accent-rgb, 255,107,43), .1); color: var(--accent); }
.bf-pe-tpl-days small { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text3); }
.bf-pe-blank { margin-top: 12px; }

.bf-pe-name { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--v2-line, var(--border)); padding-bottom: 4px; transition: border-color .2s; }
.bf-pe-name:focus-within { border-bottom-color: var(--accent); }
.bf-pe-name input {
  flex: 1; min-width: 0; border: none !important; background: none !important; padding: 0 !important; outline: none !important; box-shadow: none !important; height: auto !important;
  font-family: var(--bf-display) !important; font-style: italic !important; font-weight: 900 !important; font-stretch: 112%; font-size: 30px !important; letter-spacing: -.02em !important; color: var(--text) !important;
}
.bf-pe-name input::placeholder { color: var(--text3); opacity: .6; }
.bf-pe-name i { display: flex; color: var(--text3); }
.bf-pe-name i svg { width: 17px; height: 17px; }
.bf-pe-meta { font-size: 12.5px; font-weight: 700; color: var(--text3); margin: 8px 2px 16px; }

.bf-pe-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.bf-pe-days::-webkit-scrollbar { display: none; }
.bf-pe-days button {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; border-radius: 16px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); max-width: 170px; -webkit-tap-highlight-color: transparent;
}
.bf-pe-days button b { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.bf-pe-days button span { font-size: 11px; font-weight: 700; color: var(--text3); }
.bf-pe-days button.on { border-color: var(--accent); background: rgba(var(--accent-rgb, 255,107,43), .1); }
.bf-pe-days button.on b { color: var(--accent); }
.bf-pe-days .bf-pe-addday { align-items: center; justify-content: center; width: 52px; padding: 0; border-style: dashed; color: var(--accent); }
.bf-pe-days .bf-pe-addday svg { width: 18px; height: 18px; }

.bf-pe-day { padding: 14px !important; }
.bf-pe-day-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.bf-pe-day-hd input {
  flex: 1; min-width: 0; height: 44px !important; padding: 0 12px !important; border-radius: 14px !important; border: 1.5px solid transparent !important; background: var(--surface2) !important;
  font-family: inherit; font-size: 15px !important; font-weight: 800 !important; color: var(--text) !important; outline: none !important; box-shadow: none !important;
}
.bf-pe-day-hd input:focus { border-color: var(--accent) !important; }
.bf-pe-day-hd button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; border: none; background: var(--surface2); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bf-pe-day-hd button svg { width: 17px; height: 17px; }
.bf-pe-day-hd button.danger:hover { color: #E5484D; background: rgba(255,77,77,.1); }
.bf-pe-list { display: flex; flex-direction: column; }
.bf-pe-none { text-align: center; padding: 22px 10px; font-size: 13px; color: var(--text3); }
.bf-pe-ex + .bf-pe-ex { border-top: 1px solid var(--border); }
.bf-pe-ex-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.bf-pe-th { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--surface2); display: block; }
.bf-pe-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-pe-ex-t { flex: 1; min-width: 0; }
.bf-pe-ex-t b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-pe-ex-t span { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 3px; }
.bf-pe-ex-chev { display: flex; color: var(--text3); transition: transform .25s var(--bf-ease); }
.bf-pe-ex-chev svg { width: 17px; height: 17px; }
.bf-pe-ex.is-open .bf-pe-ex-chev { transform: rotate(180deg); }
.bf-pe-ex-ed { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 14px; }
.bf-pe-st { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bf-pe-st > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.bf-pe-num, .bf-pe-reps { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface2); }
.bf-pe-num button, .bf-pe-reps button { width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; touch-action: manipulation; }
.bf-pe-num button:active, .bf-pe-reps button:active { transform: scale(.9); }
.bf-pe-num b, .bf-pe-reps b { min-width: 30px; text-align: center; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-pe-reps em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text3); padding: 0 2px; }
.bf-pe-rest { display: flex; gap: 4px; }
.bf-pe-rest button { padding: 8px 10px; border-radius: 11px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.bf-pe-rest button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.bf-pe-ex-act { display: flex; gap: 6px; }
.bf-pe-ex-act button { height: 38px; min-width: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; font-size: 12.5px; font-weight: 800; }
.bf-pe-ex-act button svg { width: 16px; height: 16px; }
.bf-pe-ex-act button:disabled { opacity: .35; }
.bf-pe-ex-act button.danger { margin-left: auto; color: #E5484D; border-color: rgba(229,72,77,.3); }
.bf-pe-add { width: 100%; margin-top: 8px; min-height: 52px; border-radius: 16px; border: 1.5px dashed rgba(var(--accent-rgb, 255,107,43), .5); background: rgba(var(--accent-rgb, 255,107,43), .06); color: var(--accent); font-family: inherit; font-size: 14.5px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bf-pe-add svg { width: 18px; height: 18px; }

.bf-chips-x { display: flex; gap: 7px; overflow-x: auto; padding: 12px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.bf-chips-x::-webkit-scrollbar { display: none; }
.bf-chips-x button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.bf-chips-x button i { width: 8px; height: 8px; border-radius: 50%; }
.bf-chips-x button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.bf-chips-x button.on i { box-shadow: 0 0 0 2px var(--bg); }

.bf-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .bf-ex-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.bf-ex {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer; font-family: inherit;
  border-radius: 22px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); box-shadow: var(--sh);
  -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bf-ex:active { transform: scale(.97); }
.bf-ex-img { position: relative; display: block; aspect-ratio: 1 / .86; background: #fff; overflow: hidden; }
.bf-ex-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-ex-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--text3); background: var(--surface2); }
.bf-ex-ph svg { width: 34px; height: 34px; opacity: .5; }
.bf-ex.no-img .bf-ex-ph, .bf-ex-img.no-img .bf-ex-ph { display: flex; }
.bf-ex-tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 900; color: #fff; background: rgba(20,20,16,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bf-ex-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.bf-ex-pro { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 7px; font-size: 9.5px; font-weight: 900; background: #FFB020; color: #1a1300; }
.bf-ex-name { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.bf-ex-name b { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.bf-ex-name small { font-size: 11px; font-weight: 700; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-ex-check { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.9); background: rgba(20,20,16,.35); color: transparent; transition: background .15s, transform .15s; }
.bf-ex-check svg { width: 15px; height: 15px; }
.bf-ex.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--sh); }
.bf-ex.is-sel .bf-ex-check { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }

.bf-back-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; margin-bottom: 6px; background: none; border: none; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.bf-back-link svg { width: 17px; height: 17px; }
.bf-gal-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bf-gal-t { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 32px; letter-spacing: -.02em; margin: 0; color: var(--text); }
.bf-gal-n { font-size: 12.5px; font-weight: 800; color: var(--text3); }
#workout-content .bf-gal-search { margin-top: 0; }
#workout-content .bf-chips-x { margin: 0 -16px; }
#bf-gal-more .bf-af-alt { margin-top: 12px; }

.bf-exd-img { border-radius: 26px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh); border: 1px solid var(--v2-line, var(--border)); }
.bf-exd-img img { width: 100%; height: 100%; object-fit: contain; }
.bf-exd-img.no-img { background: var(--surface2); color: var(--text3); }
.bf-exd-img.no-img svg { width: 48px; height: 48px; opacity: .5; }
.bf-exd-t { margin-top: 16px !important; margin-bottom: 10px !important; font-size: 30px !important; }
.bf-exd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bf-exd-chips span { padding: 6px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); font-size: 12px; font-weight: 800; color: var(--text2); }
.bf-exd-chips span.is-m { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.bf-exd-chips span.is-m::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.bf-exd-me { padding: 16px !important; margin-bottom: 14px; }
.bf-exd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.bf-exd-stats b { display: block; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 28px; color: var(--text); line-height: 1.05; }
.bf-exd-stats b small { font-size: 13px; color: var(--text3); margin-left: 3px; }
.bf-exd-stats span { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-top: 3px; line-height: 1.4; }
.bf-exd-spark { margin-top: 12px; }
.bf-exd-spark svg { width: 100%; height: 64px; display: block; }
.bf-exd-spark span { font-size: 11px; font-weight: 700; color: var(--text3); }
.bf-exd-desc { font-size: 14px; line-height: 1.6; color: var(--text2); margin: 0 2px 6px; }
.bf-exd-steps { padding: 6px 16px !important; }
.bf-exd-steps div { display: flex; gap: 12px; padding: 10px 0; }
.bf-exd-steps div + div { border-top: 1px solid var(--border); }
.bf-exd-steps span { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); font-size: 12px; font-weight: 900; }
.bf-exd-steps p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.bf-exd-days { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-exd-days button { padding: 11px 16px; border-radius: 14px; border: 1.5px solid rgba(var(--accent-rgb, 255,107,43), .4); background: rgba(var(--accent-rgb, 255,107,43), .08); color: var(--accent); font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.bf-exd-days button:active { transform: scale(.96); }

.bf-in-vol, .bf-in-vol * { text-align: left; }
.bf-in-bar, .bf-in-bar * { text-align: center; }

.bf-pe-st { flex-wrap: wrap; row-gap: 6px; }
.bf-pe-st:has(.bf-pe-reps) > span { width: 100%; }
.bf-pe-reps { width: 100%; justify-content: space-between; }
.bf-pe-reps em { flex: 1; text-align: center; }

.bf-ob .bf-af-top { gap: 12px; }
.bf-ob-prog { flex: 1; height: 6px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.bf-ob-prog[hidden] { display: block !important; visibility: hidden; }
.bf-ob-prog i { display: block; height: 100%; border-radius: 99px; background: var(--v2-grad); transition: width .45s var(--bf-ease); }
.bf-ob-step-in { animation: bfObIn .38s var(--bf-ease) both; }
@keyframes bfObIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.bf-ob-k { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 8px 2px 8px; }
.bf-ob-t { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; color: var(--text); margin: 0 2px 10px; }
.bf-ob-t.is-xl { font-size: 40px; }
.bf-ob-s { font-size: 15px; line-height: 1.5; color: var(--text2); margin: 0 2px 18px; }
.bf-ob-hint { font-size: 12.5px; line-height: 1.45; color: var(--text3); margin: -4px 4px 10px; }
.bf-ob-opt { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--text3); margin-left: 4px; padding: 2px 7px; border-radius: 99px; background: var(--bg3); }

.bf-ob-choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bf-ob-choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-ob-choice {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; cursor: pointer;
  border-radius: 20px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: border-color .18s, background .18s, transform .15s;
}
.bf-ob-choice:active { transform: scale(.98); }
.bf-ob-choices.cols-2 .bf-ob-choice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 13px; }
.bf-ob-ci { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--text2); transition: background .18s, color .18s; }
.bf-ob-ci svg { width: 21px; height: 21px; }
.bf-ob-ct { flex: 1; min-width: 0; }
.bf-ob-ct b { display: block; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.bf-ob-ct small { display: block; font-size: 12.5px; font-weight: 600; color: var(--text3); margin-top: 2px; line-height: 1.35; }
.bf-ob-ck { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--v2-line, var(--border)); color: transparent; transition: background .18s, border-color .18s, color .18s; }
.bf-ob-ck svg { width: 13px; height: 13px; stroke-width: 3.2; }
.bf-ob-choices.cols-2 .bf-ob-ck { position: absolute; top: 12px; right: 12px; }
.bf-ob-choice.on { border-color: var(--accent); background: rgba(var(--accent-rgb, 255,107,43), .08); }
.bf-ob-choice.on .bf-ob-ci { background: var(--v2-grad); color: #fff; }
.bf-ob-choice.on .bf-ob-ck { background: var(--accent); border-color: var(--accent); color: #fff; }

.bf-ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-ob-chips button { padding: 10px 14px; border-radius: 99px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s; }
.bf-ob-chips button.on { background: var(--text); border-color: var(--text); color: var(--bg); }

.bf-ob-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; padding: 5px; border-radius: 18px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-ob-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; padding: 6px 2px; border-radius: 13px; border: none; background: none; color: var(--text2); font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.bf-ob-seg button i { display: flex; }
.bf-ob-seg button i svg { width: 18px; height: 18px; }
.bf-ob-seg button.on { background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb, 255,107,43), .55); }

.bf-ob-stack { display: flex; flex-direction: column; gap: 12px; }
.bf-ob-step { display: flex; flex-direction: column; gap: 7px; }
.bf-ob-step-l { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); margin: 0 4px; }
.bf-ob-step-row { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; align-items: center; padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-ob-step-row > button { width: 54px; height: 54px; border-radius: 15px; border: none; background: var(--surface2); color: var(--text); font-size: 26px; font-weight: 600; cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bf-ob-step-row > button:active { transform: scale(.9); background: rgba(var(--accent-rgb, 255,107,43), .18); }
.bf-ob-step-v { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; cursor: text; }
.bf-ob-step-v input {
  width: 100%; max-width: 130px; min-width: 0; text-align: right; border: none !important; background: none !important; padding: 0 !important; outline: none !important; box-shadow: none !important; height: auto !important;
  font-family: var(--bf-display) !important; font-style: italic !important; font-weight: 900 !important; font-stretch: 112%; font-size: 30px !important; color: var(--text) !important; -moz-appearance: textfield;
}
.bf-ob-step-v input::-webkit-outer-spin-button, .bf-ob-step-v input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bf-ob-step-v em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--text3); min-width: 32px; }
.bf-ob-step.is-big .bf-ob-step-row { padding: 10px; }
.bf-ob-step.is-big .bf-ob-step-v input { font-size: 52px !important; max-width: 170px; }

.bf-ob-input { display: block; border-bottom: 2px solid var(--v2-line, var(--border)); padding-bottom: 6px; margin: 6px 2px 8px; transition: border-color .2s; }
.bf-ob-input:focus-within { border-bottom-color: var(--accent); }
.bf-ob-input input {
  width: 100%; border: none !important; background: none !important; padding: 0 !important; outline: none !important; box-shadow: none !important; height: auto !important;
  font-family: var(--bf-display) !important; font-style: italic !important; font-weight: 900 !important; font-stretch: 112%; font-size: 30px !important; color: var(--text) !important;
}
.bf-ob-input input::placeholder { color: var(--text3); opacity: .55; }

.bf-ob-delta { margin: 12px 0 2px; text-align: center; font-size: 13px; font-weight: 800; color: var(--text2); padding: 10px 14px; border-radius: 14px; background: var(--surface2); }

.bf-ob-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4vh; }
.bf-ob-hero .bf-ob-t { margin-top: 26px; }
.bf-ob-hero .bf-ob-s { max-width: 340px; }
.bf-ob-mark { position: relative; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .12); }
.bf-ob-mark::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb, 255,107,43), .22), transparent); animation: bfObGlow 2.4s ease-in-out infinite; }
@keyframes bfObGlow { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.bf-ob-mark span { position: relative; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-lite, #FF7A3D), var(--accent2, #FF5A1F)); color: #fff; box-shadow: 0 14px 34px rgba(var(--accent-rgb, 255,107,43), .42); }
.bf-ob-mark span svg { width: 32px; height: 32px; }
.bf-ob-feat { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; text-align: left; }
.bf-ob-feat > div { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-ob-feat i { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb, 255,107,43), .12); color: var(--accent); }
.bf-ob-feat i svg { width: 19px; height: 19px; }
.bf-ob-feat b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.bf-ob-feat small { display: block; font-size: 12.5px; font-weight: 600; color: var(--text3); margin-top: 1px; }

.bf-ob-res { padding: 20px !important; margin-top: 6px; }
.bf-ob-kcal { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 58px; line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-ob-kcal small { font-size: 20px; color: var(--text3); margin-left: 6px; }
.bf-ob-mac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bf-ob-mac > div { display: flex; flex-direction: column; gap: 2px; }
.bf-ob-mac i { width: 22px; height: 5px; border-radius: 99px; margin-bottom: 6px; }
.bf-ob-mac b { font-size: 17px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-ob-mac span { font-size: 11.5px; font-weight: 700; color: var(--text3); }
.bf-ob-res-f { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text3); }
.bf-ob-adj { margin-top: 14px; }
.bf-ob-adj summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--accent); padding: 8px 4px; }
.bf-ob-adj summary::-webkit-details-marker { display: none; }
.bf-ob-adj[open] summary { margin-bottom: 8px; }

.bf-ob .bf-shell-foot { display: flex; flex-direction: column; gap: 6px; }
.bf-ob-skip { align-self: center; background: none; border: none; padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--text2); cursor: pointer; }
.bf-ob .bf-af-submit svg { width: 19px; height: 19px; }
.bf-ob-tpl { margin-top: 10px; }
.bf-ob .bf-af-alt { margin-top: 12px; }
.bf-ob-plan-ok { padding: 20px !important; margin-bottom: 14px; }
.bf-ob-plan-n { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.1; color: var(--text); }
.bf-ob-plan-d { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bf-ob-plan-d i { font-style: normal; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: rgba(var(--accent-rgb, 255,107,43), .1); color: var(--accent); }

.bf-ob-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.bf-ob-tabs::-webkit-scrollbar { display: none; }
.bf-ob-tabs button { flex-shrink: 0; padding: 10px 15px; border-radius: 99px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.bf-ob-tabs button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.bf-ob-sec > .bf-af-k:first-child { margin-top: 6px; }

.bf-du-setup {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; font-family: inherit; padding: 16px !important;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 255,107,43), .22), transparent 58%), var(--surface) !important;
  border: 1px solid rgba(var(--accent-rgb, 255,107,43), .35) !important;
}
.bf-du-setup-ic { width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--v2-grad); color: #fff; }
.bf-du-setup-t { flex: 1; min-width: 0; }
.bf-du-setup-t b { display: block; font-size: 15.5px; font-weight: 900; color: var(--text); }
.bf-du-setup-t small { display: block; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-top: 2px; line-height: 1.4; }
#tab-du .bf-row-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-du .bf-row-t { min-width: 0; }

.bf-set { display: flex; flex-direction: column; gap: 14px; padding: 18px !important; }
.bf-set-av { display: flex; align-items: center; gap: 14px; }
.bf-set-pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; padding: 0; cursor: pointer; border: none; background: var(--v2-grad); color: #fff; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.bf-set-av-t b { display: block; font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.bf-set-link { background: none; border: none; padding: 0; margin-right: 14px; font-family: inherit; font-size: 13.5px; font-weight: 800; color: var(--accent); cursor: pointer; }
.bf-set-link.is-muted { color: var(--text3); }
.bf-set-save { width: 100%; min-height: 50px; border: none; border-radius: 16px; cursor: pointer; background: var(--v2-grad); color: #fff; font-family: inherit; font-size: 15px; font-weight: 900; box-shadow: 0 8px 22px rgba(var(--accent-rgb, 255,107,43), .28); }
.bf-set-save.is-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--v2-line, var(--border)); box-shadow: none; }
.bf-set-save:active { transform: scale(.98); }
.bf-set-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-set .accent-swatch { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; transition: transform .15s; }
.bf-set .accent-swatch:active { transform: scale(.9); }
.bf-set-hint { font-size: 12.5px; line-height: 1.45; color: var(--text3); margin: 0; }
.bf-set .bf-af-field input[type=text], .bf-set .bf-af-field input[type=password] { font-size: 16px; font-weight: 700; }

.bf-bd-hero { padding: 20px !important; }
.bf-bd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bf-bd-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.bf-bd-mini b { display: block; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 22px; color: var(--text); }
.bf-bd-mini b small { font-size: 12px; color: var(--text3); margin-left: 2px; }
.bf-bd-mini span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.bf-bd-spark { margin-top: 16px; }
.bf-bd-spark svg { display: block; width: 100%; height: 70px; }
.bf-bd-form { display: flex; flex-direction: column; gap: 14px; padding: 18px !important; }
.bf-bd-list { padding: 4px 18px !important; }
.bf-bd-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; }
.bf-bd-row + .bf-bd-row { border-top: 1px solid var(--border); }
.bf-bd-row .d { width: 82px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--text3); }
.bf-bd-row b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-size: 17px; color: var(--text); white-space: nowrap; }
.bf-bd-row .x { flex: 1; text-align: right; font-size: 12px; font-weight: 600; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bf-ob-res, .bf-ob-res * { text-align: left; }
.bf-ob-plan-ok, .bf-ob-plan-ok * { text-align: left; }

.bf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--duel-you, var(--accent)); margin-left: 7px; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 255,107,43), .18); }

.bf-fr-list .bf-row { padding: 12px 16px; }
.bf-fr-row .bf-av { flex-shrink: 0; }
.bf-fr-row .bf-row-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bf-fr-ok, .bf-fr-no { width: 38px; height: 38px; border-radius: 12px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.bf-fr-ok { background: var(--v2-grad); color: #fff; box-shadow: 0 6px 16px rgba(var(--accent-rgb, 255,107,43), .3); }
.bf-fr-no { background: var(--bg3, var(--surface2)); color: var(--text2); }
.bf-fr-ok svg, .bf-fr-no svg { width: 17px; height: 17px; }
.bf-fr-ok:active, .bf-fr-no:active { transform: scale(.94); }
.bf-fr-link { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--text3); cursor: pointer; padding: 6px 2px; flex-shrink: 0; }
.bf-fr-vs { font-size: 12px; font-weight: 800; color: var(--duel-you); padding: 7px 11px; border-radius: 99px; background: rgba(var(--accent-rgb, 255,107,43), .1); flex-shrink: 0; }
.bf-fr-new, .bf-fr-done { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; }
.bf-fr-new { background: var(--v2-grad); color: #fff; }
.bf-fr-done { background: rgba(52,199,89,.14); color: #22A04B; }

.bf-fr-board { padding: 18px !important; }
.bf-fr-board .bf-hero-k { color: var(--duel-you); }
.bf-fr-seg { margin-bottom: 12px; }
.bf-fr-seg button { padding: 9px 4px; font-size: 12.5px; }
.bf-fr-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bf-fr-rank li { display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 4px; border-radius: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bf-fr-rank li:not(.is-me):active { background: var(--surface2); }
.bf-fr-rank li.is-me { background: rgba(var(--accent-rgb, 255,107,43), .08); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb, 255,107,43), .35); cursor: default; }
.bf-fr-pos { width: 26px; text-align: center; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 18px; color: var(--text3); flex-shrink: 0; }
.bf-fr-pos.p1 { color: #E0A21A; }
.bf-fr-pos.p2 { color: #9AA3AF; }
.bf-fr-pos.p3 { color: #C07A45; }
.bf-fr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bf-fr-who b { font-size: 14.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-fr-bar { display: block; height: 6px; border-radius: 99px; background: var(--bg3, rgba(128,128,128,.14)); overflow: hidden; }
.bf-fr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--duel-ghost, #8E9CFF); transition: width .5s var(--bf-ease); }
.is-me .bf-fr-bar i { background: var(--v2-grad); }
.bf-fr-val { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 16px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

.bf-fr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 22px !important; gap: 8px; }
.bf-fr-empty-ic { width: 64px; height: 64px; border-radius: 22px; background: var(--v2-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(var(--accent-rgb, 255,107,43), .35); margin-bottom: 6px; }
.bf-fr-empty-ic svg { width: 30px; height: 30px; }
.bf-fr-empty > b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 24px; color: var(--text); letter-spacing: -.02em; }
.bf-fr-empty > span { font-size: 13.5px; line-height: 1.5; color: var(--text2); max-width: 300px; }
.bf-fr-empty-a { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

.bf-fr-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px !important; flex-wrap: wrap; }
.bf-fr-mine > b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 24px; letter-spacing: .04em; color: var(--text); }
.bf-fr-mine > div { display: flex; gap: 8px; }
.bf-fr-mine button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface2, var(--bg2)); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.bf-fr-mine button svg { width: 15px; height: 15px; }
.bf-fr-mine button:active { transform: scale(.96); }

.bf-fr-in { display: block; }
.bf-fr-in input { width: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text); font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; outline: none; }
.bf-fr-in input:focus { border-color: var(--duel-you); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 255,107,43), .14); }
.bf-fr-in input::placeholder { color: var(--text3); opacity: .6; }
#bf-fr-add .bf-set-hint { margin: 14px 4px 0; }

.bf-fr-pick .bf-row.on { background: rgba(var(--accent-rgb, 255,107,43), .07); }
.bf-fr-cb { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--v2-line, var(--border)); display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; transition: background .15s, border-color .15s; }
.bf-fr-cb.is-radio { border-radius: 50%; }
.bf-fr-cb svg { width: 14px; height: 14px; }
.bf-row.on .bf-fr-cb { background: var(--v2-grad); border-color: transparent; color: #fff; }

.bf-fr-from { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); margin: 2px 2px 12px; line-height: 1.4; }
.bf-fr-from b { color: var(--text); }
.bf-fr-day { padding: 14px 16px 8px !important; }
.bf-fr-day-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 900; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.bf-fr-day-hd span { font-size: 12px; font-weight: 700; color: var(--text3); white-space: nowrap; }
.bf-fr-ex { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text); }
.bf-fr-ex b { font-weight: 800; color: var(--text2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.bf-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 6px 0 16px; }
.bf-vs-p { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.bf-vs-p .bf-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--duel-ghost, #8E9CFF); }
.bf-vs-p.is-me .bf-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--duel-you); }
.bf-vs-p > b { font-size: 15px; font-weight: 900; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.bf-vs-p > span { font-size: 12px; font-weight: 700; color: var(--text3); }
.bf-vs-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bf-vs-score { display: flex; align-items: baseline; gap: 6px; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 40px; line-height: 1; color: var(--text3); }
.bf-vs-score b { font-weight: 900; }
.bf-vs-score b.hi { color: var(--text); }
.bf-vs-score i { font-size: 28px; }
.bf-vs-mid > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }

.bf-vs-card { padding: 4px 16px !important; }
.bf-tug { padding: 12px 0; }
.bf-tug + .bf-tug { border-top: 1px solid var(--border); }
.bf-tug-hd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bf-tug-hd b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 17px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-tug-hd b:last-child { text-align: right; }
.bf-tug-hd span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); text-align: center; }
.bf-tug.is-me .bf-tug-hd b:first-child, .bf-tug.is-fr .bf-tug-hd b:last-child, .bf-tug.is-tie .bf-tug-hd b { color: var(--text); }
.bf-tug-bar { display: flex; gap: 3px; height: 8px; }
.bf-tug-bar i { display: block; height: 100%; border-radius: 99px; background: var(--bg3, rgba(128,128,128,.16)); transition: width .5s var(--bf-ease); min-width: 6px; }
.bf-tug.is-me .bf-tug-bar i:first-child, .bf-tug.is-tie .bf-tug-bar i:first-child { background: var(--v2-grad); }
.bf-tug.is-fr .bf-tug-bar i:last-child, .bf-tug.is-tie .bf-tug-bar i:last-child { background: var(--duel-ghost, #8E9CFF); }

.bf-vs-rank { padding: 6px 16px 14px !important; }
.bf-vs-rr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 9px 0; }
.bf-vs-rr + .bf-vs-rr { border-top: 1px solid var(--border); }
.bf-vs-rr > em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); text-align: center; min-width: 70px; }
.bf-vs-rr.is-all > em { color: var(--text); }
.bf-vs-rc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bf-vs-rc.is-r { flex-direction: row-reverse; text-align: right; }
.bf-vs-rc span { display: flex; flex-direction: column; min-width: 0; }
.bf-vs-rc b { font-size: 13.5px; font-weight: 900; color: var(--text); }
.bf-vs-rc small { font-size: 11.5px; font-weight: 700; color: var(--text3); }
.bf-vs-rc .bf-vs-na { color: var(--text3); font-weight: 800; }
.bf-vs-rank .bf-set-hint { margin-top: 8px; }

.bf-vs-weeks { padding: 16px !important; }
.bf-vs-wk { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; height: 110px; align-items: end; }
.bf-vs-wk > div { height: 100%; }
.bf-vs-wk span { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bf-vs-wk i { display: block; width: 42%; max-width: 12px; border-radius: 99px 99px 4px 4px; }
.bf-vs-wk i.me, .bf-vs-leg i.me { background: var(--v2-grad); }
.bf-vs-wk i.fr, .bf-vs-leg i.fr { background: var(--duel-ghost, #8E9CFF); }
.bf-vs-leg { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--text2); }
.bf-vs-leg span { display: inline-flex; align-items: center; gap: 6px; }
.bf-vs-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bf-vs-note { margin: 4px 4px 0 !important; }
.bf-vs-rm { color: #E5484D !important; }

.bf-tier-b { display: block; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.14)); }
.bf-rk-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 14px !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255,176,32,.16), transparent 55%), var(--surface) !important;
}
.bf-rk-card:active { transform: scale(.99); }
.bf-rk-card-t { flex: 1; min-width: 0; }
.bf-rk-card-t .bf-hero-k { color: #C98500; margin-bottom: 4px; }
[data-theme="dark"] .bf-rk-card-t .bf-hero-k { color: #FFB020; }
.bf-rk-card-t > b { display: block; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.05; color: var(--text); letter-spacing: -.02em; }
.bf-rk-card-t > b em { font-style: normal; font-family: 'Plus Jakarta Sans', sans-serif; font-stretch: 100%; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); vertical-align: 5px; margin-left: 4px; }
.bf-rk-card-t > span { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-top: 3px; line-height: 1.4; }
.bf-rk-card.is-empty .bf-rk-card-t > b { font-size: 19px; line-height: 1.15; }
.bf-rk-dots { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 9px; }
.bf-rk-dots i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--text2); }
.bf-rk-dots u { width: 9px; height: 9px; border-radius: 3px; background: var(--bg3, rgba(128,128,128,.2)); display: inline-block; }
.bf-rk-dots i.is-na { color: var(--text3); }

.bf-rk-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 4px; }
.bf-rk-hero .bf-tier-b { filter: drop-shadow(0 12px 22px rgba(0,0,0,.2)); animation: bfRkIn .6s var(--bf-ease) both; }
.bf-rk-hero-t { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--text); margin-top: 10px; }
.bf-rk-hero-s { font-size: 14px; color: var(--text2); margin-top: 6px; }
.bf-rk-hero-s b { color: var(--text); }
.bf-rk-hero-m { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-top: 8px; }
.bf-rk-scale { display: flex; justify-content: space-between; gap: 2px; margin: 18px 0 4px; padding: 10px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--v2-line, var(--border)); }
.bf-rk-scale span { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; opacity: .4; }
.bf-rk-scale span.on { opacity: 1; }
.bf-rk-scale small { font-size: 9.5px; font-weight: 800; color: var(--text2); }
.bf-rk-scale span.on small { color: var(--text); }
.bf-rk-cat { padding: 2px 14px !important; }
.bf-rk-lift + .bf-rk-lift { border-top: 1px solid var(--border); }
.bf-rk-lift summary { display: flex; align-items: center; gap: 11px; padding: 12px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.bf-rk-lift summary::-webkit-details-marker { display: none; }
.bf-rk-lt { flex: 1; min-width: 0; }
.bf-rk-lt b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.bf-rk-lt small { display: block; font-size: 12px; font-weight: 600; color: var(--text3); margin-top: 1px; }
.bf-rk-lp { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 18px; color: var(--text); white-space: nowrap; }
.bf-rk-next { font-size: 13px; color: var(--text2); margin: 0 0 10px; }
.bf-rk-next b { color: var(--duel-you); }
.bf-rk-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding-bottom: 14px; }
.bf-rk-ladder > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 12px; background: var(--bg3, rgba(128,128,128,.08)); opacity: .45; min-width: 0; }
.bf-rk-ladder > div.is-done { opacity: 1; }
.bf-rk-ladder > div.is-next { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--duel-you); }
.bf-rk-ladder span { font-size: 9px; font-weight: 800; color: var(--text3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-rk-ladder b { font-size: 11.5px; font-weight: 900; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bf-rk-none { font-size: 13px; color: var(--text3); padding: 14px 0; line-height: 1.5; }
.bf-rk-info { display: flex; gap: 12px; padding: 14px 16px !important; margin-top: 18px; }
.bf-rk-info-ic { color: var(--text3); flex-shrink: 0; }
.bf-rk-info-ic svg { width: 18px; height: 18px; }
.bf-rk-info p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text2); }
@keyframes bfRkIn { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.bf-gh { padding: 16px 18px !important; background: radial-gradient(120% 100% at 100% 0%, rgba(142,156,255,.2), transparent 60%), var(--surface) !important; border: 1px solid rgba(142,156,255,.3) !important; }
.bf-gh.is-l2 { background: radial-gradient(120% 100% at 100% 0%, rgba(240,36,94,.16), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(142,156,255,.14), transparent 60%), var(--surface) !important; border-color: rgba(240,36,94,.28) !important; }
.bf-gh-hd { display: flex; align-items: center; gap: 11px; }
.bf-gh-av { width: 40px; height: 40px; border-radius: 13px; background: #16161C; color: #EEF0FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; --bf-gh-eye: #16161C; }
.bf-gh-av svg { width: 24px; height: 24px; }
.bf-gh-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bf-gh-who b { font-size: 14.5px; font-weight: 900; color: var(--text); }
.bf-gh-who small { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #6F7DF0; }
.bf-gh.is-l2 .bf-gh-who small { color: #E5245A; }
.bf-gh-next { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.bf-gh-next svg { width: 16px; height: 16px; transition: transform .25s var(--bf-ease); }
.bf-gh-next:active svg { transform: rotate(-120deg); }
.bf-gh-q { margin: 12px 0 0; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 108%; font-size: 19px; line-height: 1.28; letter-spacing: -.01em; color: var(--text); }
.bf-gh-q.is-in { animation: bfGhIn .35s var(--bf-ease); }
@keyframes bfGhIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bf-gh-set-hd { display: flex; gap: 12px; align-items: flex-start; }
.bf-gh-set-hd b { display: block; font-size: 15px; font-weight: 900; color: var(--text); }
.bf-gh-set-hd div span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text2); margin-top: 2px; }

#bf-duel.duel { flex-shrink: 0; }
.duel-roast { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 11px; border-radius: 13px; background: rgba(142,156,255,.13); font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--text); }
.duel-roast .duel-gi { width: 18px; height: 18px; flex-shrink: 0; color: #8E9CFF; margin-top: 1px; }
.duel-roast-q { font-weight: 700; color: var(--text); }
.duel-burst-r { margin: 8px auto 0; font-size: 14px; font-weight: 800; line-height: 1.4; color: #fff; max-width: 300px; }
.duel-next-r { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.45; color: #C9CEFF; }
.duel-summary-v .duel-roast-q { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .bf-rk-hero .bf-tier-b, .bf-gh-q.is-in { animation: none !important; }
}

.bf-rest { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 10px 10px 10px 12px; border-radius: 16px; background: rgba(142,156,255,.1); border: 1px solid rgba(142,156,255,.22); }
.bf-rest-ic { width: 34px; height: 34px; border-radius: 11px; background: rgba(142,156,255,.2); color: #5B63D6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-rest-ic svg { width: 17px; height: 17px; }
[data-theme="dark"] .bf-rest-ic { color: #A9B3FF; }
.bf-rest-t { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.bf-rest-t b { font-size: 14px; font-weight: 900; color: var(--text); }
.bf-rest-t small { font-size: 11.5px; font-weight: 700; color: var(--text2); margin-top: 1px; }
.bf-rest-btn { flex-shrink: 0; border: none; border-radius: 12px; padding: 9px 13px; background: #5B63D6; color: #fff; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-theme="dark"] .bf-rest-btn { background: #8E9CFF; color: #0E0E10; }
.bf-rest-btn.is-ghost { background: transparent; color: var(--text2); border: 1.5px solid var(--v2-line, var(--border)); padding: 8px 11px; }
.bf-rest-t b, .bf-rest-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-rest-btn:active { transform: scale(.96); }
.bf-rest.is-on { background: rgba(142,156,255,.16); border-color: rgba(142,156,255,.35); }
.bf-rest.is-off { opacity: .7; }
button.bf-wd { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.bf-wd:active i { transform: scale(.92); }
.bf-wd.rest i { background: rgba(142,156,255,.24); color: #5B63D6; }
[data-theme="dark"] .bf-wd.rest i { color: #A9B3FF; }
.bf-wd.rest i svg { width: 15px; height: 15px; }
.bf-wd.rest b { color: var(--text2); }
.hm.rest { background: rgba(142,156,255,.55); }

.bf-act-list { display: flex; flex-direction: column; gap: var(--bf-card-gap, 12px); margin-bottom: var(--bf-card-gap, 12px); }
.bf-act { padding: 14px 16px 10px !important; }
.bf-act.is-new { box-shadow: var(--sh), inset 0 0 0 1.5px rgba(var(--accent-rgb, 255,107,43), .35); }
.bf-act-hd { display: flex; align-items: center; gap: 10px; }
.bf-act-who { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.bf-act-who b { font-size: 14.5px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-act-who small { font-size: 12px; font-weight: 600; color: var(--text3); margin-top: 1px; }
.bf-act-body { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 16px; border: none; background: var(--bg3, rgba(128,128,128,.08)); text-align: left; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bf-act-body:active { transform: scale(.99); }
.bf-act-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; color: var(--text); }
.bf-act-t small { font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-stretch: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--text3); white-space: nowrap; }
.bf-act-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--text2); }
.bf-act-stats b { font-weight: 900; color: var(--text); }
.bf-act-stats .is-pr b, .bf-act-stats .is-pr { color: #C98500; }
[data-theme="dark"] .bf-act-stats .is-pr b, [data-theme="dark"] .bf-act-stats .is-pr { color: #FFB020; }
.bf-act-ex { font-size: 12.5px; font-weight: 600; color: var(--text3); line-height: 1.4; }
.bf-act-note { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; padding-left: 10px; border-left: 3px solid var(--duel-you); }
.bf-act-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bf-act-kudos { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 10px; border-radius: 99px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s; }
.bf-act-kudos svg { width: 17px; height: 17px; }
.bf-act-kudos.on { background: rgba(var(--accent-rgb, 255,107,43), .12); border-color: rgba(var(--accent-rgb, 255,107,43), .4); color: var(--duel-you); }
.bf-act-kudos.is-pop svg, .bf-wsd-kudos.is-pop svg { animation: bfKudos .45s var(--bf-ease); }
.bf-act-kn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 2px; font-size: 12.5px; font-weight: 700; color: var(--text3); }
.bf-act-kn svg { width: 16px; height: 16px; color: var(--duel-you); flex-shrink: 0; }
.bf-act-more { margin-top: 0 !important; margin-bottom: var(--bf-card-gap, 12px) !important; }
.bf-act-empty { display: flex; align-items: center; gap: 14px; padding: 16px !important; }
.bf-act-empty-ic { width: 44px; height: 44px; border-radius: 14px; 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-act-empty-ic svg { width: 21px; height: 21px; }
.bf-act-empty > span:last-child { display: flex; flex-direction: column; text-align: left; }
.bf-act-empty b { font-size: 14.5px; font-weight: 900; color: var(--text); }
.bf-act-empty small { font-size: 12.5px; font-weight: 600; color: var(--text2); line-height: 1.45; margin-top: 2px; }
@keyframes bfKudos { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

.bf-wsh-note { display: block; }
.bf-wsh-note input { width: 100%; box-sizing: border-box; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 700; outline: none; }
.bf-wsh-note input:focus { border-color: var(--duel-you); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 255,107,43), .14); }
.bf-wsh-note input::placeholder { color: var(--text3); font-weight: 600; }
.bf-wsh-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.bf-wsh-tiles > div { background: var(--surface); border: 1px solid var(--v2-line, var(--border)); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bf-wsh-tiles b { font-family: var(--bf-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 20px; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-wsh-tiles b small { font-size: 12px; color: var(--text3); }
.bf-wsh-tiles span { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }
.bf-wsh-tiles .is-pr b { color: #C98500; }
[data-theme="dark"] .bf-wsh-tiles .is-pr b { color: #FFB020; }
.bf-wsh-q { margin: 0 4px 14px; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--text); padding-left: 12px; border-left: 3px solid var(--duel-you); }
.bf-wsh-pr { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(255,176,32,.18); color: #C98500; margin-left: 8px; margin-right: auto; }
.bf-fr-day-hd .bf-wsh-pr + span { margin-left: 0; }
.bf-wsh-sets { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.bf-wsh-sets span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--bg3, rgba(128,128,128,.08)); font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.bf-wsh-sets i { font-style: normal; width: 18px; height: 18px; border-radius: 6px; background: var(--surface); color: var(--text3); font-size: 10.5px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.bf-wsd-kudos.is-on { filter: saturate(.9); }
.bf-wsh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 340px; min-height: 50px; border-radius: 16px; border: 1.5px solid rgba(var(--accent-rgb, 255,107,43), .45); background: rgba(var(--accent-rgb, 255,107,43), .08); color: var(--duel-you); font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.bf-wsh-cta svg { width: 18px; height: 18px; }
.bf-wsh-cta.is-done { border-color: rgba(52,199,89,.45); background: rgba(52,199,89,.1); color: #22A04B; }
.bf-wsh-cta:active { transform: scale(.98); }
.bf-af-alt svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) {
  .bf-act-kudos.is-pop svg, .bf-wsd-kudos.is-pop svg { animation: none !important; }
}

.bf-gal-hd { justify-content: flex-start !important; flex-wrap: wrap; row-gap: 2px; align-items: center !important; }
.bf-gal-hd .bf-gal-n { order: 3; flex-basis: 100%; white-space: nowrap; }
.bf-cx-new { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px 8px 10px; border-radius: 99px; border: none; background: var(--v2-grad); color: #fff; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(var(--accent-rgb, 255,107,43), .3); -webkit-tap-highlight-color: transparent; }
.bf-cx-new svg { width: 15px; height: 15px; }
.bf-cx-new:active { transform: scale(.96); }
.bf-ex-own { position: absolute; top: 38px; left: 10px; padding: 3px 8px; border-radius: 99px; font-size: 9.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; background: var(--v2-grad); color: #fff; }
.bf-cx-add { margin: 0 0 12px !important; }
.bf-af-empty .bf-cx-add { margin: 14px 0 0 !important; width: 100%; }
.bf-cx-in { display: block; }
.bf-cx-in input, .bf-cx-in textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text); font-family: inherit; font-size: 16px; font-weight: 700; outline: none; resize: vertical; }
.bf-cx-in textarea { font-size: 15px; font-weight: 600; line-height: 1.45; min-height: 84px; }
.bf-cx-in input:focus, .bf-cx-in textarea:focus { border-color: var(--duel-you); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 255,107,43), .14); }
.bf-cx-in ::placeholder { color: var(--text3); font-weight: 600; }
.bf-cx-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bf-cx-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--v2-line, var(--border)); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bf-cx-chips button i { width: 8px; height: 8px; border-radius: 50%; }
.bf-cx-chips button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.bf-cx-chips button.on i { box-shadow: 0 0 0 2px var(--bg); }
.bf-cx-own-note { font-size: 12.5px; font-weight: 700; color: var(--text3); margin: 18px 4px 10px; text-align: center; }
.bf-cx-del { color: #E5484D !important; }
