/**
 * FitRoniX — بازطراحی مینیمال ویجت‌های داشبورد (روشن + تاریک)
 * پالت روشن: Primary #2563EB · Accent #F97316 · Navy #0F172A · Gray 100–300
 */

html[data-user-panel-theme="fitronix"],
html[data-user-panel-theme="firouzi"] {
  --fx-mw-radius: 16px;
  --fx-mw-radius-sm: 12px;
  --fx-mw-pad: clamp(16px, 2vw, 20px);
  --fx-mw-gap: 12px;
  --fx-mw-border: color-mix(in srgb, var(--text) 8%, transparent);
  --fx-mw-border-hover: color-mix(in srgb, var(--fx-dash-primary, #2563eb) 22%, transparent);
  --fx-mw-surface: var(--fx-surface);
  --fx-mw-muted: var(--text-tertiary);
  --fx-mw-label: 11.5px;
  --fx-mw-title: 14px;
  --fx-mw-value: 22px;
  --fx-mw-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --fx-dash-primary: #2563eb;
  --fx-dash-primary-dark: #1d4ed8;
  --fx-dash-primary-soft: #eff6ff;
  --fx-dash-primary-muted: rgba(37, 99, 235, 0.12);
  --fx-dash-accent: #f97316;
  --fx-dash-accent-muted: rgba(249, 115, 22, 0.12);
  --fx-dash-navy: #0f172a;
  --fx-dash-gray-100: #f1f5f9;
  --fx-dash-gray-200: #e2e8f0;
  --fx-dash-gray-300: #cbd5e1;
  --fx-dash-white: #ffffff;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]),
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) {
  --fx-mw-border: var(--fx-dash-gray-200);
  --fx-mw-border-hover: rgba(37, 99, 235, 0.28);
  --fx-mw-surface: var(--fx-dash-white);
  --fx-mw-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard {
  --text: var(--fx-dash-navy);
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  color: var(--fx-dash-navy);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .shell-user .main:has(#view-dashboard.active),
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .shell-user .main:has(#view-dashboard.active) {
  background: var(--fx-dash-gray-100) !important;
}

/* تم تاریک: توکن‌ها در user-panel-dark-tokens.css */

/* ─── پایه کارت (همه به‌جز greet و programs) ─── */
#view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="greet"]):not([data-dash-sort-key="programs"]),
#view-dashboard .fx-dash [data-dash-sortable] > [data-dash-sort-key],
#view-dashboard .fx-score-card,
#view-dashboard .fx-hw-standalone,
#view-dashboard .fx-card:not(.fx-greet-tasks),
#view-dashboard .fx-panel-card,
#view-dashboard .fx-weekly-card,
#view-dashboard .fx-body-card,
#view-dashboard .fx-body-comp,
#view-dashboard .fx-body-hub,
#view-dashboard .fx-promo-banner {
  background: var(--fx-mw-surface) !important;
  border: 1px solid var(--fx-mw-border) !important;
  border-radius: var(--fx-mw-radius) !important;
  box-shadow: var(--fx-mw-shadow) !important;
  transition: border-color 0.18s ease, background 0.18s ease;
}

/* ردیف‌های گرید — بدون قاب کارت */
#view-dashboard .fx-score-row,
#view-dashboard .fx-quick-row,
#view-dashboard .fx-ops-row,
#view-dashboard .fx-bottom-row {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#view-dashboard .fx-hw-standalone::after,
#view-dashboard .fx-hw::after {
  display: none !important;
}

#view-dashboard .fx-card:hover,
#view-dashboard .fx-panel-card:hover,
#view-dashboard .fx-weekly-card:hover,
#view-dashboard .fx-hw:hover,
#view-dashboard .fx-score-card:hover {
  transform: none !important;
  box-shadow: var(--fx-mw-shadow) !important;
  border-color: var(--fx-mw-border-hover) !important;
}

/* ─── هدر یکپارچه ویجت‌ها ─── */
#view-dashboard .fx-card-head,
#view-dashboard .fx-panel-head,
#view-dashboard .fx-weekly-head,
#view-dashboard .fx-hw-head,
#view-dashboard .fx-ops-head,
#view-dashboard .fx-body-card-head {
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--fx-mw-border);
}

#view-dashboard .fx-card-head h3,
#view-dashboard .fx-panel-head h3,
#view-dashboard .fx-weekly-head h3,
#view-dashboard .fx-hw-head h3,
#view-dashboard .fx-ops-head h3,
#view-dashboard .fx-body-card-head-copy h3 {
  font-size: var(--fx-mw-title) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  margin: 0;
}

#view-dashboard .fx-widget-head-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary);
}

#view-dashboard .fx-widget-head-ico svg {
  width: 16px;
  height: 16px;
}

/* ─── ویجت‌های سلامت (fx-hw) ─── */
#view-dashboard .fx-hw {
  overflow: hidden;
}

#view-dashboard .fx-hw-head {
  padding: 14px var(--fx-mw-pad) 10px !important;
  border-bottom: 1px solid var(--fx-mw-border) !important;
  background: transparent !important;
}

#view-dashboard .fx-hw-head .fx-hw-ico {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  border: none !important;
}

#view-dashboard .fx-hw--workout .fx-hw-ico--workout {
  background: var(--fx-dash-accent-muted) !important;
  color: var(--fx-dash-accent) !important;
}

#view-dashboard .fx-hw--nutrition .fx-hw-ico--nutrition {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-hw--sleep .fx-hw-ico--sleep {
  background: color-mix(in srgb, #3b82f6 12%, transparent) !important;
  color: #3b82f6 !important;
}

#view-dashboard .fx-hw--recovery .fx-hw-ico--recovery {
  background: color-mix(in srgb, #8b5cf6 12%, transparent) !important;
  color: #8b5cf6 !important;
}

#view-dashboard .fx-hw--monitor .fx-hw-ico--blue {
  background: color-mix(in srgb, #0ea5e9 12%, transparent) !important;
  color: #0ea5e9 !important;
}

#view-dashboard .fx-hw-menu {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}

#view-dashboard .fx-hw-head:hover .fx-hw-menu {
  opacity: 1;
}

#view-dashboard .fx-hw-body {
  padding: 12px var(--fx-mw-pad) !important;
}

#view-dashboard .fx-hw-foot {
  background: color-mix(in srgb, var(--text) 2.5%, transparent) !important;
  border-top: 1px solid var(--fx-mw-border) !important;
  margin-top: auto;
}

#view-dashboard .fx-hw-foot-item strong {
  font-size: 13px !important;
  font-weight: 700 !important;
}

#view-dashboard .fx-hw-foot-item > span:last-child {
  font-size: 10px !important;
  color: var(--fx-mw-muted) !important;
}

#view-dashboard .fx-hw-ring-center strong {
  font-size: 17px !important;
  font-weight: 700 !important;
}

#view-dashboard .fx-hw-ring-center small {
  font-size: 10px !important;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-hw-ring .fx-ring-bg {
  stroke: color-mix(in srgb, var(--text) 8%, transparent) !important;
  stroke-width: 6 !important;
}

#view-dashboard .fx-hw-ring .fx-ring-fg {
  stroke-width: 6 !important;
}

#view-dashboard .fx-hw-workout-kpi,
#view-dashboard .fx-hw-nutrition-pills li,
#view-dashboard .fx-hw-stats--pair li,
#view-dashboard .fx-hw-recovery-tile,
#view-dashboard .fx-sleep-metric {
  background: color-mix(in srgb, var(--text) 3%, transparent) !important;
  border: 1px solid var(--fx-mw-border) !important;
  border-radius: var(--fx-mw-radius-sm) !important;
}

