/* DietWatch — wellness visual system (mobile WebView first) */

/* —— Fonts (local, SIL OFL via Fontsource) —— */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* —— Tokens —— */
:root {
  --dw-tap-min: 44px;
  --dw-radius: 1rem;
  --dw-radius-sm: 0.75rem;
  --dw-radius-pill: 999px;
  --dw-nav-h: 4.25rem;
  --dw-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dw-duration: 220ms;

  --dw-mint: #1f8a70;
  --dw-mint-deep: #166b58;
  --dw-mint-soft: #d8f0e8;
  --dw-sage: #4a7c6f;
  --dw-slate: #1e293b;
  --dw-slate-muted: #64748b;
  --dw-mist: #eef6f2;
  --dw-fog: #f7fbf9;
  --dw-surface: #ffffff;
  --dw-border: rgba(30, 41, 59, 0.08);
  --dw-shadow: 0 8px 28px rgba(22, 70, 58, 0.08);
  --dw-shadow-soft: 0 2px 12px rgba(22, 70, 58, 0.06);

  --dw-protein: #3d8b6e;
  --dw-fat: #c4922a;
  --dw-carbs: #5b7c99;
  --dw-water: #3a9fbf;
  --dw-kcal: #1f8a70;
  --dw-danger: #c45c5c;
  --dw-warn: #c4922a;
  --dw-info: #3a8f9f;

  --dw-accent: var(--dw-mint);
  --dw-accent-contrast: #ffffff;
  --dw-font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --dw-font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --bs-primary: #1f8a70;
  --bs-primary-rgb: 31, 138, 112;
  --bs-link-color: #1f8a70;
  --bs-link-hover-color: #166b58;
  --bs-body-color: #1e293b;
  --bs-body-bg: #eef6f2;
  --bs-secondary-color: #64748b;
  --bs-border-color: rgba(30, 41, 59, 0.12);
  --bs-success: #3d8b6e;
  --bs-info: #3a9fbf;
  --bs-warning: #c4922a;
  --bs-danger: #c45c5c;
}

/* —— Base —— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(var(--dw-nav-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
  font-family: var(--dw-font-body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--dw-slate);
  -webkit-text-size-adjust: 100%;
  background-color: var(--dw-mist);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(31, 138, 112, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(58, 159, 191, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74, 124, 111, 0.08), transparent 60%),
    linear-gradient(180deg, var(--dw-fog) 0%, var(--dw-mist) 40%, #e8f2ed 100%);
  background-attachment: fixed;
}

body.dw-hide-nav {
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

body.dw-app {
  padding-bottom: calc(var(--dw-nav-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
}

body.dw-public {
  padding-bottom: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main.dw-main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.5rem;
  width: 100%;
}

/* —— App shell (dashboard) —— */
.dw-shell {
  display: block;
  min-height: 100dvh;
}
.dw-shell-main {
  min-width: 0;
}
.dw-sidebar {
  display: none;
}
.dw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--dw-border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dw-topbar__heading {
  min-width: 0;
}
.dw-topbar__title {
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dw-topbar__sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--dw-slate-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(70vw, 28rem);
}
.dw-topbar__user {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.dw-topbar__name {
  color: var(--dw-slate-muted);
  font-size: 0.92rem;
}

@media (min-width: 992px) {
  body.dw-app {
    padding-bottom: 1rem;
  }
  body.dw-app .navbar-dw {
    display: none !important;
  }
  .dw-shell {
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    min-height: 100dvh;
  }
  .dw-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 1.35rem 1.1rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 246, 242, 0.88) 100%);
    border-right: 1px solid var(--dw-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 4px 0 24px rgba(22, 70, 58, 0.04);
  }
  .dw-sidebar__brand {
    margin-bottom: 1.5rem;
  }
  .dw-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
  }
  .dw-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--dw-radius-sm);
    color: var(--dw-slate-muted);
    text-decoration: none;
    font-family: var(--dw-font-display);
    font-weight: 600;
    transition: background-color var(--dw-duration) ease, color var(--dw-duration) ease;
  }
  .dw-sidebar__link:hover {
    color: var(--dw-mint-deep);
    background: rgba(216, 240, 232, 0.55);
  }
  .dw-sidebar__link.active {
    color: var(--dw-mint-deep);
    background: var(--dw-mint-soft);
  }
  .dw-sidebar__foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--dw-border);
  }
  .dw-sidebar__user {
    font-weight: 600;
    font-family: var(--dw-font-display);
    margin-bottom: 0.65rem;
    color: var(--dw-slate);
  }
  .dw-sidebar__email {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--dw-slate-muted);
    word-break: break-all;
  }
  .dw-topbar {
    padding: 0.9rem 1.75rem;
  }
  .dw-topbar__title {
    font-size: 1.2rem;
  }
  .dw-topbar__sub {
    max-width: 36rem;
  }
  .dw-topbar__user {
    display: flex;
  }
  .dw-shell-main {
    min-width: 0;
  }
  .dw-shell-main main.dw-main {
    max-width: 86rem;
    margin: 0;
    padding: 1.35rem 1.75rem 2.5rem;
  }
  .dw-shell-main main.dw-main:has([data-page="today"]) {
    max-width: none;
  }

  .dw-page[data-page="analytics"] .dw-chart-block,
  .dw-page[data-page="profile"] .dw-section,
  .dw-page[data-page="reminders"] .dw-fieldset {
    max-width: none;
  }
  .dw-page[data-page="analytics"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.15rem;
  }
  .dw-page[data-page="analytics"] > .dw-period,
  .dw-page[data-page="analytics"] > .alert,
  .dw-page[data-page="analytics"] > .dw-disclaimer,
  .dw-page[data-page="analytics"] > script {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .dw-shell {
    grid-template-columns: 18.5rem minmax(0, 1fr);
  }
  .dw-shell-main main.dw-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* —— Public site —— */
.dw-public-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}
.dw-public-top__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dw-public-top__nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  color: var(--dw-slate-muted);
}
.dw-public-main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}
.dw-public-main--auth,
.dw-public-main--landing {
  max-width: 72rem;
}
.dw-public-footer {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  color: var(--dw-slate-muted);
  font-size: 0.85rem;
}

/* Auth / flow rail */
.dw-auth-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dw-auth-stage__panel {
  display: none;
}
.dw-auth-stage__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
  line-height: 1.15;
}
.dw-auth-stage__text {
  color: var(--dw-slate-muted);
  margin-bottom: 1.25rem;
  max-width: 28rem;
}
.dw-auth-stage__brand {
  margin-bottom: 1rem;
}
.dw-flow-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dw-flow-rail__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--dw-slate-muted);
}
.dw-flow-rail__item strong {
  display: block;
  font-family: var(--dw-font-display);
  color: var(--dw-slate);
  font-size: 0.95rem;
}
.dw-flow-rail__item span {
  font-size: 0.85rem;
}
.dw-flow-rail__dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--dw-font-display);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(30, 41, 59, 0.12);
}
.dw-flow-rail__item.is-current {
  color: var(--dw-mint-deep);
}
.dw-flow-rail__item.is-current .dw-flow-rail__dot {
  background: var(--dw-mint);
  border-color: var(--dw-mint);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 138, 112, 0.3);
}
.dw-flow-rail__item.is-done .dw-flow-rail__dot {
  background: var(--dw-mint-soft);
  border-color: rgba(31, 138, 112, 0.35);
  color: var(--dw-mint-deep);
}
.dw-flow-rail--compact {
  margin-top: 0.5rem;
}
.dw-landing__flow {
  margin-top: 1.5rem;
  max-width: 22rem;
}

/* Onboarding desktop shell */
.dw-onb-body {
  padding-bottom: 0 !important;
  overflow-x: hidden;
}
.dw-onb-shell {
  min-height: 100dvh;
}
.dw-onb-aside {
  display: none;
}
.dw-onb-shell__main {
  min-width: 0;
}
.dw-onb-canvas {
  width: 100%;
}
.dw-main--onb {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
.dw-onb__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--dw-radius-pill);
  background: rgba(31, 138, 112, 0.12);
  color: var(--dw-mint-deep);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--dw-font-display);
  max-width: 100%;
  flex-wrap: wrap;
}
.dw-landing__hero {
  margin-bottom: 2rem;
}
.dw-landing__brand {
  margin-bottom: 1rem;
}
.dw-landing__title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.dw-landing__lead {
  font-size: 1.1rem;
  color: var(--dw-slate-muted);
  margin-bottom: 1.5rem;
  max-width: 34rem;
}
.dw-landing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.dw-landing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dw-landing__features li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--dw-radius);
  background: var(--dw-surface);
  border: 1px solid var(--dw-border);
  box-shadow: var(--dw-shadow-soft);
}
.dw-landing__features i {
  font-size: 1.35rem;
  color: var(--dw-mint);
  margin-top: 0.15rem;
}
.dw-landing__features strong {
  display: block;
  font-family: var(--dw-font-display);
  margin-bottom: 0.15rem;
}
.dw-landing__features span {
  color: var(--dw-slate-muted);
  font-size: 0.95rem;
}
.dw-auth-card {
  max-width: 24rem;
  margin: 0.5rem auto 0;
  padding: 1.25rem;
  border-radius: calc(var(--dw-radius) + 0.15rem);
  background: var(--dw-surface);
  border: 1px solid var(--dw-border);
  box-shadow: var(--dw-shadow);
}
.dw-auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--dw-slate-muted);
  font-size: 0.95rem;
}

