:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.105);
  --line-soft: rgba(255,255,255,.065);
  --text: #f7f8f2;
  --muted: #a8b0b7;
  --quiet: #69727b;
  --green: #29e574;
  --cyan: #21d2dd;
  --violet: #a77cff;
  --orange: #f5a241;
  --blue: #5d8cff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(41,229,116,.13), transparent 28rem),
    linear-gradient(245deg, rgba(33,210,221,.14), transparent 30rem),
    linear-gradient(180deg, #0b1110 0%, var(--bg) 46%, #050608 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.48), transparent 74%);
}

a { color: inherit; text-decoration: none; }

.shell {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.shell.compact { width: min(1180px, calc(100% - 36px)); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(33,210,221,.18);
}

.links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 12, .66);
  backdrop-filter: blur(18px);
}

.links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  padding: 8px 12px;
  border-radius: 999px;
}

.links a.active,
.links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .9fr);
  gap: 42px;
  align-items: center;
  min-height: 650px;
}

.hero-copy { max-width: 720px; }

.kicker {
  margin: 0 0 14px;
  color: #c4f7d5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.green-dot::before,
.blue-dot::before,
.violet-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(41,229,116,.8);
}

.blue-dot::before { background: var(--cyan); box-shadow: 0 0 18px rgba(33,210,221,.78); }
.violet-dot::before { background: var(--violet); box-shadow: 0 0 18px rgba(167,124,255,.78); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: .9;
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4.6vw, 56px);
  line-height: .96;
  letter-spacing: -.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.lead {
  max-width: 700px;
  color: #c9d0d3;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 850;
}

.button.primary {
  color: #05100b;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 18px 46px rgba(33,210,221,.23);
}

.button.ghost {
  background: rgba(255,255,255,.055);
  color: #dce3e3;
}

.product-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone-surface {
  width: min(390px, 86vw);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)), rgba(10,13,16,.8);
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.15);
  backdrop-filter: blur(22px);
}

.phone-top,
.mini-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-top span,
.insight-line small,
.mini-grid span,
.float-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.phone-top strong {
  color: var(--green);
  font-size: 28px;
  letter-spacing: -.04em;
}

.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 24px;
}

.ring {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
  color: var(--text);
}

.ring-green { background: conic-gradient(var(--green) 82%, rgba(255,255,255,.08) 0); }
.ring-cyan { background: conic-gradient(var(--cyan) 74%, rgba(255,255,255,.08) 0); }
.ring-violet { background: conic-gradient(var(--violet) 67%, rgba(255,255,255,.08) 0); }

.ring span {
  width: 72%;
  height: 72%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #090c0e;
}

.insight-line {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.insight-line p {
  margin: 6px 0 0;
  color: #eef2ec;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 690;
}

.mini-grid { margin-top: 18px; }
.mini-grid div { min-width: 0; }
.mini-grid strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.035em;
}

.float-note {
  position: absolute;
  width: 190px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 10, 12, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

.float-note strong {
  display: block;
  margin-bottom: 4px;
}

.note-a { left: 0; top: 74px; }
.note-b { right: 0; bottom: 86px; }

.section { padding: 48px 0 18px; }

.app-system {
  padding: 42px 0 12px;
}

.system-head {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(260px, .56fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 22px;
}

.system-head p:last-child {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.system-board {
  display: grid;
  grid-template-columns: 1.05fr .95fr .8fr;
  grid-template-areas:
    "meal training water"
    "meal training creatine";
  gap: 14px;
}

.module-panel {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255,255,255,.045);
}

.meal-panel {
  grid-area: meal;
  min-height: 404px;
  background:
    radial-gradient(circle at 18% 10%, rgba(41,229,116,.16), transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}

.training-panel { grid-area: training; }
.water-panel { grid-area: water; }
.creatine-panel { grid-area: creatine; }

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.module-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.module-top strong {
  color: var(--text);
  font-size: 15px;
}

.module-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 620;
}

.macro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.macro-strip span {
  min-height: 74px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.macro-strip b {
  display: block;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.04em;
}

.muscle-map {
  position: relative;
  height: 178px;
  margin: 4px 0 18px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 42%),
    rgba(0,0,0,.18);
  overflow: hidden;
}

.muscle-map span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 30px rgba(33,210,221,.22);
}

.muscle-map .chest { width: 78px; height: 54px; left: calc(50% - 39px); top: 34px; }
.muscle-map .shoulders { width: 160px; height: 36px; left: calc(50% - 80px); top: 24px; opacity: .72; }
.muscle-map .triceps { width: 34px; height: 94px; left: calc(50% + 76px); top: 60px; opacity: .7; }
.muscle-map .legs { width: 88px; height: 62px; left: calc(50% - 44px); bottom: 16px; background: rgba(255,255,255,.12); box-shadow: none; }

.water-meter {
  height: 16px;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.water-meter span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(260px, .55fr);
  gap: 36px;
  align-items: end;
}

.section-copy {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.feature-flow,
.help-grid,
.legal-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--line-soft);
}

.feature-flow { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.help-grid { grid-template-columns: repeat(2, 1fr); }

.feature-flow article,
.help-grid article,
.legal-list section {
  background: rgba(255,255,255,.045);
}

.feature-flow article {
  min-height: 260px;
  padding: 24px;
}

.feature-index,
.help-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.feature-flow p,
.help-grid p,
.legal-list p,
.policy-summary p,
.notice p,
.dashboard-band p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.dashboard-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(41,229,116,.18);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(41,229,116,.14), rgba(33,210,221,.065) 50%, rgba(167,124,255,.09)), rgba(255,255,255,.035);
}

.dashboard-preview {
  min-height: 170px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(3,6,8,.48);
}

.bar {
  height: 12px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
}

.bar.wide { width: 86%; }
.bar.medium { width: 58%; }

.chart-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 95px;
  align-items: end;
  margin-top: 18px;
}

.chart-row span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