#view-dashboard .fx-hw-macro {
  background: color-mix(in srgb, var(--text) 3%, transparent) !important;
  border: 1px solid var(--fx-mw-border) !important;
  border-radius: 10px !important;
}

#view-dashboard .fx-hw-macro-bar {
  height: 3px !important;
  background: color-mix(in srgb, var(--text) 8%, transparent) !important;
  border-radius: 999px;
}

#view-dashboard .fx-hw-ready-bar {
  background: color-mix(in srgb, #10b981 6%, transparent) !important;
  border-top: 1px solid var(--fx-mw-border) !important;
  color: var(--text-secondary);
  font-size: 11px;
}

#view-dashboard .fx-sleep-cta,
#view-dashboard .fx-hw-chart-empty-btn {
  border-radius: 10px !important;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
}

#view-dashboard .fx-hw-workout-chart,
#view-dashboard .fx-hw-chart-host {
  background: color-mix(in srgb, var(--text) 2.5%, transparent) !important;
  border-radius: var(--fx-mw-radius-sm) !important;
  border: 1px solid var(--fx-mw-border);
}

#view-dashboard .fx-hw-workout-chart-head {
  font-size: 11px;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-hw-recovery-msg {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

#view-dashboard .fx-hw-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ─── دسترسی سریع v6 ─── */
#view-dashboard .fx-quick-card--v6 .fx-dash-card-head {
  margin-bottom: 2px !important;
}

#view-dashboard .fx-quick-grid--v6 {
  gap: 12px !important;
}

#view-dashboard .fx-quick-btn--v6 {
  transform: none;
}

#view-dashboard .fx-quick-btn--v6:hover {
  color: var(--text) !important;
}

#view-dashboard .fx-quick-ico--v6 {
  flex-shrink: 0;
}

/* ─── دسترسی سریع (legacy) ─── */
#view-dashboard .fx-quick-row .fx-card {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-quick-grid {
  gap: 8px !important;
}

#view-dashboard .fx-quick-btn {
  padding: 14px 8px !important;
  border-radius: var(--fx-mw-radius-sm) !important;
  background: color-mix(in srgb, var(--text) 3%, transparent) !important;
  border: 1px solid transparent !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
  color: var(--text-secondary);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#view-dashboard .fx-quick-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--fx-dash-primary) 6%, transparent) !important;
  border-color: color-mix(in srgb, var(--fx-dash-primary) 18%, transparent) !important;
  color: var(--text);
}

#view-dashboard .fx-quick-ico {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

#view-dashboard .fx-quick-ico--blue {
  background: var(--fx-dash-accent-muted) !important;
  color: var(--fx-dash-accent) !important;
}

#view-dashboard .fx-quick-ico--green {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-quick-ico--orange,
#view-dashboard .fx-quick-ico--purple,
#view-dashboard .fx-quick-ico--pink,
#view-dashboard .fx-quick-ico--teal {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-quick-btn:hover .fx-quick-ico--blue {
  background: color-mix(in srgb, var(--fx-dash-accent) 18%, transparent) !important;
}

#view-dashboard .fx-quick-btn:hover .fx-quick-ico {
  background: color-mix(in srgb, var(--fx-dash-primary) 16%, transparent) !important;
}

/* ─── آب امروز ─── */
#view-dashboard .fx-water-card .fx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#view-dashboard .fx-water-count {
  font-size: 12px;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-water-count strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-dash-primary);
}

#view-dashboard .fx-water-cups {
  gap: 5px !important;
  margin: 12px 0 !important;
}

#view-dashboard .fx-water-cup {
  height: 28px !important;
  border-radius: 6px !important;
  border: 1.5px solid var(--fx-mw-border) !important;
  background: transparent !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

#view-dashboard .fx-water-cup.is-full {
  background: color-mix(in srgb, var(--fx-dash-primary) 75%, transparent) !important;
  border-color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-water-btn {
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  background: var(--fx-dash-primary);
  color: #fff;
  border: none;
}

#view-dashboard .fx-water-btn--ghost {
  background: transparent !important;
  border: 1px solid var(--fx-mw-border) !important;
  color: var(--text-secondary);
}

/* ─── امتیازها ─── */
#view-dashboard .fx-score-row {
  gap: 10px !important;
}

#view-dashboard .fx-score-card {
  padding: 16px !important;
  min-height: 130px !important;
  border-radius: var(--fx-mw-radius) !important;
}

#view-dashboard .fx-score-card--total {
  background: linear-gradient(145deg, var(--fx-dash-primary-soft) 0%, var(--fx-mw-surface) 55%) !important;
  border-color: color-mix(in srgb, var(--fx-dash-primary) 16%, var(--fx-mw-border)) !important;
}

#view-dashboard .fx-score-lbl {
  font-size: var(--fx-mw-label);
  font-weight: 500;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-score-val {
  font-size: 26px !important;
  font-weight: 700 !important;
}

#view-dashboard .fx-score-delta {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #059669;
  font-weight: 600;
}

#view-dashboard .fx-score-ring .fx-ring-bg {
  stroke: color-mix(in srgb, var(--text) 8%, transparent);
}

/* ─── زنجیره و اشتراک ─── */
#view-dashboard .fx-streak-card,
#view-dashboard .fx-sub-card {
  padding: var(--fx-mw-pad) !important;
  background: var(--fx-mw-surface) !important;
  border: 1px solid var(--fx-mw-border) !important;
}

#view-dashboard .fx-streak-flame {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fx-dash-accent-muted);
  color: var(--fx-dash-accent);
  display: grid;
  place-items: center;
}

#view-dashboard .fx-streak-flame svg {
  width: 20px;
  height: 20px;
}

#view-dashboard .fx-streak-label {
  font-size: var(--fx-mw-label);
  color: var(--fx-mw-muted);
  font-weight: 500;
}

#view-dashboard .fx-streak-days {
  font-size: 15px !important;
  font-weight: 700 !important;
}

#view-dashboard .fx-streak-points {
  margin-inline-start: auto;
  text-align: end;
}

#view-dashboard .fx-streak-points span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

#view-dashboard .fx-streak-points small {
  display: block;
  font-size: 10px;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-streak-week {
  display: flex;
  gap: 6px;
  margin: 14px 0 12px;
  justify-content: space-between;
}

#view-dashboard .fx-streak-dot {
  flex: 1;
  aspect-ratio: 1;
  max-width: 36px;
  border-radius: 10px !important;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--fx-mw-border) !important;
  background: transparent !important;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-streak-dot.on {
  background: var(--fx-dash-accent-muted) !important;
  border-color: color-mix(in srgb, var(--fx-dash-accent) 30%, transparent) !important;
  color: var(--fx-dash-accent) !important;
}

#view-dashboard .fx-streak-dot.today {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fx-dash-accent) 25%, transparent);
}

#view-dashboard .fx-level-head {
  font-size: 11px;
  color: var(--fx-mw-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

#view-dashboard .fx-level-bar {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  overflow: hidden;
}

#view-dashboard .fx-level-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fx-dash-accent), #fb923c);
}

#view-dashboard .fx-sub-plan {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  color: #d97706;
}

#view-dashboard .fx-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}

#view-dashboard .fx-sub-row b {
  font-weight: 700;
}

