@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&display=swap");

* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: var(--fp-bg-page);
  --panel: var(--fp-surface);
  --panel-2: var(--fp-surface-raised);
  --border: var(--fp-border);
  --border-strong: var(--fp-border-strong);
  --text: var(--fp-text-primary);
  --muted: var(--fp-text-muted);
  --muted-2: var(--fp-text-muted);
  --blue: var(--fp-info);
  --blue-2: var(--fp-info);
  --cyan: var(--fp-info);
  --green: var(--fp-success);
  --amber: var(--fp-warning);
  --rose: var(--fp-danger);
  --shadow: var(--fp-shadow-soft);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef5fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(246, 250, 255, 0.96);
  --border: rgba(52, 69, 70, 0.12);
  --border-strong: rgba(110, 159, 194, 0.16);
  --text: #152238;
  --muted: #54637a;
  --muted-2: #6b7a90;
  --shadow: 0 20px 52px rgba(52, 69, 70, 0.12);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Heebo", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 155, 255, 0.22), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(53, 207, 223, 0.12), transparent 22%),
    radial-gradient(circle at 88% 86%, rgba(224, 169, 64, 0.06), transparent 24%),
    var(--bg);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 10%, rgba(22, 127, 220, 0.12), transparent 25%),
    radial-gradient(circle at 82% 14%, rgba(26, 169, 186, 0.09), transparent 23%),
    radial-gradient(circle at 86% 84%, rgba(178, 121, 15, 0.05), transparent 20%),
    linear-gradient(180deg, #eef4fc 0%, #f3f8fd 100%);
}

a { color: inherit; }

.dashboard-shell {
  width: min(1500px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 40px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(8, 13, 24, 0.94));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 252, 0.94)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(52, 69, 70, 0.1);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-close,
.mobile-topbar,
.mobile-backdrop {
  display: none;
}

.brand {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(90deg, #f3f0e8 5%, #93c5fd 48%, #78d9ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.sidebar-section-label {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-coach-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 200, 180, 0.24);
  background: linear-gradient(135deg, rgba(110, 159, 194, 0.2), rgba(53, 207, 223, 0.14));
  color: #eaf2ff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(32, 43, 44, 0.22);
}

html[data-theme="light"] .drawer-coach-link {
  color: #17324d;
  border-color: rgba(110, 159, 194, 0.16);
  background: linear-gradient(135deg, rgba(110, 159, 194, 0.12), rgba(53, 207, 223, 0.08));
  box-shadow: 0 12px 28px rgba(52, 69, 70, 0.08);
}

.sidebar-nav a,
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #d6deeb;
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-unread-badge {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #062031;
  background: #78d9ff;
  font-size: 11px;
  font-weight: 900;
}
.nav-unread-badge[hidden] { display: none; }

html[data-theme="light"] .sidebar-nav a,
html[data-theme="light"] .sidebar-footer a {
  color: #1d2d45;
}

.sidebar-nav a:hover,
.sidebar-footer a:hover,
.sidebar-nav a.active {
  transform: translateX(2px);
  background: rgba(110, 159, 194, 0.09);
  border-color: rgba(110, 159, 194, 0.22);
}

html[data-theme="light"] .sidebar-nav a:hover,
html[data-theme="light"] .sidebar-nav a.active {
  background: rgba(110, 159, 194, 0.08);
  border-color: rgba(110, 159, 194, 0.16);
}

.sidebar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  justify-content: flex-start;
}

.sidebar-footer span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 207, 223, 0.24);
  color: #78d9ff;
  background: rgba(53, 207, 223, 0.08);
  font-size: 12px;
  font-weight: 900;
}

html[data-theme="light"] .sidebar-footer span {
  border-color: rgba(53, 207, 223, 0.18);
  color: #166534;
  background: rgba(53, 207, 223, 0.08);
}

.sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sidebar-logout:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(251, 113, 133, 0.44);
  background: rgba(251, 113, 133, 0.14);
}

