:root { color-scheme: light dark; --bg: #fff; --fg: #1d2330; --muted: #5b6475; --accent: #2d6cdf; --line: #d9dee8; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151c; --fg: #e8ecf3; --muted: #9aa3b5; --line: #2a3140; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }
img, table { max-width: 100%; }

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; }

.add-item-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.add-item-form label { font-size: 0.9rem; color: var(--muted); }

.status-section { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 12px; }

.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.item-info { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.item-qty { font-weight: 400; color: var(--muted); }

.item-actions { display: flex; flex-direction: column; gap: 8px; }
.item-actions form { width: 100%; }
.item-actions .btn { width: 100%; }

.btn-secondary { background: var(--muted); }
.btn-danger { background: #c23b3b; }

.empty-note { color: var(--muted); }
