:root { color-scheme: light dark; }
body { font-family: system-ui, sans-serif; max-width: 960px; margin: 0 auto; padding: 1.5rem; line-height: 1.4; }
.hidden { display: none !important; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card { border: 1px solid #8884; border-radius: 10px; padding: 1.25rem; margin-bottom: 1.25rem; }
.narrow { max-width: 360px; margin: 4rem auto; }
label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
input, textarea { display: block; width: 100%; box-sizing: border-box; padding: 0.5rem; margin-top: 0.25rem; font: inherit; }
button { padding: 0.5rem 1rem; font: inherit; cursor: pointer; }
button.link { background: none; border: none; text-decoration: underline; color: inherit; }
button.secondary { background: none; }
table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.4rem; border-bottom: 1px solid #8883; }
.error { color: #d33; }
.hint { font-size: 0.85rem; opacity: 0.75; }
.actions { display: flex; gap: 0.5rem; margin: 0.75rem 0; flex-wrap: wrap; }
.grid-form fieldset { border: 1px solid #8884; border-radius: 8px; margin-bottom: 0.75rem; }
.grid-form fieldset label { display: inline-block; width: auto; margin-right: 1rem; font-size: 0.85rem; }
.grid-form fieldset input { display: inline; width: auto; }
