:root {
  --bg: #f4f1ea;
  --card: #fff;
  --ink: #1a1a1a;
  --muted: #5c574f;
  --accent: #1d5c4a;
  --accent2: #c45d2c;
  --line: #ddd6c8;
  --ok: #2d6a4f;
  --border: #ddd6c8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  padding: 4rem 1.25rem 3rem;
  max-width: 1100px;
  margin-inline: auto;
}
@import url("/static/unified_nav.css?v=5");
.sub { color: var(--muted); margin: 0 0 1.25rem; }
body.has-unified-nav {
  --mp-bg: var(--bg);
  --mp-ink: var(--ink);
  --mp-muted: var(--muted);
  --mp-accent: var(--accent);
  --mp-accent2: var(--accent2);
  --mp-line: var(--line);
}
.site-nav a .nav-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  font-weight: 700;
  font-size: 0.82em;
  line-height: 1;
  color: var(--accent2);
}
.site-nav .settings-header-save {
  box-sizing: border-box;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.panel h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row.head { justify-content: space-between; }
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
  cursor: pointer;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.badge {
  font-size: 0.75rem;
  background: #e8f0ec;
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 500;
}
.mp {
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 0.25rem;
}
.mp-ozon { background: #005bff22; color: #0047cc; }
.mp-wb { background: #cb11ab22; color: #9a0d85; }
.mp-ym { background: #ffcc0022; color: #a67c00; }
.error { color: #a33; margin-bottom: 0.5rem; }
.hidden { display: none; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
code { font-size: 0.85em; background: #f0ebe3; padding: 0.1em 0.35em; border-radius: 4px; }

/* Подтверждение ручной записи (см. save_cell_feedback.js) */
.cell-save-msg,
.save-status {
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.1em;
}
.cell-save-msg.ok,
.save-status.ok,
.pr-cost-msg.ok,
.pr-stock-msg.ok {
  color: var(--ok);
  font-weight: 600;
}
.cell-save-msg.error,
.save-status.error,
.pr-cost-msg.error,
.pr-stock-msg.error {
  color: #a33;
  font-weight: 500;
}
.cell-save-msg.pending,
.save-status.pending {
  color: var(--muted);
}
