@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/figtree-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f4ee;
  --paper-2: #eeebe1;
  --card: #fffdf8;
  --ink: #17150f;
  --ink-2: #5a5545;
  --ink-3: #8c8672;
  --line: #e3decd;
  --line-2: #d2ccb8;
  --pine: #17604a;
  --pine-dark: #0d3b2d;
  --pine-wash: #e6efe9;
  --amber: #8a5410;
  --amber-wash: #fbefdb;
  --red: #9c2a1a;
  --red-wash: #fbe8e4;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(23, 21, 15, .05), 0 10px 24px -18px rgba(23, 21, 15, .55);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }

/* ── Gate ─────────────────────────────────────────────────────── */
.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px calc(24px + var(--safe-b));
}
.gate__card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 20px;
  box-shadow: var(--shadow);
}
.gate__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--pine);
  color: #f4f1e6;
  margin-bottom: 16px;
}
.gate__mark svg { width: 24px; height: 24px; }
.gate__title { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.gate__sub { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.gate__foot { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ── Shell ────────────────────────────────────────────────────── */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--pine);
  color: #f4f1e6;
  flex: 0 0 auto;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-size: 16px; letter-spacing: -.01em; }
.brand__text small { font-size: 11px; color: var(--ink-3); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status[data-state="sync"] i { background: var(--amber); animation: pulse 1s ease-in-out infinite; }
.status[data-state="ok"] i { background: var(--pine); }
.status[data-state="offline"] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.status[data-state="offline"] i { background: var(--amber); }
.status[data-state="error"] { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.status[data-state="error"] i { background: var(--red); }

@keyframes pulse { 50% { opacity: .25; } }

.main {
  flex: 1;
  padding: 18px 16px calc(96px + var(--safe-b));
}

.view__head { margin-bottom: 16px; }
.view__title { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.view__lead { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 44ch; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card--quiet { background: color-mix(in srgb, var(--paper-2) 55%, var(--card)); box-shadow: none; }
.card > .field:first-child, .card > .row:first-child { margin-top: 0; }

.eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.row { display: flex; gap: 10px; align-items: center; }
.row--between { justify-content: space-between; }
.grow { min-width: 0; }

/* ── Scan button ──────────────────────────────────────────────── */
.scanbtn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 20px 14px;
  border: 1.5px dashed color-mix(in srgb, var(--pine) 42%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--pine-wash) 60%, transparent);
  color: var(--pine);
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.scanbtn:active { background: var(--pine-wash); border-color: var(--pine); }
.scanbtn__icon { width: 28px; height: 28px; margin-bottom: 4px; }
.scanbtn__label { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.scanbtn__sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Inputs ───────────────────────────────────────────────────── */
.field { margin-top: 16px; }
.field--tight { margin: 0 0 14px; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field__note { margin: 7px 0 0; font-size: 12px; color: var(--pine); font-weight: 600; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: color-mix(in srgb, var(--ink-3) 80%, #fff); }
.input:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 14%, transparent);
}
.input--date {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.input--date::-webkit-calendar-picker-indicator { opacity: .55; }

.barcode-chip {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.985); }
.btn--block { width: 100%; margin-top: 18px; min-height: 52px; font-size: 16px; }
.btn--primary { background: var(--pine); color: #fbfaf3; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset; }
.btn--primary:active { background: var(--pine-dark); }
.btn--quiet { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); flex: 0 0 auto; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
}
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn:active { background: var(--paper-2); }

/* ── Chips ────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-top: 0; padding-bottom: 2px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .13s ease, color .13s ease, border-color .13s ease;
}
.chip:active { background: var(--paper-2); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: #fbfaf3; }

/* ── Stepper ──────────────────────────────────────────────────── */
.stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: stretch;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  max-width: 200px;
}
.stepper__btn {
  border: none;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.stepper__btn:active { background: var(--line); }
.stepper__input {
  border: none;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  width: 100%;
  text-align: center;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; background: var(--pine-wash); }

.form-error { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--red); }

/* ── Mini list (parties of the selected product) ──────────────── */
.mini-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.mini-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}
.mini-list b { font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-list span { color: var(--ink-3); font-size: 12.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pine-wash);
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Stats ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.stat { background: var(--card); padding: 11px 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.stat__value { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; line-height: 1.2; }
.stat--warn.is-alert .stat__value { color: var(--amber); }
.stat--danger.is-alert .stat__value { color: var(--red); }

.toolbar { display: grid; gap: 10px; margin-bottom: 18px; }
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-3);
}
.search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 0;
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 13%, transparent); }

/* ── Expiry list ──────────────────────────────────────────────── */
.bucket + .bucket { margin-top: 20px; }
.bucket__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.bucket__title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bucket__count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.items {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.item { border-top: 1px solid var(--line); }
.item:first-child { border-top: none; }

.item__main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 64px;
}
.item__main:active { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }

.datebox {
  flex: 0 0 auto;
  width: 46px;
  padding: 5px 0 6px;
  border-radius: 10px;
  background: var(--paper-2);
  text-align: center;
  line-height: 1;
}
.datebox b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.datebox i { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

.item--expired .datebox { background: var(--red-wash); color: var(--red); }
.item--expired .datebox i { color: color-mix(in srgb, var(--red) 70%, var(--ink-3)); }
.item--today .datebox { background: var(--red-wash); color: var(--red); }
.item--soon .datebox { background: var(--amber-wash); color: var(--amber); }
.item--soon .datebox i { color: color-mix(in srgb, var(--amber) 75%, var(--ink-3)); }

.item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item__meta { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--soon { background: var(--amber-wash); color: var(--amber); }
.pill--today, .pill--expired { background: var(--red-wash); color: var(--red); }

.item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px;
}
.item__actions .stepper { height: 42px; grid-template-columns: 42px 1fr 42px; max-width: 138px; }
.item__actions .stepper__btn { font-size: 18px; }
.item__actions .stepper__input { font-size: 15px; }
.act {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.act:active { background: var(--paper-2); }
.act--danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, var(--line-2)); }
.act--end { margin-left: auto; }
.act svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 5px; }

.item__edit { display: flex; gap: 8px; align-items: center; padding: 0 14px 14px; }
.item__edit .input { min-height: 42px; padding: 8px 11px; }

/* ── Empty ────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.empty__text { margin: 0 auto 16px; font-size: 13.5px; color: var(--ink-2); max-width: 32ch; }

/* ── Tab bar ──────────────────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 14px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border: none;
  border-radius: 12px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-active { color: var(--pine); background: color-mix(in srgb, var(--pine-wash) 80%, transparent); }

/* ── Scanner ──────────────────────────────────────────────────── */
.scanner {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #0a0a09;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner__frame {
  position: relative;
  width: min(74%, 320px);
  aspect-ratio: 1.25 / 1;
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(8, 8, 7, .55);
}
.scanner__frame span,
.scanner__frame span::before,
.scanner__frame span::after { content: ""; position: absolute; }

.scanner__frame::before, .scanner__frame::after { content: ""; position: absolute; width: 26px; height: 26px; }
.scanner__frame::before { top: -1px; left: -1px; border-top: 3px solid #f4f1e6; border-left: 3px solid #f4f1e6; border-top-left-radius: 14px; }
.scanner__frame::after { bottom: -1px; right: -1px; border-bottom: 3px solid #f4f1e6; border-right: 3px solid #f4f1e6; border-bottom-right-radius: 14px; }
.scanner__frame span { top: -1px; right: -1px; width: 26px; height: 26px; border-top: 3px solid #f4f1e6; border-right: 3px solid #f4f1e6; border-top-right-radius: 14px; }
.scanner__frame span::after { bottom: -1px; left: -1px; width: 26px; height: 26px; border-bottom: 3px solid #f4f1e6; border-left: 3px solid #f4f1e6; border-bottom-left-radius: 14px; }
.scanner__frame span::before {
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e99e4a, transparent);
  animation: scanline 2.2s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { transform: translateY(-52px); opacity: .25; }
  50% { transform: translateY(52px); opacity: 1; }
}

.scanner__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 0;
}
.scanner__btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 230, .25);
  border-radius: 999px;
  background: rgba(10, 10, 9, .55);
  color: #f4f1e6;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.scanner__hint {
  position: absolute;
  bottom: calc(34px + var(--safe-b));
  left: 0;
  right: 0;
  text-align: center;
  color: #f4f1e6;
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.scanner__error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(78px + var(--safe-b));
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(156, 42, 26, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 460px);
  padding: 11px 12px 11px 16px;
  border-radius: 12px;
  background: #1c1a13;
  color: #f6f4ee;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  animation: toastIn .18s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast__text { min-width: 0; }
.toast__action {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: #f0b46a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 380px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .view__title { font-size: 22px; }
}

@media (min-width: 620px) {
  .main { padding-left: 20px; padding-right: 20px; }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
