@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/golos-text-400-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: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/golos-text-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/golos-text-700-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;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-500-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;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-500-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: 700;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-700-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: 700;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-700-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 {
  --ink: #111820;
  --ink-2: #4c5763;
  --ink-3: #79838f;
  --line: #e3e8ed;
  --bg: #e8ecf0;
  --card: #fff;
  --sunk: #eef1f4;
  --ok: #127a45;
  --ok-bg: #e2efe8;
  --ok-ink: #0e5c34;
  --alert: #b8231c;
  --alert-bg: #f9e4e3;
  --alert-ink: #8f1a15;
  --spine: var(--ink);
  --r: 14px;
  --r-sm: 10px;
  --lift: 0 1px 1px rgba(17, 24, 32, .04), 0 4px 12px rgba(17, 24, 32, .07);
  --lift-1: 0 1px 2px rgba(17, 24, 32, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }

button, input {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: inherit;
}

body {
  margin: 0;
  font-family: "Golos Text", -apple-system, "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--bg);
}

.mono, .input, .card-art, .tile-price, .off, .size, .sz-name, .sz-qty, .sz-price,
.row-art, .row-qty, .card-state b {
  font-family: "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

.top {
  display: flex;
  align-items: center;
  padding: 10px 4px 10px 8px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-title { font-size: 17px; font-weight: 700; flex: 1; padding: 0 8px; }
.top form { margin: 0; }
.top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--r-sm);
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}
.top-link svg { display: block; }
.top-link:active { background: rgba(255, 255, 255, .30); }

main { padding: 12px; }

.scan { margin: 0 0 12px; }
.input {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 17px;
  border: 2px solid #c8cfd7;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
}
.input:focus { border-color: var(--ink); }
.input.typing { border-color: var(--ok); }
.input::-webkit-input-placeholder { font-family: "Golos Text", sans-serif; color: #8b96a3; }
.input::placeholder { font-family: "Golos Text", sans-serif; color: #8b96a3; }

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--r);
  padding: 14px 16px 14px 24px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--lift);
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--spine);
}
.card.ok { --spine: var(--ok); }
.card.alert { --spine: var(--alert); }

.card-art { font-size: 17px; font-weight: 700; letter-spacing: -.02em; word-break: break-all; }
.card-name { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

.card-head { display: flex; align-items: flex-start; }
.card-head > * + * { margin-left: 12px; }
.card-head-text { flex: 1; min-width: 0; }
.card-head .size { flex: none; }

.tiles { display: flex; margin-top: 12px; }
.tiles > * + * { margin-left: 8px; }
.tile {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 12px;
  border-radius: var(--r-sm);
  background: var(--sunk);
}
.tile.blank { background: transparent; }
.tile-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.tile-top > * + * { margin-left: 8px; }
.tile-label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.tile-price {
  margin-top: 6px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.tile-price small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tile-none { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink-3); line-height: 26px; }
.off {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}
.g { display: inline-block; width: .28em; }

.size {
  display: inline-block;
  min-width: 68px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
.card.ok .size { background: var(--ok); }
.card.alert .size { background: var(--alert); }

.card-state {
  margin: 14px -16px -14px -24px;
  padding: 8px 16px 8px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card-state b { text-transform: none; letter-spacing: 0; }
.card-state.ok { background: var(--ok-bg); color: var(--ok-ink); }
.card-state.alert { background: var(--alert-bg); color: var(--alert-ink); }

.section {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.section > * + * { margin-left: 12px; }

.sizes { background: var(--card); border-radius: var(--r); box-shadow: var(--lift-1); overflow: hidden; }
.sz {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.sz:first-child { border-top: 0; }
.sz > * + * { margin-left: 12px; }
.sz-name { min-width: 64px; font-size: 17px; font-weight: 700; }
.sz-qty { flex: 1; font-size: 23px; font-weight: 700; }
.sz-qty small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.sz-price { text-align: right; font-size: 15px; white-space: nowrap; }
.sz-price b { display: block; }
.sz-price .ex { display: block; font-size: 13px; color: var(--ink-3); }
.sz.none .sz-name, .sz.none .sz-qty { color: #a5aeb8; }
.sz.none .sz-qty { font-size: 15px; font-weight: 500; }
.sz.hit { background: var(--ok-bg); }
.sz.hit.none { background: var(--alert-bg); }
.sz.hit .sz-name { color: var(--ink); }

.banner {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 16px 16px 16px 24px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--lift);
}
.banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--alert);
}
.banner-title { font-size: 17px; font-weight: 700; }
.banner-sub { font-size: 13px; color: #b9c3cf; margin-top: 4px; line-height: 1.4; word-break: break-word; }

.rows > * + * { margin-top: 8px; }
.row {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--r);
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--lift-1);
}
.row:active { background: var(--sunk); }
.row > * + * { margin-left: 12px; }
.row-main { flex: 1; min-width: 0; }
.row-art { display: block; font-size: 15px; font-weight: 700; word-break: break-all; }
.row-name { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.row-qty { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--ok-ink); }
.row-qty.none { color: #a5aeb8; font-weight: 500; }

.empty { text-align: center; color: var(--ink-2); padding: 40px 16px; }
.empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 36px;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: var(--lift);
}
.empty-mark svg { display: block; }
.empty-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.empty .muted { display: block; margin-top: 8px; }

.muted { color: var(--ink-3); font-size: 13px; }
.foot { text-align: center; margin-top: 16px; }
.card-art.plain, .row-art.plain { font-family: inherit; letter-spacing: 0; word-break: normal; }

body.bar main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

.note { font-size: 13px; color: var(--ink-3); margin: -4px 4px 12px; }
[hidden] { display: none !important; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--lift-1);
}
.btn:active { background: #2a3441; }
.btn.wide { display: block; width: 100%; padding: 16px; }
.btn svg { display: inline-block; vertical-align: -5px; margin-right: 8px; }

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(232, 236, 240, .94);
  box-shadow: 0 -1px 0 rgba(17, 24, 32, .08);
  z-index: 9;
}
.actionbar .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 10px rgba(17, 24, 32, .16); }

.cam {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: #000;
  z-index: 40;
}
.cam.show { visibility: visible; pointer-events: auto; }
.cam video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.cam-frame {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 36%;
  height: 28%;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: var(--r);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
  transition: border-color .1s;
}
.cam-frame i {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: var(--alert);
  opacity: .8;
}
.cam-frame.ok { border-color: var(--ok); }
.cam-frame.ok i { background: var(--ok); }
.cam-hint {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.cam-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
}
.cam-bar > * + * { margin-left: 8px; }
.cam-btn {
  flex: 1;
  border: 0;
  border-radius: var(--r-sm);
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
}
.cam-btn:active { background: rgba(255, 255, 255, .35); }
.cam-btn.on { background: #fff; color: var(--ink); }

.login {
  background: var(--card);
  border-radius: var(--r);
  padding: 20px 16px 16px;
  box-shadow: var(--lift);
}
.login-title { font-size: 23px; font-weight: 700; }
.login .muted { display: block; margin-top: 4px; }
.login-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--alert-bg);
  color: var(--alert-ink);
  font-size: 15px;
  font-weight: 700;
}
.field { display: block; margin-top: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.login .btn { margin-top: 16px; }
.foot button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.foot form { display: inline; margin: 0; }
