@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/manrope-normal-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/manrope-normal-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: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope-normal-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope-normal-600-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: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope-normal-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope-normal-600-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: #242424;
  --green: #59863d;
  --green-bright: #7dbb56;
  --gold: #ffd54d;
  --red: #b22222;
  --bg: #fffaeb;
  --card: #ffffff;
  --line: #e4dcc8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}
a { color: var(--green); }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 32px; line-height: 1.1; margin: 8px 0; }
h2 { font-size: 22px; margin: 28px 0 8px; }
.lead { color: #4d4d4d; margin-top: 0; }
.top {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand img { height: 36px; width: auto; display: block; }
.who { display: flex; flex-direction: column; font-weight: 700; }
.who span { font-weight: 500; font-size: 14px; }
.tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools form { margin: 0; }
.tools button, .textlink {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  min-height: 40px; padding: 0 12px; font: inherit; text-decoration: none; color: var(--ink);
}
.tools button.on { background: var(--gold); border-color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.big, button, .card {
  font: inherit;
}
.big, button.primary, button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 64px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px;
  width: 100%;
}
a.big.primary, button.primary { background: var(--green); color: #fff; border-color: var(--green); }
a.big.alert { border-color: var(--red); color: var(--red); }
.vehicle { flex-direction: column; align-items: flex-start; }
.vehicle span, .card span, .card small { font-weight: 500; color: #444; font-size: 16px; }
.banner { padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.banner.bad { background: #fde8e8; color: var(--red); }
.banner.good { background: #e7f5dc; color: #2f5d1c; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin: 12px 0; }
input, select, textarea {
  font: inherit; font-size: 18px; min-height: 56px; width: 100%;
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 110px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.pad button { min-height: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a {
  text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-weight: 700;
}
.chips a.on { background: var(--gold); border-color: #e0ac00; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
}
.part { flex-direction: row; justify-content: space-between; align-items: center; }
.qtyblock { text-align: right; }
.qtyblock b { display: block; font-size: 32px; line-height: 1; }
.qtyblock em { font-style: normal; font-size: 14px; font-weight: 700; }
.status-order { box-shadow: inset 4px 0 0 var(--red); }
.status-coming { box-shadow: inset 4px 0 0 #e0ac00; }
.status-ok { box-shadow: inset 4px 0 0 var(--green-bright); }
.off { opacity: 0.55; }
.balance { font-size: 64px; font-weight: 700; margin: 0; line-height: 1; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #fff; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { flex-direction: row; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.choice:has(input:checked) { border-color: var(--green); background: #e7f5dc; }
.choice input { width: 28px; min-height: 28px; }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 28px; min-height: 28px; }
fieldset { border: 0; padding: 0; margin: 12px 0; }
legend { font-weight: 700; }
.badline { border-color: var(--red); }
form.card button, .card form { width: 100%; }
#camera-box { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 5; }
#camera-box video { width: min(100%, 480px); background: #000; }
@media (min-width: 800px) {
  .stack.home, .tools { }
}
