:root {
  --student-bg: radial-gradient(circle at 12% 10%, #f2f9ff 0%, #e9f4ff 38%, #f4f8ff 100%);
  --student-text: #1f3557;
  --student-soft: #5f7698;
  --student-card: rgba(255, 255, 255, 0.92);
  --student-border: rgba(115, 140, 192, 0.24);
  --student-shadow: 0 18px 42px rgba(44, 83, 156, 0.14);
  --student-brand: linear-gradient(140deg, #22c8ef, #2e6dff 64%, #4558f1);
  --student-accent: #0ea5e9;
}

* { box-sizing: border-box; }
body.student-theme {
  margin: 0;
  min-height: 100vh;
  background: var(--student-bg);
  color: var(--student-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.student-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 18px auto 34px;
}
.student-card {
  background: var(--student-card);
  border: 1px solid var(--student-border);
  border-radius: 22px;
  box-shadow: var(--student-shadow);
}
.student-main-card { padding: 24px; }
.student-title { margin: 0; font-size: 31px; font-weight: 900; }
.student-subtitle { margin: 6px 0 0; color: var(--student-soft); line-height: 1.6; }
.student-hero-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.student-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.student-step {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #325e9a;
  background: rgba(66, 144, 255, 0.12);
  border: 1px solid rgba(66, 144, 255, 0.26);
}
.student-step.active {
  color: #fff;
  background: var(--student-brand);
  border-color: transparent;
}

.student-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-field { display: flex; flex-direction: column; gap: 7px; }
.student-field.full { grid-column: 1 / -1; }
.student-label { font-size: 13px; font-weight: 800; color: #2f4362; display: flex; align-items: center; gap: 6px; }
.student-input, .student-select {
  border: 1px solid #cbd8e8;
  border-radius: 14px;
  background: #fff;
  color: var(--student-text);
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.student-input:focus, .student-select:focus {
  border-color: #4f9dff;
  box-shadow: 0 0 0 4px rgba(79, 157, 255, .16);
}
.student-date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.student-date-part { min-width: 0; }
.student-date-field .student-date-part:disabled {
  opacity: .85;
  cursor: not-allowed;
  background: #f1f5f9;
}
.student-helper { color: var(--student-soft); font-size: 12px; margin-top: 10px; }

.student-btn-row { margin-top: 18px; display: grid; gap: 10px; }
.student-btn {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.student-btn.primary { color: #fff; background: linear-gradient(135deg, #0ea5e9, #2563eb, #0f766e); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24); }
.student-btn.secondary { color: #2e5fa6; background: rgba(76, 145, 255, 0.12); border: 1px solid rgba(116, 147, 203, 0.32); }
.student-btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.student-btn[disabled] { opacity: .7; cursor: wait; transform: none; }

.student-profile-card { padding: 22px; }
.student-profile-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.student-chip { border: 1px solid var(--student-border); border-radius: 14px; background: rgba(255,255,255,.58); padding: 10px; }
.student-chip-label { font-size: 12px; color: var(--student-soft); }
.student-chip-value { margin-top: 3px; font-size: 13px; font-weight: 700; color: #18365f; word-break: break-word; }

.student-progress-wrap { margin-top: 12px; }
.student-progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--student-soft); margin-bottom: 6px; }
.student-progress-track { width: 100%; height: 11px; border-radius: 999px; background: rgba(148, 163, 184, .26); overflow: hidden; }
.student-progress-bar { height: 100%; border-radius: 999px; background: var(--student-brand); width: 0; transition: width .7s ease; }

.student-tools-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.student-tool-card { padding: 18px; border-radius: 20px; border: 1px solid var(--student-border); background: rgba(255,255,255,.7); transition: all .2s ease; }
.student-tool-card:hover { transform: translateY(-2px); box-shadow: var(--student-shadow); }
.student-tool-card.completed { background: linear-gradient(165deg, #f1fdf5, #fff); border-color: #bbf7d0; }
.student-tool-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.student-tool-icon { width: 52px; height: 52px; border-radius: 16px; display:grid; place-items:center; color:#fff; background: var(--student-brand); font-weight: 900; box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24); }
.student-tool-title { margin: 10px 0 5px; font-size: 20px; font-weight: 900; }
.student-tool-desc { margin: 0; color: var(--student-soft); font-size: 13px; min-height: 38px; }
.student-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}
.student-status.not_started { background: #e2e8f0; color: #334155; }
.student-status.in_progress { background: #fef3c7; color: #92400e; }
.student-status.completed { background: #dcfce7; color: #166534; }
.student-mini-progress { margin: 10px 0; width: 100%; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .24); overflow: hidden; }
.student-mini-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(135deg, #0ea5e9, #2563eb); }

.student-guide { margin-top: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--student-border); background: rgba(255,255,255,.62); }
.student-guide h3 { margin: 0 0 8px; font-size: 16px; }
.student-guide ul { margin: 0; padding-left: 20px; color: var(--student-soft); line-height: 1.7; }

.student-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; background: #fee2e2; color: #991b1b; }
.fade-in-up { opacity: 0; transform: translateY(12px); animation: fadeInUp .55s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .student-grid, .student-tools-grid { grid-template-columns: 1fr; }
  .student-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .student-date-row { grid-template-columns: 1fr; }
}
