:root{font:16px system-ui,sans-serif;color:#173429;background:#edf3ef}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#132b22;color:white;padding:1.1rem max(1rem,calc((100% - 850px)/2))}
.brand{font-weight:800;letter-spacing:.04em;text-decoration:none;color:white}.brand span{color:#a1d7a0}
main{max-width:850px;margin:0 auto;padding:1rem}
section{background:white;border:1px solid #cedbd1;border-radius:12px;padding:clamp(1rem,4vw,1.75rem);margin-bottom:1rem}
h1,h2,h3{line-height:1.2}h1{font-size:clamp(1.8rem,5vw,2.5rem)}h2{margin-top:0}p{line-height:1.55}
form{display:grid;gap:.8rem}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
label{display:grid;gap:.3rem;font-weight:600}
input,select{font:inherit;border:1px solid #869d90;border-radius:6px;padding:.55rem;max-width:100%;width:100%}
.tick{display:flex;align-items:flex-start;gap:.7rem;font-weight:500}
.tick input{width:1.15rem;height:1.15rem;flex:none;margin:.14rem 0 0;accent-color:#1c6241}
button,.button{font:inherit;font-weight:700;color:white;background:#1c6241;border:1px solid #1c6241;border-radius:7px;padding:.55rem .9rem;width:fit-content;text-decoration:none;cursor:pointer}
.secondary{background:#e9f2eb;color:#17482f;border-color:#a7beae}
button:disabled{opacity:.6;cursor:wait}
:focus-visible{outline:3px solid #bb7500;outline-offset:3px}
.actions{display:flex;gap:.65rem;flex-wrap:wrap}
details{padding:.65rem;border:1px solid #cedbd1;border-radius:6px}
summary{font-weight:700;cursor:pointer}
.records{padding-left:1.2rem}.records li{margin:.45rem 0}
.lesson,.review{border-bottom:1px solid #cedbd1;padding:.8rem 0}
#status{min-height:1.2em;color:#24543e}#status.error{color:#9b251e}

#camera-video,#photo-preview{display:block;width:min(100%,360px);max-height:420px;object-fit:contain;border-radius:8px;background:#132b22}
#camera-panel .actions{margin-top:.65rem}
#upload-status{margin:0}
