:root {
  --dpb-ink: #57534e;
  --dpb-muted: #78716c;
  --dpb-paper: rgb(255 255 255 / 82%);
  --dpb-cream: #fffdf8;
  --dpb-cream-deep: #fff7e8;
  --dpb-line: #e7e0d5;
  --dpb-amber: #f59e0b;
  --dpb-yellow: #fde047;
  --dpb-lime: #a3e635;
  --dpb-pink: #f43f5e;
  --dpb-red: #ef4444;
  --dpb-blue: #60a5fa;
  --dpb-green: #65a30d;
  --dpb-shadow: 0 22px 55px rgb(120 53 15 / 13%);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--dpb-cream);
}

.dpb-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--dpb-ink);
  background: var(--dpb-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dpb-main {
  width: 100%;
  min-height: calc(100vh - 80px);
  overflow: hidden;
}

.dpb-nav {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: 100%;
  min-height: 80px;
  padding: .45rem clamp(.75rem, 3vw, 2rem);
  border-bottom: 1px solid rgb(245 158 11 / 12%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 28px rgb(120 53 15 / 5%);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.dpb-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dpb-brand img {
  width: 64px;
  height: 64px;
  transition: transform .2s ease;
}

.dpb-brand:hover img { transform: translateY(-2px) rotate(-2deg); }

.dpb-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.6rem);
}

.dpb-nav-links a,
.dpb-text-link {
  color: var(--dpb-amber);
  font-size: clamp(.86rem, 1.5vw, 1.12rem);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(35deg, var(--dpb-amber), var(--dpb-yellow));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .2s ease, filter .2s ease;
}

.dpb-nav-links a:hover,
.dpb-nav-links a:focus-visible,
.dpb-text-link:hover,
.dpb-text-link:focus-visible {
  filter: saturate(1.25) brightness(.85);
  transform: translateY(-2px);
}

.dpb-language {
  display: flex;
  flex: 0 0 auto;
  gap: .1rem;
  padding: .22rem;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
}

.dpb-language a {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #a16207;
  font-size: .68rem;
  font-weight: 900;
  text-decoration: none;
}

.dpb-language a.is-active {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #facc15);
  box-shadow: 0 4px 10px rgb(245 158 11 / 30%);
}

.dpb-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  width: min(1240px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 3rem) 2rem;
  background:
    radial-gradient(circle at 74% 30%, rgb(253 224 71 / 8%), transparent 17rem),
    white;
}

.dpb-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  text-align: center;
}