.sidebar-logout:disabled {
  cursor: wait;
  opacity: 0.7;
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

#dashboardContent {
  min-width: 0;
  display: grid;
  gap: 14px;
}

#dashboardContent > *,
.dashboard-grid,
.stats-grid,
.card,
.schedule-card,
.weekly-schedule-board,
.exercise-preview {
  min-width: 0;
}

.mobile-brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.dashboard-search {
  position: relative;
  z-index: 20;
}

.sidebar-search {
  display: none;
}

.desktop-search {
  display: block;
  width: min(360px, 100%);
}

.dashboard-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(142, 157, 153, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

html[data-theme="light"] .dashboard-search input {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(52, 69, 70, 0.16);
  box-shadow: 0 10px 24px rgba(52, 69, 70, 0.04);
}

.dashboard-search input:focus {
  border-color: rgba(110, 159, 194, 0.38);
  box-shadow: 0 0 0 3px rgba(110, 159, 194, 0.12);
}

.dashboard-search-results {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  display: grid;
  gap: 6px;
  max-height: min(330px, 56vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(110, 159, 194, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32, 43, 44, 0.98), rgba(8, 13, 24, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .dashboard-search-results {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  border-color: rgba(52, 69, 70, 0.12);
  box-shadow: 0 18px 36px rgba(52, 69, 70, 0.12);
}

.dashboard-search-results[hidden] {
  display: none;
}

.dashboard-search-result,
.dashboard-search-empty {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
}

.dashboard-search-result {
  color: var(--text);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

html[data-theme="light"] .dashboard-search-result {
  background: rgba(110, 159, 194, 0.03);
}

.dashboard-search-result:hover,
.dashboard-search-result:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(127, 200, 180, 0.28);
  background: rgba(110, 159, 194, 0.12);
  outline: none;
}

.dashboard-search-result span {
  font-size: 14px;
  font-weight: 900;
}

.dashboard-search-result small,
.dashboard-search-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 6px;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.eyebrow,
.card-kicker {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-row h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f3f0e8 18%, #a8d6c8 50%, #6e9fc2 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-row p,
.muted,
.status {
  color: var(--muted);
}

.hero-actions {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: min(260px, 100%);
}

.hero-actions {
  justify-items: start;
}

.hero-theme-toggle {
  width: fit-content;
  min-width: 174px;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcut,
.hero-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(142, 157, 153, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e3ecfb;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

html[data-theme="light"] .hero-shortcut,
html[data-theme="light"] .hero-secondary-action {
  color: #17324d;
  border-color: rgba(52, 69, 70, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.hero-shortcut:hover,
.hero-secondary-action:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 159, 194, 0.34);
  background: rgba(110, 159, 194, 0.09);
}

.chat-link,
.primary-action,
.secondary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.chat-link {
  margin-top: 34px;
  color: #e0e7ff;
  background: linear-gradient(135deg, rgba(110, 159, 194, 0.92), rgba(53, 207, 223, 0.7));
  box-shadow: 0 16px 38px rgba(110, 159, 194, 0.24);
}

.status {
  min-height: 24px;
  margin: 0;
}

.status.error {
  color: #e39a9a;
}

.hidden { display: none !important; }

.tools-accordion {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.tools-accordion-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 18px 14px;
  cursor: pointer;
  list-style: none;
}

.tools-accordion-summary::-webkit-details-marker {
  display: none;
}

.tools-accordion-summary h2 {
  margin: 4px 0 0;
}

.tools-accordion-arrow {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.tools-accordion[open] .tools-accordion-arrow {
  transform: rotate(180deg);
}

.tools-accordion > .muted {
  padding: 0 18px 14px;
}

.tools-accordion-grid {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-accordion-card {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid article,
.card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .stats-grid article,
html[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 253, 0.94));
  border-color: rgba(52, 69, 70, 0.11);
}

.stats-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  min-height: 128px;
}

.stats-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--stat-accent);
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.stats-grid strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats-grid small {
  min-height: 18px;
  color: #7f8b9f;
}

.stats-grid small a {
  color: #93c5fd;
  text-decoration: none;
}

.stats-grid article:nth-child(1) { --stat-accent: var(--green); }
.stats-grid article:nth-child(2) { --stat-accent: var(--rose); }
.stats-grid article:nth-child(3) { --stat-accent: var(--cyan); }
.stats-grid article:nth-child(4) { --stat-accent: var(--amber); }
.stats-grid article:nth-child(1) strong { color: #78d9ff; }
.stats-grid article:nth-child(2) strong { color: #e39a9a; }
.stats-grid article:nth-child(3) strong { color: #8fb8cf; }
.stats-grid article:nth-child(4) strong { color: #e0b878; }

.chart-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.chart-card header,
.card header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(110, 159, 194, 0.12);
  font-size: 21px;
}

.card h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  margin-top: 14px;
  padding: 16px 8px 8px;
  border-radius: 18px;
  border: 1px solid rgba(142, 157, 153, 0.08);
  background:
    linear-gradient(to top, rgba(142, 157, 153, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

html[data-theme="light"] .activity-chart,
html[data-theme="light"] .schedule-day {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 253, 0.92));
}

html[data-theme="light"] .activity-chart {
  border-color: rgba(52, 69, 70, 0.08);
}

.activity-bar {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 180px;
}

.activity-track {
  position: relative;
  height: 160px;
  display: flex;
  align-items: flex-end;
}

.activity-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(127, 200, 180, 0.98), rgba(110, 159, 194, 0.7));
  box-shadow: 0 10px 24px rgba(110, 159, 194, 0.2);
}

.activity-label {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activity-value {
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  color: #bcc6c2;
}

.schedule-card {
  padding: 20px;
}

.schedule-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.schedule-shift {
  margin-left: auto;
  white-space: nowrap;
}

.weekly-schedule-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.schedule-day {
  position: relative;
  min-height: 156px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(142, 157, 153, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 24, 0.5);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

html[data-theme="light"] .schedule-day {
  border-color: rgba(52, 69, 70, 0.1);
}

.schedule-day.is-drop-target {
  border-color: rgba(110, 159, 194, 0.45);
  box-shadow: 0 0 0 2px rgba(110, 159, 194, 0.16) inset;
  transform: translateY(-2px);
}

.schedule-day.is-today {
  border-color: rgba(53, 207, 223, 0.26);
  background:
    linear-gradient(180deg, rgba(53, 207, 223, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 24, 0.56);
}

html[data-theme="light"] .schedule-day.is-today {
  background:
    linear-gradient(180deg, rgba(53, 207, 223, 0.07), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.94);
}

.schedule-day-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-day-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #bcc6c2;
  background: rgba(110, 159, 194, 0.13);
  font-size: 12px;
}

.schedule-slot {
  display: grid;
  place-items: center;
  min-height: 102px;
  margin-top: 10px;
}

.schedule-workout {
  width: 100%;
  min-height: 92px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(110, 159, 194, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(110, 159, 194, 0.2), rgba(53, 207, 223, 0.12));
  color: var(--text);
  text-align: start;
  cursor: grab;
  box-shadow: 0 18px 34px rgba(110, 159, 194, 0.16);
  animation: schedule-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.schedule-workout:active {
  cursor: grabbing;
}

.schedule-workout.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.schedule-workout-name {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.schedule-workout-meta {
  color: #bcc6c2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-rest {
  display: grid;
  gap: 6px;
  place-items: center;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  min-height: 92px;
}

.schedule-rest span {
  font-size: 22px;
}

.schedule-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 16px;
  border: 1px dashed rgba(142, 157, 153, 0.15);
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

@keyframes schedule-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.28);
}

.card::after {
  content: "";
  position: absolute;
  top: -86px;
  right: -86px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(34px);
  pointer-events: none;
  background: var(--card-glow);
}

.next-workout-card { --card-glow: #2f9bff; }
.nutrition-card { --card-glow: #52c98a; }
.recent-card { --card-glow: #35cfdf; }
.progress-card { --card-glow: #e0a940; }
.quick-food-card { --card-glow: #52c98a; }
.manual-card { --card-glow: #2f9bff; }

.next-workout-card .card-icon { background: rgba(47, 155, 255, 0.14); }
.nutrition-card .card-icon { background: rgba(82, 201, 138, 0.14); }
.recent-card .card-icon { background: rgba(53, 207, 223, 0.14); }
.progress-card .card-icon { background: rgba(224, 169, 64, 0.14); }
.quick-food-card .card-icon { background: rgba(82, 201, 138, 0.14); }
.manual-card .card-icon { background: rgba(47, 155, 255, 0.14); }

.exercise-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.exercise-preview span {
  padding: 7px 10px;
  border-radius: 10px;
  color: #d6e0ec;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(47, 155, 255, 0.12);
  font-size: 12px;
}

.primary-action {
  margin-top: auto;
  color: var(--fp-text-inverse);
  background: linear-gradient(135deg, #167fdc, #2f9bff);
}

.secondary-action {
  align-self: flex-start;
  margin-top: auto;
  color: #f3f0e8;
  border-color: rgba(53, 207, 223, 0.3);
  background: rgba(53, 207, 223, 0.1);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.macro-grid div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.macro-grid strong {
  font-size: 26px;
  line-height: 1;
}

.macro-grid span {
  color: var(--muted);
  font-size: 12px;
}

.quick-food-input {
  width: 100%;
  min-height: 128px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.quick-food-input:focus {
  border-color: rgba(53, 207, 223, 0.55);
  box-shadow: 0 0 0 3px rgba(53, 207, 223, 0.12);
}

.quick-food-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.text-action {
  color: #bcc6c2;
  background: transparent;
  border: 1px solid rgba(110, 159, 194, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.text-action:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 159, 194, 0.34);
  background: rgba(110, 159, 194, 0.08);
}

.quick-food-result {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.quick-food-result strong {
  font-size: 23px;
  color: #d1fae5;
}

.quick-food-result span {
  color: #bcc6c2;
  font-weight: 650;
}

.quick-food-result p {
  margin: 0;
  color: #bcc6c2;
}

.quick-food-result.muted { color: var(--muted); }

.athlete-core-prompt {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 13, 13, 0.62);
  backdrop-filter: blur(10px);
}

.athlete-core-prompt.hidden { display: none; }

.athlete-core-prompt-card {
  width: min(520px, 100%);
  padding: 26px;
  border-radius: 26px;
  color: #eef6ff;
  text-align: center;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 159, 194, 0.16), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(52, 211, 153, 0.14), transparent 36%),
    rgba(26, 35, 36, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  animation: rise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.athlete-core-prompt-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(53, 207, 223, 0.28), rgba(110, 159, 194, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 28px;
}

.athlete-core-prompt-card h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
}

.athlete-core-prompt-card p {
  margin: 0;
  color: #b8c8dd;
  line-height: 1.65;
}

.athlete-core-prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.athlete-core-prompt-actions .primary-action,
.athlete-core-prompt-actions .text-action {
  width: auto;
  min-width: 150px;
}

.recent-details {
  display: grid;
  gap: 9px;
  margin: 18px 0 20px;
}

.recent-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.recent-details strong { color: #e2e8f0; }

.stats-grid article,
.card,
.chart-card {
  animation: rise 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stats-grid article:nth-child(2),
.nutrition-card { animation-delay: 0.06s; }
.stats-grid article:nth-child(3),
.recent-card { animation-delay: 0.12s; }
.stats-grid article:nth-child(4),
.progress-card { animation-delay: 0.18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The sidebar used to collapse to a single static column here while the
   off-canvas drawer only started at 520px, so every width from 521px to
   1100px rendered the full-height sidebar stacked ABOVE the dashboard and
   pushed the primary actions off the first screen. The drawer block below
   now covers this whole band instead. */

@media (max-width: 900px) {
  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tools-accordion-grid {
    grid-template-columns: 1fr;
  }

  .weekly-schedule-board {
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-row {
    flex-direction: column;
  }

  .chat-link {
    margin-top: 0;
  }

  .activity-chart {
    min-height: 180px;
  }
}

/* Off-canvas drawer navigation. This covers every width up to the desktop
   two-column breakpoint -- phones AND tablets -- so the sidebar never
   consumes the top of the page in flow. Phone-only cosmetics stay in the
   520px block further down. */
@media (max-width: 1100px) {
  body.drawer-open {
    overflow: hidden;
  }

  .dashboard-shell {
    display: block;
  }

  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 13, 13, 0.62);
    transition: opacity 0.24s ease;
  }

  body.drawer-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    width: min(84vw, 320px);
    height: 100vh;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: max(18px, env(safe-area-inset-top)) 16px 18px;
    border-radius: 0 24px 24px 0;
    transform: translateX(-104%);
    transition: transform 0.26s ease;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  }

  html[dir="rtl"] .sidebar {
    inset: 0 0 0 auto;
    border-radius: 24px 0 0 24px;
    transform: translateX(104%);
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
  }

  .brand {
    display: block;
    margin-bottom: 0;
    font-size: 23px;
  }

  .sidebar-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(142, 157, 153, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .sidebar-nav a,
  .sidebar-footer a {
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 14px;
    text-align: start;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    margin-top: 0;
    padding-top: 8px;
  }

  .sidebar-footer span {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 34px;
    padding: 7px 12px;
    text-align: start;
    font-size: 12px;
  }

  .sidebar-logout {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: start;
    font-size: 14px;
  }

  .dashboard-main {
    gap: 14px;
    width: 100%;
    max-width: 100vw;
    padding: max(12px, env(safe-area-inset-top)) 12px 20px;
    overflow-x: hidden;
  }

  .mobile-topbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 70;
    padding: 6px 0 14px;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.98), rgba(5, 8, 18, 0.78) 78%, rgba(5, 8, 18, 0));
    backdrop-filter: blur(12px);
  }

  .mobile-menu-button,
  .mobile-search-button,
  .mobile-profile-button {
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(142, 157, 153, 0.16);
    background: rgba(11, 18, 32, 0.88);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  }

  .mobile-menu-button,
  .mobile-profile-button {
    height: 44px;
    width: 44px;
  }

  .mobile-menu-button {
    cursor: pointer;
    padding: 0;
  }

  .mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 1px 0;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-search-button {
    width: 100%;
    grid-template-columns: auto 1fr;
    gap: 10px;
    justify-content: start;
    padding: 0 16px;
    text-align: start;
    cursor: pointer;
    border-radius: 16px;
  }

  .mobile-search-icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.88;
  }

  .mobile-search-label {
    display: block;
    overflow: hidden;
    color: #c9d6ea;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Phone-only layout. Everything below here is sizing/spacing that must NOT
   leak into the tablet band -- the drawer behaviour it used to be bundled
   with now lives in the 1100px block above. */
@media (max-width: 520px) {
  .dashboard-shell {
    width: 100%;
    padding: 0 0 18px;
    gap: 0;
  }

  .hero-row {
    min-height: 42vh;
    padding: 14px 2px 2px;
    gap: 14px;
    border-radius: 22px;
    margin-top: 2px;
    justify-content: end;
  }

  .hero-row > div {
    width: 100%;
  }

  .hero-row h1 {
    margin: 6px 0 6px;
    font-size: clamp(34px, 9vw, 42px);
  }

  .hero-row p {
    max-width: 24ch;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-shortcuts {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .hero-shortcut {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .hero-actions {
    width: 100%;
    min-width: 0;
  }

  .chat-link {
    width: 100%;
    margin-top: 2px;
    min-height: 56px;
    border-radius: 18px;
    font-size: 16px;
    box-shadow: 0 18px 42px rgba(110, 159, 194, 0.26);
  }

  .card,
  .chart-card,
  .stats-grid article {
    border-radius: 18px;
  }

  .eyebrow,
  .card-kicker {
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .schedule-card,
  .card,
  .chart-card,
  .stats-grid article { padding: 15px; }

  .tools-accordion {
    order: 5;
  }

  .tools-accordion-summary {
    padding: 16px 16px 12px;
  }

  .tools-accordion > .muted,
  .tools-accordion-grid {
    padding-inline: 16px;
  }

  .tools-accordion-grid {
    padding-bottom: 16px;
  }

  .schedule-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .schedule-shift {
    margin-left: 0;
    width: 100%;
  }

  #scheduleHint {
    display: none;
  }

  .weekly-schedule-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 72vw);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .schedule-day {
    min-width: 142px;
    min-height: 126px;
    scroll-snap-align: start;
  }

  .schedule-day strong,
  .schedule-day span { overflow-wrap: anywhere; }

  .dashboard-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(176px, 82vw);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    min-height: auto;
    padding: 16px;
  }

  .card h2 {
    font-size: 18px;
  }

  .card p,
  .muted {
    font-size: 14px;
    line-height: 1.45;
  }

  .stats-grid strong {
    font-size: 34px;
  }

  .stats-grid article {
    min-height: 112px;
    scroll-snap-align: start;
  }

  .next-workout-card {
    order: 1;
  }

  .nutrition-card {
    order: 2;
  }

  .schedule-card {
    order: 3;
  }

  .stats-grid {
    order: 4;
  }

  .activity-chart {
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 8px 8px;
    scroll-snap-type: x proximity;
  }

  .activity-bar {
    min-height: 160px;
    scroll-snap-align: start;
  }

  .exercise-preview {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .exercise-preview span {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 11px;
  }

  .primary-action,
  .secondary-action,
  .text-action {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    margin-top: 12px;
  }

  .macro-grid {
    gap: 10px;
    margin: 14px 0 12px;
  }

  .macro-grid div {
    padding: 12px;
  }

  .macro-grid strong {
    font-size: 22px;
  }

  .quick-food-card,
  .recent-card,
  .manual-card {
    min-height: auto;
  }

  .quick-food-input {
    min-height: 88px;
    margin-top: 10px;
    padding: 12px 13px;
    font-size: 15px;
  }

  .quick-food-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .quick-food-actions .secondary-action,
  .text-action,
  .primary-action {
    width: 100%;
  }

  .quick-food-result {
    padding: 12px 13px;
  }

  .quick-food-result strong {
    font-size: 19px;
  }

  #dashboardStatus {
    font-size: 14px;
  }

  .sidebar-search {
    display: block;
  }

  .desktop-search {
    display: none;
  }

  .dashboard-search-results {
    max-height: 46vh;
  }

  .weekly-schedule-board::-webkit-scrollbar,
  .activity-chart::-webkit-scrollbar,
  .stats-grid::-webkit-scrollbar,
  .exercise-preview::-webkit-scrollbar,
  .hero-shortcuts::-webkit-scrollbar {
    height: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   FuelPhysique dashboard layout refresh
   ========================================================= */

/* Paired with the max-width:520px phone block below. The two deliberately
   OVERLAP at exactly 520px rather than meeting at 520/521: a CSS viewport
   width is fractional, so a 520.5px viewport matched neither `max-width:
   520px` nor `min-width: 521px` and the quick-action grid lost its
   `display: grid` entirely, falling back to block layout. Overlap is safe
   because the phone block is later in source order and wins at 520px; a gap
   is not. Keep both edges on the same number. */
@media (min-width: 520px) {
  .drawer-coach-link {
    display: none !important;
  }

  .hero-row {
    align-items: flex-start;
    padding-bottom: 2px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-actions {
    min-width: 0;
    margin-inline-start: auto;
    justify-items: end;
  }

  .dashboard-primary-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .dashboard-action {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px 18px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 17px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    min-width: 0;
    height: 100%;
    box-shadow: 0 14px 34px rgba(8, 13, 13, 0.22);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  }

  .dashboard-action::before {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
  }

  .dashboard-action::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 42%);
    pointer-events: none;
  }

  .dashboard-action:hover,
  .dashboard-action:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }

  .dashboard-action:focus-visible {
    outline: 3px solid #f3f7ff;
    outline-offset: 3px;
  }

  .dashboard-action:active {
    transform: translateY(0);
    filter: brightness(.96);
  }

  .dashboard-action--coach {
    background: linear-gradient(135deg, #1fb6c9, #35cfdf);
    border-color: rgba(53, 207, 223, .42);
    box-shadow: 0 16px 38px rgba(53, 207, 223, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--coach::before { content: "💬"; }

  .dashboard-action--workout {
    background: linear-gradient(135deg, #167fdc, #2f9bff);
    border-color: rgba(47, 155, 255, .42);
    box-shadow: 0 16px 38px rgba(47, 155, 255, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--workout::before { content: "🏋️"; }

  .dashboard-action--nutrition {
    background: linear-gradient(135deg, #6cb45f, #8ed081);
    border-color: rgba(142, 208, 129, .42);
    box-shadow: 0 16px 38px rgba(142, 208, 129, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--nutrition::before { content: "🥗"; }

  .dashboard-action--progress {
    background: linear-gradient(135deg, #c99c47, #e7bd67);
    border-color: rgba(231, 189, 103, .42);
    box-shadow: 0 16px 38px rgba(231, 189, 103, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--social {
    background: linear-gradient(135deg, #4f64c8, #7286f5);
    border-color: rgba(114, 134, 245, .5);
    box-shadow: 0 16px 38px rgba(79, 100, 200, .24);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--social::before { content: "💬"; }

  .dashboard-action--progress::before { content: "📈"; }

  .dashboard-search--wide {
    display: block;
    width: 100%;
    max-width: none;
    z-index: 35;
  }

  .dashboard-search--wide input {
    height: 56px;
    padding-inline: 18px;
    border-radius: 17px;
    font-size: 15px;
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 14px 34px rgba(8, 13, 13, .14);
  }

  html[data-theme="light"] .dashboard-search--wide input {
    background: rgba(255, 255, 255, .94);
  }

  .workout-history-card {
    --card-glow: #35cfdf;
    --card-border: rgba(53, 207, 223, .4);
    min-height: 0;
  }

  .workout-history-card .card-icon {
    background: rgba(53, 207, 223, .14);
  }

  .workout-history-card .secondary-action {
    margin-top: auto;
  }
}

@media (min-width: 520px) and (max-width: 1080px) {
  .dashboard-primary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 11px 10px;
    border: 1px solid rgba(142, 157, 153, .16);
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    min-width: 0;
    height: 100%;
  }

  .dashboard-action--coach {
    background: linear-gradient(135deg, #1fb6c9, #35cfdf);
    border-color: rgba(53, 207, 223, .42);
    box-shadow: 0 16px 38px rgba(53, 207, 223, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--workout {
    background: linear-gradient(135deg, #167fdc, #2f9bff);
    border-color: rgba(47, 155, 255, .42);
    box-shadow: 0 16px 38px rgba(47, 155, 255, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--nutrition {
    background: linear-gradient(135deg, #6cb45f, #8ed081);
    border-color: rgba(142, 208, 129, .42);
    box-shadow: 0 16px 38px rgba(142, 208, 129, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--progress {
    background: linear-gradient(135deg, #c99c47, #e7bd67);
    border-color: rgba(231, 189, 103, .42);
    box-shadow: 0 16px 38px rgba(231, 189, 103, .2);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--social {
    background: linear-gradient(135deg, #4f64c8, #7286f5);
    border-color: rgba(114, 134, 245, .5);
    box-shadow: 0 16px 38px rgba(79, 100, 200, .24);
    color: var(--fp-text-inverse);
  }

  .dashboard-action--social::before { content: "💬"; }

  .dashboard-action:focus-visible {
    outline: 3px solid #f3f7ff;
    outline-offset: 3px;
  }

  .dashboard-action:active {
    filter: brightness(.96);
  }

  .workout-history-card { order: 3; }
  .missed-card { order: 4; }
  .tools-accordion { order: 5; }
}

@media (max-width: 360px) {
  .dashboard-primary-actions {
    grid-template-columns: 1fr;
  }
}


/* ── Progress photo teaser card ── */
.progress-teaser-card {
  margin-top: 20px;
}

.progress-teaser-compare {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.progress-teaser-photo {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #060d1a;
  aspect-ratio: 2/3;
  max-height: 420px;
}

.progress-teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(0.92);
}

.progress-teaser-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(8, 13, 13,.85) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.progress-teaser-vs {
  font-size: 22px;
  font-weight: 900;
  color: #35cfdf;
  flex-shrink: 0;
  text-align: center;
  min-width: 36px;
}

@media (max-width: 600px) {
  .progress-teaser-compare {
    flex-direction: column;
  }
  .progress-teaser-photo {
    width: 100%;
    max-height: 260px;
    aspect-ratio: 4/3;
  }
  .progress-teaser-photo img {
    object-position: center 20%;
  }
  .progress-teaser-vs {
    transform: rotate(90deg);
  }
}

/* ── Progress teaser redesign ── */
.progress-teaser-card {
  margin-top: 20px;
  border: 1.5px solid rgba(53, 207, 223,.25);
  background: linear-gradient(160deg, #0d1020 0%, #202b2c 100%);
  overflow: hidden;
}

.progress-teaser-header {
  margin-bottom: 28px;
  text-align: center;
}

.progress-teaser-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9d8fc7;
  margin-bottom: 12px;
}

.progress-teaser-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.progress-teaser-sub {
  font-size: 15px;
  font-weight: 600;
  color: #b8c8e0;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

.progress-teaser-compare {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.progress-teaser-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.progress-teaser-date-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #bcc6c2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  padding: 5px 16px;
  text-align: center;
}

.progress-teaser-date-badge--after {
  color: #9d8fc7;
  background: rgba(53, 207, 223,.12);
  border-color: rgba(53, 207, 223,.3);
}

.progress-teaser-photo {
  width: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #060d1a;
  aspect-ratio: 2/3;
  max-height: 420px;
  border: 1.5px solid rgba(255,255,255,.06);
}

.progress-teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(0.93);
}

.progress-teaser-phase-label {
  font-size: 15px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(53, 207, 223,.3);
}

.progress-teaser-vs {
  font-size: 26px;
  font-weight: 900;
  color: #35cfdf;
  flex-shrink: 0;
  text-align: center;
  min-width: 40px;
  align-self: center;
  text-shadow: 0 0 20px rgba(53, 207, 223,.5);
}

.progress-teaser-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px 24px;
  background: linear-gradient(135deg, #35cfdf, #28b8c8);
  color: var(--fp-text-inverse);
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 8px 28px rgba(53, 207, 223,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.progress-teaser-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(53, 207, 223,.5);
}

@media (max-width: 600px) {
  .progress-teaser-compare { flex-direction: column; }
  .progress-teaser-vs { transform: rotate(90deg); align-self: center; }
  .progress-teaser-photo { max-height: 280px; aspect-ratio: 3/4; }
  .progress-teaser-cta { font-size: 14px; padding: 14px 16px; }
}

/* ── Skeleton Loaders ── */
.skeleton { background: linear-gradient(90deg, #1a2324 0%, #263334 50%, #1a2324 100%); background-size: 200% 100%; animation: shimmer 2s infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-card { height: 200px; margin-bottom: 16px; }

/* ── Share Button ── */
.share-btn { padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(53, 207, 223,.3); background: rgba(53, 207, 223,.1); color: #9d8fc7; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.share-btn:hover { background: rgba(53, 207, 223,.2); border-color: rgba(53, 207, 223,.5); }
