*{box-sizing:border-box}
body{
  margin:0;
  font-family:"맑은 고딕",Arial,sans-serif;
  background:linear-gradient(180deg,#eef5ff 0%, #f8fbff 100%);
  color:#1f2937;
}
a{text-decoration:none;color:inherit}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}
.card{
  background:#fff;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(31,41,55,.08);
  padding:24px;
}
.title{
  font-size:32px;
  font-weight:800;
  margin:0 0 10px;
}
.subtitle{
  color:#6b7280;
  margin:0 0 20px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.stat-card{
  background:#ffffff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.stat-label{
  font-size:15px;
  color:#6b7280;
  margin-bottom:6px;
}
.stat-value{
  font-size:34px;
  font-weight:800;
}
.menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:24px;
}
.menu-btn{
  display:block;
  padding:20px;
  border-radius:20px;
  text-align:center;
  font-size:20px;
  font-weight:800;
  color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.btn-blue{background:#2563eb}
.btn-green{background:#16a34a}
.btn-purple{background:#7c3aed}
.btn-orange{background:#ea580c}
.btn-dark{background:#374151}
.btn-pink{background:#db2777}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.small-btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:12px;
  background:#eef2ff;
  color:#1e40af;
  font-weight:700;
}
.small-btn.gray{
  background:#f3f4f6;
  color:#374151;
}
.small-btn.red{
  background:#fee2e2;
  color:#b91c1c;
}

.form-card{
  max-width:700px;
  margin:40px auto;
  background:#fff;
  border-radius:24px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.form-title{
  text-align:center;
  font-size:30px;
  font-weight:800;
  margin-bottom:24px;
}
.label{
  display:block;
  margin:12px 0 8px;
  font-weight:700;
}
.input, .select, .textarea{
  width:100%;
  padding:15px 16px;
  border:1px solid #d1d5db;
  border-radius:14px;
  font-size:18px;
  background:#fff;
}
.textarea{
  min-height:130px;
  resize:vertical;
}
.primary-btn{
  width:100%;
  border:0;
  border-radius:16px;
  padding:16px;
  background:#2563eb;
  color:#fff;
  font-size:22px;
  font-weight:800;
  cursor:pointer;
  margin-top:18px;
}
.primary-btn.green{background:#16a34a}
.primary-btn.purple{background:#7c3aed}
.alert{
  background:#fef2f2;
  color:#b91c1c;
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:16px;
}
.table-wrap{
  overflow:auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.table{
  width:100%;
  border-collapse:collapse;
}
.table th, .table td{
  padding:14px 16px;
  border-bottom:1px solid #eef2f7;
  text-align:left;
  vertical-align:top;
}
.table th{
  background:#f8fafc;
  font-size:15px;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}
.badge-ok{background:#dcfce7;color:#166534}
.badge-gray{background:#f3f4f6;color:#374151}
.login-hero{
  max-width:520px;
  margin:60px auto;
}
.login-title{
  text-align:center;
  font-size:34px;
  font-weight:900;
  margin-bottom:10px;
}
.login-sub{
  text-align:center;
  color:#6b7280;
  margin-bottom:24px;
}
.home-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:24px;
}
.home-card{
  display:block;
  background:#fff;
  border-radius:24px;
  padding:28px 22px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  text-align:center;
}
.home-card .emoji{
  font-size:40px;
  margin-bottom:12px;
}
.home-card .home-title{
  font-size:24px;
  font-weight:900;
  margin-bottom:8px;
}
.home-card .home-desc{
  color:#6b7280;
  line-height:1.5;
}
.student-wrap{
  max-width:980px;
  margin:0 auto;
  padding:20px;
}
.student-title{
  font-size:38px;
  font-weight:900;
  text-align:center;
  margin:10px 0 20px;
}
.assignment-list{
  display:grid;
  gap:16px;
}
.assignment-card{
  background:#fff;
  border-radius:24px;
  padding:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.assignment-name{
  font-size:26px;
  font-weight:900;
  margin-bottom:8px;
}
.assignment-meta{
  color:#6b7280;
  margin-bottom:16px;
}
.big-start-btn{
  display:inline-block;
  padding:16px 28px;
  border-radius:18px;
  background:#16a34a;
  color:#fff;
  font-size:24px;
  font-weight:900;
}
.q-card{
  background:#fff;
  border-radius:28px;
  padding:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  margin-bottom:24px;
}
.q-number{
  font-size:22px;
  font-weight:900;
  color:#1d4ed8;
  margin-bottom:14px;
}
.q-text{
  font-size:30px;
  line-height:1.5;
  font-weight:800;
  margin-bottom:16px;
}
.q-image{
  display:block;
  max-width:280px;
  width:100%;
  margin:0 auto 18px;
  border-radius:20px;
}
.choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.choice-label{
  display:block;
  background:#f8fbff;
  border:3px solid #dbeafe;
  border-radius:22px;
  padding:18px;
  font-size:26px;
  font-weight:800;
  cursor:pointer;
  text-align:center;
  min-height:88px;
}
.choice-label input{
  display:none;
}
.choice-label:has(input:checked){
  background:#dbeafe;
  border-color:#2563eb;
}
.submit-big{
  display:block;
  width:100%;
  border:0;
  padding:20px;
  border-radius:22px;
  background:#2563eb;
  color:#fff;
  font-size:28px;
  font-weight:900;
  cursor:pointer;
}
.result-score{
  text-align:center;
  font-size:42px;
  font-weight:900;
  color:#16a34a;
  margin:10px 0 26px;
}

@media (max-width: 900px){
  .grid-3,.grid-2,.home-grid,.choice-grid{grid-template-columns:1fr}
  .topbar{flex-direction:column;align-items:flex-start}
  .title{font-size:28px}
  .q-text{font-size:26px}
}