:root{
  --primary:#1e88e5;
  --bg:#ffffff;
  --muted:#f3f6fb;
  --text:#0f172a;
  --sub:#475569;
  --border:#e2e8f0;
  --danger:#dc2626;
  --ok:#16a34a;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #f8fbff, #ffffff);
}
a{color:var(--primary); text-decoration:none}
.container{max-width:980px; margin:0 auto; padding:16px}
.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:700}
.logo{
  width:34px; height:34px; border-radius:10px;
  background:var(--primary);
  box-shadow:0 10px 20px rgba(30,136,229,.25);
}
.card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 20px rgba(2,6,23,.05);
}
.grid{display:grid; gap:16px}
.grid-2{grid-template-columns: 1fr 1fr}
@media (max-width:760px){ .grid-2{grid-template-columns:1fr} }
.input, select{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:14px;
  background:#fff;
}
label{font-size:13px; color:var(--sub); display:block; margin:8px 0 6px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--primary);
  background:var(--primary);
  color:#fff;
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn.secondary{
  background:#fff; color:var(--primary);
}
.btn.danger{
  border-color:var(--danger);
  background:var(--danger);
}
.btn:disabled{opacity:.6; cursor:not-allowed}
.row{display:flex; gap:10px; flex-wrap:wrap}
.badge{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#ffffff;
  color:var(--sub);
  font-size:12px;
}
.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{background:var(--muted); color:var(--sub); font-weight:600}
.table tr:last-child td{border-bottom:none}
.small{font-size:12px; color:var(--sub)}
.hr{height:1px; background:var(--border); margin:12px 0}
.question-nav{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap:8px;
}
.qbtn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:10px 0;
  cursor:pointer;
  font-weight:700;
  color:var(--sub);
}
.qbtn.done{border-color:rgba(22,163,74,.3); background:rgba(22,163,74,.08); color:var(--ok)}
.qbtn.active{border-color:rgba(30,136,229,.4); background:rgba(30,136,229,.08); color:var(--primary)}
.notice{padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:#ffffff; color:black}
