:root {
  --dd-bg: #f5f7f4;
  --dd-surface: #ffffff;
  --dd-text: #1f2a24;
  --dd-muted: #6b776f;
  --dd-border: #e3e8e4;
  --dd-primary: #2f8f5b;
  --dd-primary-dark: #23744a;
  --dd-primary-soft: #e6f4ec;
  --dd-radius: 16px;
  --dd-shadow: 0 1px 2px rgba(31, 42, 36, .04), 0 8px 24px rgba(31, 42, 36, .06);

  --dd-kcal: #e8743b;
  --dd-protein: #3b82c4;
  --dd-fat: #d9a21b;
  --dd-carb: #8a5cc7;
  --dd-fiber: #2f8f5b;
  --dd-salt: #6b7a8a;
  --dd-score: #d64f6b;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--dd-text);
  --bs-body-bg: var(--dd-bg);
  --bs-link-color: var(--dd-primary);
  --bs-link-color-rgb: 47, 143, 91;
  --bs-link-hover-color: var(--dd-primary-dark);
  --bs-border-color: var(--dd-border);
  --bs-secondary-color: var(--dd-muted);
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  background: var(--dd-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; }

/* Buttons and inputs */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1rem; }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; }
.btn-primary {
  --bs-btn-bg: var(--dd-primary);
  --bs-btn-border-color: var(--dd-primary);
  --bs-btn-hover-bg: var(--dd-primary-dark);
  --bs-btn-hover-border-color: var(--dd-primary-dark);
  --bs-btn-active-bg: var(--dd-primary-dark);
  --bs-btn-active-border-color: var(--dd-primary-dark);
  --bs-btn-disabled-bg: var(--dd-primary);
  --bs-btn-disabled-border-color: var(--dd-primary);
}
.btn-soft {
  background: var(--dd-primary-soft);
  color: var(--dd-primary-dark);
  border: 1px solid transparent;
}
.btn-soft:hover, .btn-soft:focus { background: #d5ecdf; color: var(--dd-primary-dark); }
.btn-ghost { background: transparent; color: var(--dd-muted); border: 1px solid transparent; }
.btn-ghost:hover { background: #eef1ee; color: var(--dd-text); }
.btn-ghost-danger { background: transparent; color: var(--dd-muted); border: 1px solid transparent; }
.btn-ghost-danger:hover { background: #fdecef; color: #c0364f; }
.btn-danger { background: #c0364f; border-color: #c0364f; }
.btn-danger:hover, .btn-danger:focus { background: #a42c42; border-color: #a42c42; }

.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--dd-border);
  padding: .6rem .8rem;
}
.form-control-sm { border-radius: 8px; padding: .35rem .6rem; }
.form-control:focus, .form-select:focus, .btn:focus-visible {
  border-color: var(--dd-primary);
  box-shadow: 0 0 0 .2rem rgba(47, 143, 91, .18);
}
.form-label { font-weight: 600; font-size: .85rem; color: var(--dd-muted); margin-bottom: .3rem; }

/* Top bar */
.dd-navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dd-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.dd-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  color: var(--dd-text);
  text-decoration: none;
  font-size: 1.1rem;
}
.dd-brand:hover { color: var(--dd-text); }
.dd-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #43b072, #23744a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.dd-user {
  font-size: .85rem;
  color: var(--dd-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd-footer { color: var(--dd-muted); font-size: .8rem; padding: 1.5rem 0; }
.dd-footer a { color: inherit; }
.dd-disclaimer { color: var(--dd-muted); font-size: .75rem; font-style: italic; margin: .75rem 0 0; }
.dd-legal h1 { font-size: 1.5rem; }
.dd-legal h2 { font-size: 1.05rem; margin-top: 1.5rem; }
.dd-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; }
.dd-languages a { color: var(--dd-muted); text-decoration: none; }
.dd-languages a:hover, .dd-languages a.active { color: var(--dd-primary); font-weight: 600; }

/* Cards */
.dd-card {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  padding: 1.25rem;
}
.dd-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Auth pages */
.dd-auth {
  max-width: 420px;
  margin: 3rem auto 2rem;
}
.dd-auth .dd-card { padding: 2rem; }
.dd-auth-head { text-align: center; margin-bottom: 1.5rem; }
.dd-auth-head .dd-logo { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 14px; margin-bottom: .75rem; }
.dd-auth-head h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.dd-auth-head p { color: var(--dd-muted); margin: 0; }
.dd-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--dd-muted);
  font-size: .8rem;
  margin: 1.25rem 0;
}
.dd-divider::before, .dd-divider::after { content: ""; flex: 1; height: 1px; background: var(--dd-border); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: #fff;
  border: 1px solid #d4dad6;
  color: #1f1f1f;
}
.btn-google:hover { background: #f7f8f7; border-color: #c3cac5; color: #1f1f1f; }
.btn-google:disabled { opacity: .55; }
.btn-google svg { width: 18px; height: 18px; flex: none; }

/* Diary: date bar */
.dd-datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 1.5rem 0 1.25rem;
  flex-wrap: wrap;
}
.dd-datebar h1 { font-size: 1.6rem; margin: 0; }
.dd-datebar .dd-weekday { color: var(--dd-muted); font-size: .9rem; }
.dd-datepicker {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: 12px;
  padding: .25rem;
}
.dd-datepicker input { border: 0; padding: .3rem .4rem; width: auto; }
.dd-datepicker input:focus { box-shadow: none; }
.dd-datepicker .btn { padding: .3rem .65rem; }

