:root { --red: #b3261e; --green: #1f6f43; --ink: #1d1d1f; --muted: #666; --bg: #f7f4ef; --card: #fff; --line: #e3ddd3; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.top { background: var(--green); color: #fff; padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.top a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
nav a[aria-current] { text-decoration: underline; }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.stack { display: grid; gap: .75rem; }
label { display: grid; gap: .25rem; font-weight: 600; }
input, select, textarea { font: inherit; padding: .6rem .7rem; border: 1px solid #c9c2b6; border-radius: 8px; width: 100%; background: #fff; }
button, .button { font: inherit; display: inline-block; padding: .6rem 1rem; border: 0; border-radius: 8px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
button.small, .button.small { padding: .35rem .7rem; font-size: .9rem; }
button.secondary { background: #777; }
button.danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
button.link { background: none; color: inherit; padding: 0; text-decoration: underline; }
button:disabled { opacity: .35; cursor: default; }
form.inline { display: inline; }
.hint, .meta { color: var(--muted); font-weight: 400; font-size: .92rem; }
.meta { display: block; }
.error { background: #fde8e7; color: var(--red); border-radius: 8px; padding: .6rem .8rem; }
ul.people, ol.items, ul.items, ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.item { display: flex; gap: .75rem; justify-content: space-between; align-items: flex-start; }
.item-main { min-width: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: .35rem; flex-shrink: 0; }
.notes { margin: .35rem 0 0; white-space: pre-line; }
.is-bought { opacity: .8; border-left: 4px solid var(--green); }
.bought { margin: .35rem 0 0; color: var(--green); font-weight: 600; }
.removed { margin: .35rem 0 0; color: var(--red); font-style: italic; }
.newlink { border: 2px solid var(--green); margin-bottom: 1rem; }
@media (max-width: 30rem) { .item { flex-direction: column; } }
.tag { font-size: .8rem; background: #eee; border-radius: 6px; padding: .05rem .4rem; color: var(--muted); }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
label.check input { width: auto; }
.plain-fieldset { border: 0; padding: 0; margin: 0; }
