/* Палитра §5.9: как «ЦС HUB» и «Списание брака». */
:root { --ground:#ECEEEA; --paper:#FFFFFF; --ink:#1B2227; --muted:#525E66; --line:#D2D7D3; --marker:#FBC311;
        --ok:#17694F; --ok-bg:#DDEFE6; --warn-bg:#FFF3C4; --danger:#B3261E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ground:#14181B; --paper:#1F2529; --ink:#ECEEEA; --muted:#A5AEB3; --line:#343C41;
          --ok:#56BC93; --ok-bg:#16322A; --warn-bg:#3A3316; --danger:#F2786D; }
}
:root[data-theme="dark"] { --ground:#14181B; --paper:#1F2529; --ink:#ECEEEA; --muted:#A5AEB3; --line:#343C41;
          --ok:#56BC93; --ok-bg:#16322A; --warn-bg:#3A3316; --danger:#F2786D; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 Onest, system-ui, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.sub, .muted { color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; }
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer;
  background: var(--marker); color: #1B2227; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button:disabled { opacity: .45; cursor: default; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 4px 12px 4px 0; }
.chips input { width: auto; }
.err { color: var(--danger); } .ok { color: var(--ok); }
.note { background: var(--warn-bg); border-radius: 12px; padding: 10px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