/* Diary: totals */
.dd-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 576px) { .dd-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .dd-stats { grid-template-columns: repeat(7, 1fr); } }
.dd-stat {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: .85rem 1rem;
  position: relative;
  overflow: hidden;
}
.dd-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c, var(--dd-primary));
}
.dd-stat-value { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.dd-stat-value small { font-size: .8rem; font-weight: 600; color: var(--dd-muted); margin-left: 2px; }
.dd-stat-label { font-size: .8rem; color: var(--dd-muted); font-weight: 600; }
.dd-stat-kcal { --c: var(--dd-kcal); }
.dd-stat-protein { --c: var(--dd-protein); }
.dd-stat-fat { --c: var(--dd-fat); }
.dd-stat-carb { --c: var(--dd-carb); }
.dd-stat-fiber { --c: var(--dd-fiber); }
.dd-stat-salt { --c: var(--dd-salt); }
.dd-stat-score { --c: var(--dd-score); }

/* Diary: meals */
.dd-meal { padding: 1rem 1.25rem; margin-bottom: .85rem; }
.dd-meal-head { display: flex; align-items: center; gap: .75rem; }
.dd-meal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--dd-primary-soft);
  flex: none;
}
.dd-meal-title { font-weight: 700; margin: 0; font-size: 1rem; }
.dd-meal-kcal { margin-left: auto; font-weight: 800; white-space: nowrap; }
.dd-meal-kcal small { color: var(--dd-muted); font-weight: 600; }
.dd-meal-prompt { margin: .75rem 0 .5rem; color: var(--dd-text); }
.dd-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.dd-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #f1f3f1;
  color: var(--dd-text);
}
.dd-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--dd-muted)); }
.dd-chip-protein { --c: var(--dd-protein); }
.dd-chip-fat { --c: var(--dd-fat); }
.dd-chip-carb { --c: var(--dd-carb); }
.dd-chip-fiber { --c: var(--dd-fiber); }
.dd-chip-salt { --c: var(--dd-salt); }
.dd-chip-score { --c: var(--dd-score); }
.dd-chip-fluid { --c: #3b9ae1; }
.dd-badge-estimated {
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #fff4dc;
  color: #94690a;
  vertical-align: middle;
}
.dd-nutrients { font-size: .8rem; color: var(--dd-muted); margin-top: .5rem; }
.dd-note {
  font-size: .88rem;
  color: #3d4a42;
  background: #f6f8f6;
  border-radius: 10px;
  padding: .6rem .8rem;
  margin-top: .65rem;
}
.dd-meal-actions { display: flex; align-items: center; gap: .25rem; margin-top: .6rem; }

details.dd-details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dd-muted);
  padding: .3rem .6rem;
  border-radius: 8px;
}
details.dd-details > summary::-webkit-details-marker { display: none; }
details.dd-details > summary::before { content: "▸"; transition: transform .15s; }
details.dd-details[open] > summary::before { transform: rotate(90deg); }
details.dd-details > summary:hover { background: #eef1ee; color: var(--dd-text); }

.dd-empty {
  text-align: center;
  color: var(--dd-muted);
  padding: 2rem 1rem;
  border: 2px dashed var(--dd-border);
  border-radius: var(--dd-radius);
  margin-bottom: 1rem;
}
.dd-empty .dd-empty-icon { font-size: 2rem; display: block; margin-bottom: .35rem; }

/* Add meal */
.dd-add { border-color: #cfe6d8; }
/* Two equal buttons side by side, e.g. "Yeniden analiz et" beside "Günlüğe ekle". */
.dd-btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dd-meal-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.dd-meal-types input { position: absolute; opacity: 0; pointer-events: none; }
.dd-meal-types label {
  cursor: pointer;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--dd-border);
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dd-muted);
  transition: all .12s;
}
.dd-meal-types label:hover { border-color: var(--dd-primary); color: var(--dd-text); }
.dd-meal-types input:checked + label { background: var(--dd-primary); border-color: var(--dd-primary); color: #fff; }
.dd-meal-types input:focus-visible + label { box-shadow: 0 0 0 .2rem rgba(47, 143, 91, .25); }

.dd-analysis-table { font-size: .85rem; margin-bottom: .75rem; }
.dd-analysis-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--dd-muted); font-weight: 700; border-bottom-color: var(--dd-border); }
.dd-analysis-table td { border-bottom-color: #eef1ee; vertical-align: top; }
.dd-source { font-size: .75rem; color: var(--dd-muted); }

.dd-scores { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.dd-score {
  flex: 1 1 90px;
  background: #f6f8f6;
  border-radius: 10px;
  padding: .45rem .6rem;
  font-size: .75rem;
  color: var(--dd-muted);
  font-weight: 600;
}
.dd-score strong { display: block; font-size: 1rem; color: var(--dd-text); }
.dd-score .dd-bar { height: 4px; border-radius: 4px; background: #e3e8e4; margin-top: .3rem; overflow: hidden; }
.dd-score .dd-bar span { display: block; height: 100%; background: var(--dd-primary); border-radius: 4px; }

/* Report */
.dd-report { border-color: #d9e4f2; }
.dd-report-score {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dd-primary-soft);
  color: var(--dd-primary-dark);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}
.dd-report-score small { font-size: .65rem; font-weight: 600; color: var(--dd-muted); margin-top: 2px; }
.dd-callout {
  border-radius: 12px;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-top: .75rem;
}
.dd-callout ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.dd-callout-warn { background: #fff6e5; color: #6d4f05; }
.dd-callout-tip { background: #e9f3fb; color: #1f4d75; }

/* Macros */
.dd-macro-value { white-space: pre-wrap; }
.dd-macro-menu { max-height: 320px; overflow-y: auto; max-width: min(320px, 90vw); }
.dd-macro-menu .dropdown-item { white-space: normal; }

/* Meal description box before "Analiz et": roomy by default, user can drag it taller. */
.dd-prompt {
  min-height: 9rem;
  resize: vertical;
}

/* Voice and photo buttons under the meal box */
.dd-prompt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.dd-prompt-tools .btn { display: inline-flex; align-items: center; gap: .35rem; }
.dd-prompt-tools .btn svg { width: 1rem; height: 1rem; }
.dd-prompt-tools .btn.dd-listening { background: #fde8e8; color: #b42318; border-color: #f5c2c0; }
.dd-prompt-tools .btn.dd-listening svg { animation: dd-pulse 1s ease-in-out infinite; }
@keyframes dd-pulse { 50% { opacity: .35; } }
.dd-photo-preview { position: relative; }
.dd-photo-preview img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--dd-border, #dfe6e2); }
.dd-photo-remove { position: absolute; top: -.4rem; right: -.4rem; width: 1.4rem; height: 1.4rem; padding: 0; border: 0; border-radius: 50%;
  background: #333; color: #fff; display: flex; align-items: center; justify-content: center; }
.dd-photo-remove svg { width: .8rem; height: .8rem; }

/* Body measurements */
a.dd-body-item { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.dd-body-item:hover { color: inherit; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 40, 30, .08); }
.dd-delta { font-size: .78rem; font-weight: 600; color: var(--dd-muted); }
.dd-group-row td { background: #f4f7f5; font-weight: 700; font-size: .8rem; color: var(--dd-muted); }
.dd-metric-group { font-weight: 700; font-size: .85rem; color: var(--dd-muted); margin: .75rem 0 .35rem; }
.dd-metric-group:first-child { margin-top: 0; }
.dd-metric-list { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; margin: 0; font-size: .9rem; }
.dd-metric-list dt { font-weight: 500; }
.dd-metric-list dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.dd-status { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: #eef1ee; color: var(--dd-muted); font-size: .72rem; font-weight: 600; }
.dd-metric-editor { max-height: 420px; overflow-y: auto; border: 1px solid var(--dd-border); border-radius: 10px; }
.dd-metric-editor table { min-width: 620px; }
.dd-metric-editor th { position: sticky; top: 0; background: #fff; font-size: .75rem; color: var(--dd-muted); z-index: 1; }

/* Profile (welcome questions) */
.dd-profile-question { padding: 1.1rem 1.25rem; margin-bottom: .85rem; }
.dd-profile-question .dd-meal-title { margin-bottom: .75rem; }
.dd-options label { white-space: normal; text-align: left; }
.dd-short-input { max-width: 10rem; }

/* Welcome questions: one card at a time (site.js), fading from one to the next. */
.dd-welcome { max-width: 36rem; margin: 0 auto; }
.dd-welcome-head { margin-bottom: 1rem; }
.dd-welcome-head h1 { margin-bottom: .75rem; }
.dd-step-progress { height: 6px; border-radius: 999px; background: var(--dd-border); overflow: hidden; }
.dd-step-progress span { display: block; height: 100%; width: 0; background: var(--dd-primary); border-radius: inherit; transition: width .4s ease; }
.dd-welcome:not(.dd-welcome-js) .dd-step-progress { display: none; }
.dd-step { padding: 1.5rem 1.4rem 1rem; margin-bottom: 1rem; outline: none; }
.dd-welcome-js .dd-step { transition: opacity .28s ease, transform .28s ease; }
.dd-welcome-js .dd-step-leave { opacity: 0; transform: translateY(-10px); }
.dd-welcome-js .dd-step-enter { opacity: 0; transform: translateY(10px); transition: none; }
.dd-step-count { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dd-primary); margin-bottom: .35rem; }
.dd-step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.dd-step .dd-options label { padding: .55rem 1rem; font-size: .92rem; }
.dd-step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--dd-border); }
.dd-step-decline { color: var(--dd-muted); text-decoration: none; margin-top: .4rem; }
.dd-step-decline:hover { color: var(--dd-text); }
.dd-step-note { font-size: .78rem; color: var(--dd-muted); text-align: center; margin: .6rem 0 0; }
.dd-welcome:not(.dd-welcome-js) [data-step-back],
.dd-welcome:not(.dd-welcome-js) [data-step-decline],
.dd-welcome:not(.dd-welcome-js) .dd-step:not(:nth-last-child(2)) [data-step-next] { display: none; }

.dd-ready { text-align: center; padding: 2.5rem 1.5rem; }
.dd-ready h2 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .4rem; }
.dd-ready-mark { width: 84px; height: 84px; margin: 0 auto; }
.dd-ready-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--dd-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dd-ready-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; fill: var(--dd-primary-soft); }
.dd-ready-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; stroke-width: 4; }
.dd-ready h2, .dd-ready p { opacity: 0; transform: translateY(8px); }
.dd-ready-play .dd-ready-mark { animation: dd-pop .6s ease-out both; }
.dd-ready-play .dd-ready-mark circle { animation: dd-draw .7s ease-out forwards; }
.dd-ready-play .dd-ready-mark path { animation: dd-draw .4s .55s ease-out forwards; }
.dd-ready-play h2 { animation: dd-rise .5s .7s ease-out forwards; }
.dd-ready-play p { animation: dd-rise .5s .9s ease-out forwards; }
@keyframes dd-draw { to { stroke-dashoffset: 0; } }
@keyframes dd-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dd-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dd-welcome-js .dd-step, .dd-step-progress span { transition: none; }
  .dd-ready-play .dd-ready-mark, .dd-ready-play .dd-ready-mark circle, .dd-ready-play .dd-ready-mark path,
  .dd-ready-play h2, .dd-ready-play p { animation-duration: .01s; animation-delay: 0s; }
}

/* Meal and workout times */
.dd-meal-time {
  font-size: .78rem;
  font-weight: 600;
  color: var(--dd-muted);
  margin-left: .45rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--dd-bg);
  border: 1px solid var(--dd-border);
}
.dd-eaten-at { display: flex; align-items: center; gap: .6rem; }
.dd-eaten-at input { max-width: 8.5rem; }

/* Activity on the diary page */
.dd-activity-strip {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding: .85rem 1.1rem;
  color: var(--dd-text);
  text-decoration: none;
}
.dd-activity-strip:hover { border-color: var(--dd-primary); color: var(--dd-text); }
.dd-activity-icon { font-size: 1.5rem; }
.dd-activity-title { font-weight: 700; }
.dd-activity-go { color: var(--dd-muted); font-size: 1.2rem; }

/* Detailed report */
.dd-report-section { margin-top: 1rem; }
.dd-report-section > strong { display: block; margin-bottom: .25rem; }
.dd-nutrient-tips { background: var(--dd-primary-soft); border-radius: .75rem; padding: .75rem 1rem; }
.dd-nutrient-tips > strong { color: var(--dd-primary-dark); }
.dd-nutrient-tips ul { padding-left: 1.1rem; }
.dd-timeline-body { flex: 1; min-width: 0; }
.dd-timeline { list-style: none; padding: 0; margin: .35rem 0 0; border-left: 2px solid var(--dd-border); }
.dd-timeline li { position: relative; padding-left: 1rem; }
.dd-timeline-item { display: flex; gap: .75rem; padding-top: .35rem; padding-bottom: .35rem; }
.dd-timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dd-kcal);
}
.dd-timeline-drink::before { background: var(--dd-protein); }
.dd-timeline-exercise::before { background: var(--dd-primary); }
.dd-timeline-time { font-weight: 700; white-space: nowrap; min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.dd-timeline-gap { color: var(--dd-muted); font-size: .78rem; font-style: italic; }

/* Vitamins and minerals against the daily targets */
.dd-micro { margin-bottom: 1.25rem; padding: .85rem 1.1rem; }
.dd-micro > summary { list-style: none; cursor: pointer; }
.dd-micro > summary::-webkit-details-marker { display: none; }
.dd-micro-head { display: flex; align-items: center; gap: .85rem; }
.dd-micro-toggle { color: var(--dd-muted); font-size: 1.1rem; transition: transform .15s; }
.dd-micro-toggle { display: inline-flex; }
details[open] > summary .dd-micro-toggle { transform: rotate(90deg); }
.dd-micro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem 1.25rem; }
.dd-micro-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.dd-micro-name { font-weight: 600; }
.dd-micro-value { color: var(--dd-muted); white-space: nowrap; }
.dd-micro-bar { height: 7px; border-radius: 99px; background: #edf0ed; overflow: hidden; margin: .25rem 0 .15rem; }
.dd-micro-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.dd-micro-status { font-size: .75rem; color: var(--c); }
.dd-micro-low { --c: #d0533d; }
.dd-micro-near { --c: #d9a21b; }
.dd-micro-adequate { --c: var(--dd-primary); }
.dd-micro-overlimit { --c: #b3261e; }
.dd-micro-low-text { color: #d0533d; }
.dd-micro-over-text { color: #b3261e; font-weight: 600; }

/* Fluids */
.dd-fluid-amount { font-size: 1.8rem; font-weight: 800; }
.dd-fluid-amount small { font-size: 1rem; font-weight: 600; color: var(--dd-muted); }
.dd-fluid-note { max-width: 22rem; }
.dd-fluid-bar { height: 10px; border-radius: 999px; background: var(--dd-border); overflow: hidden; }
.dd-fluid-bar > span { display: block; height: 100%; border-radius: inherit; background: #3b9ae1; transition: width .3s; }
.dd-fluid-bar-thin { height: 6px; }
.dd-fluid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.dd-fluid { display: flex; flex-direction: column; gap: .75rem; }
.dd-fluid-head { display: flex; align-items: center; gap: .75rem; }
.dd-fluid-icon { font-size: 2rem; }
.dd-fluid-meals { display: flex; align-items: center; gap: .75rem; }
.dd-fluid-counter { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dd-fluid-btn { width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; padding: 0; }
.dd-fluid-count { font-size: 2rem; font-weight: 800; text-align: center; line-height: 1.1; }
.dd-fluid-count small { display: block; font-size: .8rem; font-weight: 500; color: var(--dd-muted); }
.dd-fluid-size { display: flex; align-items: center; gap: .5rem; }
.dd-fluid-size select { width: auto; }
.dd-amount-dialog { border: 0; border-radius: 1.1rem; padding: 1.25rem; width: min(22rem, calc(100vw - 2rem)); box-shadow: 0 18px 48px rgba(16, 32, 24, .22); color: var(--dd-text); }
.dd-amount-dialog::backdrop { background: rgba(16, 24, 20, .35); }
.dd-model-dialog { max-height: calc(100vh - 2rem); overflow-y: auto; }
.dd-model-group { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dd-muted); margin: .75rem 0 .25rem; }
.dd-model-option { display: block; width: 100%; text-align: left; border: 1px solid var(--dd-border); background: transparent; color: inherit; border-radius: .6rem; padding: .55rem .75rem; margin-bottom: .35rem; font-weight: 600; }
.dd-model-option:hover:not(:disabled), .dd-model-option:focus-visible { border-color: var(--dd-primary); background: rgba(46, 125, 80, .06); }
.dd-model-option:disabled { opacity: .55; }
.dd-amount-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dd-amount-value { display: flex; align-items: baseline; justify-content: center; gap: .25rem; flex: 1; margin: 0; }
.dd-amount-value input { width: 6.5rem; border: 0; border-bottom: 2px solid var(--dd-border); background: transparent; font-size: 2.2rem; font-weight: 800; text-align: center; color: inherit; padding: 0; -moz-appearance: textfield; }
.dd-amount-value input::-webkit-inner-spin-button, .dd-amount-value input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dd-amount-value input:focus { outline: none; border-bottom-color: var(--dd-primary); }
.dd-amount-value small { font-weight: 600; color: var(--dd-muted); }
.dd-amount-hints { display: flex; justify-content: space-between; margin-top: .35rem; padding: 0 .4rem; }
.dd-amount-presets { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--dd-border); }
.dd-amount-presets[hidden] { display: none; }
.dd-amount-preset-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.dd-amount-preset { flex: 1 1 4.2rem; border-radius: 999px; font-weight: 700; padding: .4rem .5rem; white-space: nowrap; }
.dd-dose { display: inline-flex; align-items: center; gap: .3rem; }
.dd-dose .dd-dose-btn { width: 1.9rem; height: 1.9rem; border-radius: 50%; padding: 0; line-height: 1; font-size: 1.05rem; }
.dd-dose input { width: 2.6rem; border: 0; background: transparent; font-weight: 700; text-align: center; padding: 0; color: inherit; -moz-appearance: textfield; }
.dd-dose input::-webkit-inner-spin-button, .dd-dose input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dd-dose small { color: var(--dd-muted); margin-right: .25rem; }
.dd-fluid-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dd-fluid-own { border-color: #cfe6d8; }

/* Period reports */
.dd-range-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.dd-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 140px;
  padding-top: 4px;
}
.dd-chart::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: var(--avg, 0);
  border-top: 1.5px dashed var(--dd-muted);
  pointer-events: none;
}
.dd-chart-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.dd-chart-bar span { display: block; width: 100%; background: var(--dd-kcal); border-radius: 3px 3px 0 0; min-height: 1px; opacity: .85; }
.dd-chart-bar:hover span { opacity: 1; }
.dd-period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.dd-period-grid strong { font-size: 1.1rem; }
.dd-period-fluid span { background: #2b8fd6; }
.dd-period-table { font-size: .85rem; white-space: nowrap; }
.dd-callout-good { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }
details.dd-card > summary { cursor: pointer; list-style: none; }
details.dd-card > summary::-webkit-details-marker { display: none; }
.dd-brand { flex: none; }

/* Icons */
.dd-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Menu: links in the top bar on wider screens, a tab bar at the bottom on phones, account menu on the avatar. */
.dd-topnav { gap: .15rem; margin-left: .75rem; }
.dd-topnav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border-radius: 10px;
  color: var(--dd-muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.dd-topnav a:hover { background: #eef1ee; color: var(--dd-text); }
.dd-topnav a.active { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }
.dd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #e6f4ec, #cfe6d8);
  color: var(--dd-primary-dark);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dd-avatar:hover, .dd-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(47, 143, 91, .18); }
.dd-menu { border-radius: 14px; border-color: var(--dd-border); box-shadow: var(--dd-shadow); padding: .4rem; min-width: 14rem; }
.dd-menu .dropdown-item { border-radius: 8px; display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; font-weight: 500; }
.dd-menu .dropdown-item:active { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }
.dd-menu .dropdown-header { max-width: 16rem; }

.dd-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--dd-border);
  padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
}
.dd-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .35rem 0;
  font-size: .7rem;
  font-weight: 600;
  color: var(--dd-muted);
  text-decoration: none;
  border-radius: 10px;
}
.dd-tabbar a .dd-icon { width: 1.45rem; height: 1.45rem; }
.dd-tabbar a.active { color: var(--dd-primary-dark); }
.dd-tabbar a.active .dd-icon { stroke-width: 2.4; }
@media (max-width: 767.98px) {
  .dd-has-tabbar .dd-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* Diary: the day's totals */
.dd-summary { margin-bottom: 1rem; }
.dd-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dd-summary-label { display: flex; align-items: center; gap: .35rem; color: var(--dd-kcal); font-weight: 700; font-size: .85rem; }
.dd-summary-kcal { font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dd-summary-kcal small { font-size: 1rem; font-weight: 600; color: var(--dd-muted); margin-left: .25rem; }
.dd-summary-score { text-align: center; background: #fdf0f3; color: var(--dd-score); border-radius: 14px; padding: .45rem .8rem; line-height: 1.1; }
.dd-summary-score strong { display: block; font-size: 1.35rem; font-weight: 800; }
.dd-summary-score strong small { font-size: .75rem; font-weight: 600; opacity: .8; }
.dd-summary-score span { font-size: .7rem; font-weight: 600; }
.dd-energy-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #edf0ed; margin: 1rem 0 .9rem; gap: 2px; }
.dd-energy-bar span { display: block; height: 100%; }
.dd-bg-protein { background: var(--dd-protein); }
.dd-bg-fat { background: var(--dd-fat); }
.dd-bg-carb { background: var(--dd-carb); }
.dd-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem .5rem; }
@media (min-width: 768px) { .dd-macros { grid-template-columns: repeat(5, 1fr); } }
.dd-macro { padding-left: .6rem; border-left: 3px solid var(--c); min-width: 0; }
.dd-macro span { display: block; font-size: .75rem; font-weight: 600; color: var(--dd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-macro strong { display: block; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dd-macro strong small { font-size: .75rem; font-weight: 600; color: var(--dd-muted); margin-left: 1px; }
.dd-macro em { display: block; font-style: normal; font-size: .7rem; color: var(--dd-muted); }

/* Diary: activity and fluids side by side */
.dd-day-strips { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 768px) { .dd-day-strips { grid-template-columns: 1fr 1fr; } }
.dd-day-strips .dd-activity-strip { margin-bottom: 1rem; }
.dd-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dd-strip-icon .dd-icon { width: 1.3rem; height: 1.3rem; }
.dd-strip-activity { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }
.dd-strip-fluid { background: #e5f1fb; color: #2b8fd6; }
.dd-strip-micro { background: #fdf0e8; color: #c25a24; }
.dd-micro { margin-bottom: 1.5rem; }

/* Phones: "Öğün ekle" button floating above the tab bar */
.dd-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(4.6rem + env(safe-area-inset-bottom));
  z-index: 1025;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: var(--dd-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(35, 116, 74, .35);
  transition: opacity .2s, transform .2s;
}
.dd-fab:hover { color: #fff; background: var(--dd-primary-dark); }
.dd-fab.dd-fab-hidden { opacity: 0; transform: translateY(1rem); pointer-events: none; }
@media (min-width: 768px) { .dd-fab { bottom: 1.5rem; } }
#add-meal { scroll-margin-top: 4.5rem; }

/* Fluids: the minus button is an outline, the size picker leaves room for its arrow */
.dd-fluid-btn-minus { border: 1.5px solid var(--dd-border); color: var(--dd-text); background: #fff; }
.dd-fluid-btn-minus:hover { border-color: var(--dd-muted); background: #f6f8f6; }
.dd-fluid-btn-minus:disabled { border-color: var(--dd-border); opacity: .45; }
.form-select { padding-right: 2.25rem; }
.form-select-sm { padding-right: 2rem; }

/* Section titles with a small colored icon */
.dd-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dd-title-icon .dd-icon { width: 1.05rem; height: 1.05rem; }
.dd-strip-body { background: #efeafb; color: #7a52c7; }
.dd-strip-days { background: #edf0ed; color: var(--dd-muted); }
.dd-strip-kcal { background: #fdf0e8; color: var(--dd-kcal); }
.dd-strip-report { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }

/* Report cards: title and buttons; the buttons go under the title when there is no room. */
.dd-report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.dd-report-head > .dd-section-title { flex: 1 1 14rem; }
.dd-report-head > div:last-child:not(.dd-section-title), .dd-report-head > form { display: flex; flex-wrap: wrap; gap: .5rem; }
.dd-summary-score em { display: block; font-style: normal; font-size: .68rem; opacity: .85; margin-top: .1rem; }

/* Supplements: a third strip on the diary, and the supplements page */
@media (min-width: 992px) { .dd-day-strips { grid-template-columns: repeat(3, 1fr); } }
.dd-strip-supplement { background: #f1ebfb; color: #7b4fc9; }
.dd-strip-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-supplement { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .75rem; padding: .9rem 1.1rem; }
.dd-supplement-body { flex: 1; min-width: 0; }
.dd-supplement-name { font-weight: 700; overflow-wrap: anywhere; }
.dd-supplement .dd-nutrients { margin-top: .35rem; }
.dd-recent { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--dd-border); }
.dd-recent:first-of-type { border-top: 0; }
.dd-recent-body { flex: 1; min-width: 0; }
.dd-recent-name { font-weight: 600; overflow-wrap: anywhere; }

/* 2026-11 UI pass: compact meal cards, dietitian notes, folds */
.dd-meal-headtext { min-width: 0; flex: 1; }
.dd-meal-sub { font-size: .82rem; color: var(--dd-muted); font-weight: 600; display: flex; align-items: center; gap: .4rem; margin-top: .1rem; }
.dd-score-pill {
  display: inline-flex; align-items: baseline; gap: 1px; flex: none;
  font-weight: 800; font-size: 1.05rem; padding: .25rem .6rem; border-radius: 999px;
  background: #f1f3f1; color: var(--dd-text); font-variant-numeric: tabular-nums;
}
.dd-score-pill small { font-size: .68rem; font-weight: 600; opacity: .75; }
.dd-score-pill.is-good { background: var(--dd-primary-soft); color: var(--dd-primary-dark); }
.dd-score-pill.is-ok { background: #fff4dc; color: #94690a; }
.dd-score-pill.is-low { background: #fdecef; color: #c0364f; }
.dd-meal-prompt {
  margin: .6rem 0 .45rem; color: #3d4a42; font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dd-macro-line { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .8rem; color: var(--dd-muted); }
.dd-m { display: inline-flex; align-items: baseline; gap: .2rem; white-space: nowrap; }
.dd-m b { color: var(--dd-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dd-m::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--dd-muted)); align-self: center; margin-right: .1rem; }
.dd-m-protein { --c: var(--dd-protein); }
.dd-m-fat { --c: var(--dd-fat); }
.dd-m-carb { --c: var(--dd-carb); }
.dd-m-fiber { --c: var(--dd-fiber); }
.dd-m-salt { --c: var(--dd-salt); }
.dd-m-fluid { --c: #3b9ae1; }

details.dd-fold { border-top: 1px solid var(--dd-border); margin-top: .7rem; padding-top: .55rem; }
details.dd-fold + details.dd-fold { margin-top: .55rem; }
details.dd-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 600; color: var(--dd-muted);
}
details.dd-fold > summary::-webkit-details-marker { display: none; }
details.dd-fold > summary::after {
  content: ""; margin-left: auto; width: .5rem; height: .5rem; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
details.dd-fold[open] > summary::after { transform: rotate(-135deg); }
details.dd-fold > summary:hover { color: var(--dd-text); }
details.dd-fold > summary .dd-icon { width: 1rem; height: 1rem; }
details.dd-fold[open] > summary { margin-bottom: .55rem; color: var(--dd-text); }
details.dd-fold-note > summary { color: var(--dd-primary-dark); }
.dd-fold-meta { font-weight: 500; font-size: .78rem; color: var(--dd-muted); margin-left: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.dd-nutrient-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .2rem .9rem; font-size: .8rem; }
.dd-nutrient-grid b { font-variant-numeric: tabular-nums; }

.dd-dietitian { display: grid; gap: .45rem; font-size: .9rem; color: #33403a; }
.dd-dietitian-part { line-height: 1.45; }
.dd-dietitian-label {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--dd-primary-dark); margin-right: .35rem;
}
.dd-dietitian-box { background: #f3f8f5; border: 1px solid #dcebe2; border-radius: 12px; padding: .8rem .95rem; margin: .75rem 0; }
.dd-dietitian-head { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .88rem; color: var(--dd-primary-dark); margin-bottom: .5rem; }
.dd-dietitian-head .dd-icon { width: 1rem; height: 1rem; }

/* Vitamin bars: which foods filled them */
.dd-micro-sources { display: flex; flex-wrap: wrap; gap: .2rem .6rem; font-size: .72rem; color: var(--dd-muted); margin-top: .2rem; }
.dd-micro-sources b { color: var(--dd-text); font-weight: 600; }

/* Report: score reason and the points lost */
.dd-report-top { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.dd-deductions { list-style: none; padding: 0; margin: .35rem 0 0; display: grid; gap: .55rem; }
.dd-deductions li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.dd-deduction-points {
  flex: none; min-width: 2.6rem; text-align: center; font-weight: 800; font-size: .85rem;
  background: #fdecef; color: #c0364f; border-radius: 8px; padding: .15rem .35rem; font-variant-numeric: tabular-nums;
}
.dd-deduction-fix { color: var(--dd-primary-dark); font-size: .84rem; margin-top: .15rem; display: flex; gap: .3rem; align-items: flex-start; }
.dd-deduction-fix .dd-icon { width: .95rem; height: .95rem; flex: none; margin-top: .15rem; }
.dd-report-fold p:last-child { margin-bottom: 0; }

/* Phones: the day strips are compact rows */
@media (max-width: 767.98px) {
  .dd-day-strips .dd-activity-strip { margin-bottom: .5rem; padding: .65rem .85rem; gap: .7rem; }
  .dd-day-strips .dd-strip-icon { width: 34px; height: 34px; border-radius: 10px; }
  .dd-day-strips .dd-activity-strip .small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .dd-day-strips { margin-bottom: .5rem; }
  .dd-meal { padding: .9rem 1rem; }
}

/* Body measurements: month picker, compact rows, pages */
.dd-body-filter { margin-bottom: .75rem; }
.dd-body-trend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; font-size: .88rem; margin-bottom: 1rem; padding: .6rem .9rem; background: var(--dd-surface); border: 1px solid var(--dd-border); border-radius: 12px; }
.dd-month-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dd-muted); margin: 1rem 0 .45rem .2rem; }
.dd-month-head:first-of-type { margin-top: .25rem; }
.dd-body-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; margin-bottom: .5rem; color: var(--dd-text); text-decoration: none; }
.dd-body-row:hover { color: var(--dd-text); border-color: var(--dd-primary); }
.dd-body-date { width: 44px; flex: none; text-align: center; background: #efeafb; color: #7a52c7; border-radius: 10px; padding: .3rem 0; line-height: 1.1; }
.dd-body-date strong { display: block; font-size: 1.1rem; font-weight: 800; }
.dd-body-date span { font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.dd-body-main { flex: 1; min-width: 0; }
.dd-body-weight { font-weight: 800; font-size: 1.05rem; display: flex; align-items: baseline; gap: .35rem; }
.dd-body-weight small { font-size: .75rem; color: var(--dd-muted); font-weight: 600; }
.dd-body-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; font-size: .75rem; color: var(--dd-muted); }
.dd-body-report { color: var(--dd-primary); display: inline-flex; }
.dd-body-report .dd-icon { width: .95rem; height: .95rem; }
.dd-delta.is-down { color: var(--dd-primary-dark); }
.dd-delta.is-up { color: #c25a24; }
.dd-body-weight .dd-delta { font-size: .78rem; font-weight: 700; }
.dd-pager { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1rem; font-size: .88rem; color: var(--dd-muted); }
.dd-pager .btn { padding: .3rem .55rem; }

/* Supplement shelf ("dolap"): one row per supplement, one tap to mark it taken */
.dd-shelf { padding: .4rem 1.1rem .6rem; }
.dd-shelf-progress { display: flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 600; color: var(--dd-muted); padding: .6rem 0 .5rem; }
.dd-shelf-progress .dd-fluid-bar { flex: 1; margin: 0; }
.dd-shelf-item { display: block; margin: 0; padding: .65rem 0; border-top: 1px solid var(--dd-border); border-radius: 0; box-shadow: none; }
.dd-card.dd-shelf-item { padding: .7rem 1rem; margin-bottom: .5rem; border-radius: var(--dd-radius); border-top: 1px solid var(--dd-border); }
.dd-shelf-row { display: flex; align-items: center; gap: .75rem; }
/* The count picker and "Aldım" go under the name on a phone, so the name keeps its room. */
.dd-shelf-take { flex-shrink: 0; }
@media (max-width: 575.98px) {
    .dd-shelf-row:has(.dd-shelf-take) { flex-wrap: wrap; row-gap: .4rem; }
    .dd-shelf-row .dd-shelf-take { flex-basis: 100%; justify-content: flex-end; }
}
.dd-shelf-check { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #f1ebfb; color: #7b4fc9; }
.dd-shelf-check .dd-icon { width: 1.1rem; height: 1.1rem; }
.dd-shelf-item.is-taken .dd-shelf-check { background: var(--dd-primary); color: #fff; }
.dd-copy-prompt { display: block; width: 100%; text-align: left; background: #f8f6fc; border: 1px dashed var(--dd-border); border-radius: 10px; padding: .5rem .7rem; color: inherit; font: inherit; cursor: pointer; }
.dd-copy-prompt:hover { border-color: #7b4fc9; }
.dd-copy-prompt-text { display: block; font-size: .85rem; color: var(--dd-muted); white-space: pre-wrap; word-break: break-word; }
.dd-copy-prompt-hint { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .75rem; font-weight: 600; color: #7b4fc9; }
.dd-copy-prompt-hint .dd-icon { width: .9rem; height: .9rem; }
.dd-copy-prompt.is-copied { border-style: solid; border-color: var(--dd-primary); }
.dd-copy-prompt.is-copied .dd-copy-prompt-hint { color: var(--dd-primary); }
.dd-shelf-item.is-taken .dd-supplement-name { color: var(--dd-muted); }
.dd-shelf-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-shelf-item details.dd-fold { margin-top: .5rem; padding-top: .4rem; border-top: 0; }
.dd-shelf-item details.dd-fold > summary { font-size: .78rem; padding-left: calc(34px + .75rem); }
.dd-inline-form { display: flex; gap: .5rem; }
.dd-shelf-progress .dd-fluid-bar > span { background: var(--dd-primary); }

/* Fluids: one compact row per drink on phones, drunk ones tinted */
.dd-fluid.is-active { border-color: #b9dbf4; background: #f5faff; }
@media (max-width: 575.98px) {
    .dd-fluid-grid { grid-template-columns: 1fr; gap: .5rem; }
    .dd-fluid { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head counter" "more more"; gap: .15rem .75rem; padding: .7rem .9rem; align-items: center; }
    .dd-fluid > .dd-fold { grid-area: more; }
    .dd-fluid-head { grid-area: head; gap: .6rem; }
    .dd-fluid .dd-fluid-icon { font-size: 1.5rem; }
    .dd-fluid-size { grid-area: size; padding-left: 2.1rem; gap: .35rem; }
    .dd-fluid-size select { font-size: .78rem; padding: .1rem 1.6rem .1rem .45rem; min-height: 0; background-position: right .4rem center; }
    .dd-fluid-counter { grid-area: counter; gap: .4rem; }
    .dd-fluid-btn { width: 2.4rem; height: 2.4rem; font-size: 1.25rem; }
    .dd-fluid-count { font-size: 1.35rem; min-width: 2.6rem; }
    .dd-fluid-count small { font-size: .68rem; }
}

/* Background jobs: the waiting card and the "it's ready" toasts */
.dd-job-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dd-job .spinner-border { color: var(--dd-primary); }
.dd-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; max-width: min(24rem, calc(100vw - 2rem)); }
.dd-has-tabbar .dd-toasts { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
.dd-toast { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--dd-border); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dd-toast.is-failed { border-color: #f1b7b7; }
.dd-toast-text { flex: 1; min-width: 0; }

/* A job that did not finish: the input again and "Tekrar dene / Başka modelle dene / Hayır, sil". */
.dd-job-failed { margin-bottom: .75rem; }
.dd-job-input { margin-top: .5rem; padding: .5rem .75rem; border-radius: 10px; background: rgba(255,255,255,.65); }
.dd-job-prompt { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--dd-text); }
.dd-job-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: center; }
.dd-job-actions form { margin: 0; }
.dd-job-other { display: flex; gap: .35rem; align-items: center; }
.dd-job-other .form-select { width: auto; max-width: 12rem; }

/* Intro page (/tanitim), 2026-11 design: "the sentence you write turns into numbers". Bricolage Grotesque headings,
   the app's deep green, a lime highlighter. Everything is scoped to .dd-intro except the shared bits at the top. */
.dd-wide { overflow-x: clip; }
.dd-wide section[id] { scroll-margin-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html:has(.dd-wide) { scroll-behavior: smooth; } }
.dd-intro-nav { gap: .15rem; margin-left: 1rem; }
.dd-intro-nav a {
  color: var(--dd-muted); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .45rem .75rem; border-radius: 10px; transition: background .2s, color .2s;
}
.dd-intro-nav a:hover { background: #eef1ee; color: var(--dd-text); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.dd-pill { border-radius: 999px !important; }
.dd-cta { display: inline-flex; align-items: center; gap: .5rem; }
.dd-cta .dd-icon { transition: transform .2s ease-out; }
.dd-cta:hover .dd-icon { transform: translateX(3px); }

.dd-intro {
  --i-ink: #12221a;
  --i-green: #14402f;
  --i-green-dark: #0b2a1e;
  --i-lime: #d7f27a;
  --i-lime-soft: #edf8c9;
  --i-ground: #f3f5ef;
  --i-sage: #e3eddc;
  --i-muted: #4a5a51;
  --i-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  background: var(--i-ground);
  color: var(--i-ink);
}
.dd-intro .btn-primary {
  --bs-btn-bg: var(--i-green); --bs-btn-border-color: var(--i-green);
  --bs-btn-hover-bg: var(--i-green-dark); --bs-btn-hover-border-color: var(--i-green-dark);
  --bs-btn-active-bg: var(--i-green-dark); --bs-btn-active-border-color: var(--i-green-dark);
}
.dd-intro .btn-soft { background: var(--i-sage); color: var(--i-green); }
.dd-intro .btn-soft:hover { background: #d4e4ca; color: var(--i-green); }

/* Shared pieces */
.dd-ichip {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 600; color: var(--i-green); background: var(--i-sage);
  border-radius: 999px; padding: .35rem .85rem;
}
.dd-ichip .dd-icon { width: 1rem; height: 1rem; }
.dd-ih2 {
  font-family: var(--i-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 0 0 1rem; max-width: 46rem; text-wrap: balance;
}
.dd-isub { color: var(--i-muted); font-size: 1.08rem; line-height: 1.6; max-width: 40rem; margin: 0 0 2.5rem; }
.dd-iband { padding: 4.5rem 0; }
@media (min-width: 992px) { .dd-iband { padding: 6rem 0; } }
.dd-iband-white { background: #fff; }
.dd-icard { background: #fff; border-radius: 28px; padding: 1.75rem; height: 100%; }
.dd-iband-white .dd-icard { background: var(--i-ground); }
.dd-icard h3 { font-family: var(--i-display); font-weight: 700; font-size: 1.3rem; margin-bottom: .85rem; }

/* Hero */
.dd-ihero { padding: 3rem 0 4rem; }
@media (min-width: 992px) { .dd-ihero { padding: 4.5rem 0 6rem; } }
.dd-ititle { font-family: var(--i-display); font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 1.4rem; }
.dd-ititle span { display: block; }
.dd-ititle .dd-light { font-weight: 300; }
.dd-ititle .dd-heavy { font-weight: 800; }
.dd-ititle mark { padding: 0; color: inherit; background: linear-gradient(transparent 58%, var(--i-lime) 58%, var(--i-lime) 92%, transparent 92%); }
.dd-ilead { font-size: 1.15rem; line-height: 1.6; color: var(--i-muted); max-width: 33rem; margin: 0; }
.dd-ilink { color: var(--i-green); font-weight: 600; }
.dd-ilink:hover { color: var(--i-green-dark); }
.dd-itrust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--i-muted); font-size: .9rem; font-weight: 500; }
.dd-itrust li { display: inline-flex; align-items: center; gap: .4rem; }
.dd-itrust .dd-icon { color: var(--i-green); }

/* Hero: the notebook page, the receipt and the dietitian's sticker */
.dd-notebook { position: relative; margin: 0 auto; max-width: 540px; padding: .5rem .25rem 3.5rem; }
.dd-notebook-page {
  background: #fff; border-radius: 28px; overflow: hidden; transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -30px rgba(18, 34, 26, .35);
}
.dd-notebook-head { display: flex; align-items: center; gap: .6rem; padding: 1.3rem 1.6rem .4rem; font-size: .9rem; font-weight: 600; color: var(--i-muted); }
.dd-notebook-head .dd-dot { width: 10px; height: 10px; border-radius: 50%; background: #f08a4b; }
.dd-notebook-text {
  margin: 0; padding: .6rem 1.6rem 1.6rem;
  font-family: var(--i-display); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 3rem;
  background-image: repeating-linear-gradient(#fff 0, #fff calc(3rem - 1px), #e6ece6 calc(3rem - 1px), #e6ece6 3rem);
}
.dd-mark { position: relative; background: var(--i-lime-soft); border-radius: 8px; padding: .1rem .35rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dd-mark-tag {
  position: absolute; left: .35rem; top: -1.25rem; white-space: nowrap;
  font-family: "Inter", sans-serif; font-size: .72rem; line-height: 1; font-weight: 700;
  background: var(--i-ink); color: #fff; border-radius: 6px; padding: .25rem .45rem;
}
.dd-receipt {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
  background: var(--i-green); color: #fff; padding: 1.3rem 1.6rem; border-top: 2px dashed rgba(255, 255, 255, .25);
}
.dd-receipt div { display: flex; flex-direction: column; min-width: 0; }
.dd-receipt span, .dd-receipt small { font-size: .75rem; color: #bfd9cb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-receipt strong { font-family: var(--i-display); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.dd-sticker {
  position: absolute; right: -.25rem; bottom: 0; width: min(270px, 70%);
  background: var(--i-lime); color: var(--i-ink); border-radius: 20px; padding: 1rem 1.15rem;
  transform: rotate(2.5deg); box-shadow: 0 16px 30px -18px rgba(18, 34, 26, .5); font-size: .88rem; line-height: 1.45;
}
.dd-sticker strong { display: block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .3rem; }

/* How it works: one day, three moments */
.dd-moments { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 768px) { .dd-moments { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.dd-moments li { border-top: 3px solid var(--i-ink); padding-top: 1.1rem; }
.dd-moment-time { display: block; font-family: var(--i-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--i-green); margin-bottom: .9rem; }
.dd-moments h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .45rem; }
.dd-moments p { color: var(--i-muted); line-height: 1.6; margin: 0; }

/* Features: a bento with small product pieces */
.dd-ibento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .dd-ibento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .dd-ibento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dd-itile { background: #fff; border-radius: 28px; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.dd-itile h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.dd-itile p { color: var(--i-muted); font-size: .93rem; line-height: 1.55; margin: 0; }
.dd-itile-icon {
  width: 42px; height: 42px; border-radius: 14px; background: var(--i-sage); color: var(--i-green);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: .35rem;
}
.dd-itile-icon .dd-icon { width: 1.3rem; height: 1.3rem; }
@media (min-width: 576px) { .dd-itile[data-tile="0"], .dd-itile[data-tile="1"] { grid-column: span 2; } }
@media (min-width: 992px) { .dd-itile[data-tile="0"] { grid-row: span 2; } }
.dd-itile[data-tile="0"] { background: var(--i-green); color: #fff; }
.dd-itile[data-tile="0"] h3 { font-family: var(--i-display); font-size: 1.7rem; font-weight: 800; }
.dd-itile[data-tile="0"] p { color: #cfe3d8; font-size: 1rem; }
.dd-itile[data-tile="0"] .dd-itile-icon { background: rgba(255, 255, 255, .12); color: var(--i-lime); }
.dd-itile[data-tile="3"] { background: var(--i-lime); }
.dd-itile[data-tile="3"] p { color: var(--i-ink); }
.dd-itile[data-tile="3"] .dd-itile-icon { background: rgba(18, 34, 26, .08); color: var(--i-ink); }
.dd-itile[data-tile="7"] { background: var(--i-sage); }
.dd-itile-items { list-style: none; margin: auto 0 0; padding: .3rem 1.1rem; background: rgba(255, 255, 255, .08); border-radius: 18px; }
.dd-itile-items li { display: flex; gap: 1rem; padding: .75rem 0; font-size: .95rem; }
.dd-itile-items li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.dd-itile-items span { flex: 1; min-width: 0; }
.dd-itile-items strong { white-space: nowrap; }
.dd-itile-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.25rem; margin-top: .5rem; font-size: .82rem; }
.dd-itile-bars > div { display: grid; grid-template-columns: 1fr auto; gap: .3rem; }
.dd-itile-bars span { color: var(--i-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-itile-bars i { grid-column: span 2; height: 6px; border-radius: 999px; background: #eef1ec; overflow: hidden; }
.dd-itile-bars em { display: block; height: 100%; border-radius: inherit; background: var(--i-green); }
.dd-itile-big { font-family: var(--i-display); font-size: 3rem; font-weight: 800; line-height: 1; margin-top: auto; }
.dd-itile-big small { font-size: 1.1rem; font-weight: 600; }

/* Pricing */
.dd-soon {
  display: flex; align-items: center; gap: .6rem; max-width: 44rem; margin: 0 0 2rem; padding: .85rem 1.1rem;
  border-radius: 16px; background: var(--i-lime-soft); color: var(--i-ink); font-weight: 500; font-size: .95rem;
}
.dd-soon .dd-icon { color: var(--i-green); flex: none; }
.dd-billing-input { position: absolute; opacity: 0; pointer-events: none; }
.dd-billing { display: flex; width: max-content; max-width: 100%; margin: 0 0 2rem; padding: .3rem; gap: .25rem; background: #eef1ec; border-radius: 999px; }
.dd-billing label {
  cursor: pointer; padding: .5rem 1.2rem; border-radius: 999px; font-weight: 600; color: var(--i-ink);
  display: inline-flex; align-items: center; gap: .45rem; transition: background .2s, color .2s; min-height: 44px;
}
.dd-save { font-size: .72rem; font-weight: 700; background: var(--i-lime); color: var(--i-ink); border-radius: 999px; padding: .15rem .5rem; }
#billing-monthly:checked ~ .dd-billing label[for="billing-monthly"],
#billing-yearly:checked ~ .dd-billing label[for="billing-yearly"] { background: var(--i-ink); color: #fff; }
#billing-monthly:focus-visible ~ .dd-billing label[for="billing-monthly"],
#billing-yearly:focus-visible ~ .dd-billing label[for="billing-yearly"] { box-shadow: 0 0 0 .2rem rgba(20, 64, 47, .35); }
.dd-price-yearly { display: none; }
#billing-yearly:checked ~ .dd-plans .dd-price-monthly { display: none; }
#billing-yearly:checked ~ .dd-plans .dd-price-yearly { display: inline; }
.dd-plans { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 768px) { .dd-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .dd-plans { grid-template-columns: repeat(4, 1fr); } }
.dd-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid #dde3dc; border-radius: 28px; padding: 1.75rem 1.5rem 1.5rem; }
.dd-plan h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .2rem; }
.dd-plan-tagline { color: var(--i-muted); font-size: .9rem; min-height: 2.6em; margin-bottom: 1rem; }
.dd-plan-badge {
  position: absolute; top: 1.25rem; right: 1.25rem; background: var(--i-lime); color: var(--i-ink);
  font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.dd-plan-price { margin-bottom: 1rem; min-height: 2.8rem; }
.dd-plan-price strong { font-family: var(--i-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.dd-plan-price span > span, .dd-plan-price > span:not([class]) { color: var(--i-muted); font-weight: 600; margin-left: .3rem; }
.dd-plan-credits { display: flex; gap: .6rem; align-items: flex-start; background: var(--i-ground); border-radius: 14px; padding: .7rem .8rem; margin-bottom: 1.1rem; }
.dd-plan-credits .dd-icon { color: var(--i-green); width: 1.3rem; height: 1.3rem; margin-top: .1rem; flex: none; }
.dd-plan-credits strong { display: block; font-size: .95rem; }
.dd-plan-credits small { color: var(--i-muted); font-size: .8rem; }
.dd-plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; font-size: .92rem; }
.dd-plan-list li { display: flex; gap: .5rem; align-items: flex-start; }
.dd-plan-list .dd-icon { color: var(--i-green); margin-top: .15rem; flex: none; }
.dd-plan-soon { cursor: default; pointer-events: none; }
.dd-plan-featured { background: var(--i-green); border-color: var(--i-green); color: #fff; box-shadow: 0 24px 48px -24px rgba(20, 64, 47, .55); }
.dd-plan-featured .dd-plan-tagline,
.dd-plan-featured .dd-plan-price span > span,
.dd-plan-featured .dd-plan-credits small { color: #bfd9cb; }
.dd-plan-featured .dd-plan-credits { background: rgba(255, 255, 255, .08); }
.dd-plan-featured .dd-plan-credits .dd-icon,
.dd-plan-featured .dd-plan-list .dd-icon { color: var(--i-lime); }
.dd-plan-soon-featured { background: var(--i-lime); color: var(--i-ink); border: none; }
.dd-costs .table { --bs-table-bg: transparent; }
.dd-costs td { padding: .55rem 0; color: var(--i-ink); border-color: #dde3dc; }
.dd-costs-free td { color: var(--i-green); }
.dd-pack p { color: var(--i-muted); }
.dd-pack-price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 2px dashed #cfd8cf; padding-top: .9rem; }
.dd-pack-price strong { font-size: 1.15rem; }
.dd-pack-price span { font-family: var(--i-display); font-size: 1.8rem; font-weight: 800; }
.dd-fineprint { color: var(--i-muted); font-size: .82rem; margin: 2rem 0 0; }

/* FAQ */
.dd-faq-wrap { max-width: 820px; }
.dd-faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.dd-faq details { background: #fff; border-radius: 20px; padding: 0 1.35rem; }
.dd-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; padding: 1.15rem 0; min-height: 44px;
}
.dd-faq summary::-webkit-details-marker { display: none; }
.dd-faq summary .dd-icon { color: var(--i-muted); transition: transform .2s ease-out; flex: none; }
.dd-faq details[open] summary .dd-icon { transform: rotate(180deg); }
.dd-faq summary:focus-visible { outline: 2px solid var(--i-green); outline-offset: 4px; border-radius: 6px; }
.dd-faq details p { color: var(--i-muted); line-height: 1.65; margin: 0 0 1.15rem; }

/* Closing call to action */
.dd-iclosing { padding: 2rem 0 2rem; }
.dd-iclosing-card { background: var(--i-green); color: #fff; border-radius: 36px; padding: 3.5rem 1.75rem; }
@media (min-width: 768px) { .dd-iclosing-card { padding: 4.5rem 3.5rem; } }
.dd-iclosing-card h2 { font-family: var(--i-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 1rem; }
.dd-iclosing-card p { color: #cfe3d8; font-size: 1.1rem; margin-bottom: 1.75rem; }
.dd-btn-lime { background: var(--i-lime); color: var(--i-ink); border: none; font-weight: 700; }
.dd-btn-lime:hover, .dd-btn-lime:focus { background: #cbe86a; color: var(--i-ink); }

/* Scroll reveal (only when script runs and the visitor allows motion) */
.dd-reveal-ready .dd-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.dd-reveal-ready .dd-reveal.dd-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dd-cta .dd-icon, .dd-faq summary .dd-icon { transition: none; } }

/* ---- 2026-11 redesign of the app pages, matching the Android app (the intro page does not use these) ---- */

/* Diary: the day's energy on a dark green hero card */
.dd-hero-day {
  background: #14402f;
  color: #fff;
  border-radius: 28px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--dd-shadow);
}
.dd-hero-day-top { display: flex; align-items: center; gap: 1rem; }
.dd-hero-day-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.dd-hero-day-label { color: #cfe9dc; font-size: .9rem; }
.dd-hero-day-kcal { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-hero-day-kcal small { font-size: 1.1rem; font-weight: 600; color: #cfe9dc; letter-spacing: 0; margin-left: .35rem; }
.dd-hero-day-score { margin-top: .4rem; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.dd-hero-day-ring {
  width: 96px; height: 96px; flex: none; border-radius: 50%;
  background: conic-gradient(#8fb2ff 0 var(--p), #7be0a9 var(--p) var(--c), #ffc861 var(--c) 100%);
  -webkit-mask: radial-gradient(circle, transparent 35px, #000 36px);
  mask: radial-gradient(circle, transparent 35px, #000 36px);
}
.dd-hero-day-ring[style*="--empty"] { background: rgba(255, 255, 255, .14); }
.dd-hero-day-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.dd-hero-day-macros > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.dd-hero-day-macros span { color: #cfe9dc; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-hero-day-macros strong { font-size: 1.3rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-hero-day-macros i { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dd-hero-day-macros i b { display: block; height: 100%; border-radius: inherit; }
.dd-hb-protein { background: #8fb2ff; }
.dd-hb-carb { background: #7be0a9; }
.dd-hb-fat { background: #ffc861; }

/* Diary: fluids, activity, supplements, fibre and salt as tiles (2 across, 4 on wide screens) */
.dd-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 992px) { .dd-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.dd-tile {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: 22px;
  box-shadow: var(--dd-shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  color: var(--dd-text);
  text-decoration: none;
}
a.dd-tile-link:hover { border-color: var(--dd-primary); color: var(--dd-text); }
.dd-tile-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--dd-text); text-decoration: none; }
a.dd-tile-head:hover { color: var(--dd-primary-dark); }
.dd-tile .dd-strip-icon { width: 32px; height: 32px; border-radius: 50%; }
.dd-tile .dd-strip-icon .dd-icon { width: 1.05rem; height: 1.05rem; }
.dd-tile-value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-tile-value small { font-size: .8rem; font-weight: 600; color: var(--dd-muted); margin-left: .3rem; }
.dd-tile-note { font-size: .8rem; color: var(--dd-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dd-tile-action { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; white-space: nowrap; }
.dd-tile-bar { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; }
.dd-tile-bar > div { display: flex; gap: .4rem; }
.dd-tile-bar > div span { flex: 1; color: var(--dd-muted); }
.dd-tile-bar > div b { white-space: nowrap; }
.dd-tile-bar i { display: block; height: 6px; border-radius: 999px; background: #eef1ee; overflow: hidden; }
.dd-tile-bar i b { display: block; height: 100%; border-radius: inherit; background: var(--dd-salt); }
.dd-tile-bar.is-over > div b { color: #c0364f; }
.dd-tile-bar.is-over i b { background: #c0364f; }

/* Diary: calories and score keep their room at the right of each meal */
.dd-meal-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; min-width: 6.5rem; }
.dd-meal-side-kcal { font-weight: 800; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-score-pill.dd-score-pill-sm { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; white-space: nowrap; }

/* Add meal: the four totals above "Neyden geldi?" */
.dd-total-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.dd-total-tiles > div {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 0;
  padding: .6rem .25rem; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
}
.dd-total-tiles strong { font-size: 1rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-total-tiles span { font-size: .72rem; color: var(--dd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Phones: the "+" in the middle of the tab bar */
.dd-tabbar a.dd-tab-add { justify-content: center; padding: 0; }
.dd-tabbar a.dd-tab-add > span {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dd-primary); color: #fff;
  box-shadow: 0 6px 16px rgba(35, 116, 74, .35);
  margin-top: -1.1rem;
}
.dd-tabbar a.dd-tab-add .dd-icon { width: 1.6rem; height: 1.6rem; stroke-width: 2.4; }

/* Diary: the day's end report takes its score's colour once it has one, with the score in a round badge */
.dd-report-scored { --tone: #1c7a49; }
.dd-report-scored.is-ok { --tone: #9a6206; }
.dd-report-scored.is-low { --tone: #b03434; }
.dd-report-scored .dd-report-head {
  background: var(--tone); color: #fff; border-radius: 16px; padding: .75rem .9rem; margin: -.25rem -.25rem 0;
}
.dd-report-scored .dd-report-head .text-muted { color: rgba(255, 255, 255, .8) !important; }
.dd-report-scored .dd-report-head .btn-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.dd-report-scored .dd-report-head .btn-soft:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.dd-report-badge {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--tone, var(--dd-primary-dark));
  display: inline-flex; align-items: baseline; justify-content: center; padding-top: .8rem; margin-right: .6rem; flex: none;
  font-weight: 800; font-size: 1.15rem; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: middle;
}
.dd-report-badge small { font-size: .62rem; font-weight: 600; opacity: .8; }