@media (min-width: 992px) {
  .dw-public-main {
    max-width: 56rem;
    padding-top: 2rem;
  }
  .dw-public-main--auth,
  .dw-public-main--landing {
    max-width: 72rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  .dw-landing {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.75rem;
    align-items: start;
  }
  .dw-landing__hero {
    margin-bottom: 0;
  }
  .dw-auth-stage {
    display: grid;
    grid-template-columns: minmax(18rem, 1.05fr) minmax(22rem, 26rem);
    gap: 3rem;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 40rem);
  }
  .dw-auth-stage__panel {
    display: block;
    padding: 2.25rem 2rem;
    border-radius: 1.5rem;
    background:
      linear-gradient(155deg, rgba(31, 138, 112, 0.16), rgba(58, 159, 191, 0.1) 45%, rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--dw-shadow);
    backdrop-filter: blur(12px);
  }
  .dw-auth-card {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 2rem 1.85rem;
    border-radius: 1.35rem;
  }
  .dw-auth-card .form-control-lg {
    min-height: 3.15rem;
    font-size: 1.05rem;
  }
  .dw-auth-card .dw-page-title {
    font-size: 1.65rem;
  }

  /* Viewport-locked onboarding: aside fixed, main scrolls alone */
  body.dw-onb-body {
    height: 100dvh;
    overflow: hidden;
  }
  .dw-onb-shell {
    display: grid;
    grid-template-columns: minmax(17rem, 20.5rem) minmax(0, 1fr);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .dw-onb-aside {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    padding: 2.25rem 1.75rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 245, 239, 0.94) 100%);
    border-right: 1px solid var(--dw-border);
    overflow: auto;
  }
  .dw-onb-aside__brand {
    margin-bottom: 1.35rem;
  }
  .dw-onb-aside__lead {
    font-family: var(--dw-font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: var(--dw-slate);
    letter-spacing: -0.02em;
  }
  .dw-onb-aside__foot {
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .dw-onb-aside__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dw-slate-muted);
    line-height: 1.45;
  }
  .dw-onb-shell__main {
    min-width: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background:
      radial-gradient(ellipse 70% 50% at 80% 0%, rgba(58, 159, 191, 0.1), transparent 55%),
      radial-gradient(ellipse 55% 45% at 10% 100%, rgba(31, 138, 112, 0.08), transparent 50%),
      linear-gradient(180deg, #f4faf7 0%, #eef6f2 100%);
  }
  .dw-onb-canvas {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem 3rem;
  }
  .dw-main--onb {
    width: 100%;
    max-width: 44rem;
    margin: 0;
    padding: 0;
  }
  .dw-onb {
    max-width: none;
    width: 100%;
    padding-bottom: 0;
  }
  .dw-onb__header {
    text-align: left;
    margin-bottom: 1.5rem;
  }
  .dw-onb__header .dw-page-title {
    font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  }
  .dw-onb__brand {
    justify-content: flex-start;
  }
  .dw-onb__ambient {
    display: none;
  }
  .dw-onb-steps {
    margin-bottom: 0.85rem;
  }
  .dw-onb-card {
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 1.35rem;
  }
  .dw-onb-form.dw-onb-card {
    display: flex;
    flex-direction: column;
    min-height: 22rem;
  }
  .dw-onb-panel {
    flex: 1;
  }
  .dw-onb-panel__title {
    font-size: 1.45rem;
  }
  .dw-onb .dw-choice-grid--goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .dw-onb .dw-choice-grid--goals .dw-choice__face {
    min-height: 8.5rem;
    align-items: flex-start;
    padding: 1.15rem 1.1rem;
  }
  .dw-onb .dw-choice-grid--goals .dw-choice__face i {
    font-size: 1.45rem;
  }
  .dw-choice-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dw-choice-grid--compact .dw-choice--wide {
    grid-column: 1 / -1;
  }
  .dw-onb-fields--metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .dw-onb-fields .dw-field--full {
    grid-column: 1 / -1;
  }
  .dw-onb-actions {
    position: sticky;
    bottom: 0;
    margin-top: 1.75rem;
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 28%);
    gap: 0.75rem;
  }
  .dw-onb-actions .btn {
    flex: 1 1 auto;
    min-height: 3.15rem;
  }
  .dw-onb-actions .btn-primary {
    flex: 1.4 1 auto;
  }
  .dw-onb-reco {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .dw-onb-reco__item--kcal {
    grid-column: span 2;
  }
  .dw-onb-reco__item--water {
    grid-column: span 2;
  }

  /* Desktop form polish (dashboard pages) */
  .dw-shell-main .form-control,
  .dw-shell-main .form-select,
  .dw-public-main .form-control,
  .dw-public-main .form-select {
    min-height: 2.85rem;
  }
  .dw-shell-main .form-control-lg,
  .dw-public-main .form-control-lg {
    min-height: 3.15rem;
  }
}

/* —— Profile —— */
.dw-profile__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dw-profile__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dw-profile-card {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: calc(var(--dw-radius) + 0.15rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--dw-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dw-profile-card__head {
  margin-bottom: 1.1rem;
}
.dw-profile-card__hint {
  margin: 0.35rem 0 0;
  color: var(--dw-slate-muted);
  font-size: 0.92rem;
}
.dw-profile-block {
  margin-top: 1.15rem;
}
.dw-profile-inline {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}
.dw-profile-card__actions {
  margin-top: 1.25rem;
}
.dw-profile-card__actions .btn {
  width: 100%;
}
.dw-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.dw-metric-field {
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: var(--dw-radius-sm);
  background: var(--dw-fog);
  border: 1px solid var(--dw-border);
}
.dw-metric-field .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dw-slate-muted);
}
.dw-metric-field .form-control {
  border: none;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: none !important;
}
.dw-metric-field--kcal { border-color: rgba(31, 138, 112, 0.22); background: rgba(216, 240, 232, 0.45); }
.dw-metric-field--protein { border-color: rgba(61, 139, 110, 0.22); }
.dw-metric-field--fat { border-color: rgba(196, 146, 42, 0.22); }
.dw-metric-field--carbs { border-color: rgba(91, 124, 153, 0.22); }
.dw-metric-field--water {
  grid-column: 1 / -1;
  border-color: rgba(58, 159, 191, 0.25);
  background: rgba(58, 159, 191, 0.08);
}
.dw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.dw-chip {
  margin: 0;
  cursor: pointer;
}
.dw-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--dw-radius-pill);
  border: 1.5px solid rgba(30, 41, 59, 0.12);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--dw-font-display);
  color: var(--dw-slate-muted);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.dw-chip input:checked + span {
  background: var(--dw-mint);
  border-color: var(--dw-mint);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 138, 112, 0.25);
}
.dw-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}
.dw-choice--row .dw-choice__face {
  min-height: auto;
  padding: 0.85rem 0.95rem;
}
.dw-reco-mini {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--dw-radius-sm);
  background: linear-gradient(145deg, rgba(216, 240, 232, 0.7), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(31, 138, 112, 0.18);
  font-size: 0.9rem;
  color: var(--dw-slate-muted);
}
.dw-reco-mini__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dw-mint-deep);
}
.dw-reco-mini strong {
  font-family: var(--dw-font-display);
  font-size: 1.15rem;
  color: var(--dw-slate);
}
.dw-profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dw-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--dw-radius-sm);
  border: 1px solid var(--dw-border);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--dw-ease), box-shadow 200ms ease, border-color 200ms ease;
}
.dw-profile-link > i:first-child {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dw-mint-soft);
  color: var(--dw-mint-deep);
  flex-shrink: 0;
}
.dw-profile-link span {
  flex: 1;
  min-width: 0;
}
.dw-profile-link strong {
  display: block;
  font-family: var(--dw-font-display);
  font-size: 0.98rem;
}
.dw-profile-link em {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--dw-slate-muted);
}
.dw-profile-link > i:last-child {
  color: var(--dw-slate-muted);
}
.dw-profile-link:hover {
  border-color: rgba(31, 138, 112, 0.3);
  box-shadow: var(--dw-shadow-soft);
  transform: translateY(-1px);
  color: inherit;
}
.dw-profile .dw-disclaimer {
  margin-top: 1rem;
}

@media (min-width: 992px) {
  .dw-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
    gap: 1.25rem;
    align-items: start;
  }
  .dw-profile-card {
    padding: 1.45rem 1.4rem 1.5rem;
    border-radius: 1.25rem;
  }
  .dw-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .dw-metric-field--water {
    grid-column: span 2;
  }
  .dw-metric-field--kcal {
    grid-column: span 2;
  }
  .dw-profile-inline {
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
  }
  .dw-profile .dw-choice-grid--goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .dw-profile .dw-choice-grid--goals .dw-choice__face {
    min-height: 6.25rem;
    padding: 0.95rem 0.85rem;
  }
  .dw-profile-card__actions .btn {
    width: auto;
    min-width: 12rem;
  }
}

@media (min-width: 1200px) {
  .dw-profile__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.85fr);
  }
}

