:root {
  --bg: #0b0b0f;
  --bg-soft: #14141d;
  --card: #ffffff;
  --text: #111217;
  --muted: #60636f;
  --purple: #7b2ff2;
  --green: #b7ff00;
  --green-dark: #79b800;
  --black: #121212;
  --white: #ffffff;
  --line: #e8eaf0;
  --shadow: 0 12px 30px rgba(0,0,0,.15);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: linear-gradient(135deg, #0c0c10, #151327 40%, #0f1a14); color: var(--white); }
img { max-width:100%; display:block; }
button, input, select, textarea { font: inherit; }
button { cursor:pointer; }

.app-shell { display:grid; grid-template-columns: 320px 1fr; min-height:100vh; }
.sidebar { padding: 24px 18px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.main-content { padding: 20px; }

.brand-block { display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.brand-mascot { width:110px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.brand-block h1 { margin:0; font-size:1.55rem; }
.gym-tag { margin-top:8px; color:#cfe8d7; font-size:.9rem; }

.card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--green-dark); font-weight: 800; }
.nav-tabs { display:grid; gap:10px; margin-bottom: 18px; }
.nav-btn {
  border:none;
  border-radius: 16px;
  padding: 14px 16px;
  text-align:left;
  background: rgba(255,255,255,.08);
  color:#fff;
  transition: .2s ease;
  font-weight:700;
}
.nav-btn:hover, .nav-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--green));
  transform: translateY(-1px);
}

.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  gap:16px;
}
.topbar h2 { margin:0; }
.topbar-actions { display:flex; gap:10px; flex-wrap:wrap; }
.action-btn, .primary-btn, .pill-button {
  border:none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight:700;
}
.action-btn {
  background:#f0f1f6;
  color:var(--text);
}
.action-btn:hover { background:#e5e7ef; }
.file-label { display:inline-flex; align-items:center; }
.primary-btn {
  background: linear-gradient(135deg, var(--purple), var(--green));
  color:#fff;
}
.primary-btn:hover { filter: brightness(1.05); }
.full { width:100%; }
.pill-button {
  background:#f6f3ff;
  color:var(--purple);
  border:1px solid #e1d1ff;
}
.pill-button:hover { background:#efe7ff; }
.danger { background:#ffe6e6; color:#a91919; }
.summary-banner {
  display:none;
  margin: 12px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(123,47,242,.12), rgba(24,199,110,.12));
  color:#fff;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.1);
}
.summary-banner.show { display:block; }

.tab-panel { display:none; }
.tab-panel.active { display:block; }
.grid { display:grid; gap:16px; }
.grid.two { grid-template-columns: 1.15fr .85fr; }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin:16px 0; }
.stat-card { background: linear-gradient(145deg, #fff, #f6f7fb); padding:16px; border-radius:20px; box-shadow: var(--shadow); color:var(--text); }
.stat-card h4 { margin:0 0 6px; color:var(--muted); font-size:.9rem; }
.stat-card strong { font-size:1.7rem; display:block; }

.hero-card { display:grid; grid-template-columns: 1.1fr 240px; align-items:center; overflow:hidden; background: linear-gradient(135deg, #ffffff 0%, #f5fff9 100%); }
.hero-img { width: 220px; justify-self:end; }
.hero-badges { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.hero-badges span { background:#f2f4fb; color:#2a2c36; padding:8px 12px; border-radius:999px; font-size:.9rem; font-weight:700; }
.quick-buttons { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }

.mini-form { display:grid; gap:12px; margin: 10px 0 12px; }
.mini-form.two-cols { grid-template-columns: repeat(2, 1fr); }
.mini-form.three-cols { grid-template-columns: repeat(3, 1fr); }
label { display:grid; gap:6px; font-weight:700; font-size:.95rem; }
input, select, textarea {
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfbfe;
  padding: 12px 13px;
  outline:none;
  color:var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(123,47,242,.12); }

.workout-controls { display:flex; gap:12px; flex-wrap:wrap; }
.section-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.exercise-list { display:grid; gap:16px; }
.exercise-card details { margin-top:14px; border-top:1px dashed #dedee5; padding-top:12px; }
.exercise-card summary { cursor:pointer; font-weight:800; color:var(--purple); }
.exercise-title-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:8px; }
.exercise-title-row h4 { margin:0; font-size:1.1rem; }
.muscle-tags { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 12px; }
.muscle-tag { background:#eef8f2; color:#157545; padding:6px 10px; border-radius:999px; font-size:.82rem; font-weight:700; }
.movement-tag { background:#f7efff; color:#6f22e7; }
.exercise-grid { display:grid; grid-template-columns: repeat(4, minmax(70px,1fr)); gap:10px; margin: 10px 0; }
.exercise-grid label { font-size:.82rem; }
.small-note { color:var(--muted); font-size:.9rem; margin: 8px 0; }
.recent-chip { background:#f2f2f4; border-radius:12px; padding:8px 10px; font-size:.88rem; color:#30313a; display:inline-block; margin-top:10px; }
.exercise-detail-grid { display:grid; grid-template-columns: 200px 1fr; gap:18px; align-items:start; margin-top:12px; }
.exercise-detail-text ul { margin:8px 0 0 18px; }
.coach-box { display:grid; grid-template-columns: 76px 1fr; gap:14px; align-items:center; background:#f8fcff; border:1px solid #e6f2ff; padding:12px; border-radius:16px; margin-top:12px; }
.coach-box img { width:76px; }
.muscle-figure { width:100%; background:#f9f9ff; border-radius:18px; padding:10px; }
.figure-label { font-size:.8rem; color:var(--muted); margin-top:8px; }

.list-stack { display:grid; gap:10px; }
.list-item { background:#f7f8fb; border:1px solid #e7e8ef; border-radius:16px; padding:12px; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.list-item strong { display:block; }
.list-item .item-meta { color:var(--muted); font-size:.9rem; }
.inline-actions { display:flex; gap:8px; align-items:center; }
.icon-btn { border:none; background:#fff; border-radius:12px; padding:8px 10px; box-shadow: inset 0 0 0 1px #e1e3ea; }
.icon-btn:hover { background:#f2f4f8; }

.preset-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
.preset-btn { text-align:left; border:1px solid #e7e9ef; border-radius: 16px; padding: 12px; background:#fafaff; }
.preset-btn strong { display:block; }
.preset-btn small { color:var(--muted); }
.chart-box { min-height: 220px; display:flex; align-items:center; justify-content:center; background:#fbfcff; border:1px solid #eceef7; border-radius:18px; }
.chart-box svg { width:100%; height:220px; }
.progress-badges { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.progress-badges span { background:#eef8f2; color:#0d7040; padding:8px 12px; border-radius:999px; font-size:.9rem; font-weight:700; }

.manage-list { display:grid; gap:10px; margin:12px 0; }
.manage-row { background:#f7f8fb; border-radius:16px; padding:10px 12px; display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center; }
.builder-box { margin-top:14px; }
.builder-box summary { cursor:pointer; font-weight:800; color:var(--purple); }
.top-gap { margin-top:12px; }
.tool-row { display:flex; gap:10px; flex-wrap:wrap; }
.coach-quote { background: linear-gradient(180deg, rgba(123,47,242,.18), rgba(24,199,110,.18)); color:#fff; }
.coach-quote h3 { margin-top:0; }

.empty-state { color: var(--muted); font-style: italic; }
.kpi-row { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.kpi { background:#f7f8fd; border-radius:18px; padding:14px; }
.kpi span { display:block; color:var(--muted); font-size:.85rem; }
.kpi strong { font-size:1.4rem; }
.table-like { display:grid; gap:10px; }
.table-head, .table-row { display:grid; grid-template-columns: 1.2fr .8fr .8fr .8fr .8fr auto; gap:10px; align-items:center; }
.table-head { font-size:.85rem; color:var(--muted); font-weight:800; }
.table-row { background:#f8f9fd; border-radius: 16px; padding:10px; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .hero-card, .exercise-detail-grid { grid-template-columns: 1fr; }
  .hero-img { justify-self:center; }
}

@media (max-width: 760px) {
  .main-content { padding: 14px; }
  .topbar, .section-header { flex-direction:column; align-items:stretch; }
  .stats-grid, .mini-form.two-cols, .mini-form.three-cols, .preset-grid, .table-head, .table-row, .kpi-row { grid-template-columns: 1fr; }
  .exercise-grid { grid-template-columns: repeat(2, minmax(70px, 1fr)); }
}

/* ===== V2 • visual neon + experiência de app ===== */
:root {
  --purple: #6f24ff;
  --purple-deep: #2a0a5e;
  --green: #b7ff00;
  --green-dark: #79b800;
  --green-soft: #efffc9;
  --neon-shadow: 0 0 0 1px rgba(183,255,0,.25), 0 0 24px rgba(183,255,0,.18);
}

html, body {
  background:
    radial-gradient(circle at 14% 10%, rgba(111,36,255,.28), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(183,255,0,.12), transparent 24%),
    linear-gradient(145deg, #08080c, #100a1b 48%, #090d0b);
}

.sidebar {
  background: linear-gradient(180deg, rgba(16,10,30,.96), rgba(5,5,9,.94));
}

.nav-btn:hover, .nav-btn.active,
.primary-btn {
  background: linear-gradient(135deg, var(--purple) 0%, #8a35ff 55%, var(--green) 150%);
}

.neon-action,
.install-btn {
  background: var(--green);
  color:#111;
  box-shadow: var(--neon-shadow);
}

.neon-action:hover,
.install-btn:hover { background:#c7ff34; }

.cloud-pill {
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  padding:9px 12px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:#17151f;
  color:#fff;
  font-weight:800;
}
.cloud-dot { width:9px; height:9px; border-radius:50%; background:#8a8c94; box-shadow:0 0 12px rgba(138,140,148,.5); }
.cloud-pill.online .cloud-dot { background:var(--green); box-shadow:0 0 16px rgba(183,255,0,.9); }
.cloud-pill.syncing .cloud-dot { background:#ffd44d; }

.phase-strip {
  margin:16px 0;
  padding:16px 18px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(110deg, #1a0d33, #29105d 60%, #20300b);
  color:#fff;
  border:1px solid rgba(183,255,0,.18);
  box-shadow:0 18px 40px rgba(0,0,0,.2), 0 0 35px rgba(111,36,255,.12);
}
.phase-strip strong { color:var(--green); }
.phase-progress { flex:1; height:10px; background:rgba(255,255,255,.12); border-radius:999px; overflow:hidden; max-width:380px; }
.phase-progress > span { display:block; height:100%; background:linear-gradient(90deg,var(--green),#6cff72); border-radius:inherit; }

.rest-timer {
  margin: 0 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(135deg,#140a28,#231052);
  color:#fff;
  border:1px solid rgba(183,255,0,.18);
}
.rest-timer > div:first-child { display:grid; gap:4px; }
#restTimerDisplay { font-size:2.15rem; color:var(--green); letter-spacing:.04em; }
.rest-timer-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.timer-chip { border:none; border-radius:999px; padding:9px 12px; background:rgba(255,255,255,.1); color:#fff; font-weight:800; }
.timer-chip.active { background:var(--green); color:#111; }

.sync-user-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border-radius:16px; background:#f5f8ef; border:1px solid #e4ebda; }
.sync-badge { padding:7px 10px; border-radius:999px; background:#eaffbd; color:#315700; font-weight:800; }
.tiny-note { color:var(--muted); font-size:.78rem; }

.mobile-bottom-nav { display:none; }
.toast {
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  background:#11131a;
  color:#fff;
  padding:12px 16px;
  border-radius:999px;
  box-shadow:0 14px 34px rgba(0,0,0,.35);
  z-index:999;
  transition:.2s ease;
  border:1px solid rgba(183,255,0,.25);
}
.toast.show { opacity:1; transform:translate(-50%,0); }

.story-share-card-button { background:var(--green); color:#111; border:none; border-radius:14px; padding:10px 14px; font-weight:900; box-shadow:var(--neon-shadow); }

/* mascot: robusto, camiseta cobrindo a barriga */
.brand-mascot, .hero-img, .coach-box img {
  object-fit:contain;
}
.hero-img {
  border-radius:18px;
  filter:saturate(1.08) contrast(1.03);
}

@media (max-width: 760px) {
  body { padding-bottom:82px; }
  .app-shell { display:block; }
  .sidebar {
    position:sticky;
    top:0;
    z-index:40;
    padding:8px 14px;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 20px rgba(0,0,0,.18);
  }
  .brand-block { margin:0; align-items:center; }
  .brand-mascot { width:54px; height:54px; border-radius:50%; object-fit:cover; object-position:50% 20%; }
  .brand-block h1 { font-size:1.05rem; }
  .brand-block .muted, .gym-tag, .nav-tabs, .coach-quote { display:none; }
  .topbar { border-radius:16px; padding:12px; }
  .topbar > div:first-child p { margin-bottom:0; font-size:.82rem; }
  .topbar-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .topbar-actions > * { justify-content:center; text-align:center; }
  .cloud-pill { grid-column:1 / -1; }
  .hero-card { padding:14px; border-radius:18px; }
  .hero-img { max-height:250px; width:auto; }
  .phase-strip { align-items:flex-start; flex-direction:column; }
  .phase-progress { width:100%; max-width:none; }
  .rest-timer { position:sticky; top:78px; z-index:30; flex-direction:column; align-items:stretch; padding:12px; border-radius:18px; }
  .rest-timer > div:first-child { grid-template-columns:1fr auto; align-items:center; }
  #restTimerDisplay { font-size:1.7rem; }
  #restTimerLabel { grid-column:1 / -1; }
  .rest-timer-actions { justify-content:stretch; }
  .rest-timer-actions > * { flex:1; min-width:64px; }
  .mobile-bottom-nav {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:100;
    background:rgba(15,9,28,.96);
    border:1px solid rgba(255,255,255,.1);
    border-radius:22px;
    box-shadow:0 16px 44px rgba(0,0,0,.45);
    padding:6px;
    backdrop-filter:blur(16px);
  }
  .mobile-nav-btn {
    border:none;
    background:transparent;
    color:#d7d2e2;
    display:grid;
    justify-items:center;
    gap:2px;
    border-radius:16px;
    padding:8px 3px;
  }
  .mobile-nav-btn span { font-size:1.2rem; }
  .mobile-nav-btn small { font-size:.68rem; font-weight:800; }
  .mobile-nav-btn.active { color:#111; background:var(--green); }
  .toast { bottom:96px; width:max-content; max-width:calc(100vw - 32px); text-align:center; }
}

/* Aparência do personagem: mais robusto sem barriga exposta */
.hero-img { transform: scaleX(1.075); transform-origin:center bottom; }
.brand-mascot { transform: scaleX(1.045); transform-origin:center bottom; }
@media (max-width:760px){
  .brand-mascot { transform: scaleX(1.02); }
}

.series-table { display:grid; gap:8px; margin:12px 0; }
.series-head, .series-row {
  display:grid;
  grid-template-columns: 54px repeat(4,minmax(72px,1fr)) 44px;
  gap:8px;
  align-items:center;
}
.series-head { padding:0 8px; color:var(--muted); font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.03em; }
.series-row { padding:8px; border-radius:15px; background:#f7f7fb; border:1px solid #ececf3; }
.series-row.completed { background:#f4ffd8; border-color:#d6f28d; }
.series-row input { padding:9px 8px; border-radius:10px; text-align:center; }
.set-done-btn { width:38px; height:38px; border-radius:50%; border:none; background:#e7e1f4; color:var(--purple); font-weight:1000; }
.set-done-btn.done { background:var(--green); color:#111; box-shadow:var(--neon-shadow); }

@media (max-width:760px) {
  .series-head { display:none; }
  .series-row {
    grid-template-columns:36px repeat(2,minmax(0,1fr)) 38px;
    gap:7px;
  }
  .series-row input:nth-of-type(3), .series-row input:nth-of-type(4) { margin-top:2px; }
  .series-row input[data-series-field="rir"]::placeholder { color:#7a708f; }
  .series-row input[data-series-field="pain"]::placeholder { color:#7a708f; }
  .series-row .set-done-btn { grid-column:4; grid-row:1 / span 2; align-self:center; }
  .series-row strong { grid-row:1 / span 2; text-align:center; }
  .series-row input { min-width:0; }
}
@media (max-width:760px) {
  .series-head, .series-row { grid-template-columns:32px repeat(4,minmax(52px,1fr)) 36px; gap:5px; }
  .series-head { display:grid; font-size:.64rem; padding:0 4px; }
  .series-row strong { grid-row:auto; text-align:center; }
  .series-row .set-done-btn { grid-column:auto; grid-row:auto; width:34px; height:34px; }
  .series-row input { padding:8px 4px; font-size:.86rem; }
}

/* ===== V2 PROFISSIONAL ===== */
body { min-height:100vh; }
.brand-copy em { color:var(--green); font-style:normal; }
.brand-kicker { color:var(--green); font-size:.68rem; letter-spacing:.14em; font-weight:900; margin-bottom:4px; }
.side-footer { color:#80788f; text-align:center; font-size:.75rem; margin-top:16px; }
.dark-card { background:rgba(255,255,255,.055); box-shadow:none; border:1px solid rgba(255,255,255,.08); }
.mini-coach-row { display:grid; grid-template-columns:54px 1fr; gap:12px; align-items:center; }
.mini-coach-row img { width:54px; height:54px; object-fit:contain; }
.mini-coach-row h3,.mini-coach-row p { margin:0; }
.glass-card { background:rgba(255,255,255,.96); backdrop-filter:blur(20px); }
.cloud-status-btn { border:1px solid #dedbe8; background:#17131f; color:white; border-radius:999px; padding:10px 14px; display:inline-flex; gap:8px; align-items:center; font-weight:800; }
.cloud-status-btn.online .cloud-dot { background:var(--green); box-shadow:0 0 14px var(--green); }
.cloud-status-btn.syncing .cloud-dot { background:#ffd34d; }
.secondary-neon-btn { border:1px solid rgba(111,36,255,.18); background:#f3eeff; color:var(--purple-deep); padding:10px 14px; border-radius:14px; font-weight:900; }
.secondary-neon-btn:hover { background:#e9deff; }
.text-btn { border:none; background:transparent; color:var(--purple); font-weight:900; padding:6px; }
.chip { display:inline-flex; align-items:center; border-radius:999px; padding:7px 10px; font-size:.76rem; font-weight:900; }
.chip.neon { background:var(--green); color:#182000; }
.card-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-title-row h3 { margin:0; }
.hero-grid { grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr); }
.premium-card { background:linear-gradient(135deg,#fff 0%,#faf7ff 55%,#edffd0 140%); border:1px solid rgba(111,36,255,.09); }
.hero-card { min-height:355px; grid-template-columns:1fr minmax(230px,340px); position:relative; }
.hero-copy { position:relative; z-index:2; }
.hero-copy h3 { font-size:clamp(1.6rem,2.4vw,2.65rem); margin:.25rem 0 .55rem; line-height:1.02; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.hero-mascot-wrap { position:relative; align-self:stretch; display:flex; align-items:flex-end; justify-content:center; min-height:300px; }
.hero-mascot-wrap .hero-img { position:relative; z-index:2; max-height:330px; width:auto; }
.neon-sun { position:absolute; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,#d9ff4c 0%,rgba(183,255,0,.4) 35%,rgba(111,36,255,.15) 63%,transparent 72%); filter:blur(2px); }
.dashboard-card { min-height:220px; }
.premium-header { background:linear-gradient(110deg,#fff,#f8f4ff); border-left:6px solid var(--green); margin-bottom:16px; }
.nutrition-head { border-left-color:var(--purple); }
.mascot-strip-card { margin-top:16px; display:grid; grid-template-columns:1fr minmax(360px,.9fr); gap:18px; align-items:center; background:linear-gradient(100deg,#fff,#f5ffe0); overflow:hidden; }
.pose-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.pose-strip img { width:100%; aspect-ratio:1.3/1; object-fit:contain; border-radius:18px; border:2px solid white; box-shadow:0 8px 22px rgba(0,0,0,.13); }

.exercise-card { overflow:hidden; border:1px solid #ede9f5; }
.exercise-title-row { position:relative; }
.exercise-visual-banner { margin:-4px -4px 14px; border-radius:18px; overflow:hidden; display:grid; grid-template-columns:200px 1fr; background:linear-gradient(110deg,#221044,#f2ffe0); min-height:150px; }
.exercise-visual-banner img { width:100%; height:100%; min-height:150px; object-fit:contain; }
.exercise-visual-copy { color:white; padding:18px; display:flex; flex-direction:column; justify-content:center; }
.exercise-visual-copy strong { color:var(--green); font-size:1.2rem; }
.exercise-visual-copy span { color:#e7e1ef; font-size:.86rem; margin-top:5px; }
.exercise-details summary { padding:6px 0; }
.exercise-detail-text .coach-box { grid-template-columns:120px 1fr; overflow:hidden; }
.exercise-detail-text .coach-box img { width:120px; height:100px; object-fit:contain; border-radius:14px; }

.estimator-card { margin-top:18px; border:1px solid rgba(183,255,0,.45); background:linear-gradient(135deg,#fff,#f9ffec); }
.estimator-hero { display:grid; grid-template-columns:180px 1fr; gap:18px; align-items:center; margin-bottom:12px; }
.estimator-hero img { width:180px; height:145px; object-fit:contain; border-radius:18px; }
.calculator-result { margin:14px 0; padding:16px; border-radius:18px; background:#17131f; color:white; display:grid; gap:8px; }
.calculator-result strong { color:var(--green); font-size:1.8rem; }
.calculator-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.calculator-metric { padding:10px; background:rgba(255,255,255,.07); border-radius:12px; }
.calculator-metric span { display:block; font-size:.72rem; color:#c4bdcf; }
.calculator-metric b { font-size:1rem; }
.empty-calculator { color:#d0cad8; }
.disclaimer { color:var(--muted); font-size:.78rem; line-height:1.45; }

.nutrition-builder-grid { grid-template-columns:1.15fr .85fr; margin-bottom:16px; }
.meal-builder-card { border-top:5px solid var(--green); }
.meal-total-card { background:linear-gradient(160deg,#171020,#2a0a5e); color:white; }
.meal-total-card label { color:#eee9f7; }
.meal-total-card input { background:white; }
.meal-total-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.meal-total-head h3 { margin:0; }
.meal-builder-items { display:grid; gap:8px; margin:14px 0; max-height:380px; overflow:auto; }
.meal-food-row { display:grid; grid-template-columns:1fr auto auto; gap:8px; align-items:center; padding:10px; background:rgba(255,255,255,.08); border-radius:14px; }
.meal-food-row small { color:#c8bfd5; display:block; margin-top:2px; }
.meal-food-row strong { color:white; }
.meal-food-row .food-kcal { color:var(--green); font-weight:900; white-space:nowrap; }
.meal-food-remove { border:none; background:rgba(255,255,255,.12); color:white; width:30px; height:30px; border-radius:50%; }
.meal-total-kcal { display:flex; align-items:end; justify-content:space-between; gap:12px; padding:16px 0; border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14); margin-bottom:12px; }
.meal-total-kcal span { color:#d3cadd; }
.meal-total-kcal strong { color:var(--green); font-size:2rem; }
.macro-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.macro-pill { background:rgba(255,255,255,.08); border-radius:12px; padding:10px; text-align:center; }
.macro-pill span { color:#bdb4c9; font-size:.72rem; display:block; }
.macro-pill strong { color:white; }
.quick-food-card { margin-bottom:16px; }
.manual-meal-card { margin-bottom:16px; }
.manual-meal-card summary,.nutrition-advanced summary { cursor:pointer; font-weight:900; color:var(--purple); }
.mini-form.four-cols,.four-cols { grid-template-columns:repeat(4,1fr); }

.mascot-progress-card { margin-top:16px; display:grid; grid-template-columns:220px 1fr; gap:18px; align-items:center; overflow:hidden; background:linear-gradient(120deg,#fff,#f4ffe0); }
.mascot-progress-card img { width:220px; height:170px; object-fit:contain; border-radius:18px; }
.progress-entry-card { border-top:5px solid var(--purple); }
.cloud-card { border-top:5px solid var(--green); }
.cloud-config-details summary { cursor:pointer; font-weight:900; color:var(--purple); }
.connected-box { display:grid; gap:4px; background:#efffc9; color:#284400; border-radius:16px; padding:14px; margin:12px 0; }
.settings-actions { display:grid; gap:10px; }

@media (max-width:1180px) {
  .hero-grid,.nutrition-builder-grid { grid-template-columns:1fr; }
  .mascot-strip-card { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .main-content { padding:10px 10px 20px; }
  .topbar-actions { grid-template-columns:1fr 1fr; }
  .cloud-status-btn { grid-column:1/-1; justify-content:center; }
  .hero-card { min-height:auto; grid-template-columns:1fr; padding:14px; }
  .hero-mascot-wrap { min-height:220px; }
  .hero-mascot-wrap .hero-img { max-height:245px; }
  .hero-actions { display:grid; grid-template-columns:1fr 1fr; }
  .stats-grid { gap:8px; }
  .stat-card { padding:12px; border-radius:16px; }
  .stat-card strong { font-size:1.32rem; }
  .exercise-visual-banner { grid-template-columns:120px 1fr; min-height:120px; }
  .exercise-visual-banner img { min-height:120px; }
  .exercise-visual-copy { padding:12px; }
  .exercise-detail-text .coach-box { grid-template-columns:90px 1fr; }
  .exercise-detail-text .coach-box img { width:90px; height:85px; }
  .estimator-hero { grid-template-columns:110px 1fr; }
  .estimator-hero img { width:110px; height:105px; }
  .calculator-metrics { grid-template-columns:1fr 1fr; }
  .mini-form.four-cols,.four-cols { grid-template-columns:1fr 1fr; }
  .meal-food-row { grid-template-columns:1fr auto 30px; }
  .macro-grid { gap:5px; }
  .mascot-strip-card { padding:14px; }
  .pose-strip { grid-template-columns:repeat(3,1fr); }
  .mascot-progress-card { grid-template-columns:120px 1fr; padding:12px; }
  .mascot-progress-card img { width:120px; height:120px; }
}
.exercise-burn-chip { margin:10px 0; padding:9px 12px; border-radius:12px; background:#fff3d8; color:#7c4e00; font-size:.82rem; font-weight:800; border:1px solid #ffe2a6; }

/* v2.2 final polish */
.recovery-preview{display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center;background:linear-gradient(120deg,#f5efff,#f4ffe2);border:1px solid #e5dafc;border-radius:18px;padding:12px;overflow:hidden}
.recovery-preview img{width:150px;height:120px;object-fit:contain}
.recovery-preview strong{font-size:1.05rem}
.exercise-visual-banner img,.pose-strip img,.estimator-hero img,.mascot-progress-card img,.exercise-detail-text .coach-box img{background:radial-gradient(circle at center,#f7f2ff,#ede9f6)}
@media(max-width:760px){.recovery-preview{grid-template-columns:105px 1fr}.recovery-preview img{width:105px;height:95px}}
