:root {
  --navy: #102b3f;
  --navy-2: #163b55;
  --navy-3: #23506c;
  --coral: #ff6257;
  --coral-soft: #ffe7e3;
  --cream: #f7f4ee;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #122536;
  --muted: #667987;
  --line: #dfe6e9;
  --mint: #38c8aa;
  --warning: #f4ae43;
  --shadow: 0 16px 40px rgba(16, 43, 63, .10);
  --shadow-soft: 0 8px 24px rgba(16, 43, 63, .07);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 98, 87, .10), transparent 28rem),
    var(--cream);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(255, 98, 87, .35);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100dvh;
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.btn-primary {
  color: white;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(255, 98, 87, .24);
}

.btn-primary:hover {
  background: #f5544a;
}

.btn-secondary {
  color: var(--navy);
  background: #eaf0f2;
}

.btn-dark {
  color: white;
  background: var(--navy);
}

.btn-ghost {
  min-height: 42px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-small {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: .86rem;
}

.full {
  width: 100%;
}

.onboarding {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  overflow: hidden;
  background: var(--paper);
}

.onboarding-visual {
  min-height: 100dvh;
  position: relative;
  padding: clamp(30px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 98, 87, .28), transparent 30%),
    linear-gradient(145deg, #0c2638, #173e58);
}

.onboarding-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -90px;
  border: 70px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
}

.brand-light {
  width: 148px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.visual-copy {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.visual-copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.visual-copy h1 span {
  color: var(--coral);
}

.visual-copy p {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 1.02rem;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.trust-chip {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  font-size: .78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.onboarding-panel {
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  background: var(--paper);
}

.onboarding-form {
  width: min(100%, 520px);
  margin: 0 auto;
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 38px;
}

.step-progress span {
  height: 5px;
  border-radius: 99px;
  background: #e8edef;
}

.step-progress span.active {
  background: var(--coral);
}

.step-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.step-description {
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.field label,
.label {
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbe4e7;
  border-radius: 15px;
  padding: 0 15px;
  color: var(--ink);
  background: white;
  outline: none;
}

.field textarea {
  min-height: 92px;
  padding-top: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,98,87,.09);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.option-card {
  min-height: 98px;
  border: 1px solid #dfe6e8;
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--navy);
  background: white;
  text-align: left;
  transition: border .2s ease, background .2s ease, transform .2s ease;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.option-card strong {
  font-size: .9rem;
}

.option-card small {
  color: var(--muted);
  line-height: 1.35;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.step-actions .btn-primary {
  flex: 1;
}

.privacy-note {
  margin: 22px 0 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.dashboard-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.sidebar {
  min-height: 100dvh;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--navy);
}

.sidebar-logo {
  width: 132px;
  height: auto;
  filter: brightness(0) invert(1);
  margin: 0 8px 36px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.64);
  background: transparent;
  text-align: left;
  font-size: .87rem;
  font-weight: 700;
}

.nav-item.active {
  color: white;
  background: rgba(255,255,255,.10);
}

.nav-item.active .icon {
  color: var(--coral);
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 12px 2px;
  color: rgba(255,255,255,.56);
  font-size: .7rem;
  line-height: 1.5;
}

.main-area {
  min-width: 0;
  padding: 32px clamp(24px, 4vw, 52px) 44px;
}

.topbar {
  min-height: 52px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mobile-logo {
  display: none;
  width: 110px;
}

.page-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: white;
}

.avatar {
  width: 44px;
  height: 44px;
  border: 3px solid white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--coral);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr);
  gap: 22px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card {
  border: 1px solid rgba(16,43,63,.055);
  border-radius: var(--radius-md);
  padding: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
}

.card-header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -.02em;
}

.text-button {
  border: 0;
  padding: 5px;
  color: var(--coral);
  background: transparent;
  font-size: .75rem;
  font-weight: 800;
}

.hero-card {
  min-height: 255px;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 86% 30%, rgba(255,98,87,.48), transparent 23%),
    linear-gradient(135deg, #102b3f, #1b4964);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  right: -45px;
  bottom: -84px;
  border: 48px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.hero-card .eyebrow {
  color: #ff9a92;
}

.hero-card h2 {
  max-width: 500px;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hero-meta {
  margin: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.1);
  font-size: .72rem;
  font-weight: 700;
}

.hero-card .btn {
  position: relative;
  z-index: 1;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.day-cell {
  min-height: 74px;
  border-radius: 15px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: #f1f4f4;
  font-size: .64rem;
  font-weight: 800;
}

.day-cell .day-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: white;
  font-size: .65rem;
}

.day-cell.done {
  color: var(--navy);
  background: #dff5ef;
}

.day-cell.done .day-dot {
  color: white;
  background: var(--mint);
}

.day-cell.today {
  color: white;
  background: var(--coral);
}

.day-cell.today .day-dot {
  color: var(--coral);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  border-radius: 17px;
  padding: 16px;
  background: #f2f5f5;
}

.metric-card .metric-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  background: white;
}

.metric-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
}

.metric-card span {
  color: var(--muted);
  font-size: .68rem;
}

.progress-ring {
  width: 148px;
  height: 148px;
  margin: 10px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--coral) var(--progress, 60%), #e8edef 0);
}

.progress-ring::before {
  content: "";
  width: 112px;
  height: 112px;
  position: absolute;
  border-radius: 50%;
  background: white;
}

.progress-ring-value {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 800;
}

.progress-caption {
  text-align: center;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
}

.insight {
  border-radius: 18px;
  padding: 18px;
  color: #204d43;
  background: #e4f6f1;
}

.insight strong {
  display: block;
  margin-bottom: 7px;
  font-size: .86rem;
}

.insight p {
  margin: 0;
  font-size: .74rem;
  line-height: 1.55;
}

.section-header {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -.035em;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.workout-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-plan-banner {
  margin: -4px 0 18px;
  border: 1px solid #cce8df;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #245f53;
  background: #eaf8f4;
}

.ai-plan-banner > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--mint);
}

