:root{
  --red:#cf1018;
  --dark:#171717;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f7f7f8;
  --white:#fff;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--dark);
  background:var(--bg);
}
.hidden{display:none!important}
.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:linear-gradient(135deg,#fff 0%,#f7f7f8 55%,#ffe9eb 100%);
}
.login-card{
  width:100%;
  max-width:430px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:34px;
  box-shadow:0 20px 60px rgba(0,0,0,.08);
}
.login-logo{display:block;max-width:210px;margin:0 auto 20px}
.login-card h1{font-size:28px;margin:0 0 8px;text-align:center}
.login-card p{text-align:center;color:var(--muted)}
label{display:block;font-weight:700;margin:18px 0 8px}
input{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:14px;
  font-size:16px;
}
button{
  border:0;
  background:var(--red);
  color:#fff;
  padding:13px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  font-size:15px;
}
button:hover{filter:brightness(.96)}
.login-card button{width:100%;margin-top:20px}
.secondary{
  background:#fff;
  color:var(--red);
  border:1px solid #f0b8bc;
}
.error{color:var(--red)!important;font-weight:700;min-height:20px}
.hint{font-size:12px}
.app{display:grid;grid-template-columns:330px 1fr;min-height:100vh}
.sidebar{
  background:#fff;
  border-right:1px solid var(--line);
  padding:22px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}
.brand{display:flex;gap:12px;align-items:center;margin-bottom:20px}
.brand img{width:70px;height:70px;object-fit:contain}
.brand strong{display:block}
.brand span{display:block;color:var(--muted);font-size:13px;margin-top:4px}

.user-box{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:14px;
  background:#fff;
}
.user-box span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:5px;
}
.user-box strong{
  display:block;
  font-size:13px;
  overflow-wrap:anywhere;
}

.progress-box{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin-bottom:18px;
}
.progress-box span{color:var(--muted)}
.progress-box strong{float:right}
.progress{height:10px;background:#f1f1f1;border-radius:99px;margin-top:14px;overflow:hidden}
.progress div{height:100%;width:0;background:var(--red);border-radius:99px}
#moduleNav{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.nav-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  background:#fff;
  color:#222;
  border:1px solid var(--line);
  padding:11px 12px;
  border-radius:12px;
}
.nav-item.active{border-color:var(--red);box-shadow:0 0 0 3px rgba(207,16,24,.08)}
.nav-item.done::after{content:"✓";color:var(--red);font-weight:900}
.content{padding:34px;max-width:1150px;width:100%;margin:0 auto}
.topbar{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:22px;
}
.topbar h1{font-size:34px;margin:0 0 7px}
.topbar p{margin:0;color:var(--muted)}
.module-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:34px;
  box-shadow:0 8px 30px rgba(0,0,0,.04);
}
.module-card h2{font-size:30px;margin-top:0}
.module-card h3{margin-top:28px;color:var(--red)}
.module-card p{line-height:1.65}
.module-card li{margin:8px 0;line-height:1.55}
.note{
  background:#fff7f7;
  border-left:5px solid var(--red);
  padding:14px 16px;
  border-radius:12px;
  margin:18px 0;
}
.questions{
  background:#fafafa;
  border:1px solid var(--line);
  padding:18px;
  border-radius:16px;
  margin-top:22px;
}
.actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:20px 0;
}
.certificate{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  margin-top:22px;
}
@media(max-width:900px){
  .app{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
  .content{padding:18px}
  .topbar{flex-direction:column}
}
@media print{
  .sidebar,.topbar button,.actions,.certificate button{display:none!important}
  .app{display:block}
  .content{padding:0}
  .module-card{box-shadow:none;border:0}
}
