/*
 * LBRank shared UI primitives.
 * Edit these tokens to change common geometry, density and typography in one place.
 * Existing theme editor supplies --theme-primary, --theme-text, --ui-* and --card-bg.
 * Explicit opt-in roots: finance and card bundles are intentionally not styled here.
 * Layout, icon controls, navigation, graph rendering and feature-specific semantic
 * states stay with the owning feature. Existing per-element customization remains.
 */
:root {
  --lbr-ui-radius: 9px;
  --lbr-ui-panel-radius: 13px;
  --lbr-ui-control-height: 38px;
  --lbr-ui-input-height: 44px;
  --lbr-ui-gap: 8px;
  --lbr-ui-panel-padding: 14px;
  --lbr-ui-control-padding: 8px 12px;
  --lbr-ui-label-size: 12px;
  --lbr-ui-body-size: 13px;
  --lbr-ui-title-size: 15px;
  --lbr-ui-page-title-size: clamp(24px, 6vw, 32px);
  --lbr-ui-control-weight: 700;
  --lbr-ui-line-height: 1.4;
  --lbr-ui-danger: #ffb7c0;
  --lbr-ui-danger-bg: rgba(190,48,65,.12);
  --lbr-ui-danger-border: rgba(220,70,85,.38);
}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  box-sizing:border-box!important;
  min-height:var(--lbr-ui-control-height)!important;
  padding:var(--lbr-ui-control-padding)!important;
  border-radius:var(--lbr-ui-radius)!important;
  font-family:inherit!important;
  font-size:var(--lbr-ui-label-size)!important;
  font-weight:var(--lbr-ui-control-weight)!important;
  line-height:var(--lbr-ui-line-height)!important;
  letter-spacing:0!important;
  text-transform:none!important;
  box-shadow:none!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  background:var(--lbr-ui-button-bg,rgba(127,127,127,.10))!important;
  background-image:none!important;
  border:1px solid color-mix(in srgb,var(--theme-text,#e6e9ef) 20%,transparent)!important;
  color:var(--theme-text,var(--text-primary,#e6e9ef))!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):is(.primary,.active,.is-active,.selected,.is-selected,[aria-pressed=true],[aria-selected=true],.cal-action,.fr-primary-button) {
  background:color-mix(in srgb,var(--theme-primary,#53d7e6) 12%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-primary,#53d7e6) 42%,transparent)!important;
  color:var(--theme-primary,#53d7e6)!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):is(.danger,.destructive,.delete,.incorrect) {
  background:var(--lbr-ui-danger-bg)!important;
  border-color:var(--lbr-ui-danger-border)!important;
  color:var(--lbr-ui-danger)!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):is(.correct,.is-read,.completed) {
  background:rgba(34,197,94,.12)!important;
  border-color:rgba(34,197,94,.38)!important;
  color:#86efac!important;
}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):disabled {opacity:.5!important;cursor:not-allowed!important;}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) button:not(:where(.home-achievement-item,.rank-animation-toggle,.rank-roman-toggle,#lbrHomeQuoteOpen,#rankLifeDashboardButton,.rank-spotify-toggle,.rank-youtube-toggle,.rank-budget-shortcut,.streak-orb,.rank-badges-shortcut,.graph-landscape-button,.lbr-graph-gear,.workout-card-graph,.workout-card-remove,.workout-card-zoom,.workout-card-photo-trigger,.workout-exercise-card button,.workout-body-part-group button,.cal-calendar-button,.cal-calendar-day,.cal-calendar-top button,.cal-modal-panel>header button,.hadith-topbar button,.info-detail-close,.theme-picker-close,.badge-detail-close,.graph-landscape-close,.rank-inspect-close,.fr-back-row button,.learn-back,.rank-option-toggle,[data-quote=close],.lbr-quote-controls button,.theme-option-card,.legend-tile,.fr-flashcard,.goal-forecast-card,.progress-mode-card,.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option,.badge-card,.workout-detail-back,.tab-btn,.range-btn,.progress-choice-option,.finance-subtab,.workout-flow-toggle,.workout-rest-day-toggle,.workout-journey-toggle)):not([hidden]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):focus-visible {outline:2px solid var(--theme-glow,var(--theme-primary,#53d7e6))!important;outline-offset:2px!important;}
/* Feature tiles share the surface treatment, not the text-button dimensions. */
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  border-radius:var(--lbr-ui-panel-radius)!important;
  border:1px solid color-mix(in srgb,var(--theme-text,#e6e9ef) 16%,transparent)!important;
  background:var(--lbr-ui-tile-bg,color-mix(in srgb,var(--theme-background,#101923) 22%,transparent))!important;
  box-shadow:none!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.info-topic-card,.learn-choice,.lbr-log-link,.hadith-collection-card,.calorie-choice-card,.cal-food-result,.ui-design-option):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):is(.active,.selected,.is-selected,[aria-pressed=true]) {
  border-color:var(--theme-primary,#53d7e6)!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.info-topic-copy strong,.learn-choice>strong,.lbr-log-link>strong,.calorie-choice-copy strong,.hadith-collection-card strong):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  font-size:var(--lbr-ui-title-size)!important;
  font-weight:var(--lbr-ui-control-weight)!important;
  line-height:var(--lbr-ui-line-height)!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--ui-card-title,var(--theme-text,#e6e9ef))!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.info-topic-copy small,.learn-choice>small,.lbr-log-link>small,.calorie-choice-copy small,.hadith-collection-card small,.settings-note):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  font-size:var(--lbr-ui-label-size)!important;
  line-height:var(--lbr-ui-line-height)!important;
  color:var(--ui-card-description,var(--theme-text-muted,#b0b0b0))!important;
}
/* Shared input chrome; checkboxes, radio, sliders, swatches and compact exercise
   counters keep their own mechanics and dimensions. */
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(input:not([type]),input:is([type=text],[type=number],[type=search],[type=date],[type=email],[type=password],[type=url],[type=tel]),select,textarea):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  box-sizing:border-box!important;
  min-height:var(--lbr-ui-input-height)!important;
  border-radius:var(--lbr-ui-radius)!important;
  border:1px solid color-mix(in srgb,var(--theme-text,#e6e9ef) 22%,transparent)!important;
  background:var(--lbr-ui-input-bg,rgba(127,127,127,.08))!important;
  box-shadow:none!important;
  color:var(--theme-text,var(--text-primary,#e6e9ef))!important;
  font-family:inherit!important;
  font-size:16px!important;
  line-height:var(--lbr-ui-line-height)!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(input,select,textarea):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)):focus-visible {
  outline:2px solid var(--theme-primary,#53d7e6)!important;
  outline-offset:1px!important;
}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(input[type=checkbox],input[type=radio],input[type=range]):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {accent-color:var(--theme-primary,#53d7e6);}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.app-page-header h2,.lbr-log-heading h2):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  font-size:var(--lbr-ui-page-title-size)!important;
  font-weight:750!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--ui-header,var(--theme-text,#e6e9ef))!important;
}
:is(#rank-tab,#log-tab,#workout-tab,#graph-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.app-page-header p,.lbr-log-heading p):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  font-size:var(--lbr-ui-body-size)!important;
  line-height:var(--lbr-ui-line-height)!important;
  color:var(--ui-subheader,var(--theme-text-muted,#b0b0b0))!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.settings-card-title,.section-heading-row h3,.cal-pane h3,.cal-modal-panel>header h3,.learn-detail-nav h3):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  font-size:var(--lbr-ui-title-size)!important;
  line-height:var(--lbr-ui-line-height)!important;
  font-weight:var(--lbr-ui-control-weight)!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
:is(#rank-tab,#log-tab,#badges-tab,#legend-tab,#info-tab,#calories-tab,#french-tab,#settings-tab,#hadithModal,#themePickerModal,#badgeDetailModal,#weeklyLowModal,#weeklyHistoryDetailModal,#streakCalendarModal,#lbrGraphDisplayDialog,.cal-modal,#lbrHomeQuoteModal,#infoDetailModal:not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare])):not(#lbr-shared-specificity) :is(.settings-card,.cal-card,.fr-quiz-card,.learn-miracle-card,.hadith-reading-card,.quran-reader-preferences,.islam-language-settings,.home-quick-field):not(:where(#cards-tab *,#finance-tab *,[class*='lbc-'] *,[class*='budget-'],[class*='budget-'] *,[class*='mortgage-'],[class*='mortgage-'] *,[class*='card-pack'],[class*='card-pack'] *,[class*='holo-'],[class*='holo-'] *,[class*='spotify-'],[class*='spotify-'] *,[class*='youtube-'],[class*='youtube-'] *,#rankEmblemOptions>summary,.rank-orb-card *)) {
  border-radius:var(--lbr-ui-panel-radius)!important;
  box-shadow:none!important;
}
#settings-tab:not(#lbr-shared-specificity) .settings-actions {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--lbr-ui-gap)!important;
}
#settings-tab:not(#lbr-shared-specificity) button.settings-action {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:auto!important;max-width:none!important;margin:3px 0 0!important;
}
#settingsRestartReset>.settings-dropdown-body{display:flex!important;flex-direction:column!important;gap:0!important;padding:4px var(--lbr-ui-panel-padding) var(--lbr-ui-panel-padding)!important}
#settingsRestartReset>.settings-dropdown-body>div,#settingsRestartReset .settings-restart-history{display:flex!important;flex-direction:column;gap:5px!important;margin:0!important;padding:12px 0!important;border:0!important;border-bottom:1px solid rgba(127,127,127,.16)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
#settingsRestartReset>.settings-dropdown-body>div:last-child{border-bottom:0!important;padding-bottom:0!important}
#settingsRestartReset .settings-restart-history{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
#settingsRestartReset .settings-restart-history small{display:block!important;margin-top:3px!important;font-size:var(--lbr-ui-label-size)!important;line-height:var(--lbr-ui-line-height)!important}
#settingsRestartReset .settings-card-title{margin:0!important;font-size:var(--lbr-ui-body-size)!important}
#settingsRestartReset .settings-note{margin:0!important}
#settingsRestartReset [role=status]:empty,#settingsRestartReset [hidden]{display:none!important}

/* Shared segmented navigation and selection controls.
   Finance opts in for its navigation only; its content remains untouched. */
:root{
 --lbr-ui-tab-height:42px;
 --lbr-ui-tab-indicator:2px;
 --lbr-ui-toggle-radius:9px;
 --lbr-ui-toggle-height:38px;
 --lbr-ui-selection-bg:color-mix(in srgb,var(--theme-primary,#53d7e6) 9%,transparent);
}
html :is(#finance-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity) :is(.finance-subtabs,.progress-mode-card-grid,.cal-rmr-units){
 display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;
 grid-template-columns:none!important;align-items:stretch!important;gap:0!important;
 padding:0!important;border:0!important;border-bottom:1px solid color-mix(in srgb,var(--theme-text,#fff) 14%,transparent)!important;
 border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html :is(#finance-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity) :is(.finance-subtabs,.progress-mode-card-grid,.cal-rmr-units)>button{
 position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:var(--lbr-ui-tab-height)!important;height:auto!important;
 margin:0!important;padding:8px 4px!important;gap:0!important;flex:1 1 0!important;
 border:0!important;border-bottom:var(--lbr-ui-tab-indicator) solid transparent!important;border-radius:0!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 color:var(--ui-card-description,var(--theme-text-muted,#b3b3b3))!important;-webkit-text-fill-color:currentColor!important;
 font:700 var(--lbr-ui-label-size,13px)/1.3 system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important;
 text-align:center!important;cursor:pointer!important;
}
html :is(#finance-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity) :is(.finance-subtabs,.progress-mode-card-grid,.cal-rmr-units)>button :is(span,strong){color:inherit!important;-webkit-text-fill-color:currentColor!important;font:inherit!important;}
html :is(#finance-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity) :is(.finance-subtabs,.progress-mode-card-grid,.cal-rmr-units)>button:is(.active,.is-active,.is-selected,.selected,[aria-selected=true],[aria-pressed=true]){
 color:var(--theme-primary,#53d7e6)!important;border-bottom-color:var(--theme-primary,#53d7e6)!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html :is(#finance-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity) :is(.finance-subtabs,.progress-mode-card-grid,.cal-rmr-units)>button:focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:-3px!important}
html :is(#workout-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity):not(#lbr-shared-control) :is(.workout-flow-toggle,#workoutRestDayToggle,.workout-journey-toggle,.workout-weight-option,.progress-choice-option,.cal-quiet){
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 border:1px solid color-mix(in srgb,var(--theme-text,#fff) 18%,transparent)!important;
 border-radius:var(--lbr-ui-toggle-radius)!important;min-height:var(--lbr-ui-toggle-height)!important;
 color:var(--ui-card-description,var(--theme-text-muted,#b3b3b3))!important;
 -webkit-text-fill-color:currentColor!important;font-weight:700!important;text-transform:none!important;
}
html :is(#workout-tab,#graph-tab,#calories-tab):not(#lbr-shared-specificity):not(#lbr-shared-control) :is(.workout-flow-toggle,#workoutRestDayToggle,.workout-journey-toggle,.workout-weight-option,.progress-choice-option,.cal-quiet):is(.active,.is-active,.is-selected,.selected,[aria-selected=true],[aria-pressed=true]){
 color:var(--theme-primary,#53d7e6)!important;border-color:var(--theme-primary,#53d7e6)!important;
 background:var(--lbr-ui-selection-bg)!important;background-image:none!important;
}
html #workout-tab .workout-rest-day-controls .workout-flow-toggle.is-next-flow:not(.is-active){
 color:var(--theme-primary,#53d7e6)!important;border-color:var(--theme-primary,#53d7e6)!important;background:transparent!important;
}
html #rank-tab .home-achievements #rankBadgesShortcut{
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 border:1px solid color-mix(in srgb,var(--theme-text,#fff) 18%,transparent)!important;
 border-radius:var(--lbr-ui-toggle-radius)!important;color:var(--theme-primary,#53d7e6)!important;
}

/* Forecast windows and weight units use the identical compact shared control. */
html #graph-tab #etaEntryControls .progress-choice-group > button.progress-choice-option{
 display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
 min-height:var(--lbr-ui-toggle-height,38px)!important;height:var(--lbr-ui-toggle-height,38px)!important;
 min-width:32px!important;width:auto!important;padding:6px 9px!important;margin:0!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;
 border:1px solid color-mix(in srgb,var(--theme-text,#fff) 18%,transparent)!important;border-radius:var(--lbr-ui-toggle-radius,9px)!important;
 color:var(--ui-card-description,var(--theme-text-muted,#b3b3b3))!important;-webkit-text-fill-color:currentColor!important;
 font:700 12px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important;
}
html #graph-tab #etaEntryControls .progress-choice-group > button.progress-choice-option:is(.active,.is-active,[aria-pressed=true]){
 background:var(--lbr-ui-selection-bg)!important;background-image:none!important;
 border:1px solid var(--theme-primary,#53d7e6)!important;color:var(--theme-primary,#53d7e6)!important;
 -webkit-text-fill-color:currentColor!important;box-shadow:none!important;
}
html #graph-tab #etaEntryControls .progress-choice-group > button.progress-choice-option::before,
html #graph-tab #etaEntryControls .progress-choice-group > button.progress-choice-option::after{content:none!important;display:none!important;}
@media(max-width:355px){
 html #graph-tab #etaEntryControls .progress-choice-group > button.progress-choice-option{font-size:11px!important;padding-inline:6px!important;}
}

/* Shared chrome for the remaining UI presets. */
html[data-lbrank-ui] body .tab-nav .tab-btn.tab-btn-log{
 flex:1 1 0!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:visible!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
html[data-lbrank-ui] body .tab-nav .tab-btn.tab-btn-log > .tab-icon{
 display:grid!important;place-items:center!important;box-sizing:border-box!important;
 flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;
 height:46px!important;min-height:46px!important;max-height:46px!important;aspect-ratio:1/1!important;
 padding:0!important;margin:0 auto!important;border-radius:50%!important;
 border:2px solid var(--theme-primary,#53d7e6)!important;background:transparent!important;background-image:none!important;
 box-shadow:none!important;color:var(--theme-primary,#53d7e6)!important;-webkit-text-fill-color:currentColor!important;
 font:800 14px/1 system-ui,sans-serif!important;letter-spacing:0!important;transform:translateY(-3px)!important;
}
html #rank-tab #lbrankPointsWidget:not(#lbr-shared-specificity)>button[data-wallet]{
 appearance:none!important;-webkit-appearance:none!important;background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 padding:5px 8px!important;min-height:0!important;color:var(--theme-text,#fff)!important;
}
html #rank-tab #lbrankPointsWidget:not(#lbr-shared-specificity)>button[data-wallet]::before,
html #rank-tab #lbrankPointsWidget:not(#lbr-shared-specificity)>button[data-wallet]::after{content:none!important}
html #calories-tab #calCalendarButton:not(#lbr-shared-specificity){
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:var(--theme-primary,#53d7e6)!important;
 padding:6px!important;width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;
}
/* Food calendar: no filled square tiles. Keep the circular intake indicator
   and deficit/surplus semantics, with a single accent ring for selection. */
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-modal-panel,
html body #calRawModal:not(#lbr-shared-specificity) .cal-modal-panel{
 background:var(--theme-background,#121212)!important;background-image:none!important;
 color:var(--theme-text,#fff)!important;box-shadow:none!important;border:1px solid color-mix(in srgb,var(--theme-text,#fff) 14%,transparent)!important;
}
html body :is(#calCalendarModal,#calRawModal):not(#lbr-shared-specificity) .cal-modal-panel>header{
 background:var(--theme-background,#121212)!important;background-image:none!important;box-shadow:none!important;
}
html body :is(#calCalendarModal,#calRawModal):not(#lbr-shared-specificity) .cal-modal-panel>header button,
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-top button{
 appearance:none!important;-webkit-appearance:none!important;background:transparent!important;background-image:none!important;
 color:var(--theme-text,#fff)!important;border:0!important;box-shadow:none!important;
 font-size:24px!important;padding:0!important;min-width:36px!important;min-height:36px!important;
}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-top strong{color:var(--theme-text,#fff)!important;font-size:15px!important;}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-grid{gap:5px 2px!important;}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-day{
 appearance:none!important;-webkit-appearance:none!important;background:transparent!important;background-image:none!important;
 border:0!important;border-radius:8px!important;box-shadow:none!important;min-width:0!important;
 padding:5px 0!important;min-height:52px!important;color:var(--theme-text,#fff)!important;
}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-ring{
 --calendar-ring-accent:var(--theme-primary,#53d7e6);
 background:conic-gradient(var(--calendar-ring-accent) var(--fill,0%),color-mix(in srgb,var(--theme-text,#fff) 12%,transparent) 0)!important;
 width:32px!important;height:32px!important;box-shadow:none!important;
}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-ring>span{
 background:var(--theme-background,#121212)!important;background-image:none!important;
 color:var(--theme-text,#fff)!important;width:28px!important;height:28px!important;box-shadow:none!important;
}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-day.selected .cal-calendar-ring{
 outline:1px solid var(--theme-primary,#53d7e6)!important;outline-offset:2px!important;
}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-day.over .cal-calendar-ring{--calendar-ring-accent:#ff737f;}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-day small{color:var(--theme-primary,#53d7e6)!important;font-size:10px!important;}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-calendar-day.over small{color:#ff737f!important;}
html body #calCalendarModal:not(#lbr-shared-specificity) .cal-weekday{color:var(--ui-card-description,#aaa)!important;}
html body #calBrowseModal #calOpenRaw{
 display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;
 margin:8px 0 12px!important;padding:10px!important;background:transparent!important;box-shadow:none!important;
 border:1px solid var(--theme-primary,#53d7e6)!important;border-radius:var(--lbr-ui-radius,9px)!important;color:var(--theme-primary,#53d7e6)!important;
}
html body #calRawModal #calRawForm .cal-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
html body #calRawModal #calRawForm input{width:100%!important;min-width:0!important;box-sizing:border-box!important;}
html body #calRawModal #calRawForm .cal-tools{margin-top:16px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
/* All three available UI previews share the same responsive picker. */
html #legend-tab .ui-design-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
html #legend-tab .ui-design-option[data-ui-design]{grid-column:auto!important;min-width:0!important;}
@media(max-width:355px){html #legend-tab .ui-design-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* Home achievement previews are flat list rows, not boxed action buttons. */
html #rank-tab #homeAchievements .home-achievement-item:not(#lbr-shared-specificity){
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;margin:0!important;padding:11px 2px!important;
}
html #rank-tab #homeUpcomingAchievements > .home-achievement-item + .home-achievement-item:not(#lbr-shared-specificity){
 border-top:1px solid color-mix(in srgb,var(--theme-text,#fff) 14%,transparent)!important;
}

/* Info: flat, readable list and article layouts for every theme.
   Finance and the dedicated Dashboard retain their existing component styles.
   Only inputs and actionable buttons retain the shared control outlines. */
html body #info-tab:not(#lbr-shared-specificity),html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]){
 --lbr-info-divider:color-mix(in srgb,var(--theme-text,#fff) 13%,transparent);
 --lbr-info-muted:var(--ui-card-description,var(--theme-text-muted,#b3b3b3));
 --lbr-info-text:var(--theme-text,#fff);
 --lbr-info-title:var(--ui-card-title,var(--theme-text,#fff));
}
html body #info-tab:not(#lbr-shared-specificity) .info-hub-container{
 background:transparent!important;border:0!important;box-shadow:none!important;
 height:auto!important;min-height:0!important;max-height:none!important;gap:0!important;
}
html body #info-tab:not(#lbr-shared-specificity) .info-hub-container>.app-page-header{
 margin:0!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid var(--lbr-info-divider)!important;background:transparent!important;box-shadow:none!important;
}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid{
 display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;flex:0 0 auto!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card{
 display:grid!important;grid-template-columns:32px minmax(0,1fr) 16px!important;align-items:center!important;gap:10px!important;
 width:100%!important;min-height:64px!important;height:auto!important;max-height:none!important;padding:11px 2px!important;margin:0!important;text-align:left!important;
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-transform:none!important;transform:none!important;
}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card:not(:last-child){border-bottom:1px solid var(--lbr-info-divider)!important}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card::before,html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card::after{content:none!important}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card:is(:hover,:active,:focus-visible){background:transparent!important;box-shadow:none!important}
html body #info-tab:not(#lbr-shared-specificity) #infoGrid>button.info-topic-card:focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:-2px!important}
html body #info-tab:not(#lbr-shared-specificity) .info-topic-icon{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;font-size:22px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body #info-tab:not(#lbr-shared-specificity) .info-topic-copy{min-width:0!important;display:grid!important;gap:4px!important}
html body #info-tab:not(#lbr-shared-specificity) .info-topic-copy strong{font-size:var(--lbr-ui-title-size,15px)!important;font-weight:700!important;line-height:1.3!important;white-space:normal!important;color:var(--lbr-info-title)!important}
html body #info-tab:not(#lbr-shared-specificity) .info-topic-copy small{display:block!important;font-size:12px!important;line-height:1.4!important;color:var(--lbr-info-muted)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;opacity:1!important}
html body #info-tab:not(#lbr-shared-specificity) .info-topic-arrow{display:block!important;justify-self:end;color:var(--lbr-info-muted)!important;font-size:22px!important;line-height:1!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body #info-tab:not(#lbr-shared-specificity) .info-hub-disclaimer{border:0!important;border-top:1px solid var(--lbr-info-divider)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:12px 0 4px!important;font-size:11px!important;line-height:1.5!important;color:var(--lbr-info-muted)!important;opacity:1!important}
/* The modal uses the page canvas as a single opaque surface. */
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]){
 padding:0 0 calc(var(--lbrank-nav-core-height,60px) + 8px)!important;
 background:var(--theme-background,#121212)!important;background-image:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-page{
 width:min(100%,720px)!important;max-width:720px!important;box-sizing:border-box!important;
 padding:0 clamp(14px,4vw,24px) 24px!important;margin:0 auto!important;min-height:0!important;
 background:var(--theme-background,#121212)!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 color:var(--lbr-info-text)!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-topbar{
 position:sticky!important;top:0!important;z-index:5!important;display:flex!important;align-items:center!important;gap:12px!important;
 margin:0!important;padding:12px 0!important;background:var(--theme-background,#121212)!important;background-image:none!important;
 border:0!important;border-bottom:1px solid var(--lbr-info-divider)!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-topbar>div{min-width:0}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-topbar h2{font-size:clamp(21px,5.5vw,28px)!important;line-height:1.2!important;letter-spacing:-.025em!important;font-weight:800!important;margin:3px 0 0!important;color:var(--ui-header,var(--lbr-info-text))!important;text-transform:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-topbar .section-kicker{font-size:10px!important;line-height:1.3!important;color:var(--theme-primary,#53d7e6)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-close{
 appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;
 flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:44px!important;min-height:44px!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 color:var(--theme-primary,#53d7e6)!important;font:500 32px/1 system-ui,sans-serif!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-subtitle{margin:0!important;padding:14px 0!important;color:var(--lbr-info-muted)!important;font-size:13px!important;line-height:1.5!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-detail-subtitle:empty{display:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) #infoDetailBody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) #infoDetailBody>:is(.info-section-block,.info-callout,.rmr-calculator,.calorie-estimator,.lbrank-points-guide,.daily-brief-tool){
 margin:0!important;padding:16px 0!important;min-width:0!important;border:0!important;border-top:1px solid var(--lbr-info-divider)!important;border-radius:0!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-section-block h3,html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-guide h3{margin:0 0 9px!important;font-size:16px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important;color:var(--lbr-info-title)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.info-section-block p,.info-section-block li,.info-callout){font-size:13px!important;line-height:1.65!important;color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-section-block ul{gap:8px!important;padding-left:19px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-section-block strong,html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-callout strong{color:var(--lbr-info-text)!important;font-weight:700!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-timeline{display:grid!important;gap:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-timeline>div{padding:11px 0!important;border:0!important;border-bottom:1px solid var(--lbr-info-divider)!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-timeline>div:last-child{border-bottom:0!important;padding-bottom:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-timeline>div>strong{font-size:13px!important;color:var(--theme-primary,#53d7e6)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-callout.warning{color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-callout.warning strong{color:#f5b970!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-medical-note:not([hidden]){margin:0!important;padding:14px 0!important;border:0!important;border-top:1px solid var(--lbr-info-divider)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important;line-height:1.55!important;color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .info-medical-note[hidden]{display:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) hr{border:0!important;border-top:1px solid var(--lbr-info-divider)!important;margin:12px 0!important;height:0!important;background:transparent!important}
/* Shared form controls, with flat results and clear section breaks. */
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-grid{gap:12px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-grid label{gap:6px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-grid label span{font-size:12px!important;line-height:1.3!important;color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.rmr-grid,.calorie-picker-controls) :is(input,select){
 box-sizing:border-box!important;min-height:var(--lbr-ui-input-height,44px)!important;width:100%!important;min-width:0!important;
 border:1px solid var(--lbr-info-divider)!important;border-radius:var(--lbr-ui-radius,9px)!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--lbr-info-text)!important;font-size:16px!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.rmr-calc-btn,.daily-brief-primary-btn,.calorie-back-btn){
 box-sizing:border-box!important;min-height:var(--lbr-ui-control-height,38px)!important;padding:var(--lbr-ui-control-padding,8px 12px)!important;
 border:1px solid color-mix(in srgb,var(--theme-text,#fff) 20%,transparent)!important;border-radius:var(--lbr-ui-radius,9px)!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;
 color:var(--theme-primary,#53d7e6)!important;-webkit-text-fill-color:currentColor!important;
 font-family:inherit!important;font-size:var(--lbr-ui-label-size,12px)!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-calc-btn{width:100%!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-back-btn{border:0!important;border-radius:0!important;padding-inline:0!important;justify-self:start!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.rmr-result,.calorie-result-card){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-top:1px solid var(--lbr-info-divider)!important;border-radius:0!important;padding:16px 0 4px!important;margin:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-result strong{font-size:28px!important;color:var(--theme-primary,#53d7e6)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-result :is(span,small){font-size:12px!important;line-height:1.4!important;color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .rmr-result.error strong{color:#ff8794!important}
/* Calorie Info category selector and nested food lists. */
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px 8px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-category-grid>button{
 display:grid!important;place-items:center!important;gap:4px!important;min-height:58px!important;min-width:0!important;padding:8px 3px!important;margin:0!important;
 border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;background-image:none!important;
 box-shadow:none!important;color:var(--lbr-info-muted)!important;-webkit-text-fill-color:currentColor!important;white-space:normal!important;text-transform:none!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-category-grid>button:is(.active,.is-active,[aria-pressed=true]){border-bottom-color:var(--theme-primary,#53d7e6)!important;color:var(--theme-primary,#53d7e6)!important;background:transparent!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-category-grid>button span{font-size:22px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-category-grid>button b{font-size:12px!important;line-height:1.2!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-picker-panel{border:0!important;border-top:1px solid var(--lbr-info-divider)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0 0!important;min-height:0!important;gap:8px!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-picker-empty{min-height:75px!important;gap:5px!important;align-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-picker-title{margin:0!important;padding:6px 0 12px!important;border-bottom:1px solid var(--lbr-info-divider)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-card-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-card-grid button.calorie-choice-card{
 display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
 box-sizing:border-box!important;width:100%!important;min-height:60px!important;height:auto!important;padding:10px 0!important;margin:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;text-align:left!important;transform:none!important;
}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-card-grid button.calorie-choice-card:not(:last-child){border-bottom:1px solid var(--lbr-info-divider)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-choice-icon{width:36px!important;height:36px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-choice-copy strong{font-size:14px!important;line-height:1.35!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-choice-copy :is(small,em){font-size:12px!important;line-height:1.4!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-choice-kcal{font-size:14px!important;color:var(--theme-primary,#53d7e6)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .calorie-estimator-note{font-size:11px!important;line-height:1.5!important;padding:12px 0 0!important;border-top:1px solid var(--lbr-info-divider)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(button,input,select):focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:2px!important}
/* Points guide and headline rows: no cards or nested chips. */
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-guide .lbrank-points-balances{display:flex!important;justify-content:center!important;gap:24px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:4px 0 14px!important;margin:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-guide .lbrank-points-balances>span{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-guide h3{margin:16px 0 4px!important;padding-bottom:8px!important;border-bottom:1px solid var(--lbr-info-divider)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-guide .lbrank-reward-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:9px 0!important;margin:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--lbr-info-divider)!important;border-radius:0!important;box-shadow:none!important;font-size:12px!important;line-height:1.4!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-reward-row strong{text-align:right!important;overflow-wrap:anywhere}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) .lbrank-points-footnote{display:block!important;padding-top:12px!important;font-size:11px!important;line-height:1.5!important;color:var(--lbr-info-muted)!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.daily-brief-topbar,.daily-brief-status,.daily-brief-section,.daily-brief-item,.daily-brief-story,.daily-brief-story-list,.daily-brief-empty){background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important}
html body #infoDetailModal[data-topic]:not(#lbr-shared-specificity):not(.life-dashboard-open):not([data-topic=budget]):not([data-topic=mortgage]):not([data-topic=lifehub]):not([data-topic=homecompare]) :is(.daily-brief-section,.daily-brief-item,.daily-brief-story){padding:12px 0!important;border-bottom:1px solid var(--lbr-info-divider)!important}

/* Flat preference surfaces across all UI designs. Preserve controls, preview art and selection checks. */
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface){--lbr-preferences-divider:color-mix(in srgb,var(--theme-text,#fff) 14%,transparent);}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-card,.settings-dropdown-card,.settings-subsection,.setting-card,.settings-section,.settings-restart-group,.theme-dropdown,.ui-theme-control-group,.general-theme-section,.rank-themes-section,.rank-theme-card,.legend-card,.other-themes-section,.theme-map-entry,.ui-design-selector,.original-element-style-entry){border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-card,.settings-dropdown-card,.theme-dropdown,.ui-theme-control-group,.ui-design-selector,.original-element-style-entry)::before{content:none!important;display:none!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-card,.settings-dropdown-card,.theme-dropdown,.ui-theme-control-group,.ui-design-selector,.original-element-style-entry)::after{content:none!important;display:none!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-dropdown-summary,.settings-dropdown-body,.theme-dropdown-summary,.theme-dropdown-content,.ui-theme-control-group>summary,.ui-theme-control-group-body,.setting-row){border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-subsection,.settings-restart-group,.setting-row,.ui-theme-control-group,.theme-map-entry){border-bottom:1px solid var(--lbr-preferences-divider)!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.theme-dropdown,.ui-design-selector,.original-element-style-entry){border-bottom:1px solid var(--lbr-preferences-divider)!important;margin:0!important;padding:10px 0!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) .settings-dropdown-card{padding:0!important;margin:0!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) .settings-dropdown-summary{min-height:52px!important;padding:12px 4px!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) .settings-section-divider{display:block!important;width:100%!important;height:0!important;margin:0!important;border:0!important;border-top:1px solid var(--lbr-preferences-divider)!important;background:transparent!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) .ui-design-option{border:0!important;box-shadow:none!important;background:transparent!important;background-image:none!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) .ui-design-option:is(.is-selected,[aria-pressed=true]){border:0!important;box-shadow:none!important;color:var(--theme-primary,#53d7e6)!important}
html body :is(#settings-tab,#legend-tab):not(#lbr-flat-preferences-specificity):not(#lbr-flat-preferences-surface) :is(.settings-dropdown-summary,.theme-dropdown-summary,.ui-theme-control-group>summary,.ui-design-option):focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:2px!important}

/* Flat Log canvas: no nested panels; use actual horizontal rules. */
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface){--lbr-log-divider:color-mix(in srgb,var(--theme-text,#fff) 15%,transparent)}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) :is(.lbr-log-page,.home-quick-log,.home-quick-field,.lbr-log-actions,.lbr-log-link){background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) :is(.lbr-log-page,.home-quick-field,.lbr-log-link)::before,html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) :is(.lbr-log-page,.home-quick-field,.lbr-log-link)::after{content:none!important;display:none!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .home-quick-log{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:16px!important;margin:0!important;padding:10px 0 14px!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .home-quick-log>.home-quick-field{min-width:0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;gap:7px!important;grid-template-rows:auto auto!important;align-content:start!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .home-quick-log>.home-step-logger{grid-template-rows:auto auto auto!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .home-quick-log>.home-quick-field>input{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-bottom:1px solid var(--lbr-log-divider)!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;height:48px!important;min-height:48px!important;padding:8px 2px!important;font-size:20px!important;font-variant-numeric:tabular-nums!important;outline-offset:2px!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .home-quick-log>.home-quick-field>input:focus{border-bottom-color:var(--theme-primary,#53d7e6)!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .lbr-log-divider{display:block!important;width:100%!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-top:1px solid var(--lbr-log-divider)!important;background:transparent!important;box-shadow:none!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .lbr-log-actions{display:grid!important;gap:0!important;padding:0!important;margin:0!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) .lbr-log-actions>.lbr-log-link{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;width:100%!important;min-height:66px!important;margin:0!important;padding:14px 4px!important;text-align:left!important}
html body #log-tab:not(#lbr-flat-log-specificity):not(#lbr-flat-log-surface) :is(input,.lbr-log-link):focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:2px!important}
html body #learnIslam .learn-choice .lbr-islam-completion{position:absolute!important;bottom:10px!important;left:15px!important;font-size:11px!important;font-weight:750!important;line-height:1.2!important;color:var(--theme-primary,#53d7e6)!important;pointer-events:none!important}

/* Goal forecast: same width across both pairs, retaining their existing styles. */
html body #graph-tab #etaEntryControls{--lbr-forecast-button-width:clamp(42px,12.5vw,58px);gap:4px!important}
html body #graph-tab #etaEntryControls > .progress-choice-group:not([hidden]){display:grid!important;grid-template-columns:repeat(2,var(--lbr-forecast-button-width))!important;gap:4px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important}
html body #graph-tab #etaEntryControls > .progress-choice-group > button.progress-choice-option{width:var(--lbr-forecast-button-width)!important;min-width:var(--lbr-forecast-button-width)!important;max-width:var(--lbr-forecast-button-width)!important;padding-inline:3px!important;box-sizing:border-box!important;flex:none!important;white-space:nowrap!important}
@media(max-width:340px){html body #graph-tab #etaEntryControls{--lbr-forecast-button-width:40px}html body #graph-tab #etaEntryControls > .progress-choice-group > button.progress-choice-option{font-size:10px!important}}

/* Progress mode navigation: identical underlined tabs on iOS and desktop. */
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:0!important;padding:0!important;border:0!important;border-bottom:1px solid color-mix(in srgb,var(--theme-text,#fff) 14%,transparent)!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card{-webkit-appearance:none!important;appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:8px 4px!important;margin:0!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--ui-card-description,var(--theme-text-muted,#b3b3b3))!important;-webkit-text-fill-color:currentColor!important;transform:none!important;-webkit-tap-highlight-color:transparent;font:700 var(--lbr-ui-label-size,13px)/1.3 system-ui,sans-serif!important}
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card:is(.active,.is-active,.is-selected,.selected,[aria-pressed=true],[aria-selected=true]){border-bottom-color:var(--theme-primary,#53d7e6)!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--theme-primary,#53d7e6)!important;-webkit-text-fill-color:currentColor!important}
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card :is(span,strong){font:inherit!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;background:transparent!important;box-shadow:none!important}
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card::before,html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card::after{content:none!important;display:none!important}
html body #graph-tab:not(#lbr-progress-tab-flat):not(#lbr-progress-tab-surface) .progress-mode-card-grid>button.progress-mode-card:focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:-3px!important}

/* Shared pull rate dialog: same theme tokens and flat dividers as Info modals. */
html body dialog.lbc-summon-rate-dialog.lbc-demo-dialog{--lbr-rate-divider:color-mix(in srgb,var(--theme-text,#fff) 14%,transparent);--lbr-rate-muted:var(--ui-card-description,var(--theme-text-muted,#b3b3b3));box-sizing:border-box!important;width:min(94vw,580px)!important;max-width:580px!important;max-height:85vh!important;max-height:85dvh!important;margin:auto!important;padding:16px 18px 18px!important;background:var(--theme-background,#121212)!important;background-image:none!important;color:var(--theme-text,#fff)!important;border:0!important;border-radius:14px!important;box-shadow:0 12px 50px #0006!important;overflow:auto!important}
html body dialog.lbc-summon-rate-dialog::backdrop{background:rgba(0,0,0,.68)!important;backdrop-filter:blur(3px)}
html body dialog.lbc-summon-rate-dialog .lbc-rate-header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:0 0 14px!important;border:0!important;border-bottom:1px solid var(--lbr-rate-divider)!important;background:transparent!important}
html body dialog.lbc-summon-rate-dialog .lbc-rate-kicker{display:block;font:750 10px/1.3 system-ui,sans-serif!important;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-primary,#53d7e6)!important;margin-bottom:5px}
html body dialog.lbc-summon-rate-dialog h3{margin:0!important;font:800 20px/1.25 system-ui,sans-serif!important;color:var(--ui-header,var(--theme-text,#fff))!important;letter-spacing:-.02em}
html body dialog.lbc-summon-rate-dialog button.lbc-rate-close{appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--theme-primary,#53d7e6)!important;font:500 30px/1 system-ui,sans-serif!important}
html body dialog.lbc-summon-rate-dialog .lbc-demo-rates{width:100%!important;border-collapse:collapse!important;table-layout:auto!important;margin:8px 0 0!important;background:transparent!important;border:0!important}
html body dialog.lbc-summon-rate-dialog .lbc-demo-rates :is(th,td){padding:11px 4px!important;border:0!important;border-bottom:1px solid var(--lbr-rate-divider)!important;background:transparent!important;box-shadow:none!important;font-size:clamp(11px,3vw,14px)!important;line-height:1.3!important;text-align:right!important;font-variant-numeric:tabular-nums!important}
html body dialog.lbc-summon-rate-dialog .lbc-demo-rates :is(th,td):first-child{text-align:left!important;overflow-wrap:anywhere}
html body dialog.lbc-summon-rate-dialog .lbc-demo-rates th{color:var(--lbr-rate-muted)!important;font-weight:650!important;font-size:11px!important}
html body dialog.lbc-summon-rate-dialog .lbc-demo-rates td:not(.lbc-prismatic-label){color:var(--theme-text,#fff)!important}
html body dialog.lbc-summon-rate-dialog .lbc-rate-swatch{width:10px!important;height:10px!important;border-radius:50%!important;border:0!important;box-shadow:none!important;margin-right:6px!important}
html body dialog.lbc-summon-rate-dialog .lbc-rate-total{border:0!important}
html body dialog.lbc-summon-rate-dialog .lbc-rate-total :is(td,th){border-bottom:0!important;color:var(--theme-text,#fff)!important;font-weight:750!important}
html body dialog.lbc-summon-rate-dialog h4{margin:12px 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--lbr-rate-divider)!important;font:750 14px/1.4 system-ui,sans-serif!important;color:var(--theme-text,#fff)!important}
html body dialog.lbc-summon-rate-dialog .lbc-demo-note{margin:12px 0 0!important;padding:12px 0 0!important;border:0!important;border-top:1px solid var(--lbr-rate-divider)!important;background:transparent!important;color:var(--lbr-rate-muted)!important;font-size:12px!important;line-height:1.5!important}
html body dialog.lbc-summon-rate-dialog .lbc-rate-close:focus-visible{outline:2px solid var(--theme-primary,#53d7e6)!important;outline-offset:2px!important}


/* Shared underline style for option selectors, matching the Progress tabs.
   Card favorites, normal actions, and primary app navigation remain separate.
   Deliberate specificity overrides older per-page iOS/theme button styles. */
:root{
 --lbr-choice-border:color-mix(in srgb,var(--theme-text,#fff) 18%,transparent);
 --lbr-choice-accent:var(--theme-primary,#53d7e6);
 --lbr-choice-muted:var(--ui-card-description,var(--theme-text-muted,#b3b3b3));
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]){
 -webkit-appearance:none!important;appearance:none!important;
 box-sizing:border-box!important;
 min-height:38px!important;height:38px!important;
 border:0!important;border-bottom:2px solid transparent!important;
 border-radius:0!important;
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;text-shadow:none!important;
 color:var(--lbr-choice-muted)!important;-webkit-text-fill-color:currentColor!important;
 font-family:inherit!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;
 letter-spacing:0!important;text-transform:none!important;text-align:center!important;
 padding:6px 9px!important;
 cursor:pointer;touch-action:manipulation;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]):is(.active,.is-active,.is-selected,.selected,.chosen,[aria-pressed="true"],[aria-selected="true"],[aria-checked="true"],[data-selected="true"]){
 border:0!important;border-bottom:2px solid var(--lbr-choice-accent)!important;
 background:transparent!important;background-image:none!important;
 color:var(--lbr-choice-accent)!important;-webkit-text-fill-color:currentColor!important;
 box-shadow:none!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]):focus-visible{outline:2px solid var(--lbr-choice-accent)!important;outline-offset:2px!important}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]):disabled{opacity:.45!important;cursor:default}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]):is(.progress-choice-option,.eta-entry-btn,.workout-weight-option,.workout-flow-toggle,.workout-series-toggle,.history-period-cycle-btn,.history-view-cycle-btn)::before,
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]):is(.progress-choice-option,.eta-entry-btn,.workout-weight-option,.workout-flow-toggle,.workout-series-toggle,.history-period-cycle-btn,.history-view-cycle-btn)::after{
 content:none!important;display:none!important;
}
/* Keep the dense 6-column weight picker and compact forecast row intact. */
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.workout-weight-option,button[data-workout-weight]){
 min-width:0!important;width:100%!important;padding:5px 2px!important;font-size:11px!important;height:34px!important;min-height:34px!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #graph-tab #etaEntryControls :is(button.progress-choice-option,button.eta-entry-btn){
 height:38px!important;min-height:38px!important;white-space:nowrap!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) .progress-choice-group:has(>button.progress-choice-option),
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) .cal-rmr-units{
 gap:4px!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) .cal-rmr-units>button{flex:1 1 0!important;width:100%!important}
@media(max-width:400px){
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.progress-choice-option,button.eta-entry-btn,button.workout-weight-option,button.workout-flow-toggle,button.workout-series-toggle,button.workout-rest-day-toggle,button.workout-journey-toggle,button.history-period-cycle-btn,button.history-view-cycle-btn,button.badge-sort-toggle,button.theme-preset-filter-btn,button.filter-chip,button.filter-preset-btn,button.rank-path-preview-toggle,button.rank-animation-toggle,button.rank-roman-toggle,button.lbc-viewer-motion,button[data-progress-unit],button[data-eta-range],button[data-history-period],button[data-history-view],button[data-exercise-period],button[data-exercise-view],button[data-workout-flow],button[data-workout-progress-flow],button[data-workout-weight],button[data-workout-series],button[data-workout-period],button[data-workout-history-view],button[data-cal-period],button[data-cal-view],.cal-rmr-units>button,.cal-subtabs>button,button[data-theme-preset-filter],button[data-page-preset],button[data-h-action="filter"],button[data-tafsir-source],button[data-fr-action="goal"],button[data-learn-action="filter"],button[data-learn-action="topic"],button[data-sort]){height:34px!important;min-height:34px!important;padding:5px 7px!important;font-size:11px!important}
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #graph-tab #etaEntryControls :is(button.progress-choice-option,button.eta-entry-btn){height:34px!important;min-height:34px!important;padding:5px 6px!important}
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(button.workout-weight-option,button[data-workout-weight]){padding:5px 2px!important}
}

/* Every workout graph series retains its own chart color when selected.
   Weight and flow selections keep the active theme accent. */
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) button.workout-series-toggle:is(.is-selected,.active,[aria-pressed="true"]){
 border-bottom-color:var(--series-color,var(--lbr-choice-accent))!important;
 color:var(--series-color,var(--lbr-choice-accent))!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) button.workout-series-toggle:is(.is-selected,.active,[aria-pressed="true"])>span:last-child{
 color:inherit!important;-webkit-text-fill-color:currentColor!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #workout-tab button.workout-flow-toggle.is-next-flow:not(.is-active){
 color:var(--lbr-choice-accent)!important;border-bottom-color:transparent!important;
}
/* Calorie page and calorie progress: equal tracks and identical button heights,
   including radio-backed chart ranges rather than only native buttons. */
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(#calories-tab .cal-subtabs,#calories-tab .cal-rmr-units){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:0!important;padding:0!important;border:0!important;
 border-bottom:1px solid var(--lbr-choice-border)!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(#calories-tab .cal-subtabs,#calories-tab .cal-rmr-units)>button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 height:38px!important;min-height:38px!important;padding:6px 4px!important;margin:0!important;
 font-size:12px!important;line-height:1.2!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-history-switches{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:stretch!important;gap:8px!important;width:100%!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-history-switches .progress-choice-group{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;min-width:0!important;gap:0!important;padding:0!important;
 background:transparent!important;border:0!important;border-bottom:1px solid var(--lbr-choice-border)!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-history-switches button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 height:38px!important;min-height:38px!important;padding:6px 3px!important;margin:0!important;
 font-size:12px!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 flex:1 1 auto!important;gap:0!important;width:100%!important;min-width:0!important;padding:0!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons .range-option{display:flex!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons .range-btn{
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;min-width:0!important;width:100%!important;
 height:38px!important;min-height:38px!important;padding:6px 2px!important;margin:0!important;
 border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 color:var(--lbr-choice-muted)!important;-webkit-text-fill-color:currentColor!important;
 font:700 12px/1.2 system-ui,sans-serif!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons input:checked+.range-btn{
 border-bottom-color:var(--lbr-choice-accent)!important;color:var(--lbr-choice-accent)!important;background:transparent!important;
}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons input:focus-visible+.range-btn{outline:2px solid var(--lbr-choice-accent)!important;outline-offset:-2px!important}
@media(max-width:400px){
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) :is(#calories-tab .cal-subtabs,#calories-tab .cal-rmr-units)>button,
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-history-switches button,
 html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e) #calProgressView .cal-range-buttons .range-btn{height:34px!important;min-height:34px!important;font-size:11px!important}
}

/* Animate a dedicated underline, not the button's important box-shadow.
   Only an unselected next flow pulses; selected flow stays steady. */
@keyframes lbr-next-flow-underline {0%,100%{opacity:.16;transform:scaleX(.55)}50%{opacity:1;transform:scaleX(1)}}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e):not(#lbr-toggle-specificity-f) #workout-tab button.workout-flow-toggle.is-next-flow:not(.is-active){position:relative!important;animation:none!important;border-bottom-color:transparent!important}
html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e):not(#lbr-toggle-specificity-f) #workout-tab button.workout-flow-toggle.is-next-flow:not(.is-active)::after{content:""!important;display:block!important;position:absolute!important;left:8px!important;right:8px!important;bottom:0!important;height:2px!important;background:var(--theme-primary,#53d7e6)!important;border:0!important;border-radius:0!important;margin:0!important;pointer-events:none!important;animation:lbr-next-flow-underline 1.55s ease-in-out infinite!important;transform-origin:center!important}
@media(prefers-reduced-motion:reduce){html body:not(#lbr-toggle-specificity-a):not(#lbr-toggle-specificity-b):not(#lbr-toggle-specificity-c):not(#lbr-toggle-specificity-d):not(#lbr-toggle-specificity-e):not(#lbr-toggle-specificity-f) #workout-tab button.workout-flow-toggle.is-next-flow:not(.is-active)::after{animation:none!important;opacity:.65!important;transform:none!important}}

/* Match the next-flow underline pulse with a smooth neutral-to-accent label fade.
   Animate the child label so the important shared button colors remain intact. */
@keyframes lbr-next-flow-label-color {
  0%,100% { color:var(--lbr-choice-muted,var(--theme-text-muted,#b3b3b3)); }
  50% { color:var(--lbr-choice-accent,var(--theme-primary,#53d7e6)); }
}
#workout-tab button[data-workout-flow]>.workout-flow-label {
  color:inherit;
  -webkit-text-fill-color:currentColor!important;
}
#workout-tab button[data-workout-flow].is-next-flow:not(.is-active)>.workout-flow-label {
  animation:lbr-next-flow-label-color 1.55s ease-in-out infinite;
}
@media(prefers-reduced-motion:reduce){
  #workout-tab button[data-workout-flow].is-next-flow:not(.is-active)>.workout-flow-label {
    animation:none;
    color:var(--lbr-choice-accent,var(--theme-primary,#53d7e6));
  }
}

/* Common interaction geometry. No changes to fixed navigation or card art. */
:root{--lbr-ui-page-gap:12px;--lbr-ui-touch-size:44px;--lbr-ui-transition:160ms ease;--lbr-ui-divider:color-mix(in srgb,var(--theme-text,#e6e9ef) 15%,transparent)}
html body .app-page-header{gap:var(--lbr-ui-gap);margin-block:0 var(--lbr-ui-page-gap)!important;padding-block:0 8px!important}
html body .app-page-header h2{line-height:1.15!important;letter-spacing:-.025em}
html body :is(.cal-modal-panel>header,.lbc-rate-header,.lbc-featured-picker-head,.life-graph-head){display:flex;align-items:center;justify-content:space-between;gap:var(--lbr-ui-gap);border-bottom:1px solid var(--lbr-ui-divider);padding-bottom:10px}
html body :is(.cal-modal-panel>header,.lbc-rate-header,.lbc-featured-picker-head,.life-graph-head) h3{font-size:18px;line-height:1.25;margin:0}
html body :is(.cal-modal-panel>header button,.lbc-rate-close,.lbc-featured-picker-head button,.life-graph-close){min-width:var(--lbr-ui-touch-size);min-height:var(--lbr-ui-touch-size);border-radius:var(--lbr-ui-radius);font:inherit;touch-action:manipulation}
html body :is(.cal-modal-panel,.life-number-graph-dialog,.lbc-demo-dialog){overscroll-behavior:contain}
html body :is(.finance-subtabs,.cal-subtabs,.life-graph-tabs) button{min-height:var(--lbr-ui-touch-size);transition:color var(--lbr-ui-transition),border-color var(--lbr-ui-transition);touch-action:manipulation}
html body :is(.cal-action,.cal-quiet,.life-primary-btn,.calorie-back-btn){min-height:var(--lbr-ui-control-height);touch-action:manipulation}
html body :is(.app-page-header,.cal-modal-panel,.life-number-graph-dialog,.lbc-demo-dialog,.finance-subtabs) :is(button,a,input,select):focus-visible{outline:2px solid var(--theme-primary,#53d7e6);outline-offset:2px}
@media(prefers-reduced-motion:reduce){html body :is(.finance-subtabs,.cal-subtabs,.life-graph-tabs) button{transition:none}}

.lbc-pull-quantity{display:block;width:100%;min-height:38px;margin:8px 0;font:inherit;color:var(--theme-text,#eee);background:transparent;border:1px solid var(--lbr-ui-divider,rgba(127,127,127,.25));border-radius:9px}.lbc-art-retry{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;white-space:nowrap;font-size:11px!important;min-height:32px!important;background:#17212e!important;color:#fff!important;border-radius:6px!important}

/* Milestone list: readable, theme-aware, flat rows; retain the existing rank artwork. */
#badges-tab .milestone-wallet{display:grid;gap:10px;padding:4px 0 16px;border-bottom:1px solid var(--lbr-ui-divider,rgba(127,127,127,.22));margin-bottom:12px}
#badges-tab .milestone-wallet-balances{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#badges-tab .milestone-wallet-balances>div{display:grid;gap:3px;min-width:0}
#badges-tab .milestone-wallet-balances small{font-size:12px;color:var(--theme-text-muted,#aaa)}
#badges-tab .milestone-wallet-balances strong{font-size:24px;font-variant-numeric:tabular-nums;color:var(--theme-primary,#53d7e6)}
#badges-tab .milestone-wallet-balances>div+div strong{color:#e4c381}
#badges-tab .milestone-weight-rewards{display:grid;gap:5px;font-size:12px;line-height:1.45}
#badges-tab .milestone-reward-baseline{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#badges-tab .milestone-weight-rewards small,#badges-tab #milestoneSyncStatus{font-size:12px;color:var(--theme-text-muted,#b8c2d0)}
#badges-tab .milestone-filter-bar{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;margin:8px 0}
#badges-tab .milestone-filter-bar :is(input,select){width:100%;min-width:0;min-height:40px;font:inherit;font-size:13px;border-radius:8px;box-sizing:border-box}
#badges-tab .milestone-filter-count{font-size:11px;color:var(--theme-text-muted,#b8c2d0)}
#badges-tab .milestone-group-summary{min-height:48px;touch-action:manipulation}
html body #badges-tab .milestone-group-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
html body #badges-tab button.milestone-badge{min-width:0!important;min-height:150px!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:5px!important;padding:10px!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--lbr-ui-divider,rgba(127,127,127,.22))!important;background:transparent!important;backdrop-filter:none!important}
html body #badges-tab .milestone-badge strong{font-size:13px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere}
html body #badges-tab .milestone-badge .milestone-detail{font-size:11px!important;line-height:1.35!important;-webkit-line-clamp:unset!important;display:block!important;white-space:normal!important;overflow-wrap:anywhere}
html body #badges-tab .milestone-badge .milestone-points{font-size:12px!important;line-height:1.35!important;white-space:normal!important;color:var(--theme-primary,#53d7e6)!important}
#badges-tab .milestone-credit-state{font-size:10px;line-height:1.3;color:var(--theme-text-muted,#b8c2d0)}
#badges-tab .milestone-credit-state[data-credit=Credited]{color:#91d5a5}
html body #badges-tab .milestone-progress-copy span,html body #badges-tab .milestone-progress-copy b{font-size:10px!important;line-height:1.25!important;white-space:normal!important}
html body #badges-tab .milestone-progress-track{height:4px!important}
html body #badgeDetailModal .badge-detail-points{white-space:normal!important;line-height:1.45}
#badges-tab .milestone-empty{font-size:13px;color:var(--theme-text-muted,#b8c2d0);padding:12px 0}
@media(min-width:740px){html body #badges-tab .milestone-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
