:root {
  --bg: #050914;
  --bg2: #071327;
  --card: rgba(14, 26, 49, 0.86);
  --card2: rgba(19, 36, 70, 0.68);
  --text: #eef6ff;
  --muted: #9fb3ce;
  --line: rgba(132, 173, 255, 0.20);
  --cyan: #24d7ff;
  --green: #2fe0aa;
  --danger: #ff6969;
  --warning: #ffc56d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top right, #123d7a 0%, var(--bg2) 34%, var(--bg) 100%);
  color: var(--text);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 2%, rgba(36,215,255,.15), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(47,224,170,.13), transparent 24%);
}
#app { min-height: 100vh; padding: 18px 16px 104px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow { color: var(--cyan); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
h1 { margin: 4px 0 0; font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: not-allowed; }
.ghost-btn, .primary-btn, .nav-btn, .pill-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.ghost-btn:active, .primary-btn:active, .nav-btn:active, .pill-btn:active { transform: scale(.98); }
.primary-btn { border-color: rgba(47,224,170,.45); background: linear-gradient(135deg, rgba(36,215,255,.22), rgba(47,224,170,.24)); font-weight: 750; }
.pill-btn { border-radius: 999px; padding: 9px 12px; font-size: 13px; }
.danger-btn { border-color: rgba(255,105,105,.3); color: #ffc6c6; }
.card, .hero-card, .glass-card, .plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.hero-card { background: linear-gradient(135deg, rgba(18, 45, 88, .92), rgba(8, 22, 45, .88)); border-color: rgba(36,215,255,.28); }
.glass-card { background: rgba(255,255,255,.045); box-shadow: none; border-radius: 20px; }
.plan-card { display: grid; gap: 10px; background: rgba(255,255,255,.04); }
.price { font-size: 22px; font-weight: 800; color: #bfffee; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 12px; }
.screen { display: none; gap: 12px; }
.screen.active { display: grid; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hero-number { font-size: 54px; font-weight: 900; line-height: .92; letter-spacing: -0.06em; margin-top: 8px; }
.hero-subtitle { color: var(--muted); }
.circle-progress {
  --p: 0;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #0a1428 0 57%, transparent 58%),
    conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 24px rgba(47,224,170,.18);
  font-size: 20px;
  font-weight: 900;
}
.metric-card .label { color: var(--muted); font-size: 12px; }
.metric-card .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.progress-group { display: grid; gap: 10px; }
.progress-row { display: grid; gap: 6px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; }
.progress { width: 100%; height: 10px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.section-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.muted { color: var(--muted); }
.entry-card { display: grid; gap: 10px; }
.entry-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.entry-title { font-weight: 800; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.05); }
.strong-tag { color: #eafcff; border-color: rgba(47,224,170,.24); background: rgba(47,224,170,.08); }
.items-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: rgba(5, 11, 22, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.nav-btn { padding: 10px 5px; font-size: 11px; border-radius: 15px; }
.nav-btn.active { background: linear-gradient(135deg, rgba(36,215,255,.18), rgba(47,224,170,.18)); color: #fff; border-color: rgba(47,224,170,.32); }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
textarea,
input {
  width: 100%;
  background: rgba(255,255,255,.065);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}
textarea:focus,
input:focus { border-color: rgba(36,215,255,.5); box-shadow: 0 0 0 3px rgba(36,215,255,.08); }
textarea { resize: vertical; min-height: 92px; line-height: 1.35; }
.ai-card { border-color: rgba(36,215,255,.26); background: linear-gradient(135deg, rgba(36,215,255,.10), rgba(47,224,170,.08)); }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.two-actions { display: grid; grid-template-columns: 1fr 1fr; }
.entry-actions { margin-top: 4px; }
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.center-note { text-align: center; color: var(--muted); padding: 14px; }
.error { color: #ffb3b3; }
.form-card { border-color: rgba(47,224,170,.20); }
.weight-chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 14px 0 4px; }
.weight-bar { flex: 1; min-width: 22px; height: 100%; display: grid; align-items: end; text-align: center; color: var(--muted); font-size: 10px; }
.weight-bar span { display: block; width: 100%; min-height: 10px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--cyan), var(--green)); box-shadow: 0 0 16px rgba(36,215,255,.2); }
.weight-bar small { margin-top: 5px; }
@media (max-width: 420px) {
  #app { padding-left: 10px; padding-right: 10px; }
  h1 { font-size: 30px; }
  .hero-number { font-size: 46px; }
  .circle-progress { width: 82px; height: 82px; font-size: 18px; }
  .bottom-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nav-btn { padding: 10px 2px; font-size: 10px; }
}

/* Sprint 4: smoother date navigation and softer product feel */
.screen.active {
  animation: screenFade .18s ease-out;
}
@keyframes screenFade {
  from { opacity: .55; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.date-navigator {
  display: grid;
  grid-template-columns: 44px 1fr 44px auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}
.compact-card { box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.date-center {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}
.date-center span { font-size: 15px; }
.date-center input {
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  max-width: 135px;
}
.date-navigator .pill-btn { padding: 10px 11px; }
.today-btn { white-space: nowrap; }
.card, .hero-card, .glass-card, .plan-card { transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.card:active, .hero-card:active, .glass-card:active { transform: scale(.995); }
@media (max-width: 420px) {
  .date-navigator { grid-template-columns: 38px 1fr 38px; }
  .date-navigator .today-btn { grid-column: 1 / -1; padding: 9px; }
}

/* Sprint 5: плавность, красивый дашборд, карточки дневника, свайпы дат */
html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; }
#app { max-width: 720px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: linear-gradient(180deg, rgba(5,9,20,.96), rgba(5,9,20,.74) 70%, transparent); backdrop-filter: blur(12px); margin: -18px -16px 14px; padding-left: 16px; padding-right: 16px; padding-bottom: 12px; }
.screen { opacity: 0; transform: translateY(10px); }
.screen.active { opacity: 1; transform: translateY(0); animation: screenIn .28s cubic-bezier(.2,.82,.2,1); }
.screen.active.slide-left { animation: slideLeftIn .26s cubic-bezier(.2,.82,.2,1); }
.screen.active.slide-right { animation: slideRightIn .26s cubic-bezier(.2,.82,.2,1); }
.screen.soft-loading { opacity: 1; filter: none; transform: translateY(0) scale(.998); transition: transform .14s ease; }
@keyframes screenIn { from { opacity: .2; transform: translateY(14px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideLeftIn { from { opacity: .35; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRightIn { from { opacity: .35; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }

button { user-select: none; }
button:active { transform: scale(.975); }
.primary-btn, .ghost-btn, .pill-btn, .nav-btn, .date-arrow, .today-btn, .chip-btn { transition: transform .14s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary-btn { box-shadow: 0 10px 28px rgba(47,224,170,.12), inset 0 1px 0 rgba(255,255,255,.10); }
.primary-btn:hover { box-shadow: 0 14px 34px rgba(47,224,170,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.card, .hero-card, .glass-card, .plan-card { animation: cardRise .24s ease-out both; }
@keyframes cardRise { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.date-navigator { grid-template-columns: 44px 1fr 44px auto; position: sticky; top: 84px; z-index: 12; border-radius: 26px; padding: 9px; margin-bottom: 2px; background: rgba(8,18,35,.82); backdrop-filter: blur(16px); box-shadow: 0 12px 34px rgba(0,0,0,.25); }
.date-arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(36,215,255,.12), rgba(255,255,255,.04)); color: var(--text); font-size: 28px; line-height: 1; display: grid; place-items: center; }
.date-center { position: relative; }
.date-main { font-size: 16px !important; letter-spacing: -.02em; }
.date-sub { font-size: 12px; color: var(--muted); font-weight: 550; text-transform: capitalize; }
.date-center input { position: absolute; inset: 0; opacity: 0; cursor: pointer; max-width: none !important; height: 100%; }
.today-btn { border: 1px solid rgba(47,224,170,.26); border-radius: 999px; background: rgba(47,224,170,.08); color: #dffff5; padding: 10px 12px; font-weight: 750; }

.dashboard-hero { overflow: hidden; position: relative; padding: 18px; }
.dashboard-hero::before { content:''; position:absolute; width: 220px; height: 220px; right:-90px; top:-80px; background: radial-gradient(circle, rgba(36,215,255,.20), transparent 68%); pointer-events:none; }
.hero-copy { min-width: 0; }
.big-ring { width: 112px; height: 112px; font-size: 20px; }
.big-ring > div { display: grid; place-items: center; gap: 2px; }
.big-ring small { font-size: 11px; color: var(--muted); font-weight: 600; }
.smart-tip { border: 1px solid rgba(47,224,170,.16); background: rgba(47,224,170,.065); color: #dffdf4; border-radius: 18px; padding: 12px 13px; line-height: 1.35; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-metrics .metric-card { padding: 12px; }
.hero-metrics .metric-card .value { font-size: 23px; }
.hero-metrics small { color: var(--muted); }
.macro-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.macro-card { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.045); border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.macro-label { color: var(--muted); font-size: 12px; }
.macro-value { font-size: 19px; font-weight: 850; }
.macro-value small { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 600; }
.micro-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.065); overflow: hidden; }
.micro-progress span { display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-card-home { background: rgba(14,26,49,.72); }

.diary-summary { border-color: rgba(36,215,255,.22); }
.macro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macro-strip span { text-align: center; padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid rgba(255,255,255,.05); }
.meal-section { display: grid; gap: 9px; }
.meal-header { display: flex; align-items: center; justify-content: space-between; color: #dff3ff; font-weight: 850; padding: 2px 4px 0; }
.meal-header span:last-child { color: var(--muted); font-size: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); border-radius: 999px; padding: 4px 8px; }
.entry-card { position: relative; background: linear-gradient(135deg, rgba(17,31,60,.92), rgba(10,21,42,.86)); border: 1px solid rgba(132,173,255,.17); border-radius: 22px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.entry-card::before { content:''; position:absolute; left:0; top:16px; bottom:16px; width:3px; border-radius: 0 999px 999px 0; background: linear-gradient(180deg, var(--cyan), var(--green)); opacity:.85; }
.entry-card .entry-head { padding-left: 4px; }
.swipe-card { animation: cardSwipeIn .22s ease-out both; }
@keyframes cardSwipeIn { from { opacity:.35; transform: translateX(10px); } to { opacity:1; transform: translateX(0); } }
.quick-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: 0 0 auto; border: 1px solid rgba(36,215,255,.18); background: rgba(36,215,255,.07); color: #dff7ff; border-radius: 999px; padding: 9px 12px; font-size: 13px; }
.empty-state { text-align: center; display: grid; justify-items: center; gap: 8px; color: var(--muted); padding: 26px 18px; }
.empty-state b { color: var(--text); font-size: 17px; }
.empty-icon { width: 54px; height: 54px; border-radius: 999px; display:grid; place-items:center; background: rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.08); font-size: 25px; }

.skeleton-card { display: grid; gap: 12px; }
.skeleton-line { height: 15px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 220% 100%; animation: skeletonPulse 1.05s linear infinite; }
.skeleton-line.wide { height: 28px; width: 74%; }
.skeleton-line.short { width: 52%; }
@keyframes skeletonPulse { from { background-position: 0% 0; } to { background-position: -220% 0; } }

.bottom-nav { box-shadow: 0 -18px 34px rgba(0,0,0,.34); }
.nav-btn { min-height: 46px; }
.nav-btn.active { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(36,215,255,.10); }

@media (min-width: 520px) {
  .macro-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .topbar { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
  .date-navigator { top: 76px; grid-template-columns: 40px 1fr 40px; }
  .date-navigator .today-btn { grid-column: 1 / -1; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics .metric-card:last-child { grid-column: 1 / -1; }
  .big-ring { width: 92px; height: 92px; }
  .section-row { align-items: flex-start; }
}

/* Sprint 6: cleaned bottom navigation + central add action */
#app { padding-bottom: 118px; }
.bottom-nav.compact-nav {
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  align-items: center;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.compact-nav .nav-btn {
  min-height: 52px;
  padding: 8px 5px;
  border-radius: 18px;
  font-size: 11px;
  display: grid;
  place-items: center;
  gap: 3px;
  line-height: 1.05;
}
.nav-icon { font-size: 17px; line-height: 1; }
.compact-nav .nav-add-btn {
  width: 62px;
  height: 62px;
  min-height: 62px;
  border-radius: 999px;
  margin: -28px auto 0;
  font-size: 34px;
  line-height: 1;
  color: #04131c;
  border-color: rgba(47,224,170,.72);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 38px rgba(47,224,170,.28), 0 0 0 8px rgba(5,11,22,.92);
}
.compact-nav .nav-add-btn span { transform: translateY(-2px); }
.compact-nav .nav-add-btn:active { transform: translateY(1px) scale(.96); }
.compact-nav .nav-btn.active:not(.nav-add-btn) {
  background: linear-gradient(135deg, rgba(36,215,255,.18), rgba(47,224,170,.17));
  border-color: rgba(47,224,170,.38);
}

.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  opacity: 0;
  transition: opacity .2s ease;
}
.sheet-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  border: 1px solid rgba(132,173,255,.22);
  border-radius: 28px;
  padding: 10px 14px 16px;
  background: linear-gradient(180deg, rgba(13,26,50,.98), rgba(6,15,31,.98));
  box-shadow: 0 -22px 60px rgba(0,0,0,.48);
  transform: translateY(112%);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.action-sheet.open { pointer-events: auto; }
.action-sheet.open .sheet-backdrop { opacity: 1; }
.action-sheet.open .sheet-panel { transform: translateY(0); }
.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  margin: 2px auto 12px;
  background: rgba(255,255,255,.22);
}
.sheet-title {
  font-size: 18px;
  font-weight: 850;
  margin: 0 0 12px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sheet-action {
  text-align: left;
  border: 1px solid rgba(132,173,255,.18);
  background: rgba(255,255,255,.055);
  color: var(--text);
  border-radius: 20px;
  padding: 14px;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.sheet-action b { font-size: 14px; }
.sheet-action span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.profile-link { min-height: 52px; padding: 10px 8px; }
.compact-chart { min-height: 96px; }

@media (max-width: 420px) {
  .bottom-nav.compact-nav { grid-template-columns: 1fr 1fr 58px 1fr 1fr; gap: 6px; padding-left: 8px; padding-right: 8px; }
  .compact-nav .nav-btn { font-size: 10.5px; min-height: 50px; border-radius: 16px; }
  .compact-nav .nav-add-btn { width: 58px; height: 58px; min-height: 58px; font-size: 31px; }
  .sheet-grid { grid-template-columns: 1fr; }
  .profile-actions { grid-template-columns: 1fr; }
}


/* Sprint 7: typography polish + light/dark/system themes */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-main: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --surface-soft: rgba(255,255,255,.055);
  --shadow-soft: 0 18px 46px rgba(0,0,0,.24);
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.theme-dark {
  --bg: #050914;
  --bg2: #071327;
  --card: rgba(14, 26, 49, 0.88);
  --card2: rgba(19, 36, 70, 0.70);
  --text: #f4f8ff;
  --muted: #a8b8cf;
  --line: rgba(132, 173, 255, 0.20);
  --cyan: #24d7ff;
  --green: #2fe0aa;
  --danger: #ff7474;
  --warning: #ffc56d;
  background: radial-gradient(circle at top right, #123d7a 0%, var(--bg2) 34%, var(--bg) 100%);
}

body.theme-light {
  --bg: #f5f8fd;
  --bg2: #eaf2fb;
  --card: rgba(255,255,255,.92);
  --card2: rgba(241,247,255,.84);
  --text: #142033;
  --muted: #64748b;
  --line: rgba(36, 75, 120, .14);
  --cyan: #0ba8d8;
  --green: #0ca678;
  --danger: #d64545;
  --warning: #b7791f;
  background:
    radial-gradient(circle at top right, rgba(43,170,226,.22) 0%, transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%);
}

body.theme-light::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(11,168,216,.16), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(12,166,120,.12), transparent 24%);
}

h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 850;
}

.section-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hero-number {
  font-weight: 900;
  letter-spacing: -0.075em;
}

.entry-title, .meal-header, .sheet-title {
  font-weight: 850;
  letter-spacing: -0.025em;
}

.card, .hero-card, .glass-card, .plan-card {
  box-shadow: var(--shadow-soft);
}

body.theme-light .card,
body.theme-light .hero-card,
body.theme-light .glass-card,
body.theme-light .plan-card {
  color: var(--text);
  box-shadow: 0 18px 44px rgba(41, 72, 106, .12);
}

body.theme-light .hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(231,246,255,.88));
  border-color: rgba(11,168,216,.20);
}

body.theme-light .glass-card,
body.theme-light .entry-card,
body.theme-light .date-navigator,
body.theme-light textarea,
body.theme-light input {
  background: rgba(255,255,255,.74);
}

body.theme-light .entry-card {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(236,246,255,.78));
  border-color: rgba(36, 75, 120, .12);
}

body.theme-light .bottom-nav,
body.theme-light .sheet-panel {
  background: rgba(248, 251, 255, .96);
  border-color: rgba(36, 75, 120, .14);
  box-shadow: 0 -16px 34px rgba(41, 72, 106, .14);
}

body.theme-light .compact-nav .nav-add-btn {
  color: #fff;
  box-shadow: 0 16px 38px rgba(12,166,120,.23), 0 0 0 8px rgba(248,251,255,.92);
}

body.theme-light .sheet-backdrop { background: rgba(23, 38, 56, .32); }
body.theme-light .tag { background: rgba(20,32,51,.045); border-color: rgba(20,32,51,.07); }
body.theme-light .muted, body.theme-light .tag, body.theme-light .items-list { color: var(--muted); }
body.theme-light .primary-btn { color: #07311f; }
body.theme-light .ghost-btn, body.theme-light .pill-btn, body.theme-light .nav-btn, body.theme-light .sheet-action { color: var(--text); background: rgba(255,255,255,.72); }
body.theme-light textarea, body.theme-light input { color: var(--text); }
body.theme-light .circle-progress,
body.theme-light .big-ring { background: radial-gradient(circle at center, #ffffff 0 57%, transparent 58%), conic-gradient(var(--green) calc(var(--p) * 1%), rgba(20,32,51,.08) 0); }

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(132,173,255,.14);
}
.theme-option {
  border: 0;
  border-radius: 14px;
  padding: 11px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.theme-option.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(36,215,255,.18), rgba(47,224,170,.16));
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
body.theme-light .theme-switcher { background: rgba(20,32,51,.045); border-color: rgba(20,32,51,.08); }
body.theme-light .theme-option.active { background: #fff; box-shadow: 0 10px 22px rgba(41,72,106,.10); }

.profile-mini-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 420px) {
  body { font-size: 14.5px; }
  h1 { font-size: 31px; }
  .section-title { font-size: 17px; }
}