.ai-plan-banner strong,
.ai-plan-banner p,
.ai-plan-banner small {
  display: block;
}

.ai-plan-banner strong {
  color: var(--navy);
  font-size: .78rem;
}

.ai-plan-banner p {
  margin: 4px 0;
  font-size: .68rem;
  line-height: 1.5;
}

.ai-plan-banner small {
  color: #53716a;
  font-size: .59rem;
  line-height: 1.45;
}

.workout-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}

.workout-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.workout-card.current {
  border-color: rgba(255,98,87,.5);
  background: linear-gradient(145deg, #fff, #fff4f2);
}

.workout-number {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--navy);
  font-size: .8rem;
  font-weight: 800;
}

.workout-card.current .workout-number {
  background: var(--coral);
}

.workout-card h3 {
  margin: 16px 0 7px;
  color: var(--navy);
  font-size: 1rem;
}

.workout-card p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}

.workout-stats {
  margin: 16px 0;
  display: flex;
  gap: 15px;
  color: var(--navy-3);
  font-size: .7rem;
  font-weight: 700;
}

.exercise-preview {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exercise-preview li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1f2;
  color: var(--muted);
  font-size: .68rem;
}

.exercise-preview li span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.activity-layout,
.profile-layout,
.progress-layout {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr);
  gap: 22px;
}

.activity-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.activity-type {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  background: white;
  font-size: .72rem;
  font-weight: 800;
}

.activity-type.selected {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-soft);
}

.activity-list,
.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-row,
.history-row {
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf1f2;
}

.activity-row:last-child,
.history-row:last-child {
  border-bottom: 0;
}

.list-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  background: var(--coral-soft);
}

.list-copy {
  min-width: 0;
  flex: 1;
}

.list-copy strong {
  display: block;
  color: var(--navy);
  font-size: .8rem;
}

.list-copy span {
  color: var(--muted);
  font-size: .68rem;
}

