:root{font-family:system-ui,sans-serif;color:#251c38;background:#f7f4fc;color-scheme:light}*{box-sizing:border-box}header{display:flex;justify-content:space-between;gap:1rem;padding:1.4rem max(5vw,1rem);background:#321b54;color:white}main{max-width:75rem;margin:4rem auto;padding:0 5vw}h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.05;margin:0 0 1.6rem}h2{font-size:1rem;margin:0}form{display:grid;gap:1rem;max-width:27rem}label{display:grid;gap:.4rem;font-weight:600}input,button{font:inherit;padding:.8rem 1rem;border-radius:.65rem}input{border:1px solid #a89bb9;background:white}button{border:0;background:#5b2b97;color:white;cursor:pointer;font-weight:650}button:disabled{opacity:.6;cursor:wait}:focus-visible{outline:3px solid #a86204;outline-offset:3px}.actions{display:flex;gap:.6rem;margin-bottom:1.5rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}article{background:white;border:1px solid #e2daeb;border-radius:1rem;padding:1.25rem}article p{font-size:1.45rem;font-weight:650;margin:.8rem 0 0}#status{min-height:1.5rem;color:#553477}
nav{display:flex;gap:.35rem;flex-wrap:wrap;padding-bottom:1.25rem}nav button{background:#ece3f9;color:#382057}nav button[aria-current=page]{background:#5b2b97;color:white}#summary[hidden]{display:none}#modules{margin-top:1.5rem;display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}.menu{padding:0;overflow:hidden}.menu h2{padding:1rem 1.15rem;background:#ece3f9}.menu button{display:block;border-radius:0;background:white;color:#39215a;text-align:left;width:100%;border-top:1px solid #eee7f5}.menu button:hover{background:#f9f4ff}.menu small{display:block;color:#645b70;margin-top:.3rem;font-weight:400}#detail{margin-top:1.5rem}#detail h2{font-size:1.45rem;margin:1.25rem 0}.records{display:grid;gap:.65rem}.record{padding:.85rem 1rem;border:1px solid #e2daeb;border-radius:.7rem;background:white;white-space:pre-wrap;overflow-wrap:anywhere}.record p{margin:.35rem 0 0}.records button{text-align:left}.photo{display:block;max-width:100%;max-height:24rem;margin-top:.5rem}.notice{background:#fff4c7;padding:1rem;border-radius:.65rem}
#modules[hidden]{display:none}.cards button{margin-top:.7rem}.record button{margin-top:.5rem}
.family h3{margin:0 0 .5rem}.family button{display:inline-block;margin:.25rem .4rem .25rem 0}

.detail-editor fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.detail-editor label { display: grid; gap: .3rem; margin-bottom: .8rem; }
.detail-editor input, .detail-editor textarea, .detail-editor select {
    font: inherit;
    color: inherit;
    padding: .6rem;
    border: 1px solid #978ba9;
    border-radius: .5rem;
    width: 100%;
}
.detail-editor textarea { min-height: 5rem; resize: vertical; }
.detail-editor fieldset .record { margin-bottom: .8rem; }
