:root{color-scheme:light;font-family:system-ui,sans-serif;color:#29221e;background:#f7efe4;--ink:#29221e;--red:#a5322c;--paper:#fffbf5;--line:#dfcfc0}
*{box-sizing:border-box} body{margin:0} main{max-width:660px;margin:auto;padding:24px 18px 60px}
header{background:#ecc6b2;border:1px solid #e4aa90;border-radius:28px;padding:26px 26px 30px;position:relative;overflow:hidden}
header::after{content:"";position:absolute;width:210px;height:210px;border:1px solid #b95b45;border-radius:50%;right:-57px;bottom:-64px;box-shadow:0 0 0 22px #ecc6b2,0 0 0 23px #b95b45,0 0 0 44px #ecc6b2,0 0 0 45px #b95b45;opacity:.44;pointer-events:none}
.region{font-size:.7rem;letter-spacing:.18em;font-weight:750} h1,h2{font-family:Georgia,serif} h1{position:relative;z-index:1;font-size:clamp(3.2rem,12vw,6rem);line-height:.85;letter-spacing:-.075em;margin:25px 0 0} h1 span{color:var(--red)}
#status{min-height:1.15em;margin:12px 2px;font-size:.9rem;color:var(--red)}
nav{display:flex;gap:9px;margin-bottom:14px} nav button{flex:1;overflow-wrap:anywhere} button,input,select{font:inherit}
button{border:1px solid var(--red);border-radius:14px;background:var(--red);color:white;padding:11px 14px;font-weight:700;cursor:pointer} button:disabled{opacity:.5;cursor:wait}
nav button[aria-pressed=false],.secondary{color:var(--red);background:var(--paper);border-color:var(--line)}
.search,.settings,.empty{padding:17px;border-radius:20px;background:var(--paper);border:1px solid var(--line)}
form{display:grid;gap:12px} label{display:grid;gap:5px;font-size:.85rem;font-weight:700} input,select{min-width:0;width:100%;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:10px}
summary{font-weight:750;color:var(--red);cursor:pointer} #add{border-top:1px solid var(--line);margin-top:15px;padding-top:14px} details form{margin-top:14px}
h2{font-size:1.8rem;margin:23px 0 9px;overflow-wrap:anywhere} #cards{display:grid;gap:12px} article{display:grid;grid-template-columns:90px 1fr;gap:15px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
article img,.placeholder{height:90px;width:90px;object-fit:contain;border-radius:12px;background:#f3e4d9} .placeholder{display:grid;place-items:center;color:var(--red);font-size:2rem}
article h3{margin:0 0 6px;overflow-wrap:anywhere} article p{margin:4px 0} article a{color:var(--red);font-weight:700} article button{padding:4px 8px;margin-left:8px;font-size:.8rem} .settings{margin-top:20px}
