.nm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.nm-head h3 { margin: 0; }
.nm-head .btn { min-height: 44px; }
.nm-card { border: 1px solid #dce5f0; border-radius: 12px; padding: 12px; margin-top: 8px; background: #fff; }
.nm-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nm-cat { font-size: .8rem; color: #5b6b80; }
.nm-meta { margin: 4px 0 0; font-size: .85rem; color: #44546a; }
.nm-warn { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #fff4e0; border: 1px solid #e0a030; color: #6b4200; font-size: .85rem; }
.nm-actions { display: flex; gap: 8px; margin-top: 10px; }
.nm-actions .btn { min-height: 44px; }
.nm-state { padding: 14px 0; text-align: center; }
.nm-error { color: #8a1f11; }
#nmModal .modal-card { width: min(560px, 94vw); max-height: 92vh; overflow-y: auto; padding: 22px; background: #fff; }
.nm-form label { display: block; margin-top: 12px; font-weight: 600; }
.nm-form input, .nm-form select, .nm-form textarea { width: 100%; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid #b9c7b9; border-radius: 8px; box-sizing: border-box; background: #fff; }
.nm-form textarea { min-height: 70px; }
.nm-hint { font-size: .85rem; color: #5b6b80; margin: 4px 0 0; }
.nm-msg { min-height: 1.4em; margin: 10px 0 0; color: #8a1f11; }
.nm-date { font-size: 1rem; color: #334b69; }
.nm-sub { margin: 2px 0 0; text-align: right; font-size: .8rem; color: #5b6b80; }
.nm-qty { margin: 6px 0 0; font-size: 1.4rem; font-weight: 700; color: #334b69; }
.nm-totals { margin-top: 14px; padding-top: 10px; border-top: 1px solid #dce5f0; }
.nm-totals-title { margin: 0 0 4px; font-size: .8rem; color: #5b6b80; }
.nc-label { display: block; margin-top: 6px; font-weight: 600; }
.nc-sel { width: 100%; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid #b9c7b9; border-radius: 8px; box-sizing: border-box; background: #fff; }
.nc-animal { border: 1px solid #dce5f0; border-radius: 12px; padding: 10px; margin-top: 8px; background: #f7fafd; }
.nc-animal-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nc-src { font-size: .8rem; color: #5b6b80; }
.nc-title { margin: 16px 0 6px; font-weight: 600; }
.nc-row { border: 1px solid #dce5f0; border-radius: 12px; padding: 10px; margin-top: 8px; background: #fff; }
.nc-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.nc-line:first-child { margin-top: 0; }
.nc-kg { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid #b9c7b9; border-radius: 8px; box-sizing: border-box; }
.nc-unit { font-size: .85rem; color: #5b6b80; }
.nc-del { min-height: 44px; min-width: 44px; }
.nc-add { width: 100%; min-height: 44px; margin-top: 10px; }
.nc-result { margin-top: 14px; }
.nc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nc-stat { border: 1px solid #dce5f0; border-radius: 10px; padding: 10px; background: #fff; }
.nc-stat-label { margin: 0; font-size: .8rem; color: #5b6b80; }
.nc-stat-val { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; color: #334b69; }
.nc-inc { margin: 2px 0 0; font-size: .8rem; color: #6b4200; }
.nc-status { margin: 12px 0 4px; font-weight: 600; }
.nc-sel:focus-visible, .nc-kg:focus-visible, .nc-del:focus-visible, .nc-add:focus-visible { outline: 3px solid #1b6ef3; outline-offset: 2px; }
/* ===== Tab Nutrition: segmented control ===== */
.nm-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  padding:4px;
  margin-bottom:14px;
  background:#e6edf6;
  border-radius:12px;
}
.nm-tab{
  min-height:44px;
  padding:8px 10px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#44546a;
  font-size:.95rem;
  font-weight:600;
  cursor:pointer;
}
.nm-tab:hover{ color:#334b69; background:rgba(255,255,255,.5); }
.nm-tab.is-on{
  background:#fff;
  color:#334b69;
  box-shadow:0 1px 3px rgba(30,55,90,.18);
}
.nm-tab:focus-visible{ outline:3px solid #1b6ef3; outline-offset:2px; }
.nm-note{ font-size:.85rem; color:#5b6b80; margin:12px 0 0; }