.list-value {
  color: var(--navy);
  font-size: .76rem;
  font-weight: 800;
}

.empty-state {
  padding: 34px 15px;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
  line-height: 1.6;
}

.chart {
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.chart svg {
  width: 100%;
  height: 205px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e8edef;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#areaGradient);
}

.chart-dot {
  fill: white;
  stroke: var(--coral);
  stroke-width: 3;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  border-radius: 17px;
  padding: 17px;
  background: #f1f4f4;
}

.stat-box span {
  color: var(--muted);
  font-size: .66rem;
}

.stat-box strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 1rem;
}

.profile-summary {
  text-align: center;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border: 6px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  box-shadow: var(--shadow-soft);
  font-size: 1.8rem;
  font-weight: 800;
}

.profile-summary h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.profile-summary p {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: .75rem;
}

.profile-data {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.profile-data li {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf1f2;
  font-size: .73rem;
}

.profile-data li span {
  color: var(--muted);
}

.profile-data li strong {
  color: var(--navy);
}

.notice {
  border: 1px solid #f6dfa9;
  border-radius: 16px;
  padding: 15px;
  color: #76561f;
  background: #fff7df;
  font-size: .7rem;
  line-height: 1.55;
}

.bottom-nav {
  display: none;
}

.coach-button {
  width: 58px;
  height: 58px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  border: 0;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(255,98,87,.38);
}

.coach-button .icon {
  width: 26px;
  height: 26px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 22px;
  background: rgba(8,26,39,.48);
  backdrop-filter: blur(4px);
  animation: fadeIn .18s ease;
}

.sheet {
  width: min(100%, 440px);
  max-height: min(760px, calc(100dvh - 44px));
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: 0 22px 80px rgba(8,26,39,.28);
  animation: slideUp .24s ease;
}

.sheet-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: var(--navy);
}

.coach-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--coral);
  font-weight: 800;
}

.sheet-header-copy {
  flex: 1;
}

.sheet-header-copy strong {
  display: block;
  font-size: .85rem;
}

.sheet-header-copy span {
  color: rgba(255,255,255,.62);
  font-size: .66rem;
}

.close-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255,255,255,.08);
}

.chat-messages {
  min-height: 320px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 84%;
  border-radius: 17px;
  padding: 12px 14px;
  font-size: .75rem;
  line-height: 1.55;
}

.message.bot {
  align-self: flex-start;
  color: var(--ink);
  background: #e9eef0;
  border-bottom-left-radius: 5px;
}

.message.user {
  align-self: flex-end;
  color: white;
  background: var(--coral);
  border-bottom-right-radius: 5px;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.gym-summary {
  width: 100%;
  border: 1px solid #cce8df;
  border-radius: 18px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #e9f7f3;
}

.gym-summary-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--mint);
}

.gym-summary > div {
  min-width: 0;
  flex: 1;
}

.gym-summary strong,
.gym-summary span {
  display: block;
}

.gym-summary strong {
  color: var(--navy);
  font-size: .74rem;
}

.gym-summary div span {
  margin-top: 3px;
  color: #53716a;
  font-size: .62rem;
}

.gym-summary button {
  border: 0;
  color: #247a68;
  background: transparent;
  font-size: .64rem;
  font-weight: 800;
}

.photo-analysis-card,
.equipment-review-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.photo-analysis-title,
.equipment-review-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-analysis-title strong,
.equipment-review-heading strong {
  display: block;
  color: var(--navy);
  font-size: .76rem;
}

.photo-analysis-title > span,
.equipment-review-heading div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .62rem;
}

.photo-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.photo-preview {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #edf1f2;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview button {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(12,38,56,.82);
}

.photo-preview button .icon {
  width: 13px;
  height: 13px;
}

.photo-privacy,
.quality-note {
  margin: 11px 0;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.48;
}

.photo-consent {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--navy);
  font-size: .6rem;
  line-height: 1.45;
  cursor: pointer;
}

.photo-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--coral);
}

