.secondary { background: var(--primary-2); color: var(--primary); }
.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.danger-outline { background: transparent; color: var(--danger); border: 1px solid #e4bcbc; margin-top: 8px; }
.full { width: 100%; }
.hidden { display: none !important; }
.link-button { border: 0; background: transparent; color: var(--primary); font-weight: 800; padding: 6px 0; min-height: 40px; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { min-width: 66px; min-height: 46px; border: 1px solid var(--border); background: white; border-radius: 14px; padding: 10px 8px; font-weight: 700; color: var(--muted); }
.day-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.stack { display: grid; gap: 12px; }
.meal-card, .workout-card { width: 100%; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 5px 20px rgba(26,55,48,.05); }
.meal-card header, .workout-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.meal-card h3, .workout-card h3 { margin-bottom: 4px; }
.meal-meta { color: var(--muted); font-size: .86rem; }
.recipe-button { margin-top: 12px; }
.workout-card.done { border-color: #83b7a7; background: #f2faf7; }
.workout-actions { display: flex; gap: 8px; margin-top: 12px; }
.form-card label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 14px; }
input { width: 100%; min-height: 48px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfb; }
.history-list { display: grid; gap: 10px; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-row small { color: var(--muted); }
.bottom-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; width: 100vw; max-width: none; min-height: 70px; margin: 0; transform: none; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.98); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(26,55,48,.07); backdrop-filter: blur(12px); }
.nav-item { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 2px; font-size: .74rem; padding: 5px 2px; min-height: 54px; }
.nav-item span { font-size: 1.25rem; line-height: 1; }
.nav-item.active { color: var(--primary); font-weight: 800; }
.dialog { width: min(94vw,620px); max-height: 88dvh; border: 0; border-radius: 22px; padding: 20px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(15,28,25,.62); }
.dialog-close { float: right; border: 0; background: #edf2f0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.35rem; }
.recipe-hero { margin: 10px 0 16px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg,var(--primary-2),#fff3df); }
.recipe-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.recipe-stat { background: #f4f6f3; border-radius: 12px; padding: 10px; text-align: center; }
.recipe-stat strong { display: block; }
.timer { font-size: 3rem; font-weight: 900; text-align: center; padding: 20px 0 8px; }
.exercise-name { text-align: center; font-size: 1.35rem; font-weight: 800; }
.exercise-intro { color: var(--muted); margin: -4px 0 16px; font-size: .91rem; }
.exercise-visual-card { min-height: 180px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: linear-gradient(135deg,#dcece6,#fff3df); border-radius: 18px; color: var(--primary); padding: 14px 18px; margin: 14px 0; overflow: hidden; }
.exercise-visual-card small { display: block; color: var(--muted); margin-top: 5px; font-weight: 600; }
.exercise-figure { width: 100%; max-width: 165px; height: 165px; object-fit: contain; justify-self: center; }
.sources-content a { color: var(--primary); font-weight: 800; }
.header-actions { display:flex; gap:8px; align-items:center; }
.profile-choice { width:100%; text-align:left; display:grid; gap:3px; padding:16px; margin-top:10px; border:1px solid var(--border); border-radius:14px; background:#f7faf8; color:var(--text); }
.profile-choice strong { color:var(--primary); font-size:1.05rem; }
.profile-choice small { color:var(--muted); }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-chart { min-height: 72px; display: flex; align-items: flex-end; gap: 8px; padding-top: 4px; }
.chart-bar { flex: 1; min-width: 16px; background: linear-gradient(180deg,var(--accent),#f4c57f); border-radius: 7px 7px 3px 3px; position: relative; }
.chart-bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 8px 4px 2px; }
.evolution-card:has(.empty) { padding-bottom: 14px; }
.evolution-card:has(.empty) .mini-chart { min-height: 42px; align-items: center; }
ul, ol { padding-left: 22px; }
@media (max-width: 360px) {
  .card { padding: 14px; }
  .hero { gap: 10px; }
  .progress-ring { width: 70px; height: 70px; }
  .today-row { align-items: flex-start; }
  .today-row button { padding-left: 11px; padding-right: 11px; }
}
