.db-nutrition-mode {border:0;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:10px 20px}
.db-nutrition-mode legend {font-weight:700;margin-bottom:8px}
.db-nutrition-mode label {display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:36px}
.db-nutrition-mode input {accent-color:#10b981;width:18px;height:18px}
[data-db-nutrition-settings] input:disabled {opacity:.55;cursor:not-allowed}
.db-target-notice {border:1px solid #d6b25e;border-radius:10px;background:#fffbeb;color:#78350f;padding:10px;margin:10px 0;font-size:.875rem}
.db-target-notice button,.db-target-link {text-decoration:underline;font-weight:600;padding:6px 0;min-height:36px}
.db-target-override {display:block;color:#b45309;margin-top:4px}
.db-nutrition-save {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 8px}
.db-nutrition-save button {border:1px solid #059669;background:#059669;color:white;border-radius:10px;padding:9px 16px;font-weight:700;min-height:42px}
.db-nutrition-save button:disabled {opacity:.45;cursor:default}
.db-nutrition-save span {font-size:.8rem}
.db-effective-targets {margin-top:14px}
.db-effective-targets summary {cursor:pointer;font-weight:600;min-height:36px}
.db-effective-targets dl>div {display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #e5e7eb}
.db-effective-targets dd {text-align:right;white-space:nowrap}
.db-macro-value {font-size:.85rem;text-align:right}
.db-rhythm-settings select[name="nutritionTargetMode"] {display:block;max-width:100%;padding:8px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1e293b}
.db-rhythm-settings input[readonly] {opacity:.7;cursor:default}
.dark .db-rhythm-settings select[name="nutritionTargetMode"] {background:#1f2937;color:#e5e7eb;border-color:#475569}
.dark .db-target-notice {background:#332b19;color:#fcd34d;border-color:#7c6229}
.dark .db-target-override {color:#fbbf24}
.dark .db-effective-targets dl>div {border-color:#374151}
@media(max-width:380px){.db-macro-value{max-width:55%;font-size:.76rem}.db-nutrition-mode{gap:6px 14px}}