/* —— My products catalog —— */
.dw-my-products__head {
  margin-bottom: 0.85rem;
}
.dw-my-products__search {
  margin-bottom: 1rem;
}
.dw-my-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dw-my-product {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  border-radius: var(--dw-radius-sm);
  border: 1px solid var(--dw-border);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms var(--dw-ease);
}
.dw-my-product:hover {
  border-color: rgba(31, 138, 112, 0.35);
  box-shadow: var(--dw-shadow-soft);
  transform: translateY(-1px);
}
.dw-my-product__main {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dw-my-product__name {
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 1rem;
}
.dw-my-product__macros {
  font-size: 0.88rem;
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
}
.dw-my-product__macros em {
  font-style: normal;
  opacity: 0.75;
}
.dw-my-product__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dw-mint-deep);
}
.dw-my-product__del {
  display: flex;
  align-items: center;
  padding: 0 0.35rem;
  border-left: 1px solid var(--dw-border);
  margin: 0;
  background: rgba(248, 250, 252, 0.8);
}
.dw-my-product__del .btn {
  min-height: 2.5rem;
  min-width: 2.5rem;
}

@media (min-width: 992px) {
  .dw-my-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .dw-meal-tabs {
    max-width: none;
  }
}

/* —— Reminders —— */
.dw-reminders__grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dw-rem-card {
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: calc(var(--dw-radius) + 0.1rem);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--dw-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dw-rem-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dw-rem-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.dw-rem-card__icon--water { background: rgba(58, 159, 191, 0.14); color: var(--dw-water); }
.dw-rem-card__icon--meal { background: rgba(196, 146, 42, 0.14); color: var(--dw-fat); }
.dw-rem-card__icon--weight { background: rgba(91, 124, 153, 0.14); color: var(--dw-carbs); }
.dw-rem-card__icon--evening { background: rgba(100, 116, 139, 0.14); color: var(--dw-slate-muted); }
.dw-rem-card__icon--week { background: rgba(31, 138, 112, 0.14); color: var(--dw-mint-deep); }
.dw-rem-card__titles {
  flex: 1;
  min-width: 0;
}
.dw-rem-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--dw-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dw-rem-card__hint {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--dw-slate-muted);
}
.dw-rem-card__row {
  display: grid;
  gap: 0.75rem;
}
.dw-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.dw-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-switch__ui {
  width: 3rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.14);
  border: 1px solid rgba(30, 41, 59, 0.08);
  position: relative;
  transition: background 200ms ease, border-color 200ms ease;
}
.dw-switch__ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 220ms var(--dw-ease);
}
.dw-switch input:checked + .dw-switch__ui {
  background: var(--dw-mint);
  border-color: var(--dw-mint);
}
.dw-switch input:checked + .dw-switch__ui::after {
  transform: translateX(1.25rem);
}
.dw-switch input:focus-visible + .dw-switch__ui {
  outline: 2px solid rgba(31, 138, 112, 0.45);
  outline-offset: 2px;
}
.dw-reminders__foot {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dw-reminders__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dw-slate-muted);
  line-height: 1.4;
}
.dw-reminders__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.dw-reminders__actions .btn {
  flex: 1 1 8rem;
}

@media (min-width: 992px) {
  .dw-reminders__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .dw-rem-card {
    padding: 1.3rem 1.25rem 1.35rem;
    border-radius: 1.25rem;
  }
  .dw-rem-card--wide {
    grid-column: 1 / -1;
  }
  .dw-rem-card__row {
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    max-width: 36rem;
  }
  .dw-reminders__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
  }
  .dw-reminders__note {
    max-width: 26rem;
  }
  .dw-reminders__actions {
    flex: 0 0 auto;
  }
  .dw-reminders__actions .btn {
    flex: 0 0 auto;
    min-width: 10rem;
  }
  .dw-reminders__actions .btn-primary {
    min-width: 12rem;
  }
}

@media (min-width: 1200px) {
  .dw-onb-shell {
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
  }
  .dw-main--onb {
    max-width: 48rem;
  }
  .dw-onb-canvas {
    padding: 3rem 3rem 3.5rem;
  }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--dw-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dw-slate);
}

a {
  color: var(--dw-mint);
  transition: color var(--dw-duration) var(--dw-ease);
}
a:hover {
  color: var(--dw-mint-deep);
}

code {
  word-break: break-all;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: rgba(31, 138, 112, 0.08);
  color: var(--dw-mint-deep);
}

/* —— Motion: page enter —— */
@keyframes dw-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dw-progress-fill {
  from { width: 0; }
  to { width: var(--dw-pct, 0%); }
}

@keyframes dw-pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes dw-nav-pop {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.dw-page {
  animation: dw-fade-up 320ms var(--dw-ease) both;
}

/* —— Buttons & forms —— */
.btn {
  min-height: var(--dw-tap-min);
  font-family: var(--dw-font-display);
  font-weight: 600;
  border-radius: var(--dw-radius-sm);
  letter-spacing: -0.01em;
  transition:
    transform var(--dw-duration) var(--dw-ease),
    box-shadow var(--dw-duration) var(--dw-ease),
    background-color var(--dw-duration) ease,
    border-color var(--dw-duration) ease,
    color var(--dw-duration) ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-primary {
  --bs-btn-bg: var(--dw-mint);
  --bs-btn-border-color: var(--dw-mint);
  --bs-btn-hover-bg: var(--dw-mint-deep);
  --bs-btn-hover-border-color: var(--dw-mint-deep);
  --bs-btn-active-bg: var(--dw-mint-deep);
  --bs-btn-active-border-color: var(--dw-mint-deep);
  --bs-btn-disabled-bg: var(--dw-mint);
  --bs-btn-disabled-border-color: var(--dw-mint);
  box-shadow: 0 4px 14px rgba(31, 138, 112, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(31, 138, 112, 0.34);
}
.btn-outline-primary {
  --bs-btn-color: var(--dw-mint);
  --bs-btn-border-color: rgba(31, 138, 112, 0.45);
  --bs-btn-hover-bg: var(--dw-mint);
  --bs-btn-hover-border-color: var(--dw-mint);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--dw-mint-deep);
  --bs-btn-active-border-color: var(--dw-mint-deep);
  background: rgba(255, 255, 255, 0.55);
}
.btn-outline-secondary {
  --bs-btn-color: var(--dw-slate-muted);
  --bs-btn-border-color: rgba(30, 41, 59, 0.18);
  --bs-btn-hover-bg: rgba(30, 41, 59, 0.06);
  --bs-btn-hover-border-color: rgba(30, 41, 59, 0.28);
  --bs-btn-hover-color: var(--dw-slate);
  background: rgba(255, 255, 255, 0.55);
}
.btn-outline-danger {
  --bs-btn-color: var(--dw-danger);
  --bs-btn-border-color: rgba(196, 92, 92, 0.45);
  --bs-btn-hover-bg: var(--dw-danger);
  --bs-btn-hover-border-color: var(--dw-danger);
}
.btn-sm {
  min-height: 2.35rem;
  border-radius: 0.65rem;
}
.btn-lg {
  min-height: 3.1rem;
  border-radius: var(--dw-radius);
}
.btn-chip {
  border-radius: var(--dw-radius-pill);
  padding-inline: 1rem;
  font-size: 0.92rem;
}

.form-control,
.form-select {
  min-height: var(--dw-tap-min);
  border-radius: var(--dw-radius-sm);
  border-color: rgba(30, 41, 59, 0.14);
  background-color: rgba(255, 255, 255, 0.92);
  transition: border-color var(--dw-duration) ease, box-shadow var(--dw-duration) ease;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(31, 138, 112, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 112, 0.18);
}
.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dw-slate);
  margin-bottom: 0.35rem;
}
.form-text,
.text-muted {
  color: var(--dw-slate-muted) !important;
}
.form-check-input:checked {
  background-color: var(--dw-mint);
  border-color: var(--dw-mint);
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 138, 112, 0.18);
  border-color: rgba(31, 138, 112, 0.55);
}

/* —— Surfaces —— */
.dw-surface {
  background: var(--dw-surface);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-soft);
}

.dw-hero {
  position: relative;
  padding: 0.35rem 0 0.75rem;
  margin-bottom: 0.75rem;
}
.dw-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dw-sage);
}
.dw-brand-mark .dw-logo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dw-mint), var(--dw-water));
  box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.15);
}
.dw-page-title {
  font-size: 1.65rem;
  margin: 0.2rem 0 0.15rem;
  line-height: 1.2;
}
.dw-page-sub {
  font-size: 0.9rem;
  color: var(--dw-slate-muted);
  margin: 0;
}