.chart-row span:nth-child(1) { height: 48%; opacity: .72; }
.chart-row span:nth-child(2) { height: 72%; }
.chart-row span:nth-child(3) { height: 55%; opacity: .82; }
.chart-row span:nth-child(4) { height: 88%; }
.chart-row span:nth-child(5) { height: 64%; opacity: .9; }

.page-hero { max-width: 780px; margin-bottom: 32px; }

.updated {
  margin-top: 20px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 760;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.policy-summary {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid rgba(41,229,116,.18);
  border-radius: 22px;
  background: rgba(41,229,116,.07);
}

.policy-summary.violet {
  border-color: rgba(167,124,255,.22);
  background: rgba(167,124,255,.08);
}

.policy-summary strong {
  display: block;
  margin-bottom: 8px;
}

.legal-list { display: block; border-radius: 26px; }

.legal-list section {
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-list section:last-child { border-bottom: 0; }

.legal-list h2,
.help-grid h2,
.notice h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.contact { color: var(--green); font-weight: 850; }

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.help-grid article {
  min-height: 210px;
  padding: 24px;
}

.help-grid article:nth-child(2) span { color: var(--green); }
.help-grid article:nth-child(3) span { color: var(--orange); }
.help-grid article:nth-child(4) span { color: var(--blue); }

.notice {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(245,162,65,.24);
  border-radius: 26px;
  background: rgba(245,162,65,.075);
}

.hidden { display: none !important; }

.dashboard-shell {
  min-height: 100vh;
}

.dashboard-state,
.dashboard-login {
  min-height: 620px;
  display: grid;
  align-content: center;
}

.dashboard-state {
  max-width: 820px;
}

.dashboard-state .button {
  width: fit-content;
  margin-top: 22px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.empty-actions .button {
  margin-top: 0;
}

.empty-actions .ghost {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.dashboard-login {
  grid-template-columns: minmax(0, .95fr) 380px;
  gap: 46px;
  align-items: center;
}

.web-onboarding {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
}

.onboarding-copy {
  max-width: 560px;
}

.onboarding-form {
  min-width: 0;
}

.onboarding-card {
  display: none;
  min-height: 480px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
  box-shadow: 0 28px 78px rgba(0,0,0,.28);
}

.onboarding-card.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,.22);
  font: inherit;
  text-transform: none;
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.choice-card {
  display: block;
  width: 100%;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  color: var(--text);
  background: rgba(0,0,0,.18);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.choice-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.38;
}

.choice-card.active {
  border-color: rgba(41,229,116,.45);
  background: rgba(41,229,116,.10);
}

.onboarding-preview {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(33,210,221,.09);
}

.onboarding-preview span,
.target-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onboarding-preview strong {
  font-size: 42px;
  letter-spacing: -.05em;
}

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

.target-preview article {
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.18);
}

.target-preview strong {
  display: block;
  font-size: 34px;
  letter-spacing: -.05em;
}

.onboarding-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.account-edit-button {
  margin-top: 16px;
}

.login-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  box-shadow: 0 28px 78px rgba(0,0,0,.32);
}

.login-button,
.email-login button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.apple-button {
  color: #050608;
  background: #f8faf7;
}

.google-button {
  margin-top: 10px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}

.email-login {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.email-login label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.email-login div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.email-login input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,.22);
  font: inherit;
}

.email-login button {
  color: #05100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.dashboard-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-app {
  padding-bottom: 24px;
}

.web-app-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.web-app-top h1 {
  margin: 0 0 7px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.app-tab-rail {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(8, 11, 12, .68);
  backdrop-filter: blur(20px);
}

.app-tab-rail .tab-button {
  width: auto;
  min-width: max-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0;
}

.account-app-shell {
  display: block;
}

.lyfora-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.command-hero {
  min-height: 380px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 12%, rgba(41,229,116,.20), transparent 19rem),
    radial-gradient(circle at 84% 18%, rgba(33,210,221,.16), transparent 17rem),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.032));
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.command-score {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.command-score h2 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.command-score p:last-child {
  max-width: 560px;
  margin: 0;
  color: #cbd3d4;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.progress-dial {
  --value: 0%;
  --dial-a: var(--green);
  --dial-b: var(--cyan);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -42deg, var(--dial-a) var(--value), rgba(255,255,255,.095) 0),
    rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.progress-dial span {
  width: 73%;
  height: 73%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #080b0c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.progress-dial b {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.progress-dial small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.large-dial { width: 172px; }
.large-dial b { font-size: 42px; }
.cyan-dial { --dial-a: var(--cyan); --dial-b: var(--blue); }
.blue-dial { --dial-a: var(--blue); --dial-b: var(--cyan); }
.violet-dial { --dial-a: var(--violet); --dial-b: var(--orange); }

.dial-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(255,255,255,.032);
  border: 1px solid rgba(255,255,255,.08);
}

.micro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.micro-strip span {
  min-height: 94px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0,0,0,.20);
}

.micro-strip b {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.micro-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-panel-grid,
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 14px;
}

.flow-panel {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 28px;
  background: rgba(255,255,255,.038);
}

.next-panel {
  background:
    linear-gradient(135deg, rgba(245,162,65,.12), rgba(167,124,255,.08)),
    rgba(255,255,255,.032);
}

.flow-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 650;
}

.quick-log-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-log-row button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #06100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.quick-log-row button:nth-child(2) {
  color: var(--text);
  background: rgba(255,255,255,.07);
}

.macro-ribbon {
  display: grid;
  gap: 18px;
}

.macro-ribbon div {
  display: grid;
  gap: 8px;
}

.macro-ribbon span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.macro-ribbon b {
  display: block;
  width: 0;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .25s ease;
}

.macro-ribbon div:nth-child(2) b { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.macro-ribbon div:nth-child(3) b { background: linear-gradient(90deg, var(--orange), var(--violet)); }

.training-map-panel {
  display: grid;
  grid-template-columns: minmax(190px, .52fr) minmax(0, 1fr);
  column-gap: 18px;
}

.training-map-panel .panel-heading {
  grid-column: 1 / -1;
}

.web-muscle-figure {
  position: relative;
  min-height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.11), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  overflow: hidden;
}