.dpb-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  color: #57534e;
  font-size: clamp(2.45rem, 4.25vw, 4.15rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.dpb-lead {
  max-width: 590px;
  margin: 1.4rem auto 0;
  color: #78716c;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.dpb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.dpb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.dpb-button:hover,
.dpb-button:focus-visible {
  filter: brightness(.96);
  transform: translateY(-2px);
}

.dpb-button-primary {
  color: white;
  background: var(--dpb-pink);
  box-shadow: 0 12px 25px rgb(244 63 94 / 28%);
}

.dpb-button-secondary {
  color: #92400e;
  border-color: #fcd34d;
  background: #fef3c7;
}

.dpb-button-quiet {
  color: white;
  background: #dc2626;
}

.dpb-button-google {
  color: white;
  background: #ef4444;
}

.dpb-button-admin {
  color: white;
  background: #374151;
}

.dpb-button-wide { width: 100%; }

.dpb-hero-phone {
  position: relative;
  z-index: 3;
  display: flex;
  align-self: stretch;
  justify-content: center;
  min-height: 540px;
}

.dpb-hero-phone img {
  width: min(100%, 480px);
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgb(41 37 36 / 22%));
}

.dpb-home-wave {
  position: relative;
  margin-top: -3rem;
  padding: 7rem 0 8rem;
  color: #44403c;
  background: linear-gradient(35deg, #f59e0b 0%, #fde047 51%, #a3e635 100%);
}

.dpb-wave {
  position: absolute;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.dpb-wave svg { display: block; width: calc(100% + 2px); height: 115px; }
.dpb-wave path { fill: white; }
.dpb-wave-top { top: -1px; transform: rotate(180deg); }
.dpb-wave-bottom { bottom: -1px; }

.dpb-section {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.dpb-section > h2,
.dpb-page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.dpb-eyebrow {
  margin: 0 0 .65rem;
  color: #92400e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.dpb-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.dpb-feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  padding: 1.3rem;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: .85rem;
  color: #57534e;
  background: rgb(255 255 255 / 76%);
  box-shadow: 0 12px 28px rgb(120 53 15 / 13%);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.dpb-feature-card > i {
  flex: 0 0 42px;
  color: #57534e;
  font-size: 1.8rem;
  text-align: center;
}

.dpb-feature-card h3 { margin: 0 0 .28rem; font-size: 1rem; }
.dpb-feature-card p { margin: 0; color: #78716c; font-size: .8rem; line-height: 1.48; }

.dpb-routine {
  padding-top: 5rem;
  padding-bottom: 7rem;
  text-align: center;
}

.dpb-routine > .dpb-eyebrow { color: var(--dpb-amber); }
.dpb-routine ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2.2rem 0;
  padding: 0;
  list-style: none;
}

.dpb-routine li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.2rem;
  border: 1px solid #e7e5e4;
  border-radius: .8rem;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 10px 28px rgb(28 25 23 / 7%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

.dpb-routine li span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--dpb-amber), var(--dpb-yellow));
  font-weight: 900;
}

.dpb-routine li p { margin: 0; font-size: .86rem; line-height: 1.45; }

.dpb-auth-shell {
  position: relative;
  display: grid;
  min-height: calc(100vh - 80px);
  padding: 3rem 1rem 5rem;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgb(253 224 71 / 23%), transparent 23rem),
    radial-gradient(circle at 82% 82%, rgb(163 230 53 / 16%), transparent 25rem),
    linear-gradient(145deg, #fffdf8, #fff7e8 56%, #f7fee7);
}

.dpb-auth-shell::before,
.dpb-auth-shell::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 18px 18px rgb(120 53 15 / 16%));
}

.dpb-auth-shell::before {
  top: -5rem;
  right: -5rem;
  width: 22rem;
  height: 22rem;
  background-image: url("https://ik.imagekit.io/cis/planbook/orange.png");
  opacity: .72;
  transform: rotate(13deg);
}

.dpb-auth-shell::after {
  bottom: -8rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background-image: url("https://ik.imagekit.io/cis/planbook/pineapple.webp");
  opacity: .28;
  transform: rotate(-11deg);
}

.dpb-auth-card {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  padding: 2rem;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: .85rem;
  background: rgb(255 255 255 / 80%);
  box-shadow: 0 22px 55px rgb(120 53 15 / 15%);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  text-align: center;
}

.dpb-auth-card > img { display: block; margin: -4.6rem auto 1rem; filter: drop-shadow(0 8px 8px rgb(120 53 15 / 16%)); }
.dpb-auth-card h1 { margin: 0; color: #1f2937; font-size: 1.55rem; font-weight: 800; }
.dpb-auth-card > p { margin: .65rem 0 1.4rem; color: #6b7280; font-size: .88rem; line-height: 1.5; }
.dpb-auth-card > .dpb-text-link { display: inline-block; margin-top: 1.2rem; font-size: .8rem; }

.dpb-auth-divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1rem 0;
  color: #9ca3af;
  font-size: .72rem;
}

.dpb-auth-divider::before,
.dpb-auth-divider::after { content: ""; flex: 1; height: 1px; background: #d1d5db; }

.dpb-error {
  margin-bottom: 1rem;
  padding: .75rem;
  border: 1px solid #fecaca;
  border-radius: .4rem;
  color: #b91c1c;
  background: #fef2f2;
  font-size: .78rem;
  line-height: 1.4;
}

.dpb-page-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 2rem));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
}

.dpb-main:has(.dpb-page-shell),
.dpb-main:has(.dpb-diary) {
  position: relative;
  background:
    radial-gradient(circle at 10% 9%, rgb(253 224 71 / 18%), transparent 24rem),
    radial-gradient(circle at 92% 76%, rgb(163 230 53 / 11%), transparent 28rem),
    linear-gradient(145deg, #fffdf8, #fffaf0 52%, #fbfff2);
}

.dpb-body:has(.dpb-page-shell) .dpb-nav,
.dpb-body:has(.dpb-diary) .dpb-nav {
  background: rgb(255 255 255 / 88%);
}

.dpb-page-heading {
  margin-bottom: 2rem;
  color: var(--dpb-ink);
}

.dpb-page-heading > p,
.dpb-page-heading > div > p:last-child { max-width: 700px; color: var(--dpb-muted); }
.dpb-page-heading .dpb-eyebrow { color: #b45309; }
.dpb-heading-with-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }

.dpb-page-shell::before,
.dpb-page-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 16px 18px rgb(120 53 15 / 14%));
}