#view-dashboard .fx-sub-bar {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  overflow: hidden;
  margin-bottom: 14px;
}

#view-dashboard .fx-sub-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fx-dash-primary), #60a5fa);
}

#view-dashboard .fx-sub-actions {
  display: flex;
  gap: 8px;
}

#view-dashboard .fx-sub-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: var(--fx-dash-primary);
  color: #fff;
  cursor: pointer;
}

#view-dashboard .fx-sub-btn--ghost {
  background: transparent !important;
  border: 1px solid var(--fx-mw-border) !important;
  color: var(--text-secondary) !important;
}

/* ─── وضعیت حساب ─── */
#view-dashboard .fx-ops-card {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #059669;
}

#view-dashboard .fx-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

#view-dashboard .fx-ops-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: var(--fx-mw-radius-sm);
  border: 1px solid var(--fx-mw-border);
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.15s, background 0.15s;
}

#view-dashboard .fx-ops-tile:hover {
  border-color: color-mix(in srgb, var(--fx-dash-primary) 28%, transparent);
  background: color-mix(in srgb, var(--fx-dash-primary) 4%, transparent);
  transform: none !important;
}

#view-dashboard .fx-ops-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-ops-ico svg {
  width: 16px;
  height: 16px;
}

#view-dashboard .fx-ops-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

#view-dashboard .fx-ops-badge,
#view-dashboard .fx-ops-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

#view-dashboard .fx-ops-badge--new {
  color: var(--fx-dash-primary);
}

/* ─── فعالیت‌های اخیر ─── */
#view-dashboard .fx-panel-card {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-panel-head-link,
#view-dashboard .fx-panel-head a {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fx-dash-primary);
  opacity: 0.85;
}

#view-dashboard .fx-activities-list {
  gap: 0 !important;
  margin-top: 4px;
}

#view-dashboard .fx-activity-item {
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--fx-mw-border) !important;
  gap: 12px;
}

#view-dashboard .fx-activity-item:last-child {
  border-bottom: none !important;
}

#view-dashboard .fx-activity-ico {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--text) 4%, transparent) !important;
  border: 1px solid var(--fx-mw-border) !important;
  color: var(--text-secondary) !important;
}

#view-dashboard .fx-activity-body strong {
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

#view-dashboard .fx-activity-body span {
  font-size: 10.5px;
  color: var(--fx-mw-muted);
}

/* ─── پیشرفت هفتگی ─── */
#view-dashboard .fx-weekly-card {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-weekly-legend span {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

#view-dashboard .fx-weekly-legend .leg-weight {
  color: var(--fx-dash-primary);
}

#view-dashboard .fx-weekly-legend .leg-fat {
  color: var(--fx-dash-accent);
}

#view-dashboard .fx-weekly-chart {
  background: color-mix(in srgb, var(--text) 2.5%, transparent) !important;
  border: 1px solid var(--fx-mw-border) !important;
  border-radius: var(--fx-mw-radius-sm) !important;
  padding: 10px !important;
  min-height: 240px !important;
}

#view-dashboard .fx-weekly-summary {
  background: color-mix(in srgb, var(--text) 3%, transparent) !important;
  border: 1px solid var(--fx-mw-border) !important;
  border-radius: var(--fx-mw-radius-sm) !important;
  padding: 14px !important;
}

#view-dashboard .fx-weekly-summary h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-secondary);
}

#view-dashboard .fx-weekly-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#view-dashboard .fx-weekly-summary li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--fx-mw-border);
}

#view-dashboard .fx-weekly-summary li:last-child {
  border-bottom: none;
}

#view-dashboard .fx-weekly-summary li span {
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-weekly-summary li strong {
  font-size: 13px !important;
  font-weight: 700 !important;
  background: transparent !important;
  padding: 0 !important;
}

#view-dashboard .fx-weekly-summary li.fx-trend--positive strong {
  color: #059669 !important;
}

#view-dashboard .fx-weekly-summary li.fx-trend--negative strong {
  color: #ef4444 !important;
}

#view-dashboard .fx-btn-outline {
  margin-top: 12px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--fx-mw-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

#view-dashboard .fx-btn-outline:hover {
  border-color: color-mix(in srgb, var(--fx-dash-primary) 28%, transparent);
  color: var(--fx-dash-primary);
}

/* ─── ترکیب بدنی ─── */
#view-dashboard .fx-body-card,
#view-dashboard .fx-body-comp {
  padding: var(--fx-mw-pad) !important;
  gap: 14px !important;
}

#view-dashboard .fx-body-card-head {
  border-bottom: 1px solid var(--fx-mw-border);
  padding-bottom: 12px;
}

#view-dashboard .fx-body-card-head-copy p {
  font-size: 11.5px;
  color: var(--fx-mw-muted);
  margin: 2px 0 0;
}

#view-dashboard .fx-body-card-head-link {
  font-size: 11.5px;
  font-weight: 500;
}

#view-dashboard .fx-body-grid {
  gap: 8px !important;
}

#view-dashboard .fx-body-seg {
  padding: 12px 8px !important;
  border-radius: var(--fx-mw-radius-sm) !important;
  background: color-mix(in srgb, var(--text) 3%, transparent) !important;
  border: 1px solid var(--fx-mw-border);
  gap: 5px !important;
  transition: border-color 0.15s;
}

#view-dashboard .fx-body-seg:hover {
  border-color: color-mix(in srgb, var(--fx-dash-primary) 28%, transparent);
  background: color-mix(in srgb, var(--fx-dash-primary) 4%, transparent) !important;
}

#view-dashboard .fx-body-seg-ico {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-body-seg--fat .fx-body-seg-ico {
  background: color-mix(in srgb, #ef4444 10%, transparent) !important;
  color: #ef4444 !important;
}

#view-dashboard .fx-body-seg--muscle .fx-body-seg-ico {
  background: color-mix(in srgb, #8b5cf6 10%, transparent) !important;
  color: #8b5cf6 !important;
}

#view-dashboard .fx-body-seg--water .fx-body-seg-ico {
  background: color-mix(in srgb, #3b82f6 10%, transparent) !important;
  color: #3b82f6 !important;
}

#view-dashboard .fx-body-seg--bmr .fx-body-seg-ico {
  background: color-mix(in srgb, #f59e0b 10%, transparent) !important;
  color: #f59e0b !important;
}

#view-dashboard .fx-body-seg .lbl {
  font-size: 10px !important;
  font-weight: 500;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-body-seg .val {
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* ─── دستاوردها ─── */
#view-dashboard .fx-achievements-grid {
  gap: 10px;
  justify-content: center;
}

#view-dashboard .fx-achievement-badge {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

#view-dashboard .fx-achievement-badge span {
  font-size: 15px !important;
}

#view-dashboard .fx-achievement-badge small {
  font-size: 8px !important;
}

#view-dashboard .fx-achievement-badge.gold {
  background: color-mix(in srgb, #f59e0b 18%, transparent) !important;
  color: #d97706 !important;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

#view-dashboard .fx-achievement-badge.blue {
  background: color-mix(in srgb, #3b82f6 14%, transparent) !important;
  color: #2563eb !important;
  border: 1px solid color-mix(in srgb, #3b82f6 28%, transparent);
}

#view-dashboard .fx-achievement-badge.purple {
  background: color-mix(in srgb, #8b5cf6 14%, transparent) !important;
  color: #7c3aed !important;
  border: 1px solid color-mix(in srgb, #8b5cf6 28%, transparent);
}

#view-dashboard .fx-achievement > span:last-child {
  font-size: 10.5px;
  color: var(--fx-mw-muted);
  max-width: 90px;
}

/* ─── بنر پیشنهاد ویژه ─── */
#view-dashboard .fx-promo-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  border: none !important;
  box-shadow: none !important;
}

#view-dashboard .fx-promo-banner-inner {
  padding: 20px 22px !important;
  gap: 16px !important;
}