.muscle-node {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 28px rgba(33,210,221,.22);
  opacity: .9;
}

.muscle-node.shoulders { width: 142px; height: 32px; left: calc(50% - 71px); top: 36px; }
.muscle-node.chest { width: 74px; height: 58px; left: calc(50% - 37px); top: 58px; }
.muscle-node.arms { width: 188px; height: 82px; left: calc(50% - 94px); top: 78px; opacity: .48; }
.muscle-node.core { width: 58px; height: 92px; left: calc(50% - 29px); top: 120px; opacity: .68; }
.muscle-node.legs { width: 88px; height: 104px; left: calc(50% - 44px); bottom: 24px; opacity: .36; }

.hydration-panel {
  background:
    radial-gradient(circle at 16% 8%, rgba(33,210,221,.18), transparent 17rem),
    rgba(255,255,255,.035);
}

.creatine-panel-web {
  background:
    radial-gradient(circle at 88% 12%, rgba(167,124,255,.16), transparent 17rem),
    rgba(255,255,255,.035);
}

.wrapped-hero-panel {
  min-height: 320px;
  background:
    radial-gradient(circle at 16% 10%, rgba(41,229,116,.16), transparent 22rem),
    radial-gradient(circle at 82% 26%, rgba(167,124,255,.15), transparent 21rem),
    rgba(255,255,255,.035);
}

.dashboard-header,
.account-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-header h1,
.account-topbar h1 {
  margin-bottom: 8px;
}

.account-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}

.account-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 24px;
  color: #05100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 18px 44px rgba(33,210,221,.22);
  font-size: 24px;
  font-weight: 950;
}

.dashboard-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions button {
  color: var(--text);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.account-app-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-tabs {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: rgba(255,255,255,.04);
}

.tab-button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.tab-button.active {
  color: #05100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.account-tab-content {
  min-width: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-heading {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(260px, .55fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}

.tab-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 650;
}

.today-command-center {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 14px;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.account-detail-grid .web-panel {
  min-height: 150px;
}

.account-detail-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.web-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--line-soft);
  margin-bottom: 18px;
}

.web-scoreboard article {
  padding: 20px;
  background: rgba(255,255,255,.045);
}

.web-scoreboard span,
.panel-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.web-scoreboard strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: .95;
  letter-spacing: -.05em;
}

.web-scoreboard small {
  display: block;
  margin-top: 8px;
  color: var(--quiet);
  font-weight: 760;
}

.web-dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}

.web-panel {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255,255,255,.045);
}

.wide-panel {
  grid-column: 1 / -1;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(41,229,116,.12), rgba(33,210,221,.055) 48%, rgba(167,124,255,.10)),
    rgba(255,255,255,.035);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-heading strong {
  color: var(--text);
  font-size: 14px;
}

.meal-list,
.workout-list {
  display: grid;
  gap: 10px;
}

.meal-row,
.workout-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.19);
}

.meal-row strong,
.workout-row strong {
  display: block;
  margin-bottom: 4px;
}

.meal-row span,
.workout-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.meal-row b,
.workout-row b {
  color: var(--green);
}

.macro-bars {
  display: grid;
  gap: 18px;
}

.macro-bars div {
  display: grid;
  gap: 8px;
}

.macro-bars span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.macro-bars b {
  display: block;
  width: 0;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .25s ease;
}

.macro-bars div:nth-child(2) b { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.macro-bars div:nth-child(3) b { background: linear-gradient(90deg, var(--orange), var(--violet)); }

.web-water-ring {
  --water-pct: 0%;
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 10px auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--water-pct), rgba(255,255,255,.1) 0);
}

.web-water-ring span {
  width: 74%;
  height: 74%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #080b0d;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.wrapped-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.wrapped-metrics span {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.wrapped-metrics b {
  display: block;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -.04em;
}

.empty-copy {
  color: var(--muted);
  margin: 0;
}

.dashboard-app .account-app-shell {
  display: block;
}

.dashboard-app .account-tab-content {
  min-width: 0;
}

.dashboard-app .tab-heading {
  grid-template-columns: minmax(0, .82fr) minmax(260px, .48fr);
  margin: 22px 0 16px;
}

.dashboard-app .tab-heading h2 {
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-app .tab-button.active {
  color: #05100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.dashboard-app .web-dashboard-grid.app-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
}

.dashboard-app .account-detail-grid .flow-panel {
  min-height: 142px;
}

.dashboard-app .account-detail-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-app .account-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.dashboard-shell {
  width: min(1280px, calc(100% - 32px));
}

.dashboard-shell .nav {
  margin-bottom: 28px;
}

.dashboard-shell .dashboard-app {
  padding: 6px 0 32px;
}

.dashboard-shell .web-app-top {
  padding: 4px 2px 2px;
  align-items: center;
}

.dashboard-shell .dashboard-actions .button {
  min-height: 42px;
  padding: 0 15px;
}

.dashboard-shell .button.primary {
  box-shadow: none;
}

.dashboard-shell .app-tab-rail {
  top: 10px;
  margin-bottom: 20px;
  border-color: rgba(255,255,255,.09);
  background: rgba(13, 18, 17, .82);
  box-shadow: 0 16px 42px rgba(0,0,0,.20);
}

.dashboard-shell .command-hero,
.dashboard-shell .dial-board,
.dashboard-shell .flow-panel {
  border-color: rgba(255,255,255,.08);
  border-radius: 22px;
  box-shadow: none;
}

.dashboard-shell .command-hero {
  min-height: 350px;
  background:
    linear-gradient(135deg, rgba(41,229,116,.16), rgba(33,210,221,.07) 46%, rgba(255,255,255,.04)),
    #101615;
}

.dashboard-shell .flow-panel,
.dashboard-shell .dial-board {
  background: #0d1212;
}

.dashboard-shell .next-panel {
  background:
    linear-gradient(135deg, rgba(245,162,65,.13), rgba(167,124,255,.06)),
    #101313;
}

.dashboard-shell .micro-strip span,
.dashboard-shell .meal-row,
.dashboard-shell .workout-row,
.dashboard-shell .wrapped-metrics span {
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.dashboard-shell .progress-dial span,
.dashboard-shell .web-water-ring span {
  background: #101615;
}

.dashboard-shell .tab-heading {
  margin-top: 10px;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -2px 0 14px;
}

.section-actions button,
.meal-row button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.065);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.section-actions button:first-child {
  color: #06100b;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.meal-row,
.workout-row {
  align-items: center;
}

.meal-row button {
  min-height: 32px;
  color: #ff9b9b;
  border-color: rgba(255,120,120,.18);
  background: rgba(255,80,80,.08);
}

.editor-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 20px;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
}

.sheet-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #101514;
  box-shadow: 0 28px 100px rgba(0,0,0,.46);
}

