.macro-ring-wrap { display: flex; align-items: center; gap: 20px; }
.macro-ring { width: 120px; height: 120px; flex-shrink: 0; }
.macro-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.macro-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.macro-legend-row .dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.macro-legend-row .lbl { flex: 1; color: var(--ink-dim); }
.macro-legend-row .val { font-weight: 700; }
.macro-legend-row .pctv { width: 36px; text-align: right; color: var(--ink-faint); font-size: 11px; }

.meal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.meal-row:last-child { border-bottom: none; }
.meal-desc { flex: 1; }
.meal-protein { font-weight: 700; font-size: 13px; min-width: 64px; text-align: right; white-space: nowrap; }
.meal-protein.est { color: var(--warn); text-shadow: 0 0 14px rgba(255,194,75,0.4); }

/* Log-a-meal form inside the day panel. */
.meal-form { display: grid; grid-template-columns: 1fr 1.6fr 72px; gap: 6px; margin-bottom: 12px; }
.meal-form input[name=description] { grid-column: 1 / 3; }
.meal-form input, .meal-form select {
  font: inherit; font-size: 12px; color: var(--ink);
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px;
  min-width: 0;
}
.meal-form input:focus, .meal-form select:focus { outline: none; border-color: var(--forge); box-shadow: 0 0 0 3px rgba(255,117,24,0.15); }
.meal-form select option { background: #141822; }
.meal-form button { justify-content: center; }
.meal-remove {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  color: var(--ink-faint); font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.meal-remove:hover { color: var(--danger); background: rgba(255,95,79,0.12); }

/* Calories / fat / carbs under a meal; amber when estimated. */
.macro-line { font-size: 11.5px; color: var(--ink-dim); margin-top: 3px; }
.macro-line.est { color: var(--warn); text-shadow: none; }
.macro-line .est-mark { margin-left: 5px; }