.analysis-loading {
  width: 100%;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  align-items: center;
  color: var(--navy);
  background: #edf4f6;
}

.analysis-loading > span {
  width: 25px;
  height: 25px;
  grid-row: 1 / 3;
  border: 3px solid #cfdcdf;
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.analysis-loading strong {
  font-size: .72rem;
}

.analysis-loading small {
  color: var(--muted);
  font-size: .59rem;
}

.privacy-alert {
  border-radius: 999px;
  padding: 6px 8px;
  color: #8a5a0b;
  background: #fff1c8;
  font-size: .56rem;
  font-weight: 800;
}

.equipment-review-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.equipment-result {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.equipment-result.selected {
  border-color: #85d8c6;
  background: #effaf7;
}

.equipment-check {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #edf1f2;
  font-weight: 800;
}

.equipment-result.selected .equipment-check {
  color: white;
  background: var(--mint);
}

.equipment-result strong,
.equipment-result small {
  display: block;
}

.equipment-result strong {
  color: var(--navy);
  font-size: .7rem;
}

.equipment-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .57rem;
}

.manual-equipment-form {
  margin: 12px 0;
  display: flex;
  gap: 7px;
}

.manual-equipment-form input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 11px;
  font-size: .68rem;
}

.manual-equipment-form button {
  width: 42px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
}

.suggestion-row {
  padding: 0 20px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.suggestion-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--navy);
  background: white;
  font-size: .66rem;
  font-weight: 700;
}

.suggestion-chip .icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -3px;
}

.chat-form {
  padding: 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: white;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  outline: none;
}

.chat-form button {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
}

.chat-form .chat-attach {
  color: var(--navy);
  background: #edf1f2;
}

.gym-map-card {
  border: 1px solid #d7e5e8;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 11px;
  align-items: center;
  background: white;
}

.gym-map-card > span {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--coral);
  background: var(--coral-soft);
}

.gym-map-card strong {
  display: block;
  color: var(--navy);
  font-size: .76rem;
}

.gym-map-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.4;
}

.gym-map-card button {
  border: 0;
  color: var(--coral);
  background: transparent;
  font-size: .66rem;
  font-weight: 800;
}

.profile-equipment {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.equipment-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.equipment-tag-list span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #276a5d;
  background: #e8f6f2;
  font-size: .64rem;
  font-weight: 700;
}

.gym-setup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(7, 25, 38, .72);
  backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}

.gym-setup {
  width: min(1040px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 28px 100px rgba(5, 22, 34, .35);
}

.gym-setup-header {
  padding: 28px 30px 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #1b4d69);
}

.gym-setup-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.04em;
}

.gym-setup-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: .76rem;
}

.gym-setup-header .close-button {
  flex: 0 0 auto;
  color: white;
  background: rgba(255, 255, 255, .1);
}

.gym-setup-progress {
  height: 6px;
  background: #e6edef;
}

.gym-setup-progress span {
  height: 100%;
  display: block;
  border-radius: 0 99px 99px 0;
  background: var(--coral);
  transition: width .3s ease;
}

.gym-setup-meta {
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
}

.gym-setup-meta strong {
  display: block;
  color: var(--navy);
}

.gym-setup-meta > div span {
  display: block;
  margin-top: 3px;
}

.gym-name-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gym-name-form label {
  color: var(--navy);
  font-size: .64rem;
  font-weight: 800;
}

.gym-name-form input {
  width: 190px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 11px;
  color: var(--ink);
  background: white;
  font-size: .68rem;
}

.gym-name-form button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 0 12px;
  color: white;
  background: var(--navy);
  font-size: .64rem;
  font-weight: 800;
}

.gym-setup-body {
  min-height: 480px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.gym-section-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: #f3f6f6;
}

.gym-section-button {
  width: 100%;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.gym-section-button > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: white;
  font-size: .7rem;
  font-weight: 800;
}

.gym-section-button strong,
.gym-section-button small {
  display: block;
}

.gym-section-button strong {
  color: var(--navy);
  font-size: .75rem;
}