.dw-section {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--dw-radius) + 0.1rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--dw-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dw-section-title {
  font-size: 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dw-section-title i {
  color: var(--dw-mint);
  font-size: 1.1rem;
}

/* —— Progress —— */
.dw-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1rem 0.95rem;
  margin-bottom: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 245, 239, 0.9) 100%);
  border: 1px solid var(--dw-border);
  border-radius: calc(var(--dw-radius) + 0.15rem);
  box-shadow: var(--dw-shadow-soft);
}
.dw-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.dw-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.dw-progress-meta .dw-label {
  font-weight: 600;
  color: var(--dw-slate);
}
.dw-progress-meta .dw-values {
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dw-progress-row--kcal .dw-label {
  font-size: 0.95rem;
}
.progress-dw {
  height: 0.7rem;
  border-radius: var(--dw-radius-pill);
  background: rgba(30, 41, 59, 0.07);
  overflow: hidden;
}
.dw-progress-row--kcal .progress-dw {
  height: 0.95rem;
}
.progress-dw .progress-bar {
  border-radius: var(--dw-radius-pill);
  width: 0;
  animation: dw-progress-fill 780ms var(--dw-ease) both;
  transition: none;
}
.progress-dw .progress-bar.bg-kcal,
.progress-dw .progress-bar:not([class*='bg-']) {
  background: linear-gradient(90deg, var(--dw-mint), #2db896);
}
.progress-dw .progress-bar.bg-protein {
  background: linear-gradient(90deg, #347a60, var(--dw-protein));
}
.progress-dw .progress-bar.bg-fat {
  background: linear-gradient(90deg, #b88320, var(--dw-fat));
}
.progress-dw .progress-bar.bg-carbs {
  background: linear-gradient(90deg, #4a6a85, var(--dw-carbs));
}
.progress-dw .progress-bar.bg-water {
  background: linear-gradient(90deg, #2f8eaa, var(--dw-water));
}

/* legacy bootstrap utility overrides inside progress */
.progress-dw .progress-bar.bg-success { background: linear-gradient(90deg, #347a60, var(--dw-protein)) !important; }
.progress-dw .progress-bar.bg-warning { background: linear-gradient(90deg, #b88320, var(--dw-fat)) !important; }
.progress-dw .progress-bar.bg-info { background: linear-gradient(90deg, #4a6a85, var(--dw-carbs)) !important; }
.progress-dw .progress-bar.bg-primary { background: linear-gradient(90deg, #2f8eaa, var(--dw-water)) !important; }

/* —— Today layout (mobile-first) —— */
.dw-today__grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dw-today__hero {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.dw-today__aside {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.dw-today__diary {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.dw-today__widgets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dw-today__widgets:not(:has(.dw-today__widget)) {
  display: none;
}
.dw-today__widget {
  padding: 0.8rem 0.9rem;
}
.dw-today__widget-row {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.06);
}
.dw-today__widget-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dw-today__widget-row:first-child {
  padding-top: 0;
}
.dw-today__hero .dw-progress-stack,
.dw-today__diary .dw-empty,
.dw-today__diary .dw-section,
.dw-today__aside .dw-section,
.dw-today__widget {
  margin-bottom: 0;
}
.dw-today__panel {
  padding: 0.85rem 0.9rem;
}
.dw-today__panel--water {
  border-left: 3px solid rgba(58, 159, 191, 0.4);
}
.dw-today__panel--workout {
  border-left: 3px solid rgba(196, 92, 74, 0.4);
}
.dw-today__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
/* Habits today: fail = нейтральная точка (без shame-красного) */
.dw-habit-dot {
  font-size: 0.7rem;
  line-height: 1;
  user-select: none;
}

/* /habits page — cards */
.dw-habits-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dw-habits-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.45);
}
.dw-habits-card.is-selected {
  border-color: rgba(31, 138, 112, 0.4);
  background: rgba(31, 138, 112, 0.06);
}
.dw-habits-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.dw-habits-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}
.dw-habits-card__title {
  font-weight: 600;
  color: inherit;
}
.dw-habits-card.is-selected .dw-habits-card__title {
  color: var(--dw-mint-deep);
}
.dw-habits-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  color: var(--dw-slate-muted);
  background: rgba(31, 42, 55, 0.06);
  border: 1px solid rgba(31, 42, 55, 0.08);
}
.dw-habits-card__meta {
  margin: 0;
}
.dw-habits-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}
/* legacy row (если остался в других шаблонах) */
.dw-habits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}
.dw-habits-row:last-child {
  border-bottom: 0;
}
.dw-habits-row.is-selected .dw-habits-row__main > a {
  color: var(--dw-mint-deep);
}
.dw-habits-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.dw-habits-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dw-habits-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(31, 42, 55, 0.12);
  color: var(--dw-slate-muted);
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.55);
}
.dw-habits-tabs__tab.is-active,
.dw-habits-tabs__tab:hover {
  color: var(--dw-mint-deep);
  border-color: rgba(31, 138, 112, 0.35);
  background: rgba(31, 138, 112, 0.08);
}
.dw-habits-cal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
  gap: 0.35rem;
}
.dw-habits-cal__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2.6rem;
  padding: 0.25rem 0.15rem;
  border-radius: 0.45rem;
  background: rgba(31, 42, 55, 0.04);
  font-variant-numeric: tabular-nums;
}
.dw-habits-cal__day {
  font-size: 0.62rem;
  color: var(--dw-slate-muted);
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-habits-cal__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(31, 42, 55, 0.28);
}
.dw-habits-cal__cell--ok .dw-habits-cal__dot {
  background: var(--dw-mint-deep, #1f8a70);
}
.dw-habits-cal__cell--fail .dw-habits-cal__dot {
  background: rgba(31, 42, 55, 0.28);
}
.dw-habits-cal__cell--gap .dw-habits-cal__dot {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(31, 42, 55, 0.28);
}
.dw-habits-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.dw-habits-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dw-habits-cal__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: rgba(31, 42, 55, 0.28);
}
.dw-habits-cal__swatch--ok {
  background: var(--dw-mint-deep, #1f8a70);
}
.dw-habits-cal__swatch--fail {
  background: rgba(31, 42, 55, 0.28);
}
.dw-habits-cal__swatch--gap {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(31, 42, 55, 0.28);
}
.dw-today__metric,
.dw-today__metric-link {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dw-slate-muted);
  text-decoration: none;
  white-space: nowrap;
}
.dw-today__metric-link:hover {
  color: var(--dw-mint-deep);
}
.dw-today__cta-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dw-today__cta-bar .btn {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.dw-today__summary-line {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--dw-slate);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
  border-left: 3px solid rgba(31, 138, 112, 0.45);
}
.dw-today__nudges {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
#water,
#workouts {
  scroll-margin-top: 4.5rem;
}

/* Desktop: слева прогресс+дневник, справа вода и тренировка одной колонкой */
@media (min-width: 992px) {
  .dw-today__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 1fr);
    grid-template-areas:
      "hero aside"
      "diary aside";
    gap: 1rem 1.25rem;
    align-items: start;
    width: 100%;
  }
  .dw-today__hero {
    grid-area: hero;
    order: unset;
    align-self: start;
  }
  .dw-today__aside {
    grid-area: aside;
    order: unset;
    position: sticky;
    top: 1rem;
    align-self: start;
  }
  .dw-today__diary {
    grid-area: diary;
    order: unset;
  }
  .dw-today__widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .dw-today__widgets:has(> :only-child) {
    grid-template-columns: 1fr;
  }
  .dw-page.dw-today .dw-progress-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
    padding: 0.75rem 0.85rem;
  }
  .dw-page.dw-today .dw-progress-stack .dw-progress-row--kcal {
    grid-column: 1 / -1;
  }
  .dw-page.dw-today .dw-progress-row {
    gap: 0.2rem;
  }
  .dw-page.dw-today .dw-progress-meta {
    font-size: 0.82rem;
  }
  .dw-page.dw-today .dw-progress-row--kcal .dw-label {
    font-size: 0.88rem;
  }
  .dw-page.dw-today .dw-progress-row--kcal .progress-dw {
    height: 0.7rem;
  }
  .dw-page.dw-today .progress-dw {
    height: 0.48rem;
  }
  .dw-today__empty {
    padding: 0.85rem 1rem;
    text-align: left;
  }
  .dw-today__cta-bar {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  .dw-today__cta-bar .btn {
    flex: 0 0 auto;
    min-width: 10.5rem;
  }
  .dw-today__summary-line {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .dw-today__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(26rem, 1fr);
    gap: 1.15rem 1.5rem;
  }
  .dw-page.dw-today .dw-progress-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .dw-today__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(28rem, 0.95fr);
    gap: 1.25rem 1.65rem;
  }
  .dw-today__aside {
    top: 1.15rem;
  }
}

/* Drink category picker */
.dw-drink-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.dw-drink-cat {
  appearance: none;
  border: 1px solid var(--dw-border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--dw-slate-muted);
  border-radius: var(--dw-radius-pill);
  min-height: 2.15rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  font-family: var(--dw-font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.dw-drink-cat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-drink-cat.is-active,
.dw-drink-cat:has(input:checked) {
  background: rgba(58, 159, 191, 0.14);
  border-color: rgba(58, 159, 191, 0.4);
  color: #1a5f73;
}
.dw-workout-kinds .dw-drink-cat:has(input:checked),
.dw-today__panel--workout .dw-drink-cat:has(input:checked) {
  background: rgba(196, 92, 74, 0.12);
  border-color: rgba(196, 92, 74, 0.35);
  color: #8a3d30;
}
.dw-drink-sub {
  margin-bottom: 0.55rem;
}
.dw-drink-sub .dw-water-kind span {
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}
.dw-workout-intensity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.dw-intensity-pill {
  margin: 0;
  cursor: pointer;
}
.dw-intensity-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-intensity-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--dw-radius-pill);
  border: 1px solid var(--dw-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--dw-slate-muted);
  font-size: 0.78rem;
  font-weight: 650;
}
.dw-intensity-pill input:checked + span {
  background: rgba(196, 92, 74, 0.12);
  border-color: rgba(196, 92, 74, 0.35);
  color: #8a3d30;
}
.dw-water-chips .btn-chip.is-selected {
  background: rgba(31, 138, 112, 0.14);
  border-color: rgba(31, 138, 112, 0.4);
  color: var(--dw-mint-deep);
}

/* Compact activity log rows */
.dw-compact-log {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--dw-border);
}
.dw-compact-log__item + .dw-compact-log__item {
  border-top: 1px solid rgba(30, 41, 59, 0.06);
}
.dw-compact-log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.82rem;
}
.dw-compact-log__title {
  font-weight: 700;
  color: var(--dw-slate);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-compact-log__meta {
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dw-compact-log__edit {
  position: relative;
}
.dw-compact-log__edit > summary {
  list-style: none;
  cursor: pointer;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--dw-slate-muted);
  font-weight: 800;
  line-height: 1;
  user-select: none;
}
.dw-compact-log__edit > summary::-webkit-details-marker {
  display: none;
}
.dw-compact-log__edit[open] > summary {
  background: rgba(30, 41, 59, 0.06);
  color: var(--dw-slate);
}
.dw-compact-log__edit[open] {
  grid-column: 1 / -1;
}
.dw-compact-log__edit .dw-water-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* —— Quick actions —— */
.dw-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0;
}
.dw-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
}
.dw-quick-actions .btn:first-child {
  grid-column: 1 / -1;
}