#view-dashboard .fx-promo-banner-ico {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#view-dashboard .fx-promo-kicker {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

#view-dashboard .fx-promo-copy h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
}

#view-dashboard .fx-promo-copy p {
  font-size: 12.5px !important;
  opacity: 0.88;
}

#view-dashboard .fx-promo-cta {
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

#view-dashboard .fx-promo-cta:hover {
  transform: none !important;
  filter: brightness(1.03);
}

/* ─── سفارشی‌سازی ویجت‌ها ─── */
#view-dashboard .fx-customize {
  border: 1px solid var(--fx-mw-border);
  border-radius: var(--fx-mw-radius-sm);
  background: color-mix(in srgb, var(--text) 2%, transparent);
  padding: 0;
}

#view-dashboard .fx-customize summary {
  padding: 12px 16px;
  font-size: 13px;
}

#view-dashboard .fx-customize-chip {
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--fx-mw-border);
  background: transparent;
}

#view-dashboard .fx-customize-chip.is-on {
  background: var(--fx-dash-primary-muted);
  border-color: color-mix(in srgb, var(--fx-dash-primary) 25%, transparent);
  color: var(--fx-dash-primary);
}

/* ─── تم تاریک ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-card--total,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card--total {
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-mw-surface)) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-streak-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-card {
  background: var(--fx-mw-surface) !important;
  border-color: var(--fx-mw-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn {
  background: var(--fx-dark-inset, #21262d) !important;
  border-color: var(--fx-dark-border, rgba(255, 255, 255, 0.08)) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn:hover {
  background: var(--fx-dark-inset, #21262d) !important;
  border-color: var(--fx-dark-border-hover, rgba(255, 255, 255, 0.14)) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-water-cup.is-full,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-water-cup.is-full {
  background: color-mix(in srgb, var(--fx-blue) 60%, transparent) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-delta,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-delta {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #6ee7b7;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-banner,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-banner {
  background: linear-gradient(135deg, #0d3d38 0%, #115e59 100%) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-activity-item,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-activity-item {
  border-bottom-color: var(--fx-mw-border) !important;
}

/* ═══ تم روشن یکپارچه · الهام از کارت‌های برنامه ═══ */
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-card:hover,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-panel-card:hover,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-weekly-card:hover,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-weekly-card:hover,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw-standalone:hover,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw-standalone:hover,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-score-card:hover,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-score-card:hover {
  border-color: color-mix(in srgb, var(--fx-dash-primary) 22%, var(--fx-mw-border)) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-head h3,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-head h3 {
  color: var(--fx-dash-accent);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-head h3,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-head h3 {
  color: var(--fx-dash-primary-dark);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-workout-kpi,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-workout-kpi {
  background: color-mix(in srgb, var(--fx-dash-accent) 5%, var(--fx-mw-surface)) !important;
  border-color: color-mix(in srgb, var(--fx-dash-accent) 14%, var(--fx-mw-border)) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-nutrition-pills li,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-nutrition-pills li,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-stats--pair li,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-stats--pair li {
  background: color-mix(in srgb, var(--fx-dash-primary) 6%, var(--fx-mw-surface)) !important;
  border-color: color-mix(in srgb, var(--fx-dash-primary) 14%, var(--fx-mw-border)) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-ring-center strong,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--workout .fx-hw-ring-center strong {
  color: var(--fx-dash-accent);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-ring-center strong,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw--nutrition .fx-hw-ring-center strong {
  color: var(--fx-dash-primary-dark);
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-programs-head-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-programs-head-ico {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-program-btn,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-program-btn {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-btn,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-btn {
  background: var(--fx-dash-accent) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--np .fx-program-btn,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--np .fx-program-btn {
  background: var(--fx-dash-primary) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-promo-banner,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-promo-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-progress i,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-progress i {
  background: linear-gradient(90deg, var(--fx-dash-accent), var(--fx-dash-primary)) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-progress-row span,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-program-card--wp .fx-program-progress-row span {
  color: var(--fx-dash-accent) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v3 .fx-greet-tasks,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v3 .fx-greet-tasks {
  border-color: color-mix(in srgb, var(--fx-dash-primary) 14%, var(--fx-mw-border)) !important;
  background: linear-gradient(160deg, #ffffff 0%, color-mix(in srgb, var(--fx-dash-primary-soft) 65%, #fff) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v3 .fx-greet-tasks-head,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v3 .fx-greet-tasks-head {
  border-bottom-color: color-mix(in srgb, var(--fx-dash-primary) 18%, var(--fx-mw-border)) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-sleep-cta,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-sleep-cta,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-hw-chart-empty-btn,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-hw-chart-empty-btn,
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-promo-cta,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-promo-cta {
  border-radius: 999px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-activity-item:hover,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-activity-item:hover {
  background: color-mix(in srgb, var(--fx-dash-primary) 4%, transparent) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--weekly,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--weekly {
  background: color-mix(in srgb, #3b82f6 10%, transparent) !important;
  color: #2563eb !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--ops,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--ops {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--sub,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) #view-dashboard .fx-widget-head-ico--sub {
  background: var(--fx-dash-accent-muted) !important;
  color: var(--fx-dash-accent) !important;
}

/* ─── رسپانسیو ─── */
@media (max-width: 768px) {
  #view-dashboard .fx-body-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #view-dashboard .fx-score-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #view-dashboard .fx-promo-banner-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  #view-dashboard .fx-promo-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #view-dashboard .fx-ops-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══ ویجت‌های v4 — خوش‌آمد · فعالیت · وضعیت حساب · ترکیب بدنی · کارهای امروز ═══ */

/* چیدمان v4 — مشترک روشن/تاریک (بدون رنگ) */
html[data-user-panel-theme="fitronix"] .fx-greet-v4.up-dash-greet,
html[data-user-panel-theme="firouzi"] .fx-greet-v4.up-dash-greet {
  position: relative;
  padding: clamp(18px, 2.5vw, 26px) !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-portrait-col,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-portrait-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-pro-label,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-pro-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 10px 5px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-pro-label-ico,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-pro-label-ico {
  width: 18px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-pro-label-ico svg,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-pro-label-ico svg {
  width: 11px !important;
  height: 11px !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-portrait-meta,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-portrait-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 168px !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-stats-col,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-stats-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-topline,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-topline {
  justify-content: flex-end !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-badge-member,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-badge-member {
  display: none !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metrics,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--fx-mw-border, rgba(15, 23, 42, 0.08)) !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 88px !important;
  padding: 12px 10px !important;
  border-radius: 14px !important;
  text-align: center !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-ico {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-ico svg,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-ico svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  display: block !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-body,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-val,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-lbl,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-lbl {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-meta,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-meta {
  margin-top: 4px !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .up-dash-greet-name-row,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .up-dash-greet-name-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 6px !important;
}

html[data-user-panel-theme="fitronix"] .fx-greet-v4 .up-dash-greet-name-row h2,
html[data-user-panel-theme="firouzi"] .fx-greet-v4 .up-dash-greet-name-row h2 {
  margin: 0 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}

/* v4 — رنگ و سطح (فقط تم روشن) */
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4.up-dash-greet,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4.up-dash-greet {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #eff6ff 100%) !important;
  border: 1px solid color-mix(in srgb, var(--fx-dash-primary, #2563eb) 12%, #e2e8f0) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(37, 99, 235, 0.06) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4::before,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--fx-dash-primary, #2563eb), var(--fx-dash-accent, #f97316));
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-portrait-col,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-portrait-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 10px 5px 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%) !important;
  border: 1px solid color-mix(in srgb, var(--fx-dash-accent, #f97316) 28%, #e2e8f0) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  white-space: nowrap !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro {
  border-color: color-mix(in srgb, #d4af37 32%, #2563eb) !important;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 45%, #ecfdf5 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pending,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pending {
  border-color: color-mix(in srgb, #94a3b8 35%, #e2e8f0) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-ico {
  width: 18px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--fx-dash-accent, #f97316) 14%, #fff) !important;
  color: var(--fx-dash-accent, #f97316) !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro .fx-greet-pro-label-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro .fx-greet-pro-label-ico {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(16, 185, 129, 0.15)) !important;
  color: #d97706 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-ico svg,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-ico svg {
  width: 11px !important;
  height: 11px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-brand,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-brand {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-tier,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label-tier {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: linear-gradient(90deg, #f97316, #fb923c) !important;
  box-shadow: 0 1px 3px rgba(249, 115, 22, 0.28) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro .fx-greet-pro-label-tier,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pro .fx-greet-pro-label-tier {
  background: linear-gradient(90deg, #2563eb, #10b981) !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.28) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pending .fx-greet-pro-label-tier,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-pro-label.is-pending .fx-greet-pro-label-tier {
  background: linear-gradient(90deg, #64748b, #94a3b8) !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 10px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-portrait-meta,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-portrait-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 168px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-expiry--portrait,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-expiry--portrait {
  margin: 0 !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  color: var(--color-text-secondary, #64748b) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  border: 1px dashed color-mix(in srgb, var(--fx-dash-primary, #2563eb) 22%, #cbd5e1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-dash-greet-chip,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-dash-greet-chip {
  justify-content: center !important;
  width: 100% !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--streak,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--streak {
  border-color: color-mix(in srgb, #f59e0b 35%, #e2e8f0) !important;
  background: color-mix(in srgb, #f59e0b 8%, #fff) !important;
  color: #d97706 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--done,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--done {
  border-color: color-mix(in srgb, #10b981 32%, #e2e8f0) !important;
  background: color-mix(in srgb, #10b981 8%, #fff) !important;
  color: #059669 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--plan,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-stats-col .up-greet-chip--plan {
  border-color: color-mix(in srgb, #2563eb 28%, #e2e8f0) !important;
  background: color-mix(in srgb, #2563eb 6%, #fff) !important;
  color: #1d4ed8 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-topline,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-topline {
  justify-content: flex-end !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-badge-member,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-badge-member {
  display: none !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metrics,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid color-mix(in srgb, var(--fx-dash-primary) 10%, #e2e8f0) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 88px !important;
  padding: 12px 10px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #e2e8f0 !important;
  text-align: center !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-ico {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: var(--fx-dash-primary-muted, rgba(37, 99, 235, 0.1)) !important;
  color: var(--fx-dash-primary, #2563eb) !important;
  flex-shrink: 0 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-ico svg,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-ico svg {
  width: 17px !important;
  height: 17px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric--height .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric--height .fx-greet-metric-ico {
  background: color-mix(in srgb, #8b5cf6 12%, transparent) !important;
  color: #7c3aed !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric--weight .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric--weight .fx-greet-metric-ico {
  background: color-mix(in srgb, var(--fx-dash-accent, #f97316) 12%, transparent) !important;
  color: var(--fx-dash-accent, #f97316) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-body,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-val,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--fx-dash-navy, #0f172a) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-lbl,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-metric-lbl {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: var(--fx-mw-muted, #94a3b8) !important;
  line-height: 1.3 !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-meta,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-meta {
  margin-top: 4px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-sub,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-sub {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--text-secondary, #64748b) !important;
  max-width: 42ch !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-expiry,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-expiry {
  margin: 8px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--fx-mw-muted, #94a3b8) !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-name-row,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-name-row {
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 6px !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-name-row h2,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .up-dash-greet-name-row h2 {
  margin: 0 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}

/* hide legacy pill stats if still present */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-stats,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-stats {
  display: none !important;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-tasks,
html[data-user-panel-theme="firouzi"]:not([data-theme="dark"]) .fx-greet-v4 .fx-greet-tasks {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid color-mix(in srgb, var(--fx-dash-primary) 14%, #e2e8f0) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

#view-dashboard .fx-tasks-prog-track {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  margin: 0 0 10px;
  overflow: hidden;
}

#view-dashboard .fx-tasks-prog-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fx-dash-primary, #2563eb), #60a5fa);
  transition: width 0.35s ease;
}

#view-dashboard .fx-task-v4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

#view-dashboard .fx-task-v4:hover {
  background: color-mix(in srgb, var(--fx-dash-primary) 5%, transparent);
  border-color: color-mix(in srgb, var(--fx-dash-primary) 12%, transparent);
}

#view-dashboard .fx-task-v4 .fx-task-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

#view-dashboard .fx-task-v4 .fx-task-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

#view-dashboard .fx-task-v4 .fx-task-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fx-mw-muted);
  flex-shrink: 0;
}

#view-dashboard .fx-task-v4.is-done .fx-task-text {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent);
}

#view-dashboard .fx-task-v4.is-done .fx-task-sub {
  color: #059669;
}

/* ثبت آب داخل ویجت کارهای امروز */
#view-dashboard .fx-tasks-water {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #0284c7 18%, #e2e8f0);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.92));
}

#view-dashboard .fx-tasks-water.is-highlight {
  box-shadow: 0 0 0 2px color-mix(in srgb, #0284c7 35%, transparent);
}

#view-dashboard .fx-tasks-water-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#view-dashboard .fx-tasks-water-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
}

#view-dashboard .fx-tasks-water-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-mw-muted);
}

#view-dashboard .fx-tasks-water-cups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

#view-dashboard .fx-tasks-water-cups .fx-water-cup {
  width: 22px;
  height: 28px;
  border-radius: 4px 4px 8px 8px;
  border: 1.5px solid color-mix(in srgb, #0284c7 25%, #cbd5e1);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

#view-dashboard .fx-tasks-water-cups .fx-water-cup.is-full {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-color: #0284c7;
}

#view-dashboard .fx-tasks-water-actions {
  display: flex;
  gap: 8px;
}

#view-dashboard .fx-tasks-water-btn {
  flex: 1;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #0284c7 22%, #cbd5e1);
  background: #fff;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

#view-dashboard .fx-tasks-water-btn--ghost {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--fx-mw-muted);
}

/* فعالیت‌های اخیر v4 */
#view-dashboard .fx-activities-list--v4 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  flex: 1 1 auto;
}

#view-dashboard .fx-activity-item--v4 {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 4px !important;
  border-bottom: 1px solid var(--fx-mw-border) !important;
  min-height: 48px;
  overflow: visible;
}

#view-dashboard .fx-activity-item--v4:last-child {
  border-bottom: none !important;
}

#view-dashboard .fx-activity-dot {
  display: none !important;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  overflow: visible;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-title {
  display: block;
  width: 100%;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--text) !important;
  white-space: normal;
  word-break: break-word;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-time {
  display: block;
  font-size: 10.5px !important;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fx-mw-muted) !important;
  font-style: normal;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-ico {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  border: none !important;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-ico.workout {
  background: color-mix(in srgb, var(--fx-dash-accent) 12%, transparent) !important;
  color: var(--fx-dash-accent) !important;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-ico.nutrition {
  background: color-mix(in srgb, var(--fx-dash-primary) 12%, transparent) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-activity-item--v4 .fx-activity-ico.weight {
  background: color-mix(in srgb, #8b5cf6 12%, transparent) !important;
  color: #7c3aed !important;
}

#view-dashboard .fx-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  text-align: center;
  color: var(--fx-mw-muted);
  font-size: 12.5px;
}

#view-dashboard .fx-activity-empty-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--fx-dash-primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* وضعیت حساب v5 — لیست افقی */
#view-dashboard .fx-ops-card--v5 {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-ops-card--v5 .fx-ops-head {
  margin-bottom: 4px !important;
}

#view-dashboard .fx-ops-list--v5 {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 6px !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--fx-mw-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: start !important;
  cursor: pointer !important;
  font: inherit !important;
  color: inherit !important;
  transition: background 0.15s ease !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row:last-child {
  border-bottom: none !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row:hover {
  background: color-mix(in srgb, var(--fx-dash-primary) 4%, transparent) !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico svg {
  width: 17px !important;
  height: 17px !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico.fx-ops-ico--blue {
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico.fx-ops-ico--green {
  background: color-mix(in srgb, #10b981 12%, transparent) !important;
  color: #059669 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico.fx-ops-ico--orange {
  background: var(--fx-dash-accent-muted) !important;
  color: var(--fx-dash-accent) !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-ico.fx-ops-ico--purple {
  background: color-mix(in srgb, #8b5cf6 12%, transparent) !important;
  color: #7c3aed !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  min-width: 0 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-hint {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: var(--fx-mw-muted) !important;
  line-height: 1.3 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-value {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: end !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-value--status {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #f59e0b 12%, transparent) !important;
  color: #d97706 !important;
  max-width: 88px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-value--muted {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--fx-mw-muted) !important;
  background: transparent !important;
  padding: 0 !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-value--new {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--fx-dash-primary) 12%, transparent) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-chevron {
  width: 18px !important;
  height: 18px !important;
  color: var(--fx-mw-muted) !important;
  opacity: 0.55 !important;
  flex-shrink: 0 !important;
  display: grid !important;
  place-items: center !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row-chevron svg {
  width: 14px !important;
  height: 14px !important;
}

#view-dashboard .fx-ops-list--v5 .fx-ops-row:hover .fx-ops-row-chevron {
  opacity: 1 !important;
  color: var(--fx-dash-primary) !important;
}

/* override insights-row grid layout for v5 */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-ops-card--v5 .fx-ops-list--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-ops-card--v5 .fx-ops-list--v5 {
  display: flex !important;
  grid-template-columns: none !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-ops-card--v5 .fx-ops-row,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-ops-card--v5 .fx-ops-row {
  min-height: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #eef2f7 !important;
  border-radius: 0 !important;
}

/* ترکیب بدنی v5 — لیست هم‌تراز با ops */
#view-dashboard .fx-body-comp--v5 {
  padding: var(--fx-mw-pad) !important;
}

#view-dashboard .fx-body-comp--v5 .fx-body-card-head {
  margin-bottom: 4px !important;
}

#view-dashboard .fx-body-list--v5 {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 6px !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--fx-mw-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row:last-child {
  border-bottom: none !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-ico {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  background: var(--fx-dash-primary-muted) !important;
  color: var(--fx-dash-primary) !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-ico svg {
  width: 16px !important;
  height: 16px !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row--fat .fx-body-row-ico {
  background: color-mix(in srgb, #ef4444 10%, transparent) !important;
  color: #dc2626 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row--muscle .fx-body-row-ico {
  background: color-mix(in srgb, #8b5cf6 10%, transparent) !important;
  color: #7c3aed !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row--water .fx-body-row-ico {
  background: color-mix(in srgb, #3b82f6 10%, transparent) !important;
  color: #0284c7 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row--bmr .fx-body-row-ico {
  background: color-mix(in srgb, #f59e0b 10%, transparent) !important;
  color: #d97706 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-copy {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row-value {
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: end !important;
}

#view-dashboard .fx-body-list--v5 .fx-body-row--weight .fx-body-row-value { color: var(--fx-dash-primary-dark, #1d4ed8); }
#view-dashboard .fx-body-list--v5 .fx-body-row--fat .fx-body-row-value { color: #dc2626; }
#view-dashboard .fx-body-list--v5 .fx-body-row--muscle .fx-body-row-value { color: #7c3aed; }
#view-dashboard .fx-body-list--v5 .fx-body-row--water .fx-body-row-value { color: #0284c7; }
#view-dashboard .fx-body-list--v5 .fx-body-row--bmr .fx-body-row-value { color: #d97706; }

/* ترکیب بدنی v4 (legacy) */
#view-dashboard .fx-body-comp--v4 .fx-body-card-sub {
  font-size: 11.5px;
  color: var(--fx-mw-muted);
  margin: 2px 0 0;
}

#view-dashboard .fx-body-grid--v4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#view-dashboard .fx-body-comp--v4 .fx-body-seg {
  padding: 14px 10px !important;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

#view-dashboard .fx-body-comp--v4 .fx-body-seg .val {
  font-size: 16px !important;
  letter-spacing: -0.02em;
}

#view-dashboard .fx-body-comp--v4 .fx-body-seg--weight .val { color: var(--fx-dash-primary-dark, #1d4ed8); }
#view-dashboard .fx-body-comp--v4 .fx-body-seg--fat .val { color: #dc2626; }
#view-dashboard .fx-body-comp--v4 .fx-body-seg--muscle .val { color: #7c3aed; }
#view-dashboard .fx-body-comp--v4 .fx-body-seg--water .val { color: #0284c7; }
#view-dashboard .fx-body-comp--v4 .fx-body-seg--bmr .val { color: #d97706; }

@media (max-width: 900px) {
  #view-dashboard .fx-body-grid--v4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-layout,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-layout {
    grid-template-columns: 1fr !important;
  }

  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-portrait-col,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-portrait-col {
    margin-inline: auto !important;
  }

  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-portrait-meta,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-portrait-meta {
    max-width: 100% !important;
  }

  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metrics,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric {
    min-height: 76px !important;
    padding: 10px 6px !important;
  }

  html[data-user-panel-theme="fitronix"] .fx-greet-v4 .fx-greet-metric-val,
  html[data-user-panel-theme="firouzi"] .fx-greet-v4 .fx-greet-metric-val {
    font-size: 13px !important;
  }

  #view-dashboard .fx-ops-list--v5 .fx-ops-row {
    grid-template-columns: auto 1fr auto !important;
    padding: 11px 6px !important;
    gap: 10px !important;
  }

  #view-dashboard .fx-ops-list--v5 .fx-ops-row-hint {
    display: none !important;
  }

  #view-dashboard .fx-ops-list--v5 .fx-ops-row-chevron {
    display: none !important;
  }
}

#view-dashboard .fx-status-badge--warn {
  background: color-mix(in srgb, #f59e0b 14%, transparent) !important;
  color: #d97706 !important;
}

/* ═══ insights-row: هم‌ارتفاع فشرده ═══ */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row {
  align-items: stretch !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row > .fx-dash-card-ref,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row > .fx-dash-card-ref {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row > .fx-dash-card-ref.fx-widget-is-off,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row > .fx-dash-card-ref.fx-widget-is-off,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row > .fx-dash-card-ref[hidden],
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row > .fx-dash-card-ref[hidden] {
  display: none !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-panel-card,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-panel-card,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-ops-card--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-ops-card--v5,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-comp--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-comp--v5,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub--v7,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-hub--v7,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub--v8,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-hub--v8,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub--v9,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-hub--v9 {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-dash-card-head,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-dash-card-head {
  flex: 0 0 auto !important;
  min-height: 52px !important;
  align-items: center !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-dash-card-body,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-dash-card-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub-body,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-hub-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-list--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-list--v5,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-ops-list--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-ops-list--v5,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-activities-list--v4,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-activities-list--v4 {
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-list--v5 .fx-body-row,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-list--v5 .fx-body-row,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-ops-list--v5 .fx-ops-row,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-ops-list--v5 .fx-ops-row,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-activity-item--v4,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-activity-item--v4 {
  flex: none !important;
  min-height: 48px !important;
  padding: 10px 6px !important;
  align-content: center !important;
  overflow: visible !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-grid--v4,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-insights-row .fx-body-grid--v4 {
  flex: 0 1 auto !important;
  align-content: start !important;
  min-height: 0 !important;
  gap: 8px !important;
}

#view-dashboard .fx-ops-card--v5 {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
}

#view-dashboard .fx-ops-card--v5 .fx-ops-list--v5 {
  flex: 0 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 4px !important;
}

#view-dashboard .fx-ops-card--v5 .fx-ops-row {
  flex: none !important;
  min-height: 0 !important;
  align-content: center !important;
  align-items: center !important;
}

#view-dashboard .fx-ops-card--v5 .fx-ops-row:last-child {
  border-bottom: none !important;
}

/* خوش‌آمدگویی — درباره من: ۲ خط + justify */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5 {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px dashed color-mix(in srgb, var(--fx-dash-primary) 22%, #e2e8f0) !important;
  background: color-mix(in srgb, var(--fx-dash-primary) 4%, #fff) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty {
  background: color-mix(in srgb, var(--fx-mw-muted) 6%, #fff) !important;
  border-color: color-mix(in srgb, var(--fx-mw-muted) 28%, #e2e8f0) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about-label,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about-label {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--fx-dash-primary) !important;
  margin-bottom: 6px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty .fx-greet-about-label,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty .fx-greet-about-label,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty .fx-greet-about-label,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty .fx-greet-about-label {
  color: var(--fx-mw-muted) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about-copy,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about-copy {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary, #64748b) !important;
  text-align: start !important;
  text-align-last: start !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  max-height: calc(1.7em * 2) !important;
  word-break: break-word !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty .fx-greet-about-copy,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about.is-empty .fx-greet-about-copy,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty .fx-greet-about-copy,
html[data-user-panel-theme="firouzi"] #view-dashboard .fx-greet-v4 .fx-greet-about--v5.is-empty .fx-greet-about-copy {
  color: var(--fx-mw-muted) !important;
  font-size: 12px !important;
}

/* ─── ستون کناری خوش‌آمد: وضعیت حساب + کارهای امروز ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-side-col,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops--v6,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops--v6 {
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.88)) !important;
  border: 1px solid color-mix(in srgb, var(--fx-dash-primary, #2563eb) 14%, #e2e8f0) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-head,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-title,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-title h3,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ref-blue, #2563eb);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-ico,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-ico {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-ico svg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-ico svg {
  width: 15px;
  height: 15px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-grid,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 10px 9px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile:hover,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-color: color-mix(in srgb, var(--fx-dash-primary, #2563eb) 22%, #e2e8f0);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile-val {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile-lbl,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile--blue .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile--blue .fx-greet-ops-tile-val { color: #2563eb; }
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile--green .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile--green .fx-greet-ops-tile-val { color: #16a34a; }
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile--orange .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile--orange .fx-greet-ops-tile-val { color: #ea580c; }
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-ops-tile--purple .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-ops-tile--purple .fx-greet-ops-tile-val { color: #7c3aed; }

/* ─── ویجت تاریخ و ساعت (ستون کناری خوش‌آمد) ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 {
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,247,237,0.9)) !important;
  border: 1px solid color-mix(in srgb, #ea580c 16%, #e2e8f0) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-head,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fef3e8;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-title,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-title h3,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-ico,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-ico {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-ico svg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-ico svg {
  width: 15px;
  height: 15px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-body,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-block,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-row,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-num,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-num {
  flex-shrink: 0;
  min-width: 88px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #9a3412;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border: 1px solid rgba(234, 88, 12, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #9a3412;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text--en,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text--en {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-clock,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid #eef2f7;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-clock-lbl,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-clock-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-datetime-clock-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-datetime-clock-val {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #0f172a;
  direction: ltr;
}

/* ─── ویجت ادغام‌شده: بدن و فعالیت ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v6,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v6 {
  overflow: hidden;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-head-actions,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-body,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-panel,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-panel {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff, #f8fafc);
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-panel-kicker,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-panel-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-donut-wrap,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-donut-wrap {
  position: relative;
  width: min(100%, 168px);
  margin: 0 auto 8px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-donut-center,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-donut-center strong,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-donut-center strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-donut-center span,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-donut-center span {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-legend,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-legend li,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-legend b,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-legend b {
  margin-inline-start: auto;
  font-size: 12px;
  color: #0f172a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-leg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-leg {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-leg--fat,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-leg--fat { background: #f26522; }
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-leg--muscle,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-leg--muscle { background: #26a69a; }
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-leg--water,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-leg--water { background: #3b82f6; }

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-panel--line,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-panel--line {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-head,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-head h4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-weight-pill,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-weight-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(38, 166, 154, 0.1);
  color: #0d9488;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-box,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-box {
  flex: 1;
  min-height: 140px;
  position: relative;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-metric-tile,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-metric-tile {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #fff;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-metric-ico,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-metric-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(242, 101, 34, 0.1);
  color: #ea580c;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-metric-ico svg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-metric-ico svg {
  width: 18px;
  height: 18px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-metric-copy .lbl,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-metric-copy .lbl {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-metric-copy strong,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-metric-copy strong {
  font-size: 16px;
  color: #0f172a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-feed,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #fff;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-feed-head,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-feed-head h4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-feed-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-feed-hint,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-feed-hint {
  font-size: 10px;
  color: #94a3b8;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-activities,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-activities {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-activities .fx-activity-item--v4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-activities .fx-activity-item--v4 {
  padding: 8px 4px !important;
  border-bottom: 1px solid #eef2f7 !important;
}

@media (max-width: 1100px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-body,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-body {
    grid-template-columns: 1fr;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-chart-panel--line,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-chart-panel--line {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics {
    grid-template-columns: 1fr;
  }
}

/* ─── مرکز روزانه v7: بدن + کارهای امروز + فعالیت ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7 .fx-body-hub-title-wrap,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 .fx-body-hub-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7 .fx-body-hub-title-sub,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 .fx-body-hub-title-sub {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7 .fx-body-hub-body,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 .fx-body-hub-body {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 14px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-right,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today--v7,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today--v7 {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #2563eb 16%, #e2e8f0);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), #fff);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-hero,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 24%, #fff 0%, #f5f9ff 52%, #e8f0fe 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 6px 16px rgba(37, 99, 235, 0.08);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring.is-complete,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring.is-complete {
  background: radial-gradient(circle at 32% 24%, #fff 0%, #f0fdf8 52%, #dcfce7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(16, 185, 129, 0.14),
    0 6px 16px rgba(16, 185, 129, 0.1);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-tasks-ring-svg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-tasks-ring-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 80px;
  height: 80px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-tasks-ring-track,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-tasks-ring-track {
  stroke: rgba(37, 99, 235, 0.14);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-track,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-track {
  stroke: rgba(16, 185, 129, 0.18);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-tasks-ring-fg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-tasks-ring-fg {
  filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.2));
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-fg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-fg {
  filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.22));
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring svg,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring svg {
  display: block;
  width: 80px;
  height: 80px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-tasks-ring-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-tasks-ring-val {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1;
  letter-spacing: -0.02em;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-val,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-val {
  color: #047857;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-tasks-ring-val small,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-tasks-ring-val small {
  font-size: 10px;
  font-weight: 700;
  margin-inline-start: 1px;
  opacity: 0.82;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-hero-copy h4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-hero-copy h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-sub,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-sub {
  margin: 0 0 6px;
  font-size: 11px;
  color: #64748b;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-prog,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-prog {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-track,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-track {
  margin: 0 0 10px !important;
  height: 5px !important;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-track span,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-track span {
  background: linear-gradient(90deg, #2563eb, #60a5fa) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-tasks-list,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-tasks-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-tasks-list .fx-task-hub,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-tasks-list .fx-task-hub {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #e8eef7 !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-tasks-list .fx-task-hub.is-done,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-tasks-list .fx-task-hub.is-done {
  opacity: 0.72;
  background: #f8fafc !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-water,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-water {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, #3b82f6 28%, #dbeafe);
  background: rgba(239, 246, 255, 0.65);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-water.is-highlight,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-water.is-highlight {
  animation: fx-hub-water-pulse 1.2s ease;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

@keyframes fx-hub-water-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7 .fx-body-hub-feed,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 .fx-body-hub-feed {
  flex: 1;
  min-height: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-side-col,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-side-col {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v7 .fx-body-hub-body,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v7 .fx-body-hub-body {
    grid-template-columns: 1fr !important;
  }
}

/* ─── مرکز روزانه v8: بدن + امروز (فعالیت جدا) ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v8,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v8 {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v8 .fx-body-hub-body,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v8 .fx-body-hub-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.75fr) !important;
  grid-template-rows: auto !important;
  gap: 12px !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--line,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--line {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--donut,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--donut {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-metric-tile,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-metric-tile {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today--v8,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today--v8 {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #2563eb 14%, #e2e8f0);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.55), #fff);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-banner,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #e8eef7;
  background: rgba(255, 255, 255, 0.92);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-banner.is-workout-done,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-banner.is-workout-done {
  border-color: color-mix(in srgb, #10b981 28%, #e2e8f0);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), #fff);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-status,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-status {
  margin: 0;
  flex: 1 1 220px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #1e3a8a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-banner.is-workout-done .fx-hub-today-status,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-banner.is-workout-done .fx-hub-today-status {
  color: #047857;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-chips,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-chips .up-dash-greet-chip,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-chips .up-dash-greet-chip {
  width: auto !important;
  justify-content: center !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-chips .up-greet-chip--streak,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-chips .up-greet-chip--streak {
  border-color: color-mix(in srgb, #f59e0b 35%, #e2e8f0) !important;
  background: color-mix(in srgb, #f59e0b 8%, #fff) !important;
  color: #d97706 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-chips .up-greet-chip--done,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-chips .up-greet-chip--done {
  border-color: color-mix(in srgb, #10b981 32%, #e2e8f0) !important;
  background: color-mix(in srgb, #10b981 8%, #fff) !important;
  color: #059669 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-grid,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-grid {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-side,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #eef2f7;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-side-meta,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-side-meta {
  text-align: center;
  width: 100%;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-side-meta h4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-side-meta h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-side .fx-body-hub-today-track,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-side .fx-body-hub-today-track {
  width: 100%;
  margin: 0 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-main,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-portrait-meta .up-dash-greet-details--portrait:empty,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-portrait-meta .up-dash-greet-details--portrait[hidden] {
  display: none !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-today-notice,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-today-notice {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: #475569;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(249, 115, 22, 0.07));
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-today-notice.is-progress,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-today-notice.is-progress {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.08));
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-today-notice.is-complete,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-today-notice.is-complete {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.06));
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-today-notice,
html[data-user-panel-theme="firouzi"][data-theme="dark"]  #view-dashboard .fx-greet-today-notice {
  color: #cbd5e1;
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-today-notice.is-progress,
html[data-user-panel-theme="firouzi"][data-theme="dark"]  #view-dashboard .fx-greet-today-notice.is-progress {
  color: #5eead4;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-today-notice.is-complete,
html[data-user-panel-theme="firouzi"][data-theme="dark"]  #view-dashboard .fx-greet-today-notice.is-complete {
  color: #86efac;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-greet-portrait-meta .fx-greet-today-notice[hidden],
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-greet-portrait-meta .fx-greet-today-notice[hidden] {
  display: none !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-activity-card--v8,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-insights-row .fx-activity-card--v8 {
  margin-top: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub--v8,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-insights-row .fx-body-hub--v8 {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 1100px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 {
    grid-template-columns: 1fr 1fr !important;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-metric-tile,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-metric-tile {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 {
    grid-template-columns: 1fr !important;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--line,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--line,
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--donut,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v8 .fx-body-hub-chart-panel--donut {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today-grid,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today-grid {
    grid-template-columns: 1fr;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-hub-today-chips,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-hub-today-chips {
    justify-content: flex-start;
  }
}

/* ─── مرکز روزانه v9: ترکیب بدنی | کارهای امروز (کنار هم) ─── */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v9,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v9 {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub--v9 .fx-body-hub-body,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub--v9 .fx-body-hub-body {
  display: block !important;
  padding: 0 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-split--v9,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-split--v9 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

/* فریم مشترک v9 — ترکیب بدنی + کارهای امروز */
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-pane--v9,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-pane--v9 {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #2563eb 14%, #e2e8f0);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.55), #fff);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 {
  min-width: 0 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-head,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-head h4,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-link,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-link {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #2563eb 18%, #e2e8f0);
  background: rgba(255, 255, 255, 0.9);
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-grid,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  align-content: start !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--donut,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--donut {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--line,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--line {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex;
  flex-direction: column;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-today--v9 .fx-body-hub-today-grid,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-today--v9 .fx-body-hub-today-grid {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-body-hub--v9,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-insights-row .fx-body-hub--v9 {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-activity-card--v9.fx-widget-is-off,
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-insights-row .fx-activity-card--v9.fx-widget-is-off,
html[data-user-panel-theme="fitronix"] #view-dashboard .fx-insights-row .fx-activity-card--v9[hidden],
html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-insights-row .fx-activity-card--v9[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-split--v9,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-split--v9 {
    grid-template-columns: 1fr !important;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-grid,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics-grid,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--line,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--line,
  html[data-user-panel-theme="fitronix"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--donut,
  html[data-user-panel-theme="firouzi"]  #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel--donut {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}