.gym-section-button small {
  margin-top: 3px;
  font-size: .58rem;
}

.gym-section-button.active {
  border-color: rgba(255, 98, 87, .28);
  background: white;
  box-shadow: var(--shadow-soft);
}

.gym-section-button.active > span {
  color: white;
  background: var(--coral);
}

.gym-section-button.done:not(.active) > span {
  color: white;
  background: var(--mint);
}

.gym-capture-panel {
  padding: 28px;
}

.gym-capture-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.gym-capture-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--coral);
  background: var(--coral-soft);
}

.gym-capture-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.gym-capture-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.section-equipment {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px;
  background: #eef8f5;
}

.section-equipment > strong {
  display: block;
  margin-bottom: 9px;
  color: #286b5d;
  font-size: .67rem;
}

.capture-empty {
  margin-top: 22px;
  border: 1.5px dashed #cbd8dc;
  border-radius: 22px;
  padding: 34px 24px;
  color: var(--muted);
  background: #fafcfc;
  text-align: center;
}

.capture-empty > .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--coral);
}

.capture-empty strong {
  display: block;
  color: var(--navy);
  font-size: .9rem;
}

.capture-empty p {
  max-width: 520px;
  margin: 8px auto 18px;
  font-size: .68rem;
  line-height: 1.55;
}

.capture-empty > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gym-capture-panel .photo-analysis-card,
.gym-capture-panel .equipment-review-card,
.gym-capture-panel .analysis-loading {
  margin-top: 20px;
}

.gym-setup-footer {
  padding: 18px 30px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: white;
}

.gym-setup-footer strong,
.gym-setup-footer span {
  display: block;
}

.gym-setup-footer strong {
  color: var(--navy);
  font-size: .76rem;
}

.gym-setup-footer span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .62rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.workout-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  color: white;
  background: var(--navy);
  animation: fadeIn .2s ease;
}

.workout-session {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 54px) 44px;
  display: flex;
  flex-direction: column;
}

.session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-progress {
  height: 6px;
  margin: 28px 0 38px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.11);
}

.session-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--coral);
  transition: width .3s ease;
}

