:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #f4f2ec;
  color: #292520;
  accent-color: #873930;
  --border: #cfc3b3;
  --accent: #79342d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
:focus-visible { outline: 3px solid #ae5539; outline-offset: 3px; }
.mast { background: #2c211d; color: #f9f3e8; padding: .8rem max(1rem, calc((100vw - 1110px)/2)); display: flex; justify-content: space-between; gap: 1rem; }
.mast div { display: flex; align-items: center; gap: .65rem; }
.mast a { color: inherit; text-decoration: none; font-weight: 720; }
.mast button { border-color: #ab9181; color: inherit; background: #412e28; }
main { max-width: 1110px; padding: 1.5rem; margin: 0 auto; }
.login { max-width: 27rem; margin: 4rem auto; background: #fffdfa; padding: clamp(1.2rem, 5vw, 2rem); border: 1px solid var(--border); border-radius: 14px; }
h1 { font: 700 clamp(1.9rem,4vw,2.75rem)/1.1 Georgia, serif; margin: 0 0 1.3rem; }
h2 { font-size: 1.12rem; margin: 1rem 0; }
form { display: grid; gap: 1rem; max-width: 39rem; }
label { font-weight: 650; display: grid; gap: .38rem; }
.check { display: flex; align-items: center; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select { padding: .56rem .67rem; border: 1px solid #aa9b89; border-radius: 6px; background: #fffefa; color: inherit; width: 100%; }
textarea { resize: vertical; }
button { border: 1px solid #9c8873; padding: .5rem .8rem; min-height: 42px; border-radius: 6px; color: inherit; background: #fffdfa; cursor: pointer; }
form button[type=submit] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 660; justify-self: start; }
button:hover { filter: brightness(.95); }
button:disabled { cursor: wait; opacity: .63; }
[role=status]:empty { display: none; }
[role=status] { color: #61312a; margin-bottom: 1rem; }
nav { display: flex; gap: .4rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
nav button[aria-current=page] { color: white; background: var(--accent); border-color: var(--accent); }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); max-width: 40rem; border-block: 1px solid var(--border); padding-block: 1rem; }
.overview dd { margin: .25rem 0 0; font-size: 2rem; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; flex-wrap: wrap; }
.actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.listing { list-style: none; padding: 0; margin: 1rem 0; max-width: 52rem; }
.listing li { border-bottom: 1px solid var(--border); padding: .7rem 0; overflow-wrap: anywhere; }
.listing button { text-align: left; background: transparent; border: none; padding: .3rem 0; width: 100%; }
.listing button:hover { text-decoration: underline; }
.listing p { white-space: pre-wrap; margin: .25rem 0; }
.detail { border-top: 2px solid var(--border); padding-top: 1rem; margin-top: 1.5rem; }