/* —— Water / tea / coffee —— */
.dw-water-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.dw-water-kinds {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.dw-water-kind-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.dw-water-kind-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dw-slate-muted);
  font-family: var(--dw-font-display);
}
.dw-water-kind-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dw-water-kind {
  margin: 0;
  cursor: pointer;
}
.dw-water-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-water-kind span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--dw-radius-pill);
  border: 1px solid var(--dw-border);
  background: var(--dw-surface);
  color: var(--dw-slate-muted);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--dw-font-display);
  transition:
    background-color var(--dw-duration) ease,
    color var(--dw-duration) ease,
    border-color var(--dw-duration) ease;
}
.dw-water-kind input:checked + span {
  background: rgba(58, 159, 191, 0.16);
  border-color: rgba(58, 159, 191, 0.4);
  color: #1a5f73;
}
.dw-water-kind input:focus-visible + span {
  outline: 2px solid rgba(58, 159, 191, 0.45);
  outline-offset: 2px;
}
.dw-water-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}
.dw-water-chips .btn {
  flex: 1 1 auto;
  min-width: 5.5rem;
}
.dw-water-log-list {
  margin-top: 0.75rem;
}
.dw-water-log-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dw-border);
}
.dw-water-log-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.4rem;
}
.dw-water-log-item__kind {
  font-family: var(--dw-font-display);
  font-weight: 700;
  color: var(--dw-slate);
}
.dw-water-log-item__eff {
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
}
.dw-water-log-item__eff strong {
  color: var(--dw-water);
  font-weight: 700;
}
.dw-water-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.dw-water-edit-row .form-select {
  max-width: 6.5rem;
}
.dw-water-edit-row .form-control {
  max-width: 5.5rem;
}

/* —— Lists / interactive groups —— */
.list-group {
  border-radius: var(--dw-radius);
  overflow: hidden;
  border: 1px solid var(--dw-border);
  box-shadow: var(--dw-shadow-soft);
  background: var(--dw-surface);
}
.list-group-item {
  border-color: rgba(30, 41, 59, 0.06);
  background: transparent;
  padding: 0.85rem 1rem;
  transition: background-color var(--dw-duration) ease, transform var(--dw-duration) var(--dw-ease);
}
.list-group-item-action:hover,
.list-group-item-action:focus {
  background: rgba(31, 138, 112, 0.07);
  color: var(--dw-slate);
  z-index: 1;
}
.list-group-item-action:active {
  background: rgba(31, 138, 112, 0.12);
}
.list-group-flush {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.list-group-flush > .list-group-item {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-color: rgba(30, 41, 59, 0.08);
}

.dw-meal-item {
  border-radius: var(--dw-radius-sm);
  padding: 0.75rem 0.15rem;
  transition: background-color var(--dw-duration) ease;
}
.dw-meal-item:hover {
  background: rgba(255, 255, 255, 0.55);
}
.dw-meal-item a {
  font-weight: 600;
  color: var(--dw-slate);
  text-decoration: none;
}
.dw-meal-item a:hover {
  color: var(--dw-mint);
}
.dw-meal-kcal {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--dw-sage);
  white-space: nowrap;
}

/* —— Panels / cards (interactive grouping only) —— */
.dw-panel {
  background: var(--dw-surface);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  padding: 1rem;
  box-shadow: var(--dw-shadow-soft);
  margin-bottom: 1rem;
  transition: box-shadow var(--dw-duration) ease, transform var(--dw-duration) var(--dw-ease);
}
.dw-panel:focus-within {
  box-shadow: var(--dw-shadow);
}
.dw-fieldset {
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  padding: 1rem 1rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.dw-fieldset legend {
  font-family: var(--dw-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  float: none;
  width: auto;
  padding: 0 0.4rem;
  margin-bottom: 0;
  color: var(--dw-slate);
}

/* —— Alerts / nudges —— */
.alert {
  border-radius: var(--dw-radius-sm);
  border: 1px solid transparent;
}
.alert-info {
  background: rgba(58, 143, 159, 0.1);
  border-color: rgba(58, 143, 159, 0.22);
  color: #1a4f58;
}
.alert-success {
  background: rgba(61, 139, 110, 0.12);
  border-color: rgba(61, 139, 110, 0.25);
  color: #1f4d3c;
}
.alert-warning {
  background: rgba(196, 146, 42, 0.12);
  border-color: rgba(196, 146, 42, 0.28);
  color: #5c4312;
}
.alert-danger {
  background: rgba(196, 92, 92, 0.1);
  border-color: rgba(196, 92, 92, 0.25);
  color: #6b2a2a;
}
.alert-secondary,
.dw-nudge {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--dw-border);
  color: var(--dw-slate);
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-soft);
}
.dw-nudge-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--dw-slate-muted);
}
.dw-nudge-item::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--dw-mint);
  flex-shrink: 0;
}
.alert-light {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--dw-border);
  color: var(--dw-slate);
}

/* —— Empty state —— */
.dw-empty {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--dw-radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(31, 138, 112, 0.28);
}

/* —— Disclaimer —— */
.dw-disclaimer {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--dw-slate-muted);
  opacity: 0.85;
  padding: 0.65rem 0.15rem 0.25rem;
  border-top: 1px solid rgba(30, 41, 59, 0.06);
  margin-top: 0.5rem;
}

/* —— Bottom nav —— */
.navbar-dw {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  z-index: 1030;
  height: auto;
  padding: 0.35rem 0.25rem;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(30, 41, 59, 0.08) !important;
  border-radius: 1.25rem;
  box-shadow: 0 10px 32px rgba(22, 70, 58, 0.12);
}
.navbar-dw .container-fluid {
  padding: 0;
}
.navbar-dw .nav-link {
  min-height: var(--dw-tap-min);
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-family: var(--dw-font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dw-slate-muted);
  text-decoration: none;
  padding: 0.3rem 0.05rem;
  max-width: 20%;
  line-height: 1.15;
  text-align: center;
  border-radius: 1rem;
  transition:
    color var(--dw-duration) var(--dw-ease),
    background-color var(--dw-duration) var(--dw-ease),
    transform var(--dw-duration) var(--dw-ease);
}
.navbar-dw .nav-link i {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--dw-duration) var(--dw-ease);
}
.navbar-dw .dw-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.6rem;
  border-radius: 999px;
  transition: background 220ms ease, transform 220ms var(--dw-ease);
}
.navbar-dw .nav-link:hover {
  color: var(--dw-mint);
  background: rgba(31, 138, 112, 0.06);
}
.navbar-dw .nav-link.active {
  color: var(--dw-mint);
  background: rgba(31, 138, 112, 0.12);
  animation: dw-nav-pop 260ms var(--dw-ease) both;
}
.navbar-dw .nav-link.active .dw-nav-ico {
  background: rgba(31, 138, 112, 0.14);
}
.navbar-dw .nav-link.active i {
  transform: translateY(-1px);
}

/* —— Period tabs (analytics) —— */
.dw-period {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 28rem;
  padding: 0.28rem;
  margin: 0 0 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-pill);
  box-shadow: var(--dw-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}
.dw-period__thumb {
  position: absolute;
  top: 0.28rem;
  bottom: 0.28rem;
  left: 0.28rem;
  width: calc((100% - 0.56rem) / 3);
  border-radius: var(--dw-radius-pill);
  background: linear-gradient(165deg, rgba(31, 138, 112, 0.18), rgba(58, 159, 191, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(31, 138, 112, 0.22),
    0 4px 12px rgba(31, 138, 112, 0.12);
  transform: translateX(0);
  transition: transform 280ms var(--dw-ease);
  pointer-events: none;
  z-index: 0;
}
.dw-period[data-period="week"] .dw-period__thumb {
  transform: translateX(100%);
}
.dw-period[data-period="month"] .dw-period__thumb {
  transform: translateX(200%);
}
.dw-period__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: var(--dw-radius-pill);
  background: transparent;
  color: var(--dw-slate-muted);
  font-family: var(--dw-font-display);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 220ms var(--dw-ease),
    transform 180ms var(--dw-ease);
}
.dw-period__tab i {
  font-size: 1.05rem;
  opacity: 0.78;
  transition: opacity 220ms var(--dw-ease), transform 220ms var(--dw-ease);
}
.dw-period__tab:hover {
  color: var(--dw-slate);
  text-decoration: none;
}
.dw-period__tab:hover i {
  opacity: 1;
}
.dw-period__tab.is-active {
  color: var(--dw-mint-deep);
}
.dw-period__tab.is-active i {
  opacity: 1;
  transform: translateY(-1px);
}
.dw-period__tab:focus-visible {
  outline: 2px solid rgba(31, 138, 112, 0.45);
  outline-offset: 2px;
}
.dw-period__tab:active {
  transform: scale(0.98);
}
@media (max-width: 575.98px) {
  .dw-period {
    max-width: none;
    position: sticky;
    top: 0;
  }
  .dw-period__tab span {
    font-size: 0.84rem;
  }
  .dw-period__tab i {
    font-size: 0.98rem;
  }
}

/* —— Analytics charts —— */
.dw-chart-block {
  margin-bottom: 1.35rem;
  padding: 0.85rem 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-soft);
}
.dw-chart-block canvas {
  max-width: 100%;
}