.dpb-page-shell::before {
  top: -2.5rem;
  right: -10rem;
  width: 22rem;
  height: 22rem;
  background-image: url("https://ik.imagekit.io/cis/planbook/orange.png");
  opacity: .42;
  transform: rotate(11deg);
}

.dpb-page-shell::after {
  bottom: -8rem;
  left: -10rem;
  width: 25rem;
  height: 25rem;
  background-image: url("https://ik.imagekit.io/cis/planbook/pineapple.webp");
  opacity: .18;
  transform: rotate(-9deg);
}

.dpb-account-card {
  max-width: 720px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgb(245 158 11 / 38%);
  border-radius: .85rem;
  color: var(--dpb-ink);
  background: rgb(255 255 255 / 78%);
  box-shadow: var(--dpb-shadow);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dpb-account-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #92400e;
  background: linear-gradient(135deg, #fde68a, #bef264);
  font-size: 1.4rem;
}

.dpb-account-card h2 { margin: 1rem 0; }
.dpb-account-card dl { margin: 0; }
.dpb-account-card dl div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--dpb-line); }
.dpb-account-card dt { color: #b45309; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.dpb-account-card dd { margin: 0; color: var(--dpb-ink); overflow-wrap: anywhere; }
.dpb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.dpb-account-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.dpb-diary {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 1.25rem));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 1.2rem 0 5rem;
}

