:root {
  --bg: #07110f;
  --bg2: #0c1514;
  --card: rgba(13, 24, 22, 0.76);
  --card-border: rgba(138, 237, 198, 0.16);
  --text: #effaf6;
  --muted: #a4b9b1;
  --accent: #70e0b7;
  --accent2: #8fd4ff;
  --accent3: #ffb86b;
  --warn: #ffb86b;
  --danger: #ff8080;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(112, 224, 183, 0.18), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(143, 212, 255, 0.14), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(255, 184, 107, 0.10), transparent 24%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  opacity: 0.28;
}

button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 10%, rgba(112, 224, 183, 0.16), transparent 18%),
    radial-gradient(circle at 20% 80%, rgba(143, 212, 255, 0.10), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 184, 107, 0.06), transparent 36%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 44px);
  margin: 0 -18px 14px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 17, 15, 0.92), rgba(7, 17, 15, 0.68));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-toggle {
  padding: 10px 14px;
  border-radius: 999px;
}

.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.05; margin-top: 8px; }
h3 { font-size: 1.25rem; margin-top: 8px; }

.topbar-pill {
  border: 1px solid rgba(112, 224, 183, 0.22);
  background: linear-gradient(135deg, rgba(112, 224, 183, 0.14), rgba(143, 212, 255, 0.08));
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.version-pill {
  opacity: 0.9;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0 48px;
}

.grid { display: grid; gap: 18px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}

.hero-banner {
  gap: 26px;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-chip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.hero-chip span { font-size: 1.1rem; }
.hero-chip strong { font-size: 1.4rem; letter-spacing: -0.03em; }
.hero-chip small { color: var(--muted); }

.hero-side {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(112, 224, 183, 0.10);
  margin-top: 8px;
}

.small { font-size: 0.95rem; line-height: 1.6; }

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

.hero-userline {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.mini-card span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }
.mini-card strong { font-size: 1.15rem; }

.card-inner {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 224, 183, 0.24), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 212, 255, 0.18), transparent 66%);
  pointer-events: none;
}

.lead { color: var(--muted); margin-top: 12px; max-width: 62ch; line-height: 1.7; }
.hero-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.hero-points li {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}
.hero-points li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(112, 224, 183, 0.08);
}

.panel { padding: 22px; }

.panel h3 { margin-bottom: 6px; }

.auth-copy {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 8px 0 14px;
}

.guide-card {
  background: linear-gradient(160deg, rgba(112,224,183,0.12), rgba(143,212,255,0.08) 55%, rgba(255,184,107,0.08));
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.guide-step {
  position: relative;
  padding: 16px 16px 16px 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.guide-step span {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #071311;
  font-weight: 800;
}

.guide-step strong {
  display: block;
  margin-bottom: 4px;
}

.guide-step p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.stats { margin: 18px 0; }
.tile-strip .stat:nth-child(1) { background: linear-gradient(180deg, rgba(112,224,183,0.10), rgba(255,255,255,0.03)); }
.tile-strip .stat:nth-child(2) { background: linear-gradient(180deg, rgba(143,212,255,0.10), rgba(255,255,255,0.03)); }
.tile-strip .stat:nth-child(3) { background: linear-gradient(180deg, rgba(255,184,107,0.10), rgba(255,255,255,0.03)); }
.tile-strip .stat:nth-child(4) { background: linear-gradient(180deg, rgba(112,224,183,0.08), rgba(255,255,255,0.03)); }
.stat {
  padding: 18px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}
.stat:nth-child(2)::before { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, var(--accent3), var(--accent)); }
.stat:nth-child(4)::before { background: linear-gradient(90deg, var(--accent), var(--accent3)); }
.stat span { color: var(--muted); font-size: 0.9rem; }
.stat strong { font-size: 1.9rem; letter-spacing: -0.03em; }
.stat small { color: var(--muted); }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(135deg, rgba(112,224,183,0.16), rgba(143,212,255,0.10));
  border: 1px solid rgba(112,224,183,0.18);
}

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

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

.overview-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  min-height: 148px;
}

.overview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.overview-card .overview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.overview-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
}

.overview-card strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.overview-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.overview-card .mini-progress {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.overview-card .mini-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.overview-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.overview-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent3), var(--accent)); }
.overview-card:nth-child(4)::before { background: linear-gradient(90deg, var(--accent), var(--accent3)); }

.progress-panel {
  display: grid;
  gap: 12px;
}