/* —— Auth / shell screens —— */
.dw-auth {
  min-height: min(70vh, 32rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0.5rem;
}
.dw-auth .spinner-border {
  color: var(--dw-mint) !important;
  width: 2.25rem;
  height: 2.25rem;
  animation: spinner-border 0.75s linear infinite, dw-pulse-soft 1.6s ease-in-out infinite;
}
.dw-logo-hero {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--dw-mint) 0%, #2aa8c4 100%);
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 10px 28px rgba(31, 138, 112, 0.3);
}

/* —— Link code —— */
.dw-code-block [data-role='code-value'] {
  font-family: var(--dw-font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dw-mint-deep);
}

/* —— Recommendations grid —— */
.dw-reco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.dw-reco-item {
  padding: 0.7rem 0.75rem;
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--dw-border);
}
.dw-reco-item dt {
  font-size: 0.78rem;
  color: var(--dw-slate-muted);
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.dw-reco-item dd {
  margin: 0;
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* —— Insights —— */
.dw-insights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dw-insights li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.35rem;
  margin-bottom: 0.4rem;
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--dw-border);
  font-size: 0.92rem;
}
.dw-insights li::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.9rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--dw-mint);
}

/* —— Status chips —— */
.dw-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.dw-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--dw-border);
  font-size: 0.95rem;
}
.dw-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--dw-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--dw-font-display);
}
.dw-badge--ok {
  background: rgba(61, 139, 110, 0.15);
  color: #1f4d3c;
}
.dw-badge--off {
  background: rgba(100, 116, 139, 0.12);
  color: var(--dw-slate-muted);
}
.dw-badge--warn {
  background: rgba(196, 146, 42, 0.16);
  color: #5c4312;
}

/* —— Meal add / edit forms —— */
.dw-meal-add__hero {
  margin-bottom: 0.85rem;
}
.dw-meal-alert {
  margin-bottom: 0.85rem;
}
.dw-meal-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dw-slate-muted);
}
.dw-meal-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dw-meal-tab {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.4rem 0.35rem;
  border: 0;
  border-radius: var(--dw-radius-sm);
  background: transparent;
  color: var(--dw-slate-muted);
  font-family: var(--dw-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
  transition:
    background-color var(--dw-duration) var(--dw-ease),
    color var(--dw-duration) var(--dw-ease),
    transform var(--dw-duration) var(--dw-ease);
}
.dw-meal-tab i {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.dw-meal-tab.is-active {
  background: var(--dw-mint-soft);
  color: var(--dw-mint-deep);
  box-shadow: inset 0 0 0 1px rgba(31, 138, 112, 0.18);
}
.dw-meal-tab:active {
  transform: scale(0.98);
}
.dw-meal-panel {
  display: none;
  animation: dw-fade-up 280ms var(--dw-ease) both;
}
.dw-meal-panel.is-active {
  display: block;
}
.dw-meal-block {
  margin-bottom: 1rem;
}
.dw-food-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dw-food-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--dw-tap-min);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: var(--dw-slate);
  background: var(--dw-surface);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
  box-shadow: var(--dw-shadow-soft);
  transition:
    border-color var(--dw-duration) ease,
    transform var(--dw-duration) var(--dw-ease),
    box-shadow var(--dw-duration) ease;
}
.dw-food-chip:hover {
  border-color: rgba(31, 138, 112, 0.35);
  color: var(--dw-slate);
}
.dw-food-chip:active {
  transform: scale(0.99);
}
.dw-food-chip__name {
  font-weight: 600;
  font-family: var(--dw-font-display);
  line-height: 1.25;
}
.dw-food-chip__meta {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
}
.dw-food-chip--template {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(216, 240, 232, 0.55));
}
.dw-inline-action {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}
.dw-inline-action__btn {
  min-height: var(--dw-tap-min);
  white-space: nowrap;
}
.dw-search-bar .input-group-text {
  background: var(--dw-fog);
  border-color: var(--dw-border);
  color: var(--dw-mint);
}
.dw-search-bar .form-control {
  border-left: 0;
}
.dw-search-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dw-slate-muted);
  font-size: 0.92rem;
  padding: 0.35rem 0;
}
.dw-food-result-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dw-food-result {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: var(--dw-tap-min);
  padding: 0.75rem 2rem 0.75rem 0.9rem;
  text-align: left;
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
  background: var(--dw-surface);
  color: var(--dw-slate);
  box-shadow: var(--dw-shadow-soft);
  transition:
    border-color var(--dw-duration) ease,
    transform var(--dw-duration) var(--dw-ease);
}
.dw-food-result:hover,
.dw-food-result:focus-visible {
  border-color: rgba(31, 138, 112, 0.4);
  outline: none;
}
.dw-food-result:active {
  transform: scale(0.99);
}
.dw-food-result__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding-right: 0.5rem;
}
.dw-food-result__name {
  font-weight: 600;
  font-family: var(--dw-font-display);
}
.dw-food-result__meta {
  font-size: 0.82rem;
  color: var(--dw-slate-muted);
}
.dw-food-result__chev {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dw-sage);
  opacity: 0.7;
}
.dw-empty--compact {
  padding: 0.85rem 1rem;
}
.dw-meal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.dw-meal-type-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.dw-meal-type-fieldset .form-label,
.dw-meal-type-fieldset legend.form-label {
  float: none;
  width: auto;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.dw-meal-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dw-meal-type-pill {
  margin: 0;
  cursor: pointer;
}
.dw-meal-type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-meal-type-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--dw-radius-pill);
  border: 1px solid var(--dw-border);
  background: var(--dw-fog);
  color: var(--dw-slate-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--dw-font-display);
  transition:
    background-color var(--dw-duration) ease,
    color var(--dw-duration) ease,
    border-color var(--dw-duration) ease;
}
.dw-meal-type-pill input:checked + span {
  background: var(--dw-mint-soft);
  border-color: rgba(31, 138, 112, 0.35);
  color: var(--dw-mint-deep);
}
.dw-meal-type-pill input:focus-visible + span {
  outline: 2px solid rgba(31, 138, 112, 0.45);
  outline-offset: 2px;
}
/* —— Diary —— */
.dw-diary__picker {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
}
.dw-diary__picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
}
.dw-diary__picker-field {
  flex: 1 1 9rem;
  min-width: 8rem;
}
.dw-diary__picker-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.dw-diary__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dw-mint-deep);
  background: var(--dw-mint-soft);
}
.dw-diary__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.dw-diary__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
}
.dw-diary__stat-val {
  font-family: var(--dw-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dw-ink);
  line-height: 1.15;
}
.dw-diary__stat-lbl {
  font-size: 0.7rem;
  color: var(--dw-slate-muted);
  font-weight: 600;
}
.dw-diary__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.dw-diary__entry {
  display: grid;
  grid-template-columns: 3.1rem 1.75rem minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--dw-border);
}
.dw-diary__entry:last-child {
  border-bottom: 0;
}
.dw-diary__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dw-sage);
  padding-top: 0.15rem;
}
.dw-diary__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--dw-mint-soft);
  color: var(--dw-mint-deep);
  font-size: 0.95rem;
}
.dw-diary__entry--water .dw-diary__ico {
  background: rgba(58, 159, 191, 0.14);
  color: #2a7a94;
}
.dw-diary__entry--workout .dw-diary__ico {
  background: rgba(196, 90, 74, 0.12);
  color: #b34a3a;
}
.dw-diary__title {
  display: block;
  font-weight: 700;
  color: var(--dw-ink);
  text-decoration: none;
}
a.dw-diary__title:hover {
  color: var(--dw-mint);
}
.dw-diary__meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--dw-slate-muted);
}
.dw-diary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 480px) {
  .dw-diary__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dw-eaten-at .input-group .btn {
  white-space: nowrap;
  border-color: rgba(31, 138, 112, 0.28);
  color: var(--dw-mint-deep);
  font-weight: 600;
}
.dw-eaten-at .input-group .btn:hover,
.dw-eaten-at .input-group .btn:focus-visible {
  background: var(--dw-mint-soft);
  border-color: rgba(31, 138, 112, 0.4);
  color: var(--dw-mint-deep);
}
.dw-portion-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.55rem;
}
.dw-macro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.dw-macro-grid__hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: var(--dw-slate-muted);
  font-weight: 600;
}
.dw-portion-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--dw-radius-sm);
  background: linear-gradient(135deg, rgba(216, 240, 232, 0.75), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(31, 138, 112, 0.18);
}
.dw-portion-preview__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dw-sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dw-portion-preview strong {
  font-family: var(--dw-font-display);
  font-size: 1.15rem;
  color: var(--dw-mint-deep);
  font-variant-numeric: tabular-nums;
}
.dw-portion-preview__macros {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--dw-slate-muted);
  font-variant-numeric: tabular-nums;
}
.dw-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  min-height: var(--dw-tap-min);
  font-weight: 600;
  color: var(--dw-slate);
  cursor: pointer;
}
.dw-check .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  float: none;
  border-radius: 0.35rem;
}
.dw-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.dw-meal-confirm__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.dw-meal-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--dw-mint-soft);
  color: var(--dw-mint-deep);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dw-meal-confirm__name {
  font-family: var(--dw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dw-slate);
}
.dw-adjust-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dw-adjust-item {
  padding: 0.75rem;
  border-radius: var(--dw-radius-sm);
  border: 1px solid var(--dw-border);
  background: var(--dw-fog);
}
.dw-adjust-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: var(--dw-font-display);
}
.dw-pill-muted {
  display: inline-flex;
  padding: 0.1rem 0.5rem;
  border-radius: var(--dw-radius-pill);
  background: rgba(100, 116, 139, 0.12);
  color: var(--dw-slate-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.dw-meal-secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* —— Ambient blobs & modern motion —— */
@keyframes dw-blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -3%) scale(1.06); }
}
@keyframes dw-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes dw-panel-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes dw-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes dw-reco-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dw-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.dw-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms var(--dw-ease),
    transform 480ms var(--dw-ease);
}
.dw-reveal.is-in {
  opacity: 1;
  transform: none;
}
.dw-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  animation: dw-fade-up 420ms var(--dw-ease) both;
}
.dw-stagger > *:nth-child(1) { animation-delay: 40ms; }
.dw-stagger > *:nth-child(2) { animation-delay: 90ms; }
.dw-stagger > *:nth-child(3) { animation-delay: 140ms; }
.dw-stagger > *:nth-child(4) { animation-delay: 190ms; }
.dw-stagger > *:nth-child(5) { animation-delay: 240ms; }
.dw-stagger > *:nth-child(6) { animation-delay: 290ms; }
.dw-stagger > *:nth-child(7) { animation-delay: 340ms; }
.dw-stagger > *:nth-child(8) { animation-delay: 390ms; }

