/* Легкий склад. Цвета — docs/design/README.md. Других цветов в интерфейсе нет. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #F5F5F2;
  --surface: #FFFFFF;
  --line: #E7E6E1;
  --line-soft: #F0EFEA;
  --ink: #1E1F24;
  --text: #2A2B30;
  --text-2: #3D3D42;
  --muted: #6A6A70;
  --brand: #F26A1B;
  --brand-text: #C2410C;
  --brand-soft: #FFF1E8;
  --ok: #15803D;
  --ok-soft: #E8F5EC;
  --ok-text: #166534;
  --err: #B91C1C;
  --err-soft: #FDECEC;
  --warn-soft: #FEF3E2;
  --warn-text: #92400E;
  --info: #2F6FED;
  --info-soft: #EAF0FE;
  --info-text: #1E40AF;

  /* Старые имена, чтобы уже написанные правила не потеряли цвет. */
  --bg: var(--ground);
  --panel: var(--surface);
  --border: var(--line);
  --accent: var(--ink);
  --ok-bg: var(--ok-soft);
  --ok-border: var(--ok);
  --err-bg: var(--err-soft);
  --err-border: var(--err);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 15px/1.45 "Onest", system-ui, "Segoe UI", sans-serif;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
h2 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.muted { color: var(--muted); }
.strong { font-weight: 700; }
.mono {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-weight: 500;
  font-size: 13px;
}
.positive { color: var(--ok); }
.negative { color: var(--err); }
.empty { color: var(--muted); padding: 24px 0; }

