.hmb-lms-root{box-sizing:border-box;margin:0;font-family:Arial,Helvetica,sans-serif;background:#f6f1e8;color:#2d241d;min-height:100vh}
.hmb-lms-root *{box-sizing:border-box}
.hmb-lms-root .hidden{display:none!important}
.hmb-lms-root .login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#efe4cf,#d6e0c2)}
.hmb-lms-root .login-card{width:min(440px,92vw);background:#fff;padding:32px;border-radius:8px;box-shadow:0 18px 50px rgba(0,0,0,.15)}
.hmb-lms-root .brand-mark{background:#6f4e37;color:white;width:70px;height:70px;border-radius:8px;display:grid;place-items:center;font-weight:800;font-size:24px;margin-bottom:16px}
.hmb-lms-root .login-card h1{font-size:24px;margin:0}
.hmb-lms-root .subtitle{font-weight:700;color:#6f4e37}
.hmb-lms-root .hint{font-size:13px;color:#777;line-height:1.5}
.hmb-lms-root .login-card label{display:block;margin-top:14px;font-weight:700}
.hmb-lms-root .login-card input,.hmb-lms-root .modal input,.hmb-lms-root .modal select,.hmb-lms-root .modal textarea,.hmb-lms-root select{width:100%;padding:12px;margin-top:6px;border:1px solid #d1c6b8;border-radius:8px;background:#fff;color:#2d241d}
.hmb-lms-root .login-card button,.hmb-lms-root button{border:none;border-radius:8px;padding:11px 16px;background:#6f4e37;color:white;font-weight:700;cursor:pointer;margin-top:16px}
.hmb-lms-root button.secondary{background:#2f5f45}
.hmb-lms-root button.danger{background:#a33b2e}
.hmb-lms-root .app{display:flex;min-height:100vh}
.hmb-lms-root .sidebar{width:240px;background:#2f241c;color:white;padding:22px;position:fixed;top:0;bottom:0;overflow:auto}
.hmb-lms-root .logo{font-size:22px;font-weight:900;margin-bottom:24px}
.hmb-lms-root .nav,.hmb-lms-root .logout{display:block;width:100%;text-align:left;background:transparent;border:1px solid rgba(255,255,255,.12);margin:8px 0;color:white}
.hmb-lms-root .nav.active,.hmb-lms-root .nav:hover{background:#6f4e37}
.hmb-lms-root .logout{background:#a33b2e}
.hmb-lms-root main{margin-left:240px;width:calc(100% - 240px);padding:24px}
.hmb-lms-root .topbar{background:white;border-radius:8px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 18px rgba(0,0,0,.06);margin-bottom:22px}
.hmb-lms-root .topbar h2{margin:0;font-size:22px}
.hmb-lms-root .topbar p{margin:6px 0 0;color:#6f4e37;font-weight:700}
.hmb-lms-root .section{display:none}
.hmb-lms-root .active-section{display:block}
.hmb-lms-root .cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px;margin-bottom:22px}
.hmb-lms-root .card{background:white;border-radius:8px;padding:22px;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.hmb-lms-root .card span{display:block;color:#777}
.hmb-lms-root .card strong{font-size:36px;color:#2f5f45}
.hmb-lms-root .panel,.hmb-lms-root .table-wrap{background:white;border-radius:8px;padding:20px;box-shadow:0 4px 18px rgba(0,0,0,.06);overflow:auto}
.hmb-lms-root .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.hmb-lms-root table{width:100%;border-collapse:collapse}
.hmb-lms-root th,.hmb-lms-root td{padding:12px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
.hmb-lms-root th{background:#f3eadc;color:#4a3526}
.hmb-lms-root .badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f0df;color:#2f5f45;font-weight:700;font-size:12px}
.hmb-lms-root .activity div{padding:10px;border-bottom:1px solid #eee}
.hmb-lms-root .modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:99999}
.hmb-lms-root .modal-card{width:min(720px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:8px;padding:24px;position:relative}
.hmb-lms-root .x{position:absolute;right:14px;top:8px;background:transparent;color:#333;font-size:26px;margin:0}
.hmb-lms-root .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.hmb-lms-root .report-box{margin-top:16px;background:#f8f3ea;border-radius:8px;padding:16px;white-space:pre-wrap}
.hmb-lms-root .small-actions button{margin:0 5px 0 0;padding:7px 10px}
.hmb-lms-root .link-btn{background:transparent;color:#2f5f45;text-decoration:underline;padding:0;margin:0;font-weight:800}
.hmb-lms-root .animal-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 18px;background:#f8f3ea;border-radius:8px;padding:14px;margin-bottom:12px}
.hmb-lms-root .animal-summary p{margin:4px 0}
.hmb-lms-root .quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.hmb-lms-root .quick-actions button{margin-top:0}
.hmb-lms-root .record-line{padding:10px;border-bottom:1px solid #eee;background:#fff}
.hmb-lms-root .empty{color:#777;padding:8px 0}
.hmb-lms-root .muted{color:#777;margin-left:8px;font-size:12px}
@media(max-width:850px){
  .hmb-lms-root .sidebar{position:relative;width:100%;height:auto}
  .hmb-lms-root .app{display:block}
  .hmb-lms-root main{margin:0;width:100%;padding:14px}
  .hmb-lms-root .cards{grid-template-columns:repeat(2,1fr)}
  .hmb-lms-root .topbar{display:block}
  .hmb-lms-root .grid{grid-template-columns:1fr}
  .hmb-lms-root .animal-summary{grid-template-columns:1fr}
}