.dw-btn-shine {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.dw-btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--dw-ease);
}
.dw-btn-shine:hover::after {
  transform: translateX(120%);
}

body.dw-app::before,
body.dw-public::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(58, 159, 191, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 35% at 8% 70%, rgba(31, 138, 112, 0.1), transparent 65%);
  animation: dw-blob-drift 18s ease-in-out infinite;
}
.dw-shell,
.dw-public-top,
.dw-public-main,
.dw-public-footer {
  position: relative;
  z-index: 1;
}
.navbar-dw {
  z-index: 1030;
}

.dw-section,
.dw-panel,
.dw-chart-block,
.dw-nudge,
.dw-fieldset,
.dw-auth-card,
.dw-onb-card {
  transition:
    transform 280ms var(--dw-ease),
    box-shadow 280ms var(--dw-ease),
    border-color 280ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .dw-section:hover,
  .dw-chart-block:hover,
  .dw-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--dw-shadow);
  }
}

.dw-progress-stack .dw-progress-row {
  animation: dw-fade-up 400ms var(--dw-ease) both;
}
.dw-progress-stack .dw-progress-row:nth-child(1) { animation-delay: 50ms; }
.dw-progress-stack .dw-progress-row:nth-child(2) { animation-delay: 100ms; }
.dw-progress-stack .dw-progress-row:nth-child(3) { animation-delay: 150ms; }
.dw-progress-stack .dw-progress-row:nth-child(4) { animation-delay: 200ms; }
.dw-progress-stack .dw-progress-row:nth-child(5) { animation-delay: 250ms; }

.navbar-dw .nav-link {
  position: relative;
  transition: color 200ms ease, transform 200ms var(--dw-ease);
}
.navbar-dw .nav-link i {
  transition: transform 220ms var(--dw-ease);
}
.navbar-dw .nav-link.active i {
  animation: dw-float-soft 2.4s ease-in-out infinite;
}
.navbar-dw .nav-link:active {
  transform: scale(0.94);
}

.dw-sidebar__link {
  position: relative;
}
.dw-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  color: #0b1f17;
  background: var(--dw-mint);
}
.dw-share-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 40, 30, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
}
.dw-sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 999px;
  background: var(--dw-mint);
  animation: dw-scale-in 280ms var(--dw-ease) both;
}

/* —— Onboarding —— */
.dw-onb {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}
.dw-onb__ambient {
  position: absolute;
  inset: -2rem -1rem auto;
  height: 14rem;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dw-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: dw-blob-drift 12s ease-in-out infinite;
}
.dw-blob--a {
  width: 10rem;
  height: 10rem;
  left: -1rem;
  top: 0;
  background: rgba(31, 138, 112, 0.35);
}
.dw-blob--b {
  width: 8rem;
  height: 8rem;
  right: 0;
  top: 2rem;
  background: rgba(58, 159, 191, 0.3);
  animation-delay: -4s;
}
.dw-onb__header,
.dw-onb-steps,
.dw-onb-progress,
.dw-onb-card,
.dw-onb .alert {
  position: relative;
  z-index: 1;
}
.dw-onb__header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.dw-onb__brand {
  justify-content: center;
  margin-bottom: 0.65rem;
}
.dw-onb-steps {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.dw-onb-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--dw-slate-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--dw-font-display);
}
.dw-onb-steps__dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(30, 41, 59, 0.12);
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms var(--dw-ease);
}
.dw-onb-steps__item.is-active {
  color: var(--dw-mint-deep);
}
.dw-onb-steps__item.is-active .dw-onb-steps__dot {
  background: var(--dw-mint);
  border-color: var(--dw-mint);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(31, 138, 112, 0.35);
}
.dw-onb-steps__item.is-done .dw-onb-steps__dot {
  background: var(--dw-mint-soft);
  border-color: rgba(31, 138, 112, 0.35);
  color: var(--dw-mint-deep);
}
.dw-onb-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.08);
  margin-bottom: 1.15rem;
  overflow: hidden;
}
.dw-onb-progress__bar {
  height: 100%;
  width: var(--onb-pct, 33%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dw-mint), #3a9fbf);
  transition: width 380ms var(--dw-ease);
}
.dw-onb-card {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: calc(var(--dw-radius) + 0.25rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--dw-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dw-onb-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--dw-font-display);
  color: var(--dw-mint-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.dw-onb--enhanced .dw-onb-panel:not(.is-active) {
  display: none !important;
}
.dw-onb-nav-btn {
  display: none;
}
.dw-onb--enhanced .dw-onb-nav-btn:not([hidden]) {
  display: inline-flex;
}
.dw-onb--enhanced [data-role="onb-submit"][hidden] {
  display: none !important;
}
.dw-onb-panel--enter {
  animation: dw-panel-in 360ms var(--dw-ease) both;
}
.dw-onb-panel__title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.dw-onb-panel__hint {
  color: var(--dw-slate-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.dw-choice-grid {
  display: grid;
  gap: 0.65rem;
}
.dw-choice-grid--compact {
  grid-template-columns: 1fr 1fr;
}
.dw-choice--wide {
  grid-column: 1 / -1;
}
.dw-choice {
  margin: 0;
  cursor: pointer;
}
.dw-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-choice__face {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: var(--dw-radius);
  border: 1.5px solid rgba(30, 41, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms var(--dw-ease),
    box-shadow 220ms ease;
}
.dw-choice__face i {
  font-size: 1.25rem;
  color: var(--dw-mint);
  margin-bottom: 0.2rem;
}
.dw-choice__face strong {
  font-family: var(--dw-font-display);
  font-size: 1rem;
  color: var(--dw-slate);
}
.dw-choice__face em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--dw-slate-muted);
}
.dw-choice input:checked + .dw-choice__face,
.dw-choice.is-selected .dw-choice__face {
  border-color: rgba(31, 138, 112, 0.55);
  background: linear-gradient(145deg, rgba(216, 240, 232, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: 0 8px 22px rgba(31, 138, 112, 0.14);
  transform: translateY(-1px);
}
.dw-choice:active .dw-choice__face {
  transform: scale(0.985);
}
.dw-sex-toggle__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dw-sex-toggle__opt {
  margin: 0;
  cursor: pointer;
}
.dw-sex-toggle__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dw-sex-toggle__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dw-tap-min);
  border-radius: var(--dw-radius-pill);
  border: 1.5px solid rgba(30, 41, 59, 0.12);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-family: var(--dw-font-display);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.dw-sex-toggle__opt input:checked + span {
  background: var(--dw-mint);
  border-color: var(--dw-mint);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 138, 112, 0.28);
}
.dw-onb-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.dw-field {
  position: relative;
}
.dw-field--full {
  grid-column: 1 / -1;
}
.dw-field__suffix {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  color: var(--dw-slate-muted);
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}
.dw-field .form-control {
  padding-right: 2.75rem;
}
.dw-onb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.dw-onb-actions .btn {
  flex: 1 1 8rem;
}
.dw-onb-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.1rem 0 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.dw-onb-check .form-check-input {
  margin-top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
}
.dw-onb-reco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.dw-onb-reco__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  padding: 0.85rem;
  border-radius: var(--dw-radius-sm);
  background: var(--dw-fog);
  border: 1px solid var(--dw-border);
  animation: dw-reco-pop 420ms var(--dw-ease) both;
}
.dw-onb-reco__item:nth-child(1) { animation-delay: 40ms; }
.dw-onb-reco__item:nth-child(2) { animation-delay: 90ms; }
.dw-onb-reco__item:nth-child(3) { animation-delay: 140ms; }
.dw-onb-reco__item:nth-child(4) { animation-delay: 190ms; }
.dw-onb-reco__item:nth-child(5) { animation-delay: 240ms; }
.dw-onb-reco__item--kcal,
.dw-onb-reco__item--water {
  grid-column: 1 / -1;
}
.dw-onb-reco__icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dw-mint-soft);
  color: var(--dw-mint-deep);
  font-size: 1rem;
}
.dw-onb-reco__icon--protein { background: rgba(61, 139, 110, 0.15); color: var(--dw-protein); }
.dw-onb-reco__icon--fat { background: rgba(196, 146, 42, 0.15); color: var(--dw-fat); }
.dw-onb-reco__icon--carbs { background: rgba(91, 124, 153, 0.15); color: var(--dw-carbs); }
.dw-onb-reco__icon--water { background: rgba(58, 159, 191, 0.15); color: var(--dw-water); }
.dw-onb-reco__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dw-slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dw-onb-reco__value {
  font-family: var(--dw-font-display);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--dw-slate);
  line-height: 1.1;
}
.dw-onb-reco__unit {
  font-size: 0.85rem;
  color: var(--dw-slate-muted);
  grid-column: 2;
}