.dpb-diary > *:not(.dpb-diary-fruit) { position: relative; z-index: 2; }
.dpb-diary-fruit { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dpb-diary-tour { width: min(820px, 100%); margin: -.5rem auto .8rem; text-align: right; }
.dpb-diary-tour a {
  display: inline-flex;
  padding: .35rem .6rem;
  border: 1px solid rgb(245 158 11 / 28%);
  border-radius: 999px;
  color: #a16207;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 7px 18px rgb(120 53 15 / 8%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .78rem;
  text-underline-offset: 3px;
}

.dpb-diary-fruit img {
  position: absolute;
  display: block;
  max-width: none;
  transform: none;
  opacity: .92;
  filter: drop-shadow(0 18px 18px rgb(120 53 15 / 18%));
}

.dpb-diary-fruit img:nth-child(1) { top: -5rem; right: -12rem; width: 20rem; }
.dpb-diary-fruit img:nth-child(2) { top: 9rem; right: -11rem; width: 17rem; }
.dpb-diary-fruit img:nth-child(3) { top: 9rem; left: -13rem; width: 18rem; }
.dpb-diary-fruit img:nth-child(4) { top: -8rem; left: -7rem; width: 20rem; }
.dpb-diary-fruit img:nth-child(5) { top: 66rem; left: -7rem; width: 18rem; }
.dpb-diary-fruit img:nth-child(6) { top: 63rem; right: -15rem; width: 34rem; opacity: .78; }

.dpb-date-nav {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: min(720px, 100%);
  margin: .8rem auto 1.5rem;
}

.dpb-date-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #f59e0b;
  border-radius: 50%;
  color: #b45309;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 20px rgb(120 53 15 / 10%);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.dpb-date-arrow:hover,
.dpb-date-arrow:focus-visible { background: white; transform: scale(1.07); }
.dpb-date-copy { min-width: 0; color: var(--dpb-ink); text-align: center; }
.dpb-date-copy p { margin: 0; color: #b45309; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.dpb-date-copy strong { display: block; margin: .18rem 0; font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 800; }
.dpb-date-copy input { max-width: 160px; padding: .22rem .4rem; border: 1px solid #fcd34d; border-radius: .35rem; color: var(--dpb-muted); background: rgb(255 255 255 / 84%); font-size: .72rem; color-scheme: light; }

.dpb-paper-form {
  position: relative;
  width: min(840px, 100%);
  margin: 0 auto;
  padding: clamp(.8rem, 2.2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: .9rem;
  background:
    linear-gradient(rgb(255 255 255 / 78%), rgb(255 255 255 / 78%)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgb(245 158 11 / 7%) 30px 31px);
  box-shadow: 0 24px 60px rgb(120 53 15 / 14%);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dpb-paper-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding: 0 .2rem .55rem;
  border-bottom: 2px solid #f59e0b;
  color: #78716c;
  font-size: .72rem;
}

.dpb-paper-header span:first-child { color: #b45309; font-size: 1rem; font-weight: 900; }
.dpb-paper-principle { display: grid; grid-template-columns: minmax(190px, .3fr) minmax(0, 1fr); align-items: center; gap: .9rem; width: 100%; padding: .6rem 0; }
.dpb-paper-principle > div { display: flex; align-items: center; gap: .65rem; }
.dpb-paper-number { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 2px solid #f59e0b; border-radius: 50%; color: #b45309; font-weight: 900; }
.dpb-paper-principle h2 { margin: 0; color: #57534e; font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 800; white-space: nowrap; }
.dpb-paper-principle p { width: 100%; margin: 0; color: #78716c; font-size: .76rem; line-height: 1.42; }

.dpb-food-status,
.dpb-activity-status { margin: .4rem 0; padding: .55rem .7rem; border-radius: .4rem; color: #b91c1c; background: #fef2f2; font-size: .72rem; }
.dpb-food-desktop { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: .8rem; }
.dpb-creator-seal { display: grid; justify-items: center; align-content: center; gap: .2rem; color: #b45309; }
.dpb-creator-seal img { width: 138px; height: 138px; object-fit: contain; filter: drop-shadow(0 8px 7px rgb(120 53 15 / 22%)); }
.dpb-creator-seal span { display: grid; width: 34px; height: 34px; margin-top: -1.1rem; place-items: center; border: 2px solid #f59e0b; border-radius: 50%; background: white; font-weight: 900; }

.dpb-food-ladder { position: relative; min-width: 0; padding: .15rem 0; }
.dpb-cross-vertical { position: absolute; z-index: 0; top: 28%; bottom: 27%; left: 48%; width: 28px; border-radius: .35rem; background: rgb(59 130 246 / 23%); }
.dpb-food-step { position: relative; z-index: 1; display: grid; grid-template-columns: 22px minmax(135px, 190px) minmax(0, 1fr); align-items: center; width: calc(100% - var(--step-indent)); min-height: 48px; margin-left: var(--step-indent); border-bottom: 4px solid rgb(245 158 11 / 52%); }
.dpb-food-step.is-protein-cross::before { content: ""; position: absolute; z-index: -1; top: 7px; right: 0; bottom: 7px; left: -4.5rem; border-radius: .35rem; background: rgb(59 130 246 / 22%); }
.dpb-step-person img { width: 17px; height: 25px; object-fit: contain; opacity: .72; }
.dpb-food-label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .35rem; min-width: 0; padding: 0 .3rem; }
.dpb-food-label b { color: #b45309; font-size: .56rem; letter-spacing: .07em; text-transform: uppercase; }
.dpb-food-label span { min-width: 0; color: #57534e; font-size: .72rem; font-weight: 900; }
.dpb-food-label small { grid-column: 2; color: #a8a29e; font-size: .58rem; }
.dpb-food-icons { min-width: 0; }
.dpb-food-icons form,
.dpb-mobile-portions form { display: none; }
.dpb-food-row { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(.12rem, .42vw, .34rem); min-width: 0; }

.dpb-portion {
  --portion-fill: 0%;
  position: relative;
  flex: 0 1 31px;
  width: 31px;
  min-width: 21px;
  height: 34px;
  padding: 2px;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.dpb-portion:hover,
.dpb-portion:focus-visible { outline: 2px solid rgb(245 158 11 / 60%); outline-offset: 1px; transform: translateY(-2px); }
.dpb-portion img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; pointer-events: none; }
.dpb-portion-base { filter: grayscale(1); opacity: .22; }
.dpb-portion-fill { clip-path: inset(0 calc(100% - var(--portion-fill)) 0 0); filter: saturate(1.15) drop-shadow(0 2px 2px rgb(91 52 14 / 20%)); transition: clip-path .25s ease; }
.dpb-portion.is-half { background: linear-gradient(90deg, rgb(254 215 170 / 62%) 50%, transparent 50%); }
.dpb-food-mobile { display: none; }

.dpb-activity-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #d6d3d1; }
.dpb-activity-group { min-width: 0; padding: .35rem; border-left: 1px solid #d6d3d1; }
.dpb-activity-group:first-child { border-left: 0; }
.dpb-activity-group .dpb-paper-principle { grid-template-columns: 1fr; align-items: start; gap: .3rem; min-height: 100px; }
.dpb-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.dpb-activity-grid form { min-width: 0; }
.dpb-activity { display: flex; flex-direction: column; align-items: center; gap: .28rem; width: 100%; min-height: 78px; padding: .3rem .1rem; border: 0; border-radius: .6rem; color: #78716c; background: transparent; font-size: .6rem; cursor: pointer; }
.dpb-activity-icon { display: grid; width: 45px; height: 45px; place-items: center; overflow: hidden; border-radius: 50%; color: #57534e; background: #e7e5e4; font-size: 1rem; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.dpb-activity-icon img { width: 27px; height: 27px; object-fit: contain; }
.dpb-activity.is-active .dpb-activity-icon { color: #92400e; background: #fde68a; box-shadow: 0 4px 14px rgb(245 158 11 / 25%); }
.dpb-activity:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.dpb-challenges {
  position: relative;
  overflow: hidden;
  width: min(960px, 100%);
  margin: 1.6rem auto 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid #f59e0b;
  border-radius: .8rem;
  color: #44403c;
  background: rgb(255 255 255 / 80%);
  box-shadow: 0 20px 48px rgb(120 53 15 / 13%);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.dpb-challenge-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.dpb-challenge-heading h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 900; }
.dpb-challenge-heading > div > p:last-child { margin: .35rem 0 0; color: #78716c; font-size: .82rem; }
.dpb-challenge-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.dpb-challenge-summary span,
.dpb-challenge-summary a,
.dpb-history-totals span { padding: .5rem .7rem; border: 1px solid #fcd34d; border-radius: 999px; color: #92400e; background: #fffbeb; font-size: .68rem; font-weight: 800; text-decoration: none; }
.dpb-campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.1rem; }
.dpb-campaign { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: .65rem; padding: 1rem; overflow: hidden; border: 1px solid #fed7aa; border-radius: .7rem; background: linear-gradient(135deg, #fff7ed, #fefce8); }
.dpb-campaign.dpb-theme-rose { border-color: #fecdd3; background: #fff1f2; }
.dpb-campaign-icon,
.dpb-reward-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #92400e; background: #fde68a; }
.dpb-theme-rose .dpb-campaign-icon,
.dpb-theme-rose .dpb-reward-icon { color: #9f1239; background: #fecdd3; }
.dpb-theme-emerald .dpb-reward-icon { color: #3f6212; background: #d9f99d; }
.dpb-campaign small,
.dpb-challenge-card small { color: #78716c; font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.dpb-campaign h3,
.dpb-challenge-card h3,
.dpb-reward-shelf h3 { margin: .12rem 0; font-size: .96rem; }
.dpb-campaign p { margin: .25rem 0; color: #78716c; font-size: .7rem; line-height: 1.4; }
.dpb-campaign-subtitle { color: #44403c !important; font-weight: 800; }
.dpb-campaign-progress { grid-column: 1 / -1; display: grid; gap: .3rem; color: #78716c; font-size: .66rem; }
.dpb-campaign-progress > div,
.dpb-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e7e5e4; }
.dpb-campaign-progress i,
.dpb-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #a3e635); transition: width .45s ease; }
.dpb-campaign-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.dpb-campaign-steps li { display: flex; gap: .35rem; padding: .5rem; border-radius: .45rem; color: #a8a29e; background: rgb(255 255 255 / 65%); }
.dpb-campaign-steps li.is-complete { color: var(--dpb-green); }
.dpb-campaign-steps span { display: flex; min-width: 0; flex-direction: column; }
.dpb-campaign-steps b { color: #44403c; font-size: .66rem; }
.dpb-campaign-steps small { font-size: .58rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dpb-challenge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: .9rem; }
.dpb-challenge-card { padding: .9rem; border: 1px solid #e7e5e4; border-top: 4px solid #f59e0b; border-radius: .6rem; background: rgb(255 255 255 / 82%); }
.dpb-challenge-card.is-complete { border-color: #a3e635; }
.dpb-challenge-card header { display: flex; justify-content: space-between; gap: .5rem; }
.dpb-challenge-card header p { margin: .13rem 0; color: #78716c; font-size: .68rem; font-weight: 700; }
.dpb-challenge-card > p { min-height: 36px; margin: .65rem 0; color: #78716c; font-size: .72rem; line-height: 1.4; }
.dpb-progress-label { display: flex; justify-content: space-between; gap: .5rem; margin-top: .38rem; color: #78716c; font-size: .64rem; }
.dpb-progress-label b { color: var(--dpb-green); }
.dpb-progress-label form { margin: 0; }
.dpb-progress-label button { padding: 0; border: 0; color: var(--dpb-green); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.dpb-progress-label button:focus-visible { outline: 2px solid #65a30d; outline-offset: 3px; }
.dpb-rule-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .65rem 0; padding: 0; list-style: none; }
.dpb-rule-list li { color: #a8a29e; font-size: .64rem; }
.dpb-rule-list li.is-complete { color: var(--dpb-green); }
.dpb-challenge-card footer { display: flex; justify-content: space-between; padding-top: .6rem; border-top: 1px solid #e7e5e4; color: #78716c; font-size: .68rem; }
.dpb-challenge-card footer b { color: #b45309; }
.dpb-reward-shelf { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #f59e0b; }
.dpb-reward-shelf > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.dpb-reward-shelf > header a { color: #b45309; font-size: .72rem; font-weight: 800; }
.dpb-reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
.dpb-reward { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid #e7e5e4; border-radius: .55rem; background: rgb(255 255 255 / 78%); }
.dpb-reward b { display: block; font-size: .73rem; }
.dpb-reward small { display: block; color: #78716c; font-size: .61rem; }
.dpb-reward strong { color: #b45309; font-size: .75rem; }
.dpb-empty { margin: .8rem 0 0; padding: 1rem; border-radius: .5rem; color: #78716c; background: #f5f5f4; font-size: .78rem; }

.dpb-reflection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(840px, 100%); margin: 1rem auto 0; }
.dpb-reflection-card { min-height: 260px; padding: 1.3rem; border: 1px solid rgb(245 158 11 / 42%); border-radius: .85rem; color: var(--dpb-ink); background: rgb(255 255 255 / 78%); box-shadow: 0 18px 42px rgb(120 53 15 / 12%); backdrop-filter: blur(18px) saturate(1.08); -webkit-backdrop-filter: blur(18px) saturate(1.08); }
.dpb-reflection-content { height: 100%; }
.dpb-reflection-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #92400e; background: linear-gradient(135deg, #fde68a, #bef264); }
.dpb-reflection-content h2 { margin: .9rem 0 .65rem; color: var(--dpb-ink); font-size: 1rem; }
.dpb-devotional-text { margin: 0; color: var(--dpb-muted); font-size: .78rem; line-height: 1.65; white-space: pre-line; }
.dpb-reflection-content textarea { width: 100%; min-height: 145px; padding: .75rem; resize: vertical; border: 1px solid #d6d3d1; border-radius: .45rem; color: var(--dpb-ink); background: rgb(255 255 255 / 76%); font: inherit; font-size: .8rem; line-height: 1.5; }
.dpb-reflection-content textarea:focus { outline: 2px solid #f59e0b; outline-offset: 1px; }
.dpb-save-status { min-height: 22px; margin-top: .5rem; color: var(--dpb-muted); font-size: .68rem; }
.dpb-save-status .is-success { color: #4d7c0f; }
.dpb-save-status .is-error { color: #b91c1c; }
.dpb-loading { display: grid; min-height: 210px; place-items: center; color: #fbbf24; }

.dpb-challenge-page { width: min(1080px, calc(100% - 1.25rem)); }
.dpb-challenge-page .dpb-challenges { margin-top: 0; }
.dpb-history-totals { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.dpb-history-list { display: grid; gap: .7rem; }
.dpb-history-list article { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #f59e0b; border-radius: .65rem; color: #44403c; background: rgb(255 255 255 / 80%); box-shadow: 0 12px 30px rgb(120 53 15 / 8%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dpb-history-list h2 { margin: 0; font-size: .95rem; }
.dpb-history-list p { margin: .18rem 0; color: #78716c; font-size: .74rem; }
.dpb-history-list small { color: #a8a29e; font-size: .64rem; }
.dpb-history-list strong { color: #b45309; }

.is-hidden { display: none !important; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes dpb-bounce {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.13) rotate(-2deg); }
}

@keyframes dpb-portion-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: translateY(-3px) scale(1.2); }
}

@keyframes dpb-portion-ripple {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

@keyframes dpb-reveal {
  0% { opacity: 0; transform: translateY(10px) scale(.95); }
  70% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { transform: scale(1); }
}

.dpb-portion.dpb-boom { animation: dpb-portion-pop .46s cubic-bezier(.2, .85, .3, 1); }
.dpb-portion.dpb-boom-soft { animation: dpb-portion-ripple .46s ease; }
.is-bouncing .dpb-activity-icon { animation: dpb-bounce .42s ease; }
.dpb-reward.is-recent { animation: dpb-reveal .7s ease both; }

@media (max-width: 980px) {
  .dpb-nav { grid-template-columns: auto 1fr; gap: .5rem 1rem; }
  .dpb-language { grid-column: 2; grid-row: 1; justify-self: end; }
  .dpb-nav-links { grid-column: 1 / -1; justify-content: center; padding-bottom: .45rem; }
  .dpb-hero { min-height: 590px; }
  .dpb-hero-phone { min-height: 470px; }
  .dpb-food-desktop { grid-template-columns: 105px minmax(0, 1fr); }
  .dpb-creator-seal img { width: 100px; height: 100px; }
  .dpb-food-step { grid-template-columns: 19px minmax(120px, 160px) minmax(0, 1fr); }
  .dpb-portion { min-width: 19px; }
}

@media (max-width: 760px) {
  .dpb-nav { min-height: 70px; padding: .35rem .5rem .55rem; }
  .dpb-brand img { width: 46px; height: 46px; }
  .dpb-language a { min-width: 31px; height: 27px; }
  .dpb-nav-links {
    display: grid;
    grid-template-columns: .72fr 1.1fr 1.25fr .88fr 1.25fr;
    gap: .15rem;
    width: 100%;
  }
  .dpb-nav-links a { min-width: 0; padding: .28rem .08rem; font-size: .69rem; line-height: 1.12; text-align: center; overflow-wrap: anywhere; }

  .dpb-hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 1rem 0; }
  .dpb-hero-copy { width: 100%; }
  .dpb-hero h1 { margin-top: 0; font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .dpb-lead { font-size: .9rem; }
  .dpb-hero-phone { min-height: 390px; margin-top: 1rem; }
  .dpb-hero-phone img { max-height: 430px; }
  .dpb-home-wave { margin-top: -1rem; padding: 5.5rem 0 6rem; }
  .dpb-wave svg { height: 75px; }
  .dpb-section { padding: 3rem 0; }
  .dpb-feature-grid,
  .dpb-routine ol,
  .dpb-campaign-grid,
  .dpb-challenge-grid,
  .dpb-reward-grid,
  .dpb-reflection-grid { grid-template-columns: 1fr; }
  .dpb-routine { padding-bottom: 5rem; }

  .dpb-heading-with-link,
  .dpb-challenge-heading { align-items: flex-start; flex-direction: column; }
  .dpb-heading-with-link > div { min-width: 0; max-width: 100%; }
  .dpb-page-heading h1 { font-size: clamp(1.55rem, 7.1vw, 1.8rem); overflow-wrap: anywhere; }
  .dpb-challenge-summary { justify-content: flex-start; }
  .dpb-page-shell { padding-top: 2.5rem; }
  .dpb-account-card dl div { grid-template-columns: 1fr; gap: .2rem; }
  .dpb-paper-form { padding: .7rem; }
  .dpb-paper-header span:last-child { max-width: 58%; text-align: right; }
  .dpb-paper-principle { grid-template-columns: 1fr; gap: .35rem; }

  .dpb-food-desktop { display: none; }
  .dpb-food-mobile { display: block; overflow: hidden; border: 1px solid #d6d3d1; border-radius: .65rem; background: rgb(255 255 255 / 62%); }
  .dpb-mobile-track { display: flex; width: 200%; transition: transform .38s cubic-bezier(.22, .8, .28, 1); }
  .dpb-food-mobile[data-panel-open="true"] .dpb-mobile-track { transform: translateX(-50%); }
  .dpb-mobile-page { position: relative; flex: 0 0 50%; width: 50%; min-width: 0; padding: .7rem; }
  .dpb-mobile-cross { position: absolute; top: 28%; bottom: 25%; left: 49%; width: 24px; border-radius: .3rem; background: rgb(59 130 246 / 20%); }
  .dpb-mobile-category { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: calc(100% - var(--step-indent)); min-height: 50px; margin-left: var(--step-indent); padding: .5rem .55rem; border: 0; border-bottom: 4px solid rgb(245 158 11 / 52%); color: #44403c; background: rgb(255 255 255 / 84%); text-align: left; cursor: pointer; }
  .dpb-mobile-category.is-protein-cross::before { content: ""; position: absolute; z-index: -1; inset: 5px -7px; border-radius: .35rem; background: rgb(59 130 246 / 22%); }
  .dpb-mobile-category b { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; background: #f59e0b; font-size: .62rem; }
  .dpb-mobile-category span { font-size: .74rem; font-weight: 800; }
  .dpb-mobile-category small { color: #78716c; font-size: .58rem; white-space: nowrap; }
  .dpb-mobile-picker { min-height: 420px; }
  .dpb-mobile-back { padding: .4rem 0; border: 0; color: #b45309; background: transparent; font-weight: 800; cursor: pointer; }
  .dpb-mobile-picker h3 { margin: .9rem 0 .2rem; color: #57534e; font-size: 1.15rem; text-align: center; }
  .dpb-mobile-picker > p { margin: 0 0 1.2rem; color: #78716c; font-size: .68rem; text-align: center; }
  .dpb-mobile-portions .dpb-food-row { justify-content: center; flex-wrap: wrap; gap: .75rem; }
  .dpb-portion-mobile { flex: 0 0 44px; width: 44px; height: 47px; }
  .dpb-activity-section { grid-template-columns: 1fr; }
  .dpb-activity-group { border-top: 1px solid #d6d3d1; border-left: 0; }
  .dpb-activity-group:first-child { border-top: 0; }
  .dpb-activity-group .dpb-paper-principle { min-height: 0; }
  .dpb-activity { min-height: 84px; font-size: .65rem; }
  .dpb-campaign-steps { grid-template-columns: 1fr; }

  .dpb-diary-fruit img:nth-child(1) { top: 5rem; right: -8rem; width: 12rem; }
  .dpb-diary-fruit img:nth-child(2) { display: none; }
  .dpb-diary-fruit img:nth-child(3) { display: none; }
  .dpb-diary-fruit img:nth-child(4) { top: -9rem; left: -5rem; width: 12rem; }
  .dpb-diary-fruit img:nth-child(5) { top: 58rem; left: -5rem; width: 12rem; opacity: .72; }
  .dpb-diary-fruit img:nth-child(6) { top: 62rem; right: -10rem; width: 24rem; opacity: .55; }

  .dpb-page-shell::before { right: -8rem; width: 16rem; height: 16rem; opacity: .3; }
  .dpb-page-shell::after { left: -9rem; width: 18rem; height: 18rem; opacity: .14; }
  .dpb-auth-shell::before { top: -4rem; right: -6rem; width: 15rem; height: 15rem; opacity: .5; }
  .dpb-auth-shell::after { bottom: -6rem; left: -6rem; width: 16rem; height: 16rem; opacity: .18; }
}

@media (max-width: 420px) {
  .dpb-nav-links a { font-size: .62rem; }
  .dpb-language a { min-width: 29px; }
  .dpb-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .dpb-button-primary { width: 100%; }
  .dpb-hero-phone { min-height: 340px; }
  .dpb-feature-card { align-items: flex-start; }
  .dpb-paper-principle p { font-size: .72rem; }
  .dpb-activity-grid { gap: .25rem; }
  .dpb-activity-icon { width: 40px; height: 40px; }
  .dpb-reward { grid-template-columns: 38px 1fr auto; }
  .dpb-date-nav { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .dpb-date-arrow { width: 38px; height: 38px; }
}

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