.exercise-count {
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.exercise-title {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.exercise-instruction {
  margin: 0;
  color: rgba(255,255,255,.64);
  line-height: 1.6;
}

.set-card {
  margin: 34px 0 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,.06);
}

.set-card-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.set-stat {
  padding: 13px 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.set-stat span {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .62rem;
}

.set-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.sets-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.set-dot {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.58);
  background: transparent;
  font-weight: 800;
}

.set-dot.done {
  border-color: var(--mint);
  color: white;
  background: var(--mint);
}

.session-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.session-actions .btn-secondary {
  color: white;
  background: rgba(255,255,255,.1);
}

.toast {
  max-width: min(420px, calc(100% - 32px));
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  border-radius: 14px;
  padding: 12px 16px;
  color: white;
  background: #17394e;
  box-shadow: var(--shadow);
  font-size: .75rem;
  font-weight: 700;
  transform: translate(-50%, 120px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

  .onboarding-visual {
    min-height: 36dvh;
    padding: 28px;
  }

  .visual-copy h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .visual-copy p,
  .trust-row {
    display: none;
  }

  .onboarding-panel {
    min-height: 64dvh;
    padding: 30px 24px 42px;
    align-items: flex-start;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-area {
    padding: 20px 18px calc(100px + env(safe-area-inset-bottom));
  }

  .mobile-logo {
    display: block;
  }

  .page-title {
    display: none;
  }

  .content-grid,
  .activity-layout,
  .profile-layout,
  .progress-layout {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    height: calc(70px + env(safe-area-inset-bottom));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 8px 8px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(16,43,63,.08);
    background: rgba(255,253,248,.95);
    box-shadow: 0 -12px 30px rgba(16,43,63,.07);
    backdrop-filter: blur(14px);
  }

  .bottom-nav .nav-item {
    min-height: 54px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    color: #81909a;
    font-size: .58rem;
  }

  .bottom-nav .nav-item.active {
    color: var(--coral);
    background: transparent;
  }

  .bottom-nav .icon {
    width: 20px;
    height: 20px;
  }

  .coach-button {
    right: 17px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .sheet-backdrop {
    padding: 0;
  }

  .sheet {
    width: 100%;
    max-height: 87dvh;
    border-radius: 28px 28px 0 0;
  }

  .gym-setup-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .gym-setup {
    width: 100%;
    max-height: 94dvh;
    border-radius: 26px 26px 0 0;
  }

  .gym-setup-body {
    grid-template-columns: 1fr;
  }

  .gym-section-list {
    padding: 14px 18px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gym-section-button {
    width: 150px;
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .onboarding-visual {
    min-height: 32dvh;
  }

  .brand-light {
    width: 112px;
  }

  .visual-copy h1 {
    font-size: 2.25rem;
  }

  .onboarding-panel {
    min-height: 68dvh;
  }

  .step-progress {
    margin-bottom: 26px;
  }

  .field-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: auto;
  }

  .option-card {
    min-height: 82px;
  }

  .hero-card {
    min-height: 285px;
  }

  .week-row {
    gap: 4px;
  }

  .day-cell {
    min-height: 66px;
    border-radius: 12px;
  }

  .metric-grid,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid .metric-card:last-child,
  .stat-row .stat-box:last-child {
    grid-column: 1 / -1;
  }

  .workout-list {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gym-setup-header {
    padding: 22px 20px 18px;
  }

  .gym-setup-header p:not(.eyebrow) {
    display: none;
  }

  .gym-setup-meta,
  .gym-capture-panel,
  .gym-setup-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gym-setup-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .gym-name-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .gym-name-form label {
    grid-column: 1 / -1;
  }

  .gym-name-form input {
    width: 100%;
  }

  .capture-empty {
    padding: 26px 16px;
  }

  .capture-empty > div,
  .gym-setup-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gym-setup-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* PRUMO FIT — acompanhamento ativo */
.live-coach-panel{margin:18px 0;padding:20px;border:1px solid #d6dfdc;border-radius:16px;background:#f6faf8;color:#19382f}
.live-coach-panel p{margin:8px 0 16px}.live-set-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.live-set-form label{font-size:12px;font-weight:700;display:grid;gap:5px}.live-set-form input[type=number]{width:100%;min-width:0;padding:11px;border:1px solid #b9c9c2;border-radius:9px;background:white;color:#152c25;font-size:16px}
.live-set-form .pain-check{grid-column:1/-1;display:flex;align-items:center;font-size:13px}.live-set-form button{grid-column:1/-1}.set-feedback,.rest-clock{font-size:13px;font-weight:600;margin-top:12px}
@media(max-width:430px){.live-coach-panel{padding:14px}.live-set-form{gap:7px}}

/* PRUMO FIT — assessment, nutrition and weekly review */
.extra-page{max-width:1040px;margin:20px auto;padding:clamp(18px,3vw,34px)}
.assessment-group{border:1px solid var(--border,#dce3e6);border-radius:14px;margin:24px 0;padding:20px;min-width:0}
.assessment-group legend{font-size:1.1rem;font-weight:800;padding:0 10px}
.extra-page .field{min-width:0}.extra-page .field input,.extra-page .field select,.extra-page .field textarea{width:100%;max-width:100%;box-sizing:border-box}
.safety-note{border-left:4px solid #c28a34;background:rgba(194,138,52,.09);padding:16px;margin:18px 0;line-height:1.55;border-radius:8px}
.review-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}
.review-stats>div{padding:18px;border:1px solid #d9e2e6;border-radius:12px;display:flex;flex-direction:column;gap:8px}.review-stats strong{font-size:1.5rem}
@media(max-width:650px){.assessment-group{padding:12px}.review-stats{grid-template-columns:1fr}.extra-page{margin:12px;padding:16px}}