.version-panel {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px dashed rgba(112,224,183,0.24);
  background: linear-gradient(135deg, rgba(112,224,183,0.10), rgba(143,212,255,0.06));
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.version-text {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.health-latest {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.health-latest strong {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.health-latest .meta,
.sync-card .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.health-latest .hint,
.sync-card .hint {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.sync-list {
  display: grid;
  gap: 12px;
}

.sync-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 12px;
}

.sync-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sync-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-metrics span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.82rem;
}

.progress-shell {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.progress-row strong {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.progress-meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(112,224,183,0.14), rgba(143,212,255,0.08));
  border: 1px solid rgba(112,224,183,0.18);
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(112,224,183,0.3);
}

.progress-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-foot span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

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

.week-day {
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 146px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.week-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.week-day .day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.week-day .day-name {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.week-day .day-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.week-day .day-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.week-day .day-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.week-day .day-bar {
  margin-top: auto;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.week-day .day-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.week-day.today {
  border-color: rgba(112,224,183,0.26);
  background: linear-gradient(180deg, rgba(112,224,183,0.10), rgba(255,255,255,0.03));
}

.chart-wrap svg path {
  vector-effect: non-scaling-stroke;
}

.chart-wrap .animated-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 1.3s ease forwards;
}

.chart-wrap .animated-area {
  opacity: 0;
  animation: fadeInArea 0.8s ease 0.15s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
  to { opacity: 0.95; }
}

.goal-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.goal-card .goal-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.goal-icon,
.overview-icon {
  display: inline-grid;
  place-items: center;
}

.goal-icon svg,
.overview-icon svg,
.stat-icon svg {
  width: 18px;
  height: 18px;
}

.overview-icon svg {
  width: 20px;
  height: 20px;
}

.goal-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.goal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chart-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(112,224,183,0.12), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(143,212,255,0.10), transparent 24%),
    rgba(255,255,255,0.03);
}

.tile-panel {
  position: relative;
  overflow: hidden;
}

.tile-panel::after {
  content: "";
  position: absolute;
  inset: auto -26px -26px auto;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(112,224,183,0.12), transparent 65%);
  pointer-events: none;
}

#weightChart {
  width: 100%;
  height: 260px;
  display: block;
}

.chart-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
}

.chart-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.form { display: grid; gap: 12px; margin-top: 18px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact { gap: 10px; }
.form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.93rem; }
input, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
input:focus, select:focus {
  border-color: rgba(112, 224, 183, 0.7);
  box-shadow: 0 0 0 4px rgba(112, 224, 183, 0.14);
  transform: translateY(-1px);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #071311; box-shadow: 0 12px 30px rgba(112, 224, 183, 0.18); }
.secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.08); }
.ghost { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,0.08); }
.full { width: 100%; }

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

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

.notice.warn { color: var(--warn); border: 1px solid rgba(255,184,107,0.22); box-shadow: inset 0 0 0 1px rgba(255,184,107,0.08); }
.notice.ok { color: var(--accent2); border: 1px solid rgba(112,224,183,0.18); box-shadow: inset 0 0 0 1px rgba(112,224,183,0.08); }

.list, .stack { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.list li, .stack > div, .photo-card, .suggestion {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 12px 14px;
}

.list li { display: flex; justify-content: space-between; gap: 12px; }
.list small, .meta, .hint { color: var(--muted); }

.suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.suggestion strong, .photo-card strong { display: block; margin-bottom: 4px; }
.suggestion {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
}
.suggestion::after {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle, rgba(112, 224, 183, 0.14), transparent 70%);
}

.suggestion-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.suggestion-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(112,224,183,0.16);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recipe-block {
  display: grid;
  gap: 8px;
}

.recipe-title {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.recipe-list,
.recipe-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  line-height: 1.45;
  font-size: 0.92rem;
}

.recipe-list li,
.recipe-steps li {
  background: transparent;
  border: 0;
  padding: 0;
}

.photo-result { margin-top: 14px; }
.photo-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.photo-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(7, 17, 15, 0.96);
  border: 1px solid rgba(112,224,183,0.22);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

body[data-theme="light"] {
  --bg: #eef5f2;
  --bg2: #dff0ea;
  --card: rgba(255,255,255,0.78);
  --card-border: rgba(14, 44, 36, 0.10);
  --text: #0d1e1a;
  --muted: #51645d;
  --accent: #138f6b;
  --accent2: #3a7bd5;
  --accent3: #d48b28;
  --shadow: 0 24px 70px rgba(25, 42, 38, 0.14);
}

body[data-theme="light"] .bg {
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 143, 107, 0.16), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(58, 123, 213, 0.12), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(212, 139, 40, 0.10), transparent 24%);
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .hero-side,
body[data-theme="light"] .stat,
body[data-theme="light"] .list li,
body[data-theme="light"] .stack > div,
body[data-theme="light"] .photo-card,
body[data-theme="light"] .suggestion,
body[data-theme="light"] .goal-card,
body[data-theme="light"] .mini-card {
  background: rgba(255,255,255,0.82);
}

body[data-theme="light"] .hero-chip {
  background: rgba(255,255,255,0.84);
  border-color: rgba(13,30,26,0.08);
}

body[data-theme="light"] .hero-userline,
body[data-theme="light"] .guide-step {
  background: rgba(255,255,255,0.84);
  border-color: rgba(13,30,26,0.08);
}

body[data-theme="light"] .chart-wrap {
  background:
    radial-gradient(circle at 20% 20%, rgba(19,143,107,0.10), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(58,123,213,0.08), transparent 24%),
    rgba(255,255,255,0.05);
}

body[data-theme="light"] .week-day {
  background: rgba(255,255,255,0.84);
  border-color: rgba(13,30,26,0.08);
}

body[data-theme="light"] .week-day.today {
  background: linear-gradient(180deg, rgba(19,143,107,0.10), rgba(255,255,255,0.05));
}

body[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(238,245,242,0.96), rgba(238,245,242,0.78));
  border-bottom: 1px solid rgba(13,30,26,0.08);
}

body[data-theme="light"] .topbar-toggle {
  color: var(--text);
}

@media (max-width: 980px) {
  .two-cols, .four-cols, .auth-grid, .hero, .form-grid, .overview-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { padding: 24px; }
  .hero-strip, .goal-grid { grid-template-columns: 1fr; }
  .week-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 18px, 1180px); }
  .panel, .hero { padding: 18px; }
  .suggestions { grid-template-columns: 1fr; }
  .topbar { margin: 0 -9px 14px; }
  .week-strip { grid-template-columns: 1fr; }
}