.sheet-top,
.sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.sheet-top h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.sheet-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font-size: 26px;
  cursor: pointer;
}

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

.sheet-field {
  display: grid;
  gap: 8px;
}

.sheet-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sheet-field input,
.sheet-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.055);
  font: inherit;
}

  .sheet-actions {
    justify-content: flex-end;
    margin-top: 18px;
  }

/* Lyfora web app reset */
.dashboard-page {
  --app-bg: #eaf1eb;
  --app-ink: #101512;
  --app-muted: #647067;
  --app-soft: rgba(255,255,255,.66);
  --app-line: rgba(16,21,18,.105);
  background:
    radial-gradient(circle at 14% 6%, rgba(41,229,116,.24), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(33,210,221,.20), transparent 25rem),
    linear-gradient(180deg, #f5f8f2 0%, var(--app-bg) 48%, #dfe9e2 100%);
  color: var(--app-ink);
}

.dashboard-page::before {
  opacity: .22;
  background:
    linear-gradient(rgba(16,21,18,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,21,18,.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.dashboard-page .nav {
  color: var(--app-ink);
}

.dashboard-page .links {
  border-color: rgba(16,21,18,.10);
  background: rgba(255,255,255,.62);
}

.dashboard-page .links a {
  color: rgba(16,21,18,.58);
}

.dashboard-page .links a.active,
.dashboard-page .links a:hover {
  color: var(--app-ink);
  background: rgba(16,21,18,.07);
}

.lyfora-webapp {
  color: var(--app-ink);
}

.webapp-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.webapp-person {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.webapp-person h1 {
  margin: 0 0 4px;
  color: var(--app-ink);
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: .95;
  letter-spacing: 0;
}

.webapp-person p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 720;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #167245;
  font-size: 11px;
  font-weight: 920;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.webapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.pill-action,
.icon-action {
  min-height: 42px;
  border: 1px solid rgba(16,21,18,.10);
  border-radius: 999px;
  color: var(--app-ink);
  background: rgba(255,255,255,.62);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.pill-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.pill-action::before,
.quick-log-row button::before,
.section-actions button::before {
  content: attr(data-symbol);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16,21,18,.08);
  font-size: 14px;
  line-height: 1;
}

.pill-action:hover,
.quick-log-row button:hover,
.section-actions button:hover,
.icon-action:hover,
.sheet-close:hover {
  transform: translateY(-1px);
}

.pill-action:active,
.quick-log-row button:active,
.section-actions button:active,
.icon-action:active {
  transform: translateY(1px) scale(.99);
}

.icon-action {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.primary-action {
  border: 0;
  color: #05110b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 14px 34px rgba(29, 191, 133, .22);
}

.primary-action::before,
.quick-log-row button:first-child::before,
.section-actions button:first-child::before {
  background: rgba(5,17,11,.10);
}

.quiet-action {
  color: rgba(16,21,18,.56);
}

.lyfora-webapp .account-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(33,210,221,.18);
}

.lyfora-webapp .app-tab-rail {
  top: 10px;
  margin: 0 0 18px;
  border-color: rgba(16,21,18,.09);
  background: rgba(255,255,255,.70);
  box-shadow: 0 16px 42px rgba(49,70,56,.12);
}

.lyfora-webapp .tab-button {
  color: rgba(16,21,18,.56);
}

.lyfora-webapp .tab-button.active {
  color: #05110b;
  background: linear-gradient(135deg, rgba(41,229,116,.95), rgba(33,210,221,.88));
}

.lyfora-webapp .account-app-shell {
  display: block;
}

.daily-canvas {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(16,21,18,.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 12%, rgba(41,229,116,.30), transparent 20rem),
    radial-gradient(circle at 88% 8%, rgba(33,210,221,.28), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.36));
  box-shadow: 0 32px 90px rgba(42,68,48,.14);
}

.daily-copy h2,
.section-opener h2,
.wrapped-stage h2 {
  margin: 0 0 12px;
  color: var(--app-ink);
  font-size: clamp(42px, 6vw, 82px);
  line-height: .9;
  letter-spacing: 0;
}

.daily-copy p,
.section-opener p,
.wrapped-stage p {
  max-width: 640px;
  margin: 0;
  color: var(--app-muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 690;
}

.context-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.context-line span {
  min-width: 108px;
}

.context-line b {
  display: block;
  color: var(--app-ink);
  font-size: 31px;
  line-height: 1;
}

.context-line small {
  display: block;
  margin-top: 6px;
  color: rgba(16,21,18,.52);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ring-system {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
}

.progress-dial {
  background:
    conic-gradient(from -42deg, var(--dial-a) var(--value), rgba(16,21,18,.10) 0),
    rgba(255,255,255,.42);
}

.progress-dial span {
  background: rgba(250,252,248,.92);
  color: var(--app-ink);
}

.hero-ring {
  width: 238px;
  box-shadow: 0 24px 68px rgba(31,94,69,.18);
}

.hero-ring b {
  font-size: 58px;
}

.mini-ring {
  position: absolute;
  width: 106px;
}

.mini-ring b {
  font-size: 20px;
}

.ring-system .mini-ring:nth-child(2) { left: 4%; top: 7%; }
.ring-system .mini-ring:nth-child(3) { right: 2%; top: 18%; }
.ring-system .mini-ring:nth-child(4) { left: 12%; bottom: 4%; }
.ring-system .mini-ring:nth-child(5) { right: 13%; bottom: 2%; }

.today-flow,
.split-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .54fr);
  gap: 18px;
  margin-top: 18px;
}

.inline-module,
.workspace-main,
.workspace-side,
.wrapped-stage {
  border: 1px solid rgba(16,21,18,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 48px rgba(42,68,48,.09);
}

.inline-module,
.workspace-main,
.workspace-side {
  padding: 22px;
}

.action-module {
  background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(232,246,239,.72));
}

.module-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.module-heading span {
  color: rgba(16,21,18,.48);
  font-size: 11px;
  font-weight: 920;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-heading strong {
  color: var(--app-ink);
  font-size: 14px;
}

.action-module p,
.workspace-main p,
.workspace-side p {
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 690;
}

.macro-ribbon b {
  background: linear-gradient(90deg, #20cf6a, #1bbbc8);
}

.macro-plate {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1.35;
  margin: -2px 0 22px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 48% 52%, rgba(255,255,255,.92) 0 40%, transparent 41%),
    linear-gradient(135deg, rgba(16,21,18,.07), rgba(255,255,255,.44));
  box-shadow: inset 0 0 0 1px rgba(16,21,18,.06);
}

.macro-plate span {
  position: absolute;
  display: block;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(26,58,44,.13);
}

.plate-protein {
  width: 40%;
  height: 52%;
  left: 12%;
  top: 22%;
  background: linear-gradient(135deg, #25df78, #1cbf92);
}

.plate-carbs {
  width: 36%;
  height: 38%;
  right: 13%;
  top: 18%;
  background: linear-gradient(135deg, #26d2dd, #6aa0ff);
}

.plate-fat {
  width: 27%;
  height: 30%;
  right: 24%;
  bottom: 16%;
  background: linear-gradient(135deg, #f5a241, #a77cff);
}

.quick-log-row button,
.section-actions button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-color: rgba(16,21,18,.10);
  color: var(--app-ink);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 28px rgba(42,68,48,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.quick-log-row button:first-child,
.section-actions button:first-child {
  border: 0;
  color: #05110b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.section-opener {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin: 12px 0 18px;
}

.section-opener h2,
.wrapped-stage h2 {
  font-size: clamp(38px, 5vw, 68px);
}

.section-actions {
  margin: 0;
}

.meal-row,
.workout-row {
  border-radius: 18px;
  background: rgba(16,21,18,.045);
  box-shadow: inset 0 0 0 1px rgba(16,21,18,.035);
}

.meal-row strong,
.workout-row strong {
  color: var(--app-ink);
}

.meal-row span,
.workout-row span,
.empty-copy {
  color: var(--app-muted);
}

.meal-row b,
.workout-row b {
  color: #167245;
}

.meal-row button {
  color: #9d3f3f;
  background: rgba(177,54,54,.08);
  border-color: rgba(177,54,54,.14);
  box-shadow: none;
}

.food-orbit {
  position: relative;
  height: 112px;
  margin: -6px 0 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(41,229,116,.14), rgba(33,210,221,.10)),
    rgba(16,21,18,.035);
  overflow: hidden;
}

.food-orbit span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.food-orbit span:nth-child(1) {
  width: 124px;
  height: 124px;
  left: 22px;
  top: 18px;
  background: linear-gradient(135deg, #25df78, #1fcfbb);
}

.food-orbit span:nth-child(2) {
  width: 92px;
  height: 92px;
  right: 54px;
  top: -24px;
  background: linear-gradient(135deg, #f5a241, #a77cff);
}

.food-orbit span:nth-child(3) {
  width: 48px;
  height: 48px;
  right: 28px;
  bottom: 18px;
  background: #f7faf5;
  box-shadow: inset 0 0 0 1px rgba(16,21,18,.08);
}

.web-muscle-figure {
  min-height: 280px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(41,229,116,.18), transparent 48%),
    rgba(16,21,18,.045);
  box-shadow: inset 0 0 0 1px rgba(16,21,18,.04);
}

.hydration-stage {
  display: grid;
  place-items: center;
  text-align: center;
}

.water-vessel {
  width: min(360px, 84vw);
  height: 150px;
  position: relative;
  margin: 4px auto -8px;
  overflow: hidden;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.22)),
    rgba(33,210,221,.10);
  box-shadow: inset 0 0 0 1px rgba(16,21,18,.06);
}

.water-vessel span {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -34px;
  height: 96px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.54), transparent 18%),
    linear-gradient(90deg, #5d8cff, #21d2dd);
}

.web-water-ring {
  width: min(260px, 62vw);
}

.web-water-ring span {
  background: #f7faf5;
  color: var(--app-ink);
}

.creatine-stage {
  display: grid;
  align-content: center;
}

.wrapped-stage {
  min-height: 430px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 18% 18%, rgba(41,229,116,.24), transparent 20rem),
    radial-gradient(circle at 86% 28%, rgba(167,124,255,.18), transparent 22rem),
    rgba(255,255,255,.62);
}

.wrapped-stage > strong {
  display: inline-block;
  margin: 0 0 18px;
  color: #167245;
}

.wrapped-wave {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  max-width: 520px;
  margin: 18px 0 24px;
}

.wrapped-wave span {
  display: block;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, #25df78, #21d2dd);
  box-shadow: 0 18px 36px rgba(31,94,69,.16);
}

.wrapped-wave span:nth-child(1) { height: 52%; opacity: .72; }
.wrapped-wave span:nth-child(2) { height: 86%; }
.wrapped-wave span:nth-child(3) { height: 66%; opacity: .85; background: linear-gradient(180deg, #21d2dd, #5d8cff); }
.wrapped-wave span:nth-child(4) { height: 96%; background: linear-gradient(180deg, #f5a241, #a77cff); }

.wrapped-metrics span {
  background: rgba(16,21,18,.045);
  color: var(--app-muted);
}

.wrapped-metrics b {
  color: var(--app-ink);
}

.account-lines {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16,21,18,.08);
  border-radius: 28px;
  background: rgba(16,21,18,.08);
}

.account-lines article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 18px 20px;
  background: rgba(255,255,255,.62);
}

.account-lines span {
  color: rgba(16,21,18,.48);
  font-size: 11px;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.account-lines strong {
  color: var(--app-ink);
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dashboard-page .editor-sheet {
  color: var(--app-ink);
}

.dashboard-page .sheet-panel {
  background:
    radial-gradient(circle at 12% 0%, rgba(41,229,116,.14), transparent 18rem),
    #f7faf5;
  border-color: rgba(16,21,18,.12);
}

.dashboard-page .sheet-top h2 {
  color: var(--app-ink);
}

.dashboard-page .sheet-close,
.dashboard-page .sheet-field input,
.dashboard-page .sheet-field select {
  color: var(--app-ink);
  border-color: rgba(16,21,18,.12);
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.dashboard-page .sheet-field span {
  color: rgba(16,21,18,.52);
}

@media (max-width: 980px) {
  .webapp-header,
  .daily-canvas,
  .today-flow,
  .split-workspace,
  .section-opener {
    grid-template-columns: 1fr;
  }

  .webapp-actions,
  .section-actions {
    justify-content: flex-start;
  }

  .ring-system {
    min-height: 310px;
  }
}

@media (max-width: 680px) {
  .dashboard-shell {
    width: min(100% - 22px, 1280px);
  }

  .webapp-person {
    align-items: flex-start;
  }

  .lyfora-webapp .account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .daily-canvas {
    min-height: auto;
    padding: 22px;
    border-radius: 26px;
  }

  .context-line {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ring-system {
    min-height: 280px;
  }

  .hero-ring {
    width: 184px;
  }

  .hero-ring b {
    font-size: 46px;
  }

  .mini-ring {
    width: 82px;
  }

  .mini-ring b {
    font-size: 16px;
  }

  .account-lines article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Dark concrete Lyfora dashboard pass */
.dashboard-page {
  --app-bg: #050706;
  --app-ink: #f4f7f1;
  --app-muted: #9da8a0;
  --app-soft: rgba(255,255,255,.07);
  --app-line: rgba(255,255,255,.10);
  background:
    linear-gradient(145deg, rgba(41,229,116,.14), transparent 27rem),
    linear-gradient(245deg, rgba(33,210,221,.12), transparent 30rem),
    linear-gradient(180deg, #0d1210 0%, #050706 46%, #030403 100%);
  color: var(--app-ink);
}

.dashboard-page::before {
  opacity: .28;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

.dashboard-page .links,
.lyfora-webapp .app-tab-rail {
  border-color: rgba(255,255,255,.10);
  background: rgba(13, 18, 16, .76);
  backdrop-filter: blur(22px);
}

.dashboard-page .links a,
.lyfora-webapp .tab-button {
  color: rgba(244,247,241,.58);
}

.dashboard-page .links a.active,
.dashboard-page .links a:hover {
  color: var(--app-ink);
  background: rgba(255,255,255,.08);
}

.webapp-person h1,
.daily-copy h2,
.section-opener h2,
.wrapped-stage h2,
.context-line b,
.module-heading strong,
.account-lines strong,
.meal-row strong,
.workout-row strong {
  color: var(--app-ink);
}

.webapp-person p,
.daily-copy p,
.section-opener p,
.wrapped-stage p,
.action-module p,
.workspace-main p,
.workspace-side p,
.meal-row span,
.workout-row span,
.empty-copy {
  color: var(--app-muted);
}

.eyebrow,
.wrapped-stage > strong {
  color: #55ef91;
}

.pill-action,
.icon-action,
.quick-log-row button,
.section-actions button {
  border-color: rgba(255,255,255,.10);
  color: var(--app-ink);
  background: rgba(255,255,255,.075);
  box-shadow: none;
}

.pill-action::before,
.quick-log-row button::before,
.section-actions button::before {
  background: rgba(255,255,255,.10);
}

.primary-action,
.quick-log-row button:first-child,
.section-actions button:first-child {
  color: #041009;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 16px 36px rgba(33,210,221,.18);
}

.quiet-action {
  color: rgba(244,247,241,.55);
}

.daily-canvas {
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 18% 18%, rgba(41,229,116,.16), transparent 21rem),
    radial-gradient(circle at 86% 10%, rgba(33,210,221,.14), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.032)),
    #0b100e;
  box-shadow: 0 34px 92px rgba(0,0,0,.34);
}

.inline-module,
.workspace-main,
.workspace-side,
.wrapped-stage,
.account-lines article {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  box-shadow: none;
}

.account-lines {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.08);
}

.context-line small,
.module-heading span,
.account-lines span {
  color: rgba(244,247,241,.48);
}

.progress-dial {
  background:
    conic-gradient(from -42deg, var(--dial-a) var(--value), rgba(255,255,255,.12) 0),
    rgba(255,255,255,.06);
}

.progress-dial span,
.web-water-ring span {
  background: #0b100e;
  color: var(--app-ink);
}

.hero-ring {
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.macro-target-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: -4px 0 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

.macro-target-card div {
  min-height: 92px;
  padding: 15px;
  background: rgba(5,7,6,.36);
}

.macro-target-card span {
  display: block;
  margin-bottom: 16px;
  color: rgba(244,247,241,.50);
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.macro-target-card b {
  color: var(--app-ink);
  font-size: 26px;
  line-height: 1;
}

.meal-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -4px 0 18px;
}

.meal-summary-strip span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(244,247,241,.62);
  background: rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 850;
}

.meal-row,
.workout-row,
.wrapped-metrics span {
  background: rgba(5,7,6,.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.meal-row b,
.workout-row b {
  color: #55ef91;
}

.water-vessel {
  width: min(340px, 82vw);
  height: 154px;
  margin: 4px auto 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    #0b100e;
}

.water-vessel span {
  --water-fill: 0%;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--water-fill);
  min-height: 12px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(90deg, #5d8cff, #21d2dd);
  transition: height .25s ease;
}

.web-water-ring {
  width: 170px;
  margin-top: 10px;
}

.wrapped-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 620px;
  margin: 22px 0 24px;
}

.wrapped-timeline span {
  min-height: 86px;
  display: grid;
  align-content: end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  color: rgba(244,247,241,.70);
  background:
    linear-gradient(180deg, rgba(41,229,116,.14), rgba(255,255,255,.035)),
    rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 900;
}

.wrapped-timeline span:nth-child(2) {
  background: linear-gradient(180deg, rgba(33,210,221,.16), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.wrapped-timeline span:nth-child(3) {
  background: linear-gradient(180deg, rgba(167,124,255,.16), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.wrapped-timeline span:nth-child(4) {
  background: linear-gradient(180deg, rgba(245,162,65,.16), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.dashboard-page .sheet-panel {
  color: var(--app-ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(41,229,116,.12), transparent 18rem),
    #0b100e;
  border-color: rgba(255,255,255,.12);
}

.dashboard-page .sheet-top h2 {
  color: var(--app-ink);
}

.dashboard-page .sheet-close,
.dashboard-page .sheet-field input,
.dashboard-page .sheet-field select {
  color: var(--app-ink);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}

.dashboard-page .sheet-field span {
  color: rgba(244,247,241,.54);
}

@media (max-width: 680px) {
  .macro-target-card,
  .meal-summary-strip,
  .wrapped-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 920px) {
  .home-hero,
  .split-section,
  .dashboard-band,
  .system-head,
  .system-board,
  .legal-layout,
  .support-hero,
  .dashboard-login,
  .web-onboarding,
  .dashboard-header,
  .account-topbar,
  .web-dashboard-grid,
  .account-app-shell,
  .tab-heading,
  .today-command-center,
  .web-app-top,
  .lyfora-command,
  .app-panel-grid,
  .app-grid,
  .training-map-panel,
  .dashboard-app .tab-heading,
  .dashboard-app .web-dashboard-grid.app-grid {
    grid-template-columns: 1fr;
  }

  .system-board {
    grid-template-areas:
      "meal"
      "training"
      "water"
      "creatine";
  }

  .home-hero { min-height: auto; }
  .product-stage { min-height: 510px; }
  .policy-summary { position: static; }
  .account-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .tab-button {
    width: auto;
    white-space: nowrap;
  }
  .dashboard-actions { justify-content: flex-start; }
  .wide-panel { grid-column: auto; }
  .command-score {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .large-dial { width: 132px; }
  .large-dial b { font-size: 34px; }
  .micro-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); padding-top: 18px; }
  .nav { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .links { width: 100%; overflow-x: auto; justify-content: space-between; }
  h1 { font-size: clamp(46px, 15vw, 68px); }
  .feature-flow,
  .help-grid,
  .web-scoreboard,
  .form-grid,
  .target-preview,
  .account-detail-grid,
  .wrapped-metrics,
  .dial-board,
  .micro-strip,
  .command-score { grid-template-columns: 1fr; }
  .web-app-top h1,
  .command-score h2,
  .dashboard-app .tab-heading h2 {
    font-size: 32px;
  }
  .large-dial {
    width: min(172px, 64vw);
  }
  .sheet-fields {
    grid-template-columns: 1fr;
  }
  .editor-sheet {
    padding: 10px;
  }
  .sheet-panel {
    border-radius: 22px;
    padding: 18px;
  }
  .sheet-top h2 {
    font-size: 28px;
  }
  .float-note {
    position: static;
    width: min(390px, 86vw);
    margin: 10px auto 0;
  }
  .product-stage {
    display: block;
    min-height: auto;
  }
  .phone-surface { margin: 0 auto; }
  .rings { gap: 8px; }
  .dashboard-band,
  .notice,
  .feature-flow article,
  .help-grid article,
  .legal-list section { padding: 20px; }
}

/* Final dashboard feature pass: concrete charts and app surfaces */
.lyfora-webapp .macro-pie-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.lyfora-webapp .macro-pie {
  --protein-end: 0%;
  --carb-end: 0%;
  width: 176px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(#29e574 0 var(--protein-end), #21d2dd var(--protein-end) var(--carb-end), #f5a241 var(--carb-end) 100%);
  box-shadow: 0 20px 54px rgba(0,0,0,.30);
}

.lyfora-webapp .macro-pie span {
  width: 66%;
  height: 66%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--app-ink);
  background: #0b100e;
  font-size: 24px;
  font-weight: 950;
}

.lyfora-webapp .macro-target-card {
  grid-template-columns: 1fr;
  margin: 0;
}

.lyfora-webapp .macro-target-card div {
  min-height: 70px;
}

.lyfora-webapp .meal-command-strip,
.lyfora-webapp .training-summary-board,
.lyfora-webapp .wrapped-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -2px 0 18px;
}

.lyfora-webapp .wrapped-focus-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.lyfora-webapp .meal-command-strip div,
.lyfora-webapp .training-summary-board div,
.lyfora-webapp .wrapped-focus-grid article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(41,229,116,.10), rgba(255,255,255,.035)),
    rgba(255,255,255,.04);
}

.lyfora-webapp .training-summary-board div:nth-child(2),
.lyfora-webapp .wrapped-focus-grid article:nth-child(2) {
  background: linear-gradient(180deg, rgba(33,210,221,.12), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.lyfora-webapp .training-summary-board div:nth-child(3),
.lyfora-webapp .wrapped-focus-grid article:nth-child(3) {
  background: linear-gradient(180deg, rgba(167,124,255,.12), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.lyfora-webapp .wrapped-focus-grid article:nth-child(4) {
  background: linear-gradient(180deg, rgba(245,162,65,.13), rgba(255,255,255,.035)), rgba(255,255,255,.04);
}

.lyfora-webapp .meal-command-strip span,
.lyfora-webapp .training-summary-board span,
.lyfora-webapp .wrapped-focus-grid span {
  display: block;
  color: rgba(244,247,241,.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lyfora-webapp .meal-command-strip b,
.lyfora-webapp .training-summary-board b,
.lyfora-webapp .wrapped-focus-grid b {
  display: block;
  margin-top: 16px;
  color: var(--app-ink);
  font-size: 24px;
  line-height: 1.08;
}

.lyfora-webapp .wrapped-focus-grid b {
  font-size: 18px;
}

.lyfora-webapp .water-timeline {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.lyfora-webapp .water-timeline span {
  min-height: 60px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.lyfora-webapp .water-timeline b {
  display: block;
  color: var(--app-ink);
  font-size: 16px;
}

.lyfora-webapp .water-timeline small {
  display: block;
  margin-top: 5px;
  color: rgba(244,247,241,.52);
  font-weight: 800;
}

.lyfora-webapp .muscle-stage {
  display: block;
}

.lyfora-webapp .wrapped-timeline,
.lyfora-webapp .meal-summary-strip,
.lyfora-webapp .macro-plate,
.lyfora-webapp .food-orbit {
  display: none;
}

@media (max-width: 760px) {
  .lyfora-webapp .macro-pie-layout,
  .lyfora-webapp .meal-command-strip,
  .lyfora-webapp .training-summary-board,
  .lyfora-webapp .wrapped-focus-grid,
  .lyfora-webapp .water-timeline {
    grid-template-columns: 1fr;
  }
}

/* Dashboard interaction polish */
.dashboard-page button,
.dashboard-page a,
.dashboard-page [role="button"],
.dashboard-page .meal-row,
.dashboard-page .workout-row,
.dashboard-page .account-lines article,
.dashboard-page .wrapped-metrics span,
.dashboard-page .macro-target-card div,
.dashboard-page .meal-command-strip div,
.dashboard-page .training-summary-board div,
.dashboard-page .wrapped-focus-grid article,
.dashboard-page .water-timeline span {
  cursor: pointer;
}

.dashboard-page button,
.dashboard-page .pill-action,
.dashboard-page .icon-action,
.dashboard-page .tab-button,
.dashboard-page .meal-row,
.dashboard-page .workout-row,
.dashboard-page .inline-module,
.dashboard-page .workspace-main,
.dashboard-page .workspace-side,
.dashboard-page .daily-canvas,
.dashboard-page .wrapped-stage,
.dashboard-page .account-lines article,
.dashboard-page .macro-pie,
.dashboard-page .progress-dial,
.dashboard-page .water-vessel,
.dashboard-page .web-water-ring,
.dashboard-page .macro-target-card div,
.dashboard-page .meal-command-strip div,
.dashboard-page .training-summary-board div,
.dashboard-page .wrapped-focus-grid article,
.dashboard-page .water-timeline span {
  transition:
    transform .22s cubic-bezier(.2, .8, .2, 1),
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    filter .22s ease;
}

.dashboard-page .pill-action:hover,
.dashboard-page .icon-action:hover,
.dashboard-page .section-actions button:hover,
.dashboard-page .quick-log-row button:hover,
.dashboard-page .login-button:hover,
.dashboard-page .email-login button:hover,
.dashboard-page .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(33,210,221,.15);
  filter: saturate(1.08);
}

.dashboard-page .pill-action:active,
.dashboard-page .icon-action:active,
.dashboard-page .section-actions button:active,
.dashboard-page .quick-log-row button:active,
.dashboard-page .login-button:active,
.dashboard-page .email-login button:active,
.dashboard-page .button:active {
  transform: translateY(1px) scale(.985);
  box-shadow: none;
}

.lyfora-webapp .tab-button:hover {
  color: var(--app-ink);
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}

.lyfora-webapp .tab-button.active:hover {
  color: #041009;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.lyfora-webapp .daily-canvas:hover,
.lyfora-webapp .inline-module:hover,
.lyfora-webapp .workspace-main:hover,
.lyfora-webapp .workspace-side:hover,
.lyfora-webapp .wrapped-stage:hover {
  border-color: rgba(41,229,116,.20);
  box-shadow: 0 28px 72px rgba(0,0,0,.24);
}

.lyfora-webapp .meal-row:hover,
.lyfora-webapp .workout-row:hover,
.lyfora-webapp .account-lines article:hover,
.lyfora-webapp .wrapped-metrics span:hover,
.lyfora-webapp .macro-target-card div:hover,
.lyfora-webapp .meal-command-strip div:hover,
.lyfora-webapp .training-summary-board div:hover,
.lyfora-webapp .wrapped-focus-grid article:hover,
.lyfora-webapp .water-timeline span:hover {
  transform: translateY(-2px);
  border-color: rgba(41,229,116,.18);
  background: rgba(255,255,255,.075);
}

.lyfora-webapp .macro-pie:hover,
.lyfora-webapp .progress-dial:hover,
.lyfora-webapp .web-water-ring:hover {
  transform: translateY(-3px) scale(1.018);
  filter: saturate(1.12);
}

.lyfora-webapp .water-vessel:hover {
  transform: translateY(-2px);
  border-color: rgba(33,210,221,.26);
}

.tab-panel.active.panel-enter {
  animation: panelEnter .34s cubic-bezier(.2, .8, .2, 1) both;
}

.dashboard-state:not(.hidden),
.dashboard-login:not(.hidden),
.web-onboarding:not(.hidden),
.dashboard-app:not(.hidden) {
  animation: dashboardStateIn .34s cubic-bezier(.2, .8, .2, 1) both;
}

.editor-sheet:not(.hidden) .sheet-scrim {
  animation: scrimIn .18s ease both;
}

.editor-sheet:not(.hidden) .sheet-panel {
  animation: sheetRise .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.992);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes sheetRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
