:root { color-scheme: light; font: 16px/1.45 system-ui, sans-serif; color: #152019; background: #f2f4f1; }
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 5.5rem; }
header, main { width: min(100% - 1.5rem, 760px); margin-inline: auto; }
header { padding: 1rem 0 .7rem; }
header div { display: flex; align-items: baseline; gap: .65rem; }
header strong { font-size: 1.45rem; letter-spacing: .05em; }
header span, header p, .hint, .meta { color: #5c685f; }
header p { margin: .25rem 0 0; font-size: .85rem; }
.telegram-mode { display: inline-block; padding: .2rem .5rem; border-radius: 999px; background: #dff0e5; color: #173e2c; font-weight: 800; }
.telegram-mode[hidden] { display: none; }
nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .55rem max(.65rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left)); border-top: 1px solid #cad1cc; background: #fff; }
button, input, select, textarea { width: 100%; min-height: 48px; padding: .72rem; border: 1px solid #78847b; border-radius: .65rem; background: #fff; color: inherit; font: inherit; }
button { cursor: pointer; font-weight: 750; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2b7bd3; outline-offset: 2px; }
.tab { border-color: transparent; background: transparent; }
.tab.active { background: #e2eee7; color: #173e2c; }
.primary { border-color: #173e2c; background: #173e2c; color: #fff; }
.capture-button { border: 2px solid #173e2c; background: #edf5f0; color: #173e2c; }
.big { min-height: 58px; font-size: 1.05rem; }
.view { padding-top: .25rem; }
article { margin: .8rem 0 1rem; padding: 1rem; border: 1px solid #d0d6d2; border-radius: 1rem; background: #fff; box-shadow: 0 4px 18px #1e30240c; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-size: 1.65rem; }
h2 { margin-bottom: .35rem; font-size: 1.35rem; }
.step { display: block; margin-bottom: .25rem; color: #346c4c; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.stack { display: grid; gap: .85rem; }
.inline, .two { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: .3rem; font-weight: 720; }
textarea { resize: vertical; }
.or { display: flex; align-items: center; gap: .5rem; margin: .8rem 0; color: #7a837d; font-size: .85rem; }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: #d9ddda; }
.location-card { margin-top: 1rem; padding: .85rem; border-radius: .75rem; background: #edf5f0; }
.location-card strong, .location-card span { display: block; }
.location-card strong { font-size: 1.2rem; }
.message { position: sticky; z-index: 4; top: .5rem; margin: .4rem 0; padding: .8rem; border-radius: .7rem; background: #173e2c; color: #fff; font-weight: 700; }
.message.error { background: #922f27; }
.media-preview, .card-media { overflow: hidden; border-radius: .7rem; background: #e7ebe8; }
.media-preview img, .media-preview video, .card-media img, .card-media video { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.file-result { margin: -.35rem 0 0; padding: .65rem; border-radius: .65rem; background: #edf5f0; font-weight: 700; }
.card-audio { width: 100%; margin-top: .5rem; }
.card-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #e7ebe8; }
.card-gallery img, .card-gallery video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #e7ebe8; }
.card-gallery video { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.capture-status { display: inline-block; margin-top: .65rem; padding: .3rem .55rem; border-radius: 999px; background: #fff1c9; color: #5c4300; font-size: .82rem; font-weight: 800; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-top: .5rem; }
.section-title h1 { margin-bottom: 0; }
.filters { display: grid; gap: .75rem; }
.cards { display: grid; gap: .8rem; }
.stock-card { overflow: hidden; margin: 0; padding: 0; }
.stock-card .body { padding: .9rem; }
.stock-card h2 { margin: 0; }
.stock-card .top { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.quantity { flex: none; padding: .25rem .55rem; border-radius: 999px; background: #e1ece5; font-weight: 850; }
.stock-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.journal { padding-left: 1.3rem; }
.journal li { margin-bottom: .7rem; padding-left: .25rem; }
.journal time { display: block; color: #69746d; font-size: .8rem; }
.empty { padding: 1.5rem; border: 1px dashed #9ba69f; border-radius: .8rem; color: #657069; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width: 640px) { body { padding-bottom: 1rem; } nav { position: static; width: min(100% - 1.5rem, 760px); margin: 0 auto .5rem; border: 0; border-radius: .8rem; } .cards { grid-template-columns: 1fr 1fr; } }
