* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", Arial, sans-serif; background: #f5f7fa; color: #243b53; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:18px 28px; background:#1f4e79; color:white; }
.topbar h1 { margin:0; font-size:22px; }
.topbar p { margin:6px 0 0; color:#d9eaf7; font-size:13px; }
.logout { color:#1f4e79; background:white; padding:9px 14px; text-decoration:none; border-radius:9px; font-weight:700; }
.layout { display:grid; grid-template-columns: 360px 1fr; gap:18px; padding:18px; height: calc(100vh - 82px); }
.panel { background:white; border-radius:16px; box-shadow: 0 4px 14px rgba(16,42,67,.08); padding:18px; overflow:auto; }
h2 { margin:0 0 12px; font-size:18px; }
.small { font-size:11px; color:#627d98; word-break:break-all; }
.search-input { width:100%; padding:12px; border:1px solid #d9e2ec; border-radius:10px; margin:10px 0 14px; }
.student-list { display:flex; flex-direction:column; gap:8px; }
.student-item { text-align:left; border:1px solid #d9e2ec; background:#f8fbff; border-radius:12px; padding:12px; cursor:pointer; }
.student-item:hover { border-color:#1f4e79; background:#eef6ff; }
.student-item b { display:block; font-size:14px; margin-bottom:4px; }
.student-item span { color:#627d98; font-size:12px; }
.result-header { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.badge.muted { background:#e6edf5; color:#52606d; }
.badge.ok { background:#e3fcec; color:#147d64; }
.badge.warn { background:#fffbea; color:#b7791f; }
.empty { padding:40px; text-align:center; color:#829ab1; border:2px dashed #d9e2ec; border-radius:14px; }
.hidden { display:none; }
.encrypted textarea { width:100%; height:160px; border:1px solid #d9e2ec; border-radius:10px; padding:10px; font-family:Consolas, monospace; }
.card { border:1px solid #d9e2ec; border-radius:14px; padding:14px; margin:12px 0; background:#fff; }
.card h3 { margin:0 0 8px; color:#1f4e79; }
.meta { display:grid; grid-template-columns: repeat(2, minmax(180px,1fr)); gap:8px; background:#f8fbff; padding:12px; border-radius:12px; margin-bottom:14px; }
.meta div { font-size:13px; }
pre { white-space:pre-wrap; word-break:break-word; background:#f8fbff; border-radius:10px; padding:12px; line-height:1.55; }
.error { background:#fdecea; color:#922b21; border-radius:10px; padding:10px; margin:10px 0; }
.login-page { display:grid; place-items:center; min-height:100vh; }
.login-card { width:min(420px, 92vw); background:white; border-radius:18px; padding:28px; box-shadow:0 8px 28px rgba(16,42,67,.13); }
.login-card h1 { margin-top:0; }
.login-card input { width:100%; padding:13px; border:1px solid #d9e2ec; border-radius:10px; margin:12px 0; }
.login-card button { width:100%; padding:13px; background:#1f4e79; color:white; border:0; border-radius:10px; font-weight:700; cursor:pointer; }
.sub,.hint { color:#627d98; font-size:13px; }

.result-page {
  min-width: 0;
}

.student-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 22px;
  border-radius: 18px;

  color: white;

  background:
    linear-gradient(
      125deg,
      #173b63 0%,
      #245f96 72%,
      #2e72ad 100%
    );

  box-shadow:
    0 12px 28px rgba(28, 75, 116, 0.18);
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.avatar {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.17);

  border:
    1px solid rgba(255, 255, 255, 0.22);

  font-size: 25px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 5px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.student-hero .eyebrow {
  color: #d4e9fa;
}

.student-hero h2 {
  margin: 0;
  font-size: 22px;
}

.hero-subtitle {
  margin: 6px 0 0;

  color: #d8e8f5;
  font-size: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.hero-badges span {
  padding: 6px 9px;

  background:
    rgba(255, 255, 255, 0.13);

  border:
    1px solid rgba(255, 255, 255, 0.17);

  border-radius: 999px;

  font-size: 10px;
}

.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(145px, 1fr));

  gap: 10px;
  margin: 14px 0;
}

.summary-card {
  min-height: 77px;

  padding: 14px;

  border: 1px solid #d9e2ec;
  border-radius: 14px;

  background: white;
}

.summary-card span {
  display: block;

  margin-bottom: 8px;

  color: #627d98;
  font-size: 10px;
}

.summary-card strong {
  display: block;

  color: #243b53;
  font-size: 14px;

  word-break: break-word;
}

.report-layout {
  display: grid;

  grid-template-columns:
    225px minmax(0, 1fr);

  gap: 14px;
  align-items: start;
}

.report-nav {
  position: sticky;
  top: 10px;

  padding: 10px;

  border: 1px solid #d9e2ec;
  border-radius: 15px;

  background: white;
}

.nav-title {
  margin: 4px 6px 9px;

  color: #627d98;
  font-size: 10px;
  font-weight: 800;
}

.report-nav-item {
  width: 100%;

  display: grid;

  grid-template-columns:
    27px minmax(0, 1fr);

  gap: 8px;
  align-items: center;

  padding: 9px;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: #243b53;

  text-align: left;
  cursor: pointer;
}

.report-nav-item:hover {
  background: #f3f7fb;
}

.report-nav-item.active {
  background: #eaf3fc;
  color: #173b63;
}

.report-nav-item > span {
  width: 27px;
  height: 27px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background: #edf2f6;
  color: #668096;

  font-size: 10px;
  font-weight: 900;
}

.report-nav-item.active > span {
  background: #2563a6;
  color: white;
}

.report-nav-item strong,
.report-nav-item small {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-nav-item strong {
  font-size: 11px;
}

.report-nav-item small {
  margin-top: 3px;

  color: #627d98;
  font-size: 9px;
}

.report-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-width: 0;
}

.report-card {
  scroll-margin-top: 12px;

  overflow: hidden;

  border: 1px solid #d9e2ec;
  border-radius: 16px;

  background: white;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 16px 18px;

  border-bottom: 1px solid #d9e2ec;

  background: #fbfdff;
}

.report-card-header p {
  margin: 0 0 4px;

  color: #2563a6;
  font-size: 9px;
  font-weight: 800;
}

.report-card-header h3 {
  margin: 0;
  font-size: 16px;
}

.analysis-text {
  padding: 17px 18px 20px;

  font-size: 12px;
  line-height: 1.7;
}

.analysis-text h4 {
  margin: 18px 0 8px;

  padding-left: 9px;

  border-left: 3px solid #2563a6;

  color: #173b63;
  font-size: 13px;
}

.analysis-text h4:first-child {
  margin-top: 0;
}

.analysis-text p {
  margin: 7px 0;
}

.analysis-text ul {
  margin: 7px 0 12px;
  padding-left: 19px;
}

.analysis-text li {
  margin: 5px 0;
}

.metric-line {
  display: grid;

  grid-template-columns:
    minmax(120px, 0.6fr)
    minmax(120px, 1fr)
    auto;

  gap: 10px;
  align-items: center;

  margin: 6px 0;
  padding: 9px 11px;

  border-radius: 10px;

  background: #f6f9fc;
}

.metric-line span:first-child {
  color: #5e758a;
}

.metric-line strong {
  color: #243b53;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 7px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-status.success {
  background: #e4f7ef;
  color: #237a57;
}

.mini-status.warning {
  background: #fff4dc;
  color: #9a6611;
}

.mini-status.danger {
  background: #fde8e8;
  color: #b33a3a;
}

.mini-status.neutral {
  background: #edf2f6;
  color: #5f7283;
}

.no-data,
.no-report {
  padding: 28px;

  color: #627d98;
  text-align: center;
}

@media (max-width: 980px) {
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .student-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .metric-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* =========================================================
   공통 레이아웃 보강
========================================================= */
body {
  background: #f4f7fb;
  color: #243b53;
  margin: 0;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px 24px;
  align-items: start;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.panel.left,
.panel.right {
  padding: 18px;
  overflow: auto;
}

.hidden {
  display: none !important;
}

.small {
  font-size: 12px;
  color: #627d98;
}

.empty {
  padding: 32px 20px;
  text-align: center;
  color: #627d98;
  background: #f8fbff;
  border: 1px dashed #c7d2de;
  border-radius: 14px;
  margin-top: 12px;
}

.error {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecec;
  color: #b42318;
  font-size: 13px;
}

/* =========================================================
   상단 헤더
========================================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #173b63 0%, #2563a6 100%);
  color: white;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 6px 0 0;
  color: #d9eaf7;
  font-size: 13px;
}

.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.logout:hover {
  background: rgba(255,255,255,0.22);
}

/* =========================================================
   최상단 메인 탭
========================================================= */
.main-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 20px 0;
}

.main-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #d9e2ec;
  color: #486581;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.main-tab.active {
  background: #2563a6;
  color: white;
}

.main-tab:hover {
  background: #bcccdc;
}

/* =========================================================
   학생 목록
========================================================= */
.search-input {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #2563a6;
  box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.14);
}

.student-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.student-item {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.student-item:hover {
  transform: translateY(-1px);
  background: #eef6ff;
  border-color: #b8d3f0;
}

.student-item b {
  display: block;
  font-size: 15px;
  color: #102a43;
}

.student-item span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #627d98;
}

/* =========================================================
   결과 헤더
========================================================= */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.result-header h2 {
  margin: 0;
  font-size: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge.muted {
  background: #edf2f7;
  color: #627d98;
}

.badge.ok {
  background: #e6f6ec;
  color: #137333;
}

.badge.warn {
  background: #fff4db;
  color: #9c6500;
}

/* =========================================================
   학생 프로필 영역
========================================================= */
.student-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #173b63 0%, #2563a6 100%);
  color: white;
  margin-bottom: 16px;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 30px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #d7e9fa;
}

#studentTitle {
  margin: 0;
  font-size: 22px;
}

.hero-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #d8e7f6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 11px;
}

/* =========================================================
   학생 상세 탭
========================================================= */
.student-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.student-detail-tab {
  border: 1px solid #cbd5e1;
  background: #f8fbff;
  color: #486581;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.student-detail-tab.active {
  background: #2563a6;
  color: white;
  border-color: #2563a6;
}

.student-detail-panel {
  min-width: 0;
}

/* =========================================================
   요약 카드
========================================================= */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: white;
  padding: 14px;
}

.summary-card span {
  display: block;
  font-size: 11px;
  color: #627d98;
  margin-bottom: 7px;
}

.summary-card strong {
  display: block;
  font-size: 15px;
  color: #102a43;
  word-break: break-word;
}

/* =========================================================
   분석 결과 카드
========================================================= */
.report-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.report-nav {
  position: sticky;
  top: 12px;
  align-self: start;

  max-height: calc(100vh - 40px);
  overflow-y: auto;

  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}

.nav-title {
  margin: 4px 6px 10px;
  color: #627d98;
  font-size: 11px;
  font-weight: 800;
}

.report-nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.report-nav-item:hover {
  background: #f3f7fb;
}

.report-nav-item.active {
  background: #eaf3fc;
}

.report-nav-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf2f7;
  font-size: 11px;
  font-weight: 800;
}

.report-nav-item.active > span {
  background: #2563a6;
  color: white;
}

.report-nav-item strong,
.report-nav-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-nav-item strong {
  font-size: 12px;
  color: #102a43;
}

.report-nav-item small {
  margin-top: 3px;
  font-size: 10px;
  color: #627d98;
}

.report-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-card {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  overflow: hidden;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fbfdff;
  border-bottom: 1px solid #e5edf5;
}

.report-card-header p {
  margin: 0 0 4px;
  color: #2563a6;
  font-size: 10px;
  font-weight: 800;
}

.report-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #102a43;
}

.analysis-text {
  padding: 18px;
  font-size: 14px;
  line-height: 1.75;
}

.analysis-text h4 {
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #2563a6;
  color: #173b63;
}

.analysis-text p {
  margin: 8px 0;
}

.analysis-text ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.metric-line {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f9fc;
  margin: 8px 0;
}

/* =========================================================
   상태 배지
========================================================= */
.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-status.success {
  background: #e5f7ee;
  color: #18794e;
}

.mini-status.warning {
  background: #fff4db;
  color: #9c6500;
}

.mini-status.danger {
  background: #fdecec;
  color: #b42318;
}

.mini-status.neutral {
  background: #edf2f7;
  color: #627d98;
}

/* =========================================================
   수강과목
========================================================= */
.subject-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
}

.subject-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #cfe3f8;
  color: #17456f;
  font-size: 13px;
  font-weight: 600;
}

.activity-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}

.activity-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fbff;
}

.activity-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #102a43;
}

.activity-card p {
  margin: 0;
  font-size: 13px;
  color: #627d98;
}

.activity-card strong {
  color: #173b63;
  font-size: 15px;
  white-space: nowrap;
}

/* =========================================================
   학생 참가활동
========================================================= */
.activity-detail-card {
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: white;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.activity-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.activity-detail-heading span {
  display: inline-block;
  font-size: 12px;
  color: #627d98;
  margin-bottom: 6px;
}

.activity-detail-heading h3 {
  margin: 0;
  font-size: 20px;
  color: #173b63;
}

.activity-detail-card p {
  margin: 10px 0 0;
  color: #243b53;
  line-height: 1.7;
  font-size: 14px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.keyword-list span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #2563a6;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   학교 창체활동
========================================================= */
.school-activity-page {
  padding: 18px 20px 24px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.page-heading h2 {
  margin: 0;
  font-size: 28px;
  color: #102a43;
}

.page-heading p {
  margin: 8px 0 0;
  color: #627d98;
}

.school-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.school-activity-card {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.school-activity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.school-activity-card-header h3 {
  margin: 8px 0 0;
  font-size: 22px;
  color: #173b63;
}

.activity-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf5ff;
  color: #2563a6;
  font-size: 12px;
  font-weight: 800;
}

.activity-organization {
  margin: 0 0 12px;
  font-size: 13px;
  color: #627d98;
}

.activity-description {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #243b53;
}

.activity-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.activity-meta-grid div {
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e1eaf2;
  padding: 10px 12px;
}

.activity-meta-grid span {
  display: block;
  font-size: 11px;
  color: #627d98;
  margin-bottom: 6px;
}

.activity-meta-grid strong {
  display: block;
  font-size: 13px;
  color: #102a43;
  word-break: break-word;
}

.activity-note {
  margin-top: 12px;
  font-size: 12px;
  color: #7b8794;
}

/* =========================================================
   암호문 영역
========================================================= */
.encrypted {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: #f8fbff;
}

.encrypted textarea {
  width: 100%;
  min-height: 180px;
  margin-top: 10px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #d9e2ec;
  padding: 12px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 12px;
  background: white;
}

/* =========================================================
   데이터 없음
========================================================= */
.no-data,
.no-report {
  padding: 24px;
  text-align: center;
  color: #627d98;
}

/* =========================================================
   반응형
========================================================= */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-line {
    grid-template-columns: 1fr;
  }

  .activity-meta-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   분석 항목 스크롤 고정
========================================================= */

/* 기존 고정 높이와 패널 내부 스크롤 해제 */
.layout {
  height: auto;
  min-height: calc(100vh - 82px);
}

.panel.right {
  overflow: visible;
}

/* 분석 항목 메뉴를 화면에 고정 */
.report-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 20;
}