/* Public / auth polish */
.dw-landing__features li {
  transition: transform 240ms var(--dw-ease), box-shadow 240ms ease;
}
.dw-landing__features li:nth-child(1) { animation: dw-fade-up 420ms var(--dw-ease) 80ms both; }
.dw-landing__features li:nth-child(2) { animation: dw-fade-up 420ms var(--dw-ease) 160ms both; }
.dw-landing__features li:nth-child(3) { animation: dw-fade-up 420ms var(--dw-ease) 240ms both; }
@media (hover: hover) {
  .dw-landing__features li:hover {
    transform: translateY(-3px);
    box-shadow: var(--dw-shadow);
  }
}
.dw-landing__hero {
  animation: dw-fade-up 480ms var(--dw-ease) both;
}
.dw-auth-card {
  animation: dw-scale-in 420ms var(--dw-ease) both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
}
.dw-auth-card .dw-meal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Dashboard section polish */
.dw-hero {
  margin-bottom: 1rem;
}
.dw-quick-actions .btn {
  animation: dw-fade-up 400ms var(--dw-ease) both;
}
.dw-quick-actions .btn:nth-child(1) { animation-delay: 120ms; }
.dw-quick-actions .btn:nth-child(2) { animation-delay: 180ms; }
.dw-quick-actions .btn:nth-child(3) { animation-delay: 240ms; }

.dw-insights li {
  animation: dw-fade-up 380ms var(--dw-ease) both;
}
.dw-insights li:nth-child(1) { animation-delay: 60ms; }
.dw-insights li:nth-child(2) { animation-delay: 120ms; }
.dw-insights li:nth-child(3) { animation-delay: 180ms; }
.dw-insights li:nth-child(4) { animation-delay: 240ms; }

.dw-water-kind span,
.dw-meal-type-pill span {
  transition: transform 200ms var(--dw-ease), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.dw-water-kind input:checked + span,
.dw-meal-type-pill input:checked + span {
  box-shadow: 0 4px 14px rgba(31, 138, 112, 0.16);
  transform: translateY(-1px);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dw-page,
  .navbar-dw .nav-link.active,
  .navbar-dw .nav-link.active i,
  .progress-dw .progress-bar,
  .dw-auth .spinner-border,
  .dw-reveal,
  .dw-stagger > *,
  .dw-onb-panel--enter,
  .dw-onb-reco__item,
  .dw-landing__features li,
  .dw-landing__hero,
  .dw-auth-card,
  .dw-progress-stack .dw-progress-row,
  .dw-quick-actions .btn,
  .dw-insights li,
  body.dw-app::before,
  body.dw-public::before,
  .dw-blob {
    animation: none !important;
  }
  .dw-period__thumb {
    transition: none !important;
  }
  .dw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .dw-stagger > * {
    opacity: 1;
    transform: none;
  }
  .progress-dw .progress-bar {
    width: var(--dw-pct, 0%) !important;
  }
  .btn,
  .nav-link,
  .list-group-item,
  a,
  .dw-meal-tab,
  .dw-food-chip,
  .dw-food-result,
  .dw-meal-type-pill span,
  .dw-choice__face,
  .dw-section,
  .dw-panel,
  .dw-chart-block {
    transition: none !important;
  }
  .btn:active:not(:disabled),
  .dw-meal-tab:active,
  .dw-food-chip:active,
  .dw-food-result:active {
    transform: none;
  }
  .dw-meal-panel {
    animation: none !important;
  }
  .dw-btn-shine::after {
    display: none;
  }
}

/* —— Narrow phones —— */
@media (max-width: 360px) {
  main.dw-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .dw-page-title {
    font-size: 1.45rem;
  }
  .dw-quick-actions {
    grid-template-columns: 1fr;
  }
  .dw-quick-actions .btn:first-child,
  .dw-quick-actions .dw-quick-actions__jump {
    grid-column: auto;
  }
}

/* —— Recipes book —— */
.dw-recipe-card__link {
  display: flex;
  gap: 0;
  color: inherit;
}
.dw-recipe-card__cover {
  width: 5.5rem;
  min-height: 5.5rem;
  flex-shrink: 0;
  background: rgba(31, 138, 112, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: calc(var(--dw-radius) + 0.1rem) 0 0 calc(var(--dw-radius) + 0.1rem);
}
.dw-recipe-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-recipe-card__placeholder {
  color: var(--dw-mint);
  font-size: 1.5rem;
  opacity: 0.65;
}
.dw-recipe-card__body {
  min-width: 0;
  flex: 1;
}
.dw-recipe-form-preview__img {
  max-width: 10rem;
  max-height: 7rem;
  border-radius: calc(var(--dw-radius) - 0.15rem);
  object-fit: cover;
  display: block;
}
.dw-recipe-cover {
  width: 5rem;
  height: 5rem;
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: rgba(31, 138, 112, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dw-recipe-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-recipe-cover__placeholder {
  color: var(--dw-mint);
  font-size: 1.6rem;
  opacity: 0.65;
}
.dw-recipe-step-img,
.dw-recipe-gallery__img {
  max-width: 100%;
  max-height: 10rem;
  border-radius: calc(var(--dw-radius) - 0.15rem);
  object-fit: cover;
}
.dw-recipe-row {
  background: rgba(255, 255, 255, 0.45);
}

/* —— Meal plan week grid —— */
.dw-meal-plan-weekbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.dw-meal-plan-weekbar__meta {
  display: flex;
  flex-direction: column;
  min-width: 7rem;
  line-height: 1.2;
}
.dw-meal-plan-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(31, 138, 112, 0.18);
  border-radius: var(--dw-radius);
  background: rgba(255, 255, 255, 0.55);
}
.dw-meal-plan-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.dw-meal-plan-table th,
.dw-meal-plan-table td {
  border: 1px solid rgba(31, 138, 112, 0.12);
  padding: 0.4rem;
  vertical-align: top;
}
.dw-meal-plan-table thead th {
  text-align: center;
  background: rgba(31, 138, 112, 0.06);
  font-weight: 600;
}
.dw-meal-plan-table__corner {
  width: 4.5rem;
  background: rgba(31, 138, 112, 0.06);
}
.dw-meal-plan-table__day {
  display: block;
}
.dw-meal-plan-table__date {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--dw-muted, #6c757d);
}
.dw-meal-plan-table__row-label {
  text-align: left;
  white-space: nowrap;
  background: rgba(31, 138, 112, 0.04);
  font-weight: 600;
}
.dw-meal-plan-cell {
  min-width: 5.5rem;
  max-width: 7.5rem;
}
.dw-meal-plan-cell.is-consumed {
  background: rgba(31, 138, 112, 0.1);
}
.dw-meal-plan-cell__title {
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dw-meal-plan-cell__meta {
  color: var(--dw-muted, #6c757d);
  margin-top: 0.15rem;
}
.dw-meal-plan-cell__badge {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0 0.3rem;
  border-radius: 0.25rem;
  background: rgba(31, 138, 112, 0.18);
  color: var(--dw-mint-ink, #146b56);
  font-size: 0.68rem;
}
.dw-meal-plan-cell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.dw-meal-plan-cell__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  border: 1px dashed rgba(31, 138, 112, 0.28);
  border-radius: calc(var(--dw-radius) - 0.2rem);
  background: transparent;
  color: var(--dw-mint, #1f8a70);
  cursor: pointer;
}
.dw-meal-plan-cell__empty:hover,
.dw-meal-plan-cell__empty:focus-visible {
  background: rgba(31, 138, 112, 0.08);
  outline: none;
}
.dw-today__plan-item + .dw-today__plan-item {
  border-top: 1px solid rgba(31, 138, 112, 0.12);
}