/* --- Шапка --- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: 1344px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover {
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
}
.nav-link.on {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.nav-details { position: relative; flex: none; }
.nav-details > summary { list-style: none; }
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 31, 36, 0.08);
}
.nav-drop a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-drop a:hover { background: var(--ground); color: var(--ink); text-decoration: none; }
.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cabinet-switch { margin: 0; }
.cabinet-switch select {
  height: 34px;
  max-width: 220px;
  border: none;
  background: transparent;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 600;
}
.ico { flex: none; color: var(--muted); }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.nav-logout { margin: 0; display: flex; align-items: center; }
.nav-logout button { width: auto; }

.btn.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 21;
  display: none;
}
.btn.to-top.visible { display: inline-flex; }

/* --- Страница --- */
.container,
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  overflow-x: auto;
}
.container-wide { max-width: 1600px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { color: #fff; text-decoration: none; }
button.btn:disabled,
button.btn:disabled:hover {
  background: var(--line);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}
.fingerprint { overflow-wrap: anywhere; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { color: var(--ink); background: var(--ground); }
.btn-danger {
  background: var(--surface);
  color: var(--err);
  border-color: var(--err);
}
.btn-danger:hover { color: var(--err); background: var(--err-soft); }
.btn-small { height: 34px; padding: 0 12px; font-size: 13px; }

.panel,
.card,
.placeholder,
.help {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.cards { display: flex; gap: 16px; flex-wrap: wrap; }
.card { flex: 1 1 200px; margin-top: 0; }
.card-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.card-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.two-columns { display: flex; gap: 16px; flex-wrap: wrap; }
.two-columns > .panel { flex: 1 1 420px; }

.cabinet-hero {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cabinet-line { margin: 0 0 12px; font-weight: 600; }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.filters input[type="search"] { flex: 1 1 240px; max-width: 520px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.check { width: 42px; text-align: center; }
.archive-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0; }

input, select, button { font: inherit; color: inherit; }
input:not([type]),
input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form select { width: 100%; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.form-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.file-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.file-row label { flex: 1 1 240px; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
  border: 1px solid transparent;
  background: var(--info-soft);
  color: var(--info-text);
}
.alert-ok { background: var(--ok-soft); color: var(--ok-text); border-color: transparent; }
.alert-error { background: var(--err-soft); color: var(--err); border-color: transparent; }
.alert-warn { background: var(--warn-soft); color: var(--warn-text); border-color: transparent; }
.alert-info { background: var(--info-soft); color: var(--info-text); border-color: transparent; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
tr.stale-confirm { background: var(--err-soft); }
tr.row-done { background: var(--ok-soft); }

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.table-wrap > .grid { width: max-content; min-width: 100%; }
.grid,
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.grid th,
.grid td,
.table th,
.table td {
  height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.grid th,
.table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
}
.grid tr:last-child td,
.table tr:last-child td { border-bottom: none; }
.grid .num,
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text-2); width: 240px; }

.row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.link-danger {
  border: none;
  background: none;
  color: var(--err);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 600;
}
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form input,
.inline-form select { height: 34px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}
.chip-muted { background: var(--line); color: var(--text); }
.chip-info { background: var(--info-soft); color: var(--info-text); }
.chip-err { background: var(--err-soft); color: var(--err); }
.chip-brand { background: var(--brand-soft); color: var(--brand-text); }
.chip-warn { background: var(--warn-soft); color: var(--warn-text); }
.chip-ok { background: var(--ok-soft); color: var(--ok-text); }

.tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scroll-margin-top: 72px;
}
.tab {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.on { color: var(--ink); border-bottom-color: var(--brand); }

.bar {
  height: 8px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar-small { height: 10px; min-width: 120px; }
.bar-fill { height: 100%; background: var(--brand); transition: width 0.3s; }
.bar-fill.bar-info { background: var(--info); }
.bar-fill.bar-brand { background: var(--brand); }
.bar-fill.bar-ok { background: var(--ok); }
.bar-done { background: var(--ok); }
.progress { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.progress-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pager-range { margin: 0; color: var(--muted); font-size: 14px; }
.pager-pages { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager-link,
.pager-current {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pager-link:hover { text-decoration: none; background: var(--ground); color: var(--ink); }
.pager-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-gap { color: var(--muted); padding: 0 4px; }
.pager-size { margin: 0; }
.pager-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.pager-size select { height: 36px; }

.login-card {
  width: min(400px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.login-brand img { width: auto; height: 120px; max-width: 100%; object-fit: contain; }
.login-brand h1 { margin: 0; font-size: 28px; }
.login-card .form { max-width: none; }
body.page-login { min-height: 100vh; }
body.page-login .container {
  min-height: 100vh;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .hdr-in { padding: 10px 16px; }
  .container,
  .container-wide { padding: 16px 16px 32px; }
}

/* --- Экран сборщика (ТСД): белый, зелёный «товар принят», красный «стоп». --- */
body.picker { overflow-x: hidden; }
body.picker {
  background: var(--surface);
  color: var(--ink);
  height: 100vh;
  height: 100dvh;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
body.picker .container {
  max-width: 100%;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
body.picker .to-top { display: none !important; }
body.picker .picker-panel {
  flex: 1 1 auto;
  min-height: 0;
}
body.picker .btn-huge { min-height: 64px; }
body.picker .picker-count { font-size: 30px; font-weight: 800; line-height: 1.1; }

.tsd {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
body.picker .tsd { flex: 1 1 auto; height: 100%; }
.tsd-watch {
  width: 420px;
  max-width: 100%;
  margin: 16px auto;
  min-height: 640px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tsd.state-ok { background: var(--ok); color: #fff; }
.tsd.state-error { background: var(--err); color: #fff; }
.tsd-watch.state-ok,
.tsd-watch.state-error { border-color: transparent; }
.tsd.state-ok a,
.tsd.state-error a { color: #fff; }

.tsd-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.tsd-watch .tsd-main { overflow: visible; flex: none; }
.tsd-pallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px 0;
}
.tsd-pallet-name {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}
.tsd-pallet-print {
  margin: 0;
  flex: 0 1 auto;
  max-width: 46%;
}
.tsd-pallet .btn-small {
  height: auto;
  min-height: 34px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.tsd-actions {
  flex: 0 0 auto;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tsd-actions form,
.tsd .scan-form { width: 100%; margin: 0; }
.tsd .picker-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.tsd .picker-actions form { margin: 0; width: 100%; }
.tsd .btn-huge {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 64px;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px;
}
.tsd.state-ok .btn,
.tsd.state-ok .btn-secondary,
.tsd.state-ok .btn-huge {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.tsd.state-ok .btn:hover,
.tsd.state-ok .btn-secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.tsd.state-error .btn,
.tsd.state-error .btn-secondary,
.tsd.state-error .btn-huge {
  background: #fff;
  color: var(--err);
  border-color: #fff;
}
.tsd.state-error .btn:hover,
.tsd.state-error .btn-secondary:hover { color: var(--err); background: var(--err-soft); }
.tsd.state-ok .tsd-scan-label,
.tsd.state-error .tsd-scan-label { display: none; }
.tsd.state-error .scan-form { position: relative; }
.tsd.state-error .scan-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.tsd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tsd.state-ok .tsd-head,
.tsd.state-error .tsd-head { border-bottom-color: rgba(255, 255, 255, 0.2); }
.tsd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tsd-brand img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.tsd-brand-name { font-size: 13px; font-weight: 700; line-height: 1.1; }
.tsd-supply { font-size: 16px; font-weight: 700; line-height: 1.2; }
.tsd-login { font-size: 12px; color: var(--muted); }
.tsd.state-ok .tsd-login,
.tsd.state-error .tsd-login { color: rgba(255, 255, 255, 0.8); }
.tsd-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}
.tsd-logout {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tsd.state-ok .tsd-logout,
.tsd.state-error .tsd-logout { color: #fff; }
.tsd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok-text);
  background: var(--ok-soft);
  padding: 5px 10px;
  border-radius: 99px;
}
.tsd-link.is-down { color: var(--err); background: var(--err-soft); }
.tsd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.tsd-link.is-down .tsd-dot { background: var(--err); }
.tsd-progress { padding: 12px 16px 2px; }
.tsd-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tsd-progress-main { font-size: 24px; font-weight: 800; line-height: 1; }
.tsd-progress-main span,
.tsd-progress-side { font-size: 14px; font-weight: 600; color: var(--muted); }
.tsd.state-ok .tsd-progress-main,
.tsd.state-ok .tsd-progress-side,
.tsd.state-error .tsd-progress-main,
.tsd.state-error .tsd-progress-side { color: #fff; font-size: 14px; font-weight: 600; }
.tsd-bar {
  height: 8px;
  background: var(--line-soft);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.tsd-bar > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
}
.tsd-queue {
  margin: 8px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.tsd.state-ok .tsd-queue,
.tsd.state-error .tsd-queue { color: #fff; }

.tsd-task { margin-top: 12px; }
.tsd-task-label {
  padding: 0 16px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.picker-task-list {
  height: 204px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.tsd-row {
  flex: none;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--ground);
  border: 1.5px solid var(--line-soft);
}
.tsd-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tsd-num {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 64px;
}
.tsd-boxes { font-size: 24px; font-weight: 800; line-height: 1; color: var(--ink); }
.tsd-boxes small { font-size: 13px; font-weight: 700; color: var(--text-2); margin-left: 3px; }
.tsd-qty { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.tsd-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.tsd-now {
  margin: 12px 16px 0;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tsd-now-text { flex: 1; min-width: 0; }
.tsd-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tsd-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 4px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}
.tsd-step b {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.tsd-step.on { background: var(--brand); color: #fff; }
.tsd-step.on b { background: #fff; color: var(--brand-text); }
.tsd-message { font-size: 27px; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.tsd-last {
  margin: 10px 16px 0;
  padding: 10px 12px;
  background: var(--ok-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ok-text);
  font-size: 14px;
  font-weight: 600;
}
.tsd-hint { font-size: 12px; color: var(--muted); padding: 6px 20px 0; }
.tsd-scan-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.tsd .scan-input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 16px;
  font-weight: 500;
  background: var(--ground);
  color: var(--ink);
  text-align: left;
}
.tsd.state-ok .scan-input { background: #fff; color: var(--ink); }

.tsd-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 16px 14px;
  gap: 10px;
}
.tsd-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tsd.state-error .tsd-badge { width: 96px; height: 96px; }
.tsd-hero-title { font-size: 34px; font-weight: 800; line-height: 1; }
.tsd.state-error .tsd-hero-title { font-size: 38px; }
.tsd-hero-message { font-size: 24px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tsd-card {
  margin: 0 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tsd-card-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tsd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tsd-tile { background: var(--ground); border-radius: 14px; padding: 10px 12px; }
.tsd-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tsd-tile-value { font-size: 30px; font-weight: 800; line-height: 1.1; }
.tsd-tile-value span { font-size: 16px; font-weight: 700; }
.tsd-cluster-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.tsd-cluster { font-size: 26px; font-weight: 800; line-height: 1.15; }
.tsd-place { text-align: right; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tsd-label-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok-text);
}
.tsd-label-line .mono { font-size: 14px; }
.tsd-ask {
  margin: 12px 16px 0;
  padding: 16px 20px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.tsd-note {
  margin: 8px 16px 0;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tsd-note .mono { font-size: 20px; font-weight: 600; color: #fff; }
.tsd-enter {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--surface);
}
.picker-decide {
  margin: 12px 16px;
  padding: 16px;
  background: var(--warn-soft);
  color: var(--warn-text);
  border-radius: 16px;
}
.picker-decide .picker-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--warn-text);
  text-align: left;
}
.picker-decide .picker-sub { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.picker-decide .picker-meta,
.picker-decide .picker-hint { color: var(--warn-text); text-align: left; font-size: 15px; }
.picker-decide .muted { color: var(--warn-text); }
.tsd-watch-top {
  padding: 12px 16px 0;
  font-size: 14px;
  font-weight: 700;
}
.tsd-watch-top p { margin: 0 0 6px; }
.label-preview { margin: 8px 16px 0; font-size: 14px; }
.tsd.state-ok .label-preview,
.tsd.state-error .label-preview { color: #fff; }
.label-card {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
  font-size: 15px;
}
.label-card .label-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.label-card .label-image {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.label-card .label-barcode {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  letter-spacing: 2px;
  font-size: 18px;
  text-align: center;
}
.picker-hint { margin: 8px 0 0; }
.picker-meta { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 15px; }

.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.fchip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.fchip:hover { text-decoration: none; color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.fchip.on:hover { color: var(--surface); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.seg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.seg-link:hover { text-decoration: none; color: var(--ink); }
.seg-link.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.seg-count { font-variant-numeric: tabular-nums; }
.adjust { margin: 0; }
.adjust > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.adjust > summary::-webkit-details-marker { display: none; }
.adjust:not([open]) > .inline-form { display: none; }
.adjust[open] .inline-form { margin-top: 8px; }
.sup-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sup-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sup-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-num { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.sup-num:hover { text-decoration: none; }

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.crumbs a { color: var(--text-2); font-weight: 600; }
.supply-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.supply-title h1 { margin: 0; }
.supply-meta { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }

.steps {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  background: var(--line);
  color: var(--muted);
}
.step.is-done .step-dot { background: var(--ok); color: var(--surface); }
.step.is-current .step-dot { background: var(--brand); color: var(--surface); }
.step.is-error .step-dot { background: var(--err); color: var(--surface); }
.step-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.step.is-ahead .step-name { color: var(--muted); }
.step.is-error .step-name { color: var(--err); }
.step-sub { color: var(--muted); font-size: 13px; }

.table-scroll { overflow-x: auto; }
.cluster-more { margin-top: 12px; }
.cluster-more summary,
.danger-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.danger-block summary { color: var(--err); }
.supply-title + .actions,
.page-head .actions { justify-content: flex-end; }

.home-kpi { margin-bottom: 16px; }
.home-kpi .card { display: flex; flex-direction: column; gap: 8px; }
.home-supplies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.home-supply { display: flex; flex-direction: column; gap: 12px; }
.home-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.home-slot {
  border: 1px dashed var(--line);
  text-decoration: none;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
}
.home-slot:hover { text-decoration: none; }
.attn-list {
  max-height: 470px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attn-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--ground);
}
.attn-err { color: var(--err); background: var(--err-soft); }
.attn-warn { color: var(--warn-text); background: var(--warn-soft); }
.attn-info { color: var(--info); background: var(--info-soft); }
.attn-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attn-body { flex: 1; min-width: 0; color: var(--ink); }
.attn-title { font-weight: 700; }
.attn-open { font-weight: 700; white-space: nowrap; }
.attn-err .attn-open { color: var(--err); }
.attn-warn .attn-open { color: var(--warn-text); }
.attn-info .attn-open { color: var(--info); }
.home-groups .bar { min-width: 120px; }
.stock-total td { font-weight: 800; }

.attn-row form { margin: 0; flex: 0 0 auto; }
.attn-hidden { margin-top: 12px; }
.attn-hidden > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-2);
}
.attn-muted { background: var(--ground); }
.attn-muted .attn-body,
.attn-muted .attn-title { color: var(--muted); }

.goods-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: 2.7em;
}
.goods-sku { margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.col-check { width: 40px; }
.col-group { width: 110px; }
.col-barcode { width: 148px; }
.col-box { width: 96px; }
.col-qty { width: 88px; }
.col-boxes { width: 112px; }
.col-date { width: 100px; }
.col-adjust { width: 44px; }
.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adjust-row td { height: auto; background: var(--ground); }
.adjust-line { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.adjust-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.adjust-line .adjust-value { width: 120px; flex: 0 0 120px; }
.adjust-line .adjust-reason { flex: 1 1 160px; min-width: 120px; }
.stock-fit td.date { white-space: nowrap; }
@media (max-width: 1279px) {
  .table-wrap.stock-fit { overflow-x: auto; }
  .table-wrap.stock-fit > .grid { width: max-content; min-width: 960px; table-layout: auto; }
}
@media (min-width: 1280px) {
  .table-wrap.stock-fit { overflow-x: hidden; }
  .table-wrap.stock-fit > .grid { width: 100%; min-width: 0; table-layout: fixed; }
  .table-wrap.stock-fit > .grid td.nowrap,
  .table-wrap.stock-fit > .grid td.clip,
  .table-wrap.stock-fit > .grid th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .table-wrap.stock-fit > .grid td.goods { white-space: normal; overflow: visible; }
}

.lede { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.kpi-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card.kpi .card-value { font-size: 26px; margin-top: 6px; }
.card-value.minus, .minus { color: var(--err); font-weight: 800; }
.card-value.plus, .plus { color: var(--ok); font-weight: 800; }
.chip-supply { background: var(--err-soft); color: var(--err); }
.chip-load { background: var(--ok-soft); color: var(--ok-text); }
.chip-adjust { background: var(--line-soft); color: var(--text-2); }
.chip-cancel { background: var(--ground); color: var(--text-2); }
.filters-block { display: flex; flex-direction: column; gap: 12px; }
.filters-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.move-panel { margin-top: 16px; padding: 18px 8px 14px; }
.move-panel .filters { margin: 0; padding: 0; }
.move-panel .pager { padding: 0 12px; }
.move-name { font-weight: 700; }
.move-note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.move-sub td { height: auto; background: var(--ground); }
.move-detail {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 90px 90px;
  gap: 6px 16px;
  align-items: center;
}
.move-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.move-more { margin: 8px 0 0; }
.note-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--info-soft);
  color: var(--info-text);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  flex-wrap: wrap;
}
.note-info p { margin: 0; flex: 1 1 280px; }
.note-count { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.note-count .bar { width: 120px; height: 6px; background: color-mix(in srgb, var(--info) 28%, var(--surface)); }
.journal-day td { background: var(--ground); font-size: 13px; font-weight: 700; color: var(--text-2); height: auto; }
.journal-grid td { white-space: nowrap; }
.journal-grid td.journal-detail { white-space: normal; max-width: 420px; }

/* Скан на подтверждении и полоса «окно не в фокусе». */
.tsd-check {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tsd-check:hover { text-decoration: none; color: var(--ink); }
.tsd.state-ok .tsd-check,
.tsd.state-error .tsd-check { color: #fff; }
.scan-reject {
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: #fff;
  color: var(--err);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.scan-focus-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--err);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.scan-repeat {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.scan-focus-bar[hidden],
.scan-repeat[hidden] { display: none !important; }

/* Сборщик за компьютером: панель по центру, ТСД (до 1024) не меняется. */
@media (min-width: 1024px) {
  body.picker { background: var(--ground); }
  body.picker .container {
    align-items: center;
    justify-content: center;
    background: var(--ground);
  }
  body.picker .picker-panel,
  body.picker .tsd {
    flex: 0 1 auto;
    width: min(720px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  body.picker .tsd .btn-huge {
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  body.picker .tsd-name { font-size: 28px; line-height: 1.25; }
  body.picker .tsd-boxes { font-size: 42px; }
  body.picker .tsd-boxes small { font-size: 20px; }
  body.picker .tsd-qty { font-size: 22px; }
  body.picker .tsd-row { height: auto; min-height: 96px; }
  body.picker .picker-task-list { height: 320px; }
  body.picker .tsd-progress-main { font-size: 40px; }
  body.picker .tsd-progress-main span,
  body.picker .tsd-progress-side { font-size: 22px; }
  body.picker .tsd-message { font-size: 40px; }
  body.picker .tsd-hero-message { font-size: 40px; }
  body.picker .tsd-hero-title { font-size: 48px; }
  body.picker .picker-count { font-size: 48px; }
  body.picker .scan-reject { font-size: 32px; }
  body.picker .picker-decide .picker-title { font-size: 36px; }
  body.picker .scan-focus-bar { font-size: 28px; }
}

.scanner-wrap { max-width: 720px; margin: 0 auto; }
.scanner-wrap h1 { margin-bottom: 8px; }
.scanner-form { margin-top: 16px; }
.scanner-form .scan-input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 18px;
  background: var(--ground);
  color: var(--ink);
}
.scanner-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.scanner-result h2 { margin: 0 0 12px; font-size: 18px; }
.scanner-result p { margin: 0 0 8px; font-size: 16px; }
.scanner-code {
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.scanner-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.scanner-hint-warn { background: var(--warn-soft); color: var(--warn-text); }
.scanner-hint-info { background: var(--info-soft); color: var(--info-text); }
body.page-scanner { overflow-x: hidden; }
body.page-scanner .container { overflow-x: hidden; }

.print-line {
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.print-line .on { color: var(--ok); }
.print-line .off { color: var(--err); }
.print-change { color: var(--brand-text); margin-left: 6px; }
.station-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.station-list form { margin: 0; }
.agent-key {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  width: 100%;
  max-width: 640px;
}

/* --- Главная о сервисе и регистрация (РГ1). Только цвета из :root. --- */
body.page-site .container { max-width: 1120px; overflow-x: visible; }
.site-nav { display: flex; gap: 18px; font-weight: 600; font-size: 14px; }
.site-nav a { color: var(--text-2); }
.site-auth { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0 24px;
}
.site-hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-bottom: 20px;
}
.site-lead { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 54ch; margin: 0 0 24px; }
.site-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.site-btn-big { height: 48px; padding: 0 22px; font-size: 15px; }
.site-note { font-size: 14px; max-width: 54ch; margin: 16px 0 0; }

.site-printer { display: flex; flex-direction: column; align-items: center; }
.site-printer-slot {
  position: relative;
  z-index: 2;
  width: 272px;
  height: 14px;
  border-radius: 8px;
  background: var(--ink);
}
.site-label {
  width: 232px;
  aspect-ratio: 75 / 120;
  margin-top: -5px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 22px 36px -24px rgba(30, 31, 36, 0.45);
  color: var(--ink);
  animation: site-print 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}
@keyframes site-print {
  from { transform: translateY(-48px); clip-path: inset(0 0 100% 0); }
  to { transform: none; clip-path: inset(0 0 0 0); }
}
.site-label-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.site-label-count {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.site-label-cluster { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 22px 0 6px; }
.site-label-meta { font-size: 13px; color: var(--muted); }
.site-label-qty { margin-top: 14px; font-size: 14px; font-weight: 600; }
.site-barcode { display: block; width: 100%; height: 92px; margin-top: auto; fill: var(--ink); }
.site-label-code {
  margin-top: 8px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.site-section { margin: 64px 0; }
.site-section h2,
.site-final h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 20px; }

.site-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.site-steps li { counter-increment: step; padding: 16px 20px 0 0; }
.site-steps li::before {
  content: counter(step);
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.site-steps h3 { margin: 10px 0 6px; font-size: 17px; color: var(--ink); }
.site-steps p { margin: 0; font-size: 14px; color: var(--text-2); max-width: 30ch; }

.site-roles dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 16px; }
.site-roles dl > div { border-top: 1px solid var(--line); padding-top: 14px; }
.site-roles dt { font-size: 17px; font-weight: 700; color: var(--ink); }
.site-roles dd { margin: 6px 0 0; color: var(--text-2); max-width: 36ch; }

.site-prices th[scope="row"] { font-size: 16px; font-weight: 800; color: var(--ink); }
.site-price { white-space: nowrap; font-weight: 700; }
.site-price .muted { font-weight: 400; }
.site-terms { margin: 16px 0 0; padding-left: 18px; color: var(--text-2); max-width: 72ch; }
.site-terms li { margin: 6px 0; }

.site-final { margin: 64px 0 24px; padding: 32px; border-radius: 16px; background: var(--brand-soft); }
.site-final p { margin: 0 0 20px; color: var(--text-2); max-width: 60ch; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.register-card { width: min(560px, 100%); }
.register-card .login-brand h1 { margin: 4px 0 0; font-size: 24px; }
.register-card .login-brand p { margin: 0; }
.register-name { font-size: 22px; font-weight: 800; color: var(--ink); }
.field-hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.form .register-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.register-check input { margin-top: 3px; flex: none; }
.register-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.register-login {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}
body.page-register .container { align-items: flex-start; padding-top: 32px; }

@media (max-width: 900px) {
  .site-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .site-label { width: 200px; }
  .site-printer-slot { width: 236px; }
  .site-steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); }
  .site-steps li { padding: 0 0 20px 18px; }
  .site-roles dl { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-final { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-label { animation: none; }
}
