:root { --bg: #ffffff; --paper: #faf8f4; --line: #ece6dc; --text: #2a1710; --muted: #7b6a5d; --espresso: #2a1710; --ok: #2f6b3a; --ok-soft: #e7f2e8; --bad: #a3322b; --bad-soft: #fbeaea; --warn-soft: #fbf3e2; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 620px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
h1 { font-size: 24px; margin: 6px 0 14px; }
h2 { font-size: 19px; margin: 18px 0 10px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.top img { height: 26px; }
.who { font-size: 14px; color: var(--muted); text-align: right; }
button, .btn { font: inherit; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 12px 16px; min-height: 48px; cursor: pointer; }
button.primary { background: var(--espresso); color: #fff; border-color: var(--espresso); }
button.link { border: 0; background: none; color: var(--muted); padding: 8px; min-height: 0; text-decoration: underline; }
button:disabled { opacity: .5; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 112px; padding: 16px; text-align: left; background: #fff; border-radius: 18px; }
.tile strong { font-size: 18px; }
.tile .count { font-size: 30px; font-weight: 700; }
.tile .count.zero { color: var(--muted); font-weight: 500; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.list button.card { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--muted); font-size: 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.qty { font-size: 20px; font-weight: 700; }
.marks { display: flex; gap: 8px; }
.marks button { min-width: 92px; }
.marks button.same[aria-pressed="true"] { background: var(--ok); color: #fff; border-color: var(--ok); }
.marks button.diff[aria-pressed="true"] { background: var(--bad); color: #fff; border-color: var(--bad); }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); min-height: 48px; }
textarea { min-height: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button[aria-pressed="true"] { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.row3 { display: grid; grid-template-columns: 1fr 84px 96px 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
.row3 button { min-height: 44px; padding: 0; }
.bar { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.bar .grow { flex: 1; font-size: 20px; font-weight: 700; }
.bar button.primary { flex: 1; }
.banner { padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-size: 15px; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.warn { background: var(--warn-soft); }
.note { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.note:last-child { border-bottom: 0; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 588px; margin: 0 auto; background: var(--espresso); color: #fff; padding: 14px 16px; border-radius: 14px; font-size: 16px; z-index: 10; }
#toast.bad { background: var(--bad); }
.login { margin-top: 12vh; }
.login img { height: 40px; margin-bottom: 4px; }
.gap16 { margin-top: 16px; } .gap10 { height: 10px; }
.photos { margin-top: 10px; } .photos button { min-height: 44px; }
