/* ══════════════ Kardia Nutrition — LIGHT theme (loads after styles.css) ══════════════ */
/* Overrides the strength app's dark base for nutrition.html only.                      */

:root {
  --n-bg: #f4f4f1; --n-card: #ffffff; --n-border: #dcdcd7;
  --n-text: #1c1c1c; --n-muted: #6b6b66; --n-red: #ff2712;
}

/* base overrides (scoped: only nutrition.html loads this file) */
body { background: var(--n-bg) !important; color: var(--n-text); }
.screen { background: var(--n-bg) !important; }
.header { background: var(--n-bg) !important; border-bottom: 1px solid var(--n-border); }
.header-title { color: var(--n-text) !important; }
.header-sub { color: var(--n-muted) !important; }
.body { background: var(--n-bg) !important; }
.spinner { color: var(--n-muted) !important; }
.toast { background: #2a2a2a; color: #fff; }
.login-wrap { background: var(--n-bg); }
.login-tag { color: var(--n-muted) !important; }
.field-wrap label { color: var(--n-muted) !important; }
.field-wrap input, input, textarea, select {
  background: #fff !important; color: var(--n-text) !important;
  border: 1px solid var(--n-border) !important;
}
.login-error { color: var(--n-red); }
.btn { background: var(--n-red); color: #fff; border: none; }

.n-body { padding-bottom: 84px; }

/* header controls */
.n-switch {
  align-self: center; border: 1.5px solid var(--n-red); color: var(--n-red);
  padding: 7px 14px; border-radius: 18px; text-decoration: none;
  font-size: 13px; font-weight: 700; white-space: nowrap; background: #fff;
}
.n-signout {
  background: none; border: none; color: var(--n-muted);
  font-size: 13px; cursor: pointer; align-self: center;
}

/* ── Tab bar ── */
.n-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: #fff; border-top: 1px solid var(--n-border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.n-tab {
  flex: 1; background: none; border: none; color: var(--n-muted);
  font-size: 11px; padding: 8px 0 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.n-tab.active { color: var(--n-red); font-weight: 700; }
.n-tab-icon { font-size: 20px; line-height: 1; }

/* ── Budget header ── */
.n-sticky { position: sticky; top: 0; z-index: 35; background: var(--n-bg); padding: 2px 0 6px; }
.n-budget {
  background: var(--n-card); border: 1px solid var(--n-border); border-radius: 12px;
  padding: 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.n-budget-kcal { font-size: 15px; font-weight: 700; color: var(--n-text); display: flex; justify-content: space-between; }
.n-budget-bar { height: 9px; background: #e8e8e4; border-radius: 5px; margin: 8px 0 6px; overflow: hidden; }
.n-budget-fill { height: 100%; border-radius: 5px; transition: width .3s; background: #999; }
.n-budget-fill.ok   { background: #2e9e3e; }
.n-budget-fill.warn { background: #e8940a; }
.n-budget-fill.bad  { background: var(--n-red); }
.n-budget-fill.idle { background: #c4c4bf; }
.n-budget-sub { font-size: 12px; color: var(--n-muted); display: flex; justify-content: space-between; }
.n-budget-row2 { font-size: 12px; color: var(--n-muted); display: flex; justify-content: space-between; margin-top: 7px; }
.n-bar-slim { height: 5px; background: #e8e8e4; border-radius: 3px; margin: 4px 0 2px; overflow: hidden; }
.n-bar-slim > div { height: 100%; border-radius: 3px; transition: width .3s; }
.n-budget-remaining { margin-top: 8px; font-size: 13px; color: var(--n-text); }
.n-budget-hint { margin-top: 6px; font-size: 12px; color: #b06e00; }

/* ── Prompt cards ── */
.n-prompt {
  background: #f3edfc; border: 1px solid #cdb9ec; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px;
}
.n-prompt-title { font-size: 14px; font-weight: 700; color: #5a3d99; margin-bottom: 8px; }
.n-prompt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.n-prompt-row input {
  width: 90px; background: #fff; border: 1px solid var(--n-border); color: var(--n-text);
  border-radius: 8px; padding: 8px; font-size: 15px;
}
.n-prompt-row label { font-size: 12px; color: var(--n-muted); }
.n-prompt-dismiss { background: none; border: none; color: var(--n-muted); font-size: 12px; cursor: pointer; margin-left: auto; }

/* ── Meal cards ── */
.n-meal {
  background: var(--n-card); border: 1px solid var(--n-border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.n-meal.done { background: #fbfbf9; }
.n-meal.skipped { opacity: .6; }
.n-meal.done.compact { padding: 8px 12px; border-left: 4px solid #2e9e3e; cursor: pointer; }
.n-meal.done.compact.off { border-left-color: #e8940a; }
.n-meal.done.compact.skip { border-left-color: #b5b5b0; opacity: .65; }
.n-done-row { display: flex; align-items: baseline; gap: 8px; }
.n-done-check { color: #2e9e3e; font-size: 14px; flex: 0 0 auto; }
.n-done-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--n-text); }
.n-done-kcal { font-size: 12px; color: var(--n-muted); white-space: nowrap; }
.n-meal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.n-meal-slot { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--n-muted); }
.n-meal-kcal { font-size: 12px; color: var(--n-muted); white-space: nowrap; }
.n-meal-name { font-size: 16px; font-weight: 700; color: var(--n-text); margin: 3px 0 2px; }
.n-meal-portion { font-size: 13px; color: #b06e00; font-weight: 600; }
.n-meal-macros { font-size: 12px; color: var(--n-muted); margin-top: 3px; }
.n-meal-badges { margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; }
.n-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #efefeb; color: var(--n-muted); border: 1px solid var(--n-border);
}
.n-badge.shared { background: #e7f1fa; color: #1f5e93; border-color: #b9d5ea; }
.n-badge.leftover { background: #faf3e0; color: #8a6a1a; border-color: #e5d5a5; }
.n-badge.status { background: #e9f5e5; color: #2c6e22; border-color: #bfdcb5; }
.n-meal-note { font-size: 12px; color: var(--n-muted); font-style: italic; margin-top: 5px; }
.n-meal-actions { display: flex; gap: 6px; margin-top: 10px; }
.n-act {
  flex: 1; padding: 10px 4px; border-radius: 9px; border: 1px solid var(--n-border);
  background: #fff; color: var(--n-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.n-act.primary { background: #2e9e3e; border-color: #2e9e3e; color: #fff; }
.n-act.small { flex: 0 0 auto; padding: 6px 12px; font-size: 12px; }
.n-portion-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.n-chip {
  padding: 6px 12px; border-radius: 14px; border: 1px solid var(--n-border);
  background: #fff; color: var(--n-text); font-size: 13px; cursor: pointer;
}
.n-chip.active { background: var(--n-red); border-color: var(--n-red); color: #fff; }

/* ── Picker sheet ── */
.n-sheet-overlay {
  position: fixed; inset: 0; background: rgba(40,40,38,.45); z-index: 60;
  display: flex; align-items: flex-end;
}
.n-sheet {
  background: var(--n-bg); width: 100%; max-height: 86vh; border-radius: 16px 16px 0 0;
  padding: 14px; display: flex; flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.n-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.n-sheet-title { font-size: 16px; font-weight: 700; color: var(--n-text); }
.n-sheet-close { background: none; border: none; color: var(--n-muted); font-size: 18px; cursor: pointer; }
.n-search {
  background: #fff; border: 1px solid var(--n-border); color: var(--n-text); border-radius: 9px;
  padding: 10px 12px; font-size: 15px; margin-bottom: 10px; width: 100%;
}
.n-sheet-list { overflow-y: auto; flex: 1; min-height: 120px; }
.n-sheet-section {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--n-muted); margin: 12px 0 6px; font-weight: 700;
}
.n-opt {
  width: 100%; text-align: left; background: var(--n-card); border: 1px solid var(--n-border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; color: var(--n-text);
}
.n-opt-name { font-size: 14px; font-weight: 600; }
.n-opt-sub { font-size: 12px; color: var(--n-muted); margin-top: 2px; }
.n-opt-delta { font-size: 12px; margin-top: 2px; color: #1f5e93; }
.n-sheet-custom { border-top: 1px solid var(--n-border); padding-top: 4px; }
.n-sheet-custom input {
  background: #fff; border: 1px solid var(--n-border); color: var(--n-text); border-radius: 8px;
  padding: 9px 10px; font-size: 14px; width: 100%; margin-bottom: 6px;
}
.n-custom-row { display: flex; gap: 6px; }
.n-custom-row input { flex: 1; margin-bottom: 0; }
.n-btn-sm { padding: 9px 14px; font-size: 13px; flex: 0 0 auto; }
.n-filter-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.n-basket { background: #ecf6e8; border: 1px solid #bfdcb5; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.n-basket-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.n-basket-name { flex: 1; font-size: 13px; color: var(--n-text); }
.n-basket-qty { width: 58px; background: #fff; border: 1px solid var(--n-border); color: var(--n-text); border-radius: 7px; padding: 6px; font-size: 14px; text-align: center; }
.n-basket-x { background: none; border: none; color: var(--n-muted); font-size: 15px; cursor: pointer; }
.n-basket-total { font-size: 13px; color: #2c6e22; font-weight: 700; margin-top: 4px; }
.n-basket-delta { font-size: 12px; color: #1f5e93; }

/* ── Week screen ── */
.n-daystrip { display: flex; gap: 6px; margin-bottom: 14px; }
.n-daychip {
  flex: 1; background: var(--n-card); border: 1px solid var(--n-border); border-radius: 10px;
  padding: 8px 2px; text-align: center; cursor: pointer; color: var(--n-text);
}
.n-daychip.sel { border-color: var(--n-red); border-width: 2px; }
.n-daychip .d-name { font-size: 11px; text-transform: uppercase; color: var(--n-muted); }
.n-daychip .d-dot { font-size: 9px; margin-top: 3px; }
.dot-green { color: #2e9e3e; } .dot-amber { color: #e8940a; } .dot-gray { color: #c4c4bf; }
.n-panel {
  background: var(--n-card); border: 1px solid var(--n-border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: var(--n-text);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.n-panel-title { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--n-muted); margin-bottom: 6px; font-weight: 700; }
.n-panel pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.n-wk-meal { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eeeeea; font-size: 13px; }
.n-wk-meal:last-child { border-bottom: none; }
.n-wk-slot { color: var(--n-muted); font-size: 11px; text-transform: uppercase; width: 76px; flex: 0 0 auto; }
.n-wk-name { flex: 1; color: var(--n-text); padding: 0 6px; }
.n-wk-kcal { color: var(--n-muted); white-space: nowrap; }

/* ── Grocery ── */
.n-gcat { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--n-muted); margin: 14px 0 6px; font-weight: 700; }
.n-gitem {
  display: flex; align-items: center; gap: 10px; background: var(--n-card);
  border: 1px solid var(--n-border); border-radius: 10px; padding: 11px 12px; margin-bottom: 6px;
  cursor: pointer;
}
.n-gitem.checked { opacity: .5; }
.n-gitem.checked .n-gname { text-decoration: line-through; }
.n-gcheck { font-size: 17px; width: 22px; text-align: center; flex: 0 0 auto; }
.n-gname { font-size: 14px; color: var(--n-text); flex: 1; }
.n-gqty { font-size: 12px; color: var(--n-muted); }
.n-gsection { font-size: 13px; letter-spacing: 1.5px; font-weight: 800; color: var(--n-text); margin: 18px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.n-gsection:first-child { margin-top: 4px; }
.n-gprog { font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--n-muted); }
.n-ghint { font-size: 11.5px; color: var(--n-muted); margin: 2px 0 6px; }
.n-gstock { gap: 8px; }
.n-gcook {
  display: flex; align-items: center; gap: 10px; background: var(--n-card);
  border: 1px solid var(--n-border); border-radius: 10px; padding: 11px 12px; margin-bottom: 6px; cursor: pointer;
}
.n-gcook.none { cursor: default; opacity: .6; }
.n-gcook-day { font-size: 12px; font-weight: 700; color: var(--n-muted); width: 58px; flex: 0 0 auto; }
.n-gcook-link { font-size: 12px; font-weight: 600; color: var(--n-accent, #2563eb); white-space: nowrap; }
.n-guse { display: block; font-size: 11.5px; color: var(--n-muted); font-weight: 400; }
.n-gbtn { border: 1px solid var(--n-border); background: #fff; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.n-gbtn.have { color: #1a7f37; border-color: #1a7f3755; }
.n-gbtn.need { color: #b35900; border-color: #b3590055; }
.n-gstock.decided { opacity: .55; }
.n-gstock.decided.have .n-gname { text-decoration: line-through; }
.n-gadd { display: flex; gap: 6px; margin-top: 14px; }
.n-gadd input { flex: 1; background: #fff; border: 1px solid var(--n-border); color: var(--n-text); border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.n-gadd select { background: #fff; border: 1px solid var(--n-border); color: var(--n-text); border-radius: 9px; font-size: 13px; padding: 0 6px; }

/* ── Recipe Book ── */
.n-rec-row { display:flex; align-items:center; gap:8px; background:var(--n-card); border:1px solid var(--n-border); border-radius:12px; padding:12px 14px; margin-bottom:8px; cursor:pointer; }
.n-rec-rowmain { flex:1; min-width:0; }
.n-rec-rowname { font-size:15px; font-weight:700; color:var(--n-text); }
.n-rec-rowsub { font-size:12px; color:var(--n-muted); margin-top:2px; }
.n-rec-chev { color:var(--n-muted); font-size:20px; line-height:1; }
.n-rec-detailhead { margin:10px 0 6px; }
.n-rec-title { font-size:20px; font-weight:800; color:var(--n-text); }
.n-rec-macro { font-size:13px; color:var(--n-muted); margin-top:3px; }
.n-rec-slots { font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--n-muted); margin-top:3px; }
.n-rec-desc { font-size:14px; color:var(--n-text); margin:8px 0; }
.n-rec-batchline { font-size:14px; color:var(--n-text); margin-bottom:6px; }
.n-rec-pulls { border-top:1px solid var(--n-border); margin-top:4px; }
.n-rec-pull { display:flex; justify-content:space-between; gap:10px; font-size:13px; padding:5px 0; border-bottom:1px dashed var(--n-border); }
.n-rec-pullqty { color:var(--n-text); font-weight:600; white-space:nowrap; }
.n-rec-pullnote { font-size:12px; color:var(--n-muted); margin-top:6px; }

/* ── Freezer inventory ── */
.n-inv-person { display:flex; justify-content:space-between; align-items:baseline; margin:8px 0 4px; font-size:14px; color:var(--n-text); }
.n-inv-count { font-size:12px; color:var(--n-muted); }
.n-inv-empty { font-size:12px; color:var(--n-muted); padding:2px 0 4px; }
.n-inv-item { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px dashed var(--n-border); }
.n-inv-qty { font-weight:700; color:var(--n-text); font-size:13px; min-width:28px; }
.n-inv-name { flex:1; font-size:14px; color:var(--n-text); min-width:0; }
.n-inv-sub { color:var(--n-muted); font-size:12px; }
.n-inv-step { display:inline-flex; gap:4px; }
.n-inv-step .n-act { min-width:34px; padding-left:0; padding-right:0; font-weight:700; }

/* ── Recipe filter chips + tappable meal->recipe link ── */
.n-rec-chips { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.n-rec-linkable { cursor:pointer; }
.n-rec-linkicon { font-size:12px; opacity:0.65; }
/* ── Prep plan cards (prep UX phase 1) ── */
.n-prep-head { font-weight: 700; font-size: 14px; margin: 2px 0 6px; color: var(--n-text); }
.n-prep-step { font-size: 14px; line-height: 1.45; padding: 3px 0; color: var(--n-text); }
.n-prep-step b { font-weight: 600; }
.n-prep-note { font-size: 13px; color: var(--n-muted); margin-top: 8px; white-space: pre-wrap; }
.n-prep-next { cursor: pointer; font-size: 13px; }

/* ── Meal-card component summary + inline Adjust panel ── */
.n-meal-items { font-size: 12.5px; color: var(--n-muted); margin-top: 3px; line-height: 1.5; }
.n-item-qty { color: var(--n-text); font-weight: 600; }
.n-act.active { background: #ecf6e8; border-color: #bfdcb5; color: #2c6e22; }

.n-adjust { background: #ecf6e8; border: 1px solid #bfdcb5; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.n-adjust-scale { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.n-adjust-lbl { font-size: 11px; color: var(--n-muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.n-adjust-items { display: flex; flex-direction: column; gap: 6px; }
.n-adjust-row { display: flex; align-items: center; gap: 8px; }
.n-adjust-name { flex: 1; font-size: 13px; color: var(--n-text); display: flex; flex-direction: column; }
.n-adjust-amt { font-size: 11px; color: var(--n-muted); margin-top: 1px; }
.n-adjust-qty { width: 62px; padding: 6px 8px; border: 1px solid var(--n-border); border-radius: 8px; font-size: 13px; text-align: center; }
.n-adjust-x { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--n-border); border-radius: 8px; background: #fff; color: var(--n-muted); cursor: pointer; font-size: 13px; }
.n-adjust-empty { font-size: 12px; color: var(--n-muted); font-style: italic; }
.n-adjust-add { width: 100%; margin-top: 8px; padding: 8px; border: 1px dashed #bfdcb5; border-radius: 8px; background: #fff; color: #2c6e22; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.n-adjust-total { font-size: 12.5px; color: var(--n-text); font-weight: 600; margin-top: 8px; }
.n-adjust-delta { color: var(--n-muted); font-weight: 400; }
.n-adjust-log { width: 100%; margin-top: 8px; }

/* ── 2026-07-19 UX pass: oz-first entry, header sheet buttons ── */
.n-unit { font-size: 11px; color: var(--n-muted); margin-left: 4px; align-self: center; min-width: 16px; }
.n-hbtn { background: none; border: 1px solid var(--n-border); color: var(--n-text); font-size: 13px; border-radius: 8px; padding: 6px 10px; cursor: pointer; position: relative; white-space: nowrap; }

/* ── 2026-07-29 weekly quiet line (Amanda, Today tab) — deliberately plain, no card/border ── */
/* Back-logging: Today day nav + past-day banner */
.n-daynav { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.n-dnav { background: none; border: none; color: var(--n-text); font-size: 26px; line-height: 1;
  padding: 0 8px 3px; cursor: pointer; }
.n-dnav:first-child { padding-left: 0; }
.n-backday { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff4d6; border: 1px solid #e8c766; border-radius: 10px; padding: 8px 12px;
  margin-bottom: 10px; font-size: 13px; line-height: 1.35; }
.n-backday button { background: #fff; border: 1px solid #e8c766; border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--n-text); }
.n-quiet-note { font-size: 12px; color: var(--n-muted); margin: 10px 6px; line-height: 1.4; }
.n-dot { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--n-red); }

/* ── Full-screen chart viewer (Trends → Weight & energy; see n-trends.js nChartZoomOpen) ── */
.n-zoomable { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.n-zoom { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.55); }
.n-zoom-frame {
  position: fixed; display: flex; flex-direction: column; background: #fff;
  transform-origin: 50% 50%; overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) 10px 6px 10px; box-sizing: border-box;
}
.n-zoom-bar { display: flex; align-items: flex-start; gap: 10px; flex: 0 0 auto; }
.n-zoom-head { flex: 1 1 auto; min-width: 0; }
.n-zoom-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.n-zoom-btn {
  background: #fff; border: 1px solid var(--n-border); color: var(--n-text);
  border-radius: 16px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.n-zoom-x { padding: 6px 11px; }
.n-zoom-stage {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 6px;
  touch-action: none; border: 1px solid #eeeeea; border-radius: 6px;
}
.n-zoom-content { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.n-zoom-foot { flex: 0 0 auto; font-size: 10px; color: var(--n-muted); text-align: center; padding-top: 4px; }
.n-zoom-tip {
  display: none; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #2a2a2a; color: #fff; font-size: 13px; padding: 6px 11px; border-radius: 6px;
  max-width: 85%; text-align: center; pointer-events: none;
}

/* ── Trends: maintenance, macros, drawers (n-maint.js, 2026-11-01) ── */
.nm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 8px; }
.nm-tile { background: var(--n-bg); border-radius: 8px; padding: 9px 9px 8px; min-width: 0; }
.nm-tile.nm-blue { background: #eef4fb; } .nm-tile.nm-green { background: #e7f2e8; }
.nm-tile.nm-amber { background: #fdf0d8; } .nm-tile.nm-amber-soft { background: #fdf3e6; }
.nm-tile-l { font-size: 11px; color: var(--n-muted); }
.nm-tile-v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.nm-tile-s { font-size: 10px; color: var(--n-muted); }
.nm-warn { color: #7a5200; }
.nm-line { font-size: 12px; color: var(--n-muted); margin-bottom: 6px; }
.nm-how { font-size: 13px; line-height: 1.5; color: #3c3c38; margin: 6px 0; }
.nm-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nm-link { background: none; border: none; padding: 8px 0; font: inherit; font-size: 12px; color: #2a6fb0; text-decoration: underline; cursor: pointer; }
.nm-note { font-size: 12px; line-height: 1.45; color: #3c3c38; background: var(--n-bg); border-radius: 6px; padding: 8px 10px; margin: 2px 0 6px; }
.nm-disclose { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 10px;
  border: 1px solid var(--n-border); border-radius: 6px; background: var(--n-bg); font: inherit; font-size: 13px; font-weight: 600; color: var(--n-text); cursor: pointer; text-align: left; }
.nm-caret { display: inline-block; font-size: 10px; color: var(--n-muted); transition: transform .15s; }
.nm-caret.open { transform: rotate(90deg); }
.nm-why { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nm-check { font-size: 12px; line-height: 1.45; background: var(--n-bg); color: #3c3c38; border-radius: 6px; padding: 8px 10px; }
.nm-check.amber { background: #fdf3e6; color: #7a4a00; }
.nm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #3c3c38; }
.nm-legend span { display: inline-flex; align-items: center; gap: 4px; }
.nm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.nm-stripe { background: repeating-linear-gradient(45deg, #c2410c 0 2px, #f4c8b0 2px 4px); }
.nm-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0 4px;
  color: #8a8a84; border-bottom: 1px solid var(--n-border); }
.nm-group.win { color: var(--n-text); border-bottom-color: var(--n-text); }
.nm-row { display: flex; flex-direction: column; gap: 4px; }
.nm-row.now { opacity: .75; } .nm-row.old { opacity: .5; }
.nm-row-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.nm-row-f { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--n-muted); }
.nm-flag { text-align: right; color: #7a4a00; }
.nm-track { position: relative; height: 16px; background: #efefeb; border-radius: 3px; display: flex; overflow: hidden; }
.nm-track > div { height: 100%; }
.nm-band { position: absolute; top: 0; bottom: 0; background: rgba(28,28,28,.07); }
.nm-est { position: absolute; top: 0; bottom: 0; width: 2px !important; background: #1c1c1c; }
.nm-axis { display: flex; justify-content: space-between; font-size: 10px; color: #8a8a84; font-variant-numeric: tabular-nums; }
.nm-sub { font-size: 12px; font-weight: 600; border-top: 1px solid var(--n-border); padding-top: 8px; }
.nm-hist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.nm-hist > div { background: var(--n-bg); border-radius: 6px; padding: 6px 2px; display: flex; flex-direction: column; }
.nm-hist > div.cur { background: var(--n-text); color: #fff; }
.nm-hist span { font-size: 10px; opacity: .75; } .nm-hist b { font-size: 13px; } .nm-hist em { font-size: 9px; font-style: normal; opacity: .75; }
.nm-foot { font-size: 11px; line-height: 1.45; color: var(--n-muted); }
.nm-mut { color: var(--n-muted); }
.nm-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; }
.nm-why > * { min-width: 0; }
.nm-table table { border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-table th { font-weight: 500; color: var(--n-muted); text-align: right; padding: 0 6px 6px; }
.nm-table td { text-align: right; padding: 5px 6px; border-top: 1px solid #e6e6e1; }
.nm-table .l { text-align: left; padding-left: 0; font-weight: 600; } .nm-table .b { font-weight: 700; }
.nm-table tr.old, .nm-table tr.now { opacity: .6; }
.nm-table tr.tot td { border-top: 2px solid var(--n-text); }
.nm-table tr.goal td { background: #eef4fb; color: #2a6fb0; }
.nm-mrows { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--n-border); padding-top: 9px; margin-top: 8px; }
.nm-mbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #efefeb; }
.nm-drawer { padding: 0 14px; }
.nm-drawer-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; background: none; border: none; padding: 0;
  font: inherit; color: var(--n-text); cursor: pointer; text-align: left; }
.nm-drawer-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nm-drawer-t b { font-size: 14px; } .nm-drawer-t span { font-size: 12px; color: var(--n-muted); }
.nm-drawer-b { padding-bottom: 10px; }
.nm-drawer-b > .n-panel { border: none; box-shadow: none; margin: 0; padding: 0; }
.nm-drawer-b > .n-panel > .n-panel-title { display: none; }

/* ── Split-the-bowl calculator (n-split.js) ── */
.n-split-label { font-size: 12px; color: var(--n-muted); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; }
.n-split-input { width: 100%; box-sizing: border-box; font-size: 22px; padding: 10px 12px; border: 1px solid var(--n-border); border-radius: 10px; background: #fff; color: var(--n-text); }
.n-split-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.n-split-result { margin-top: 14px; border-top: 1px solid var(--n-border); padding-top: 10px; }
.n-split-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.n-split-big { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--n-card); border: 2px solid var(--n-red); text-align: center; font-size: 14px; }
.n-split-num { font-size: 34px; font-weight: 800; color: var(--n-red); margin: 4px 0; }
.n-split-warn { margin-top: 12px; padding: 10px; border-radius: 10px; background: #fff3f1; color: var(--n-red); font-size: 13px; }
.n-split-manage { display: flex; flex-direction: column; gap: 6px; }
.n-split-mrow { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.n-split-mrow input { width: 70px; padding: 6px; border: 1px solid var(--n-border); border-radius: 8px; font-size: 14px; }
