:root {
  --student-ivory: #fffaf0;
  --student-ivory-soft: #fffdf7;
  --student-ink: #17324f;
  --student-muted: #60758a;
  --student-green: #16815c;
  --student-gold: #d8a845;
  --student-line: rgba(195, 137, 47, 0.42);
}

* { box-sizing: border-box; }

body.student-dashboard-body {
  min-width: 320px;
  margin: 0;
  color: var(--student-ink);
  background: #88d7ed url("/token-assets/student-home/economy-learning-bg.png") center bottom / cover fixed no-repeat;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

.student-admin-preview-switchbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #263c57;
  background: #0d1827;
  padding: 8px 22px;
  color: #eef5ff;
  box-shadow: 0 8px 24px rgb(4 10 20 / 28%);
}
.student-admin-preview-switchbar[hidden] { display: none !important; }
.student-admin-preview-switchbar > div:first-child { display: flex; align-items: center; gap: 10px; }
.student-admin-preview-switchbar span { color: #86a3c7; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.student-admin-preview-switchbar strong { font-size: 13px; }
.student-admin-preview-actions { display: flex; align-items: center; gap: 8px; }
.student-admin-preview-actions a,
.student-admin-preview-audit button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3c5b80;
  border-radius: 7px;
  background: #13253b;
  padding: 0 13px;
  color: #e3efff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.student-admin-preview-actions a:last-child { border-color: #4b8ddd; background: #1c5a9d; color: #fff; }
.student-admin-preview-audit { display: flex; align-items: center; gap: 8px; }
.student-admin-preview-audit[hidden] { display: none !important; }
.student-admin-preview-audit label { color: #b7cae3; font-size: 10px; font-weight: 900; }
.student-admin-preview-audit input { min-height: 36px; border: 1px solid #3c5b80; border-radius: 7px; background: #081322; padding: 0 10px; color: #fff; }
body.teacher-student-preview .student-economy-app { min-height: calc(100vh - 54px); }
body.teacher-student-preview .student-economy-app button,
body.teacher-student-preview .student-economy-app input,
body.teacher-student-preview .student-economy-app select,
body.teacher-student-preview .student-economy-app textarea { pointer-events: none; }
body.teacher-student-preview .student-switch-button { display: none; }

.student-home-teacher-mode {
  position: fixed;
  z-index: 75;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  border: 1px solid #31445e;
  border-radius: 999px;
  background: #101a29;
  padding: 0 18px;
  color: #f1f5fb;
  box-shadow: 0 10px 28px rgb(15 23 42 / 32%);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.student-home-teacher-mode:hover,
.student-home-teacher-mode:focus-visible { border-color: #4c8ee9; background: #183455; outline: 3px solid rgb(76 142 233 / 22%); }

.student-economy-app { min-height: 100vh; }

.student-economy-sidebar { display: none; }

.student-economy-main { min-width: 0; }

.student-home-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 14px;
}

.student-wallet-stage {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px clamp(16px, 2vw, 26px) 24px;
  overflow: hidden;
  border: 2px solid #e2b75e;
  border-radius: 28px;
  background: var(--student-ivory);
  box-shadow: 0 18px 38px rgba(81, 61, 23, 0.2), inset 0 0 0 5px rgba(255, 255, 255, 0.62);
}

.student-wallet-leaf {
  position: absolute;
  z-index: 4;
  width: clamp(48px, 5vw, 70px);
  height: clamp(48px, 5vw, 70px);
  object-fit: contain;
  pointer-events: none;
}

.student-wallet-leaf.is-top-left { top: -18px; left: 0; transform: translateX(-20px); }
.student-wallet-leaf.is-top-right { top: -18px; right: 0; transform: translateX(20px) scaleX(-1); }
.student-wallet-leaf.is-bottom-left { bottom: -18px; left: 0; transform: translateX(-20px) scaleY(-1); }
.student-wallet-leaf.is-bottom-right { right: 0; bottom: -18px; transform: translateX(20px) scale(-1); }

.student-wallet-level-line {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(210px, 0.82fr) minmax(420px, 1.75fr);
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 2vw, 28px) 16px;
}

.student-level-title,
.student-level-rank,
.student-level-actions,
.student-level-title > div,
.student-level-rank > div { min-width: 0; }

.student-level-title,
.student-level-rank { display: flex; align-items: center; gap: 12px; }
.student-level-title { padding-right: 18px; border-right: 1px solid var(--student-line); }
.student-level-title > img { width: 50px; height: 50px; object-fit: contain; }
.student-level-title span { color: #3d3427; font-size: 11px; font-weight: 950; letter-spacing: 0.08em; }
.student-level-title h1 { margin: 2px 0 5px; color: var(--student-ink); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.05; }
.student-level-title button {
  min-height: 44px;
  border: 1px solid #e4b751;
  border-radius: 9px;
  background: #fff4cb;
  color: #765012;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.student-level-rank > img { width: 52px; height: 52px; object-fit: contain; }
.student-level-rank strong { display: block; color: var(--student-ink); font-size: clamp(21px, 2.1vw, 29px); }
.student-level-rank p { margin: 3px 0 0; overflow: hidden; color: var(--student-green); font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.student-level-rank #studentTodayLabel { color: var(--student-muted); font-size: 10px; }
.student-level-rank.is-unavailable strong { font-size: clamp(17px, 1.7vw, 22px); }
.student-level-rank.is-unavailable p { color: var(--student-muted); }

.student-level-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.student-token-chip,
.student-switch-button {
  min-height: 68px;
  border: 1px solid rgba(195, 137, 47, 0.34);
  border-radius: 13px;
  background: #fff8e8;
  color: var(--student-ink);
  text-decoration: none;
}
.student-token-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px 7px;
  padding: 8px 10px;
}
.student-token-chip.is-growth { background: #f3faee; }
.student-token-chip img { grid-row: 1 / 3; width: 32px; height: 32px; align-self: center; object-fit: contain; }
.student-token-chip span { color: #49617a; font-size: 10px; font-weight: 900; }
.student-token-chip strong { overflow: hidden; color: var(--student-ink); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.student-switch-button { display: grid; align-content: center; justify-items: center; padding: 8px; font: inherit; cursor: pointer; }
.student-switch-button span { font-size: 9px; font-weight: 850; }
.student-switch-button strong { font-size: 13px; }
.student-switch-button:disabled { opacity: 0.55; cursor: default; }
.student-session-context { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.student-wallet-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.student-action-first { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.student-wallet-panel,
.student-tool-board { min-width: 0; border: 1px solid var(--student-line); border-radius: 18px; background: var(--student-ivory-soft); }
.student-task-panel { grid-column: 1 / span 8; padding: 20px; }
.student-notice-panel { grid-column: 9 / -1; padding: 20px; }
.student-panel-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 12px; }
.student-panel-heading > img { width: 38px; height: 38px; object-fit: contain; }
.student-panel-heading h2 { margin: 0; color: #19375d; font-size: 21px; }
.student-panel-heading p { margin: 2px 0 0; color: var(--student-muted); font-size: 10px; font-weight: 800; }
.student-panel-heading > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(22, 129, 92, 0.3);
  border-radius: 10px;
  background: #eaf6ef;
  color: var(--student-green);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.student-task-panel .student-panel-heading > a { background: var(--student-green); color: #fff; box-shadow: 0 7px 15px rgba(22, 129, 92, 0.2); }

.student-summary-list { display: grid; gap: 7px; }
.student-summary-row {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(195, 137, 47, 0.23);
  border-radius: 11px;
  background: #fffdf8;
  color: var(--student-ink);
  text-decoration: none;
}
.student-summary-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.student-summary-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #7b6b56; font-size: 9px; font-weight: 800; white-space: nowrap; }
.student-summary-badge { padding: 4px 6px; border-radius: 7px; background: #eaf6ef; color: var(--student-green); }
.student-summary-message { margin: 0; padding: 14px; border-radius: 10px; background: #fffdf8; color: var(--student-muted); font-size: 11px; font-weight: 800; text-align: center; }
[data-state="error"] .student-summary-message { background: #fff1f2; color: #b42318; }

.student-life-strip { grid-column: 1 / span 8; padding: 15px 20px 18px; }
.student-life-strip > h2 { margin: 0 0 10px; color: #19375d; font-size: 18px; }
.student-life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-life-card { min-width: 0; min-height: 104px; padding: 10px 12px; }
.student-life-card:nth-child(even) { border-left: 1px solid rgba(195, 137, 47, 0.25); }
.student-life-card:nth-child(n + 3) { border-top: 1px solid rgba(195, 137, 47, 0.25); }
.student-life-card.student-counseling-panel { grid-column: 1 / -1; border-top: 1px solid rgba(195, 137, 47, 0.25); }
.student-life-card header { min-height: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.student-life-card header img { width: 29px; height: 29px; object-fit: contain; }
.student-life-card h3 { margin: 0; color: #29496e; font-size: 13px; }
.student-life-card header a { min-height: 44px; display: inline-flex; align-items: center; color: var(--student-green); font-size: 10px; font-weight: 900; text-decoration: none; }
.student-avatar-entry { min-height: 58px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; color: var(--student-ink); text-decoration: none; }
.student-avatar-entry img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(79, 67, 39, 0.13)); }
.student-avatar-entry span,
.student-life-card > p { margin: 8px 0 0; color: #47627f; font-size: 10px; font-weight: 800; line-height: 1.5; }
.student-life-card .student-summary-row { grid-template-columns: minmax(0, 1fr); min-height: 44px; }
.student-life-card .student-summary-meta { justify-content: flex-start; }
.student-life-card.is-unavailable { background: rgba(248, 244, 231, 0.48); }
.student-parent-message-entry { min-height: 52px; display: flex; align-items: center; margin-top: 6px; border: 1px solid rgba(22, 129, 92, .22); border-radius: 10px; background: #eef8f3; padding: 9px 11px; color: #255f4c; font-size: 10px; font-weight: 900; line-height: 1.45; text-decoration: none; }
.student-counseling-entry { min-height: 52px; display: flex; align-items: center; margin-top: 6px; border: 1px solid rgba(139, 92, 246, .2); border-radius: 10px; background: linear-gradient(135deg,#fff1f7,#f3f0ff); padding: 9px 11px; color: #70426d; font-size: 10px; font-weight: 900; line-height: 1.45; text-decoration: none; }
.student-meal-list {
  margin: 7px 0 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 18px;
  color: #29496e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}
.student-meal-list li { break-inside: avoid; overflow-wrap: anywhere; }
.student-meal-meta { margin: 7px 0 0; color: #7b6b56; font-size: 9px; font-weight: 800; }

.student-timetable-card { grid-column: 9 / -1; padding: 15px 16px 17px; }
.student-schedule-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 9px; }
.student-schedule-actions button {
  min-height: 44px;
  border: 1px solid rgba(22, 129, 92, 0.24);
  border-radius: 9px;
  background: #fffdf7;
  color: var(--student-green);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.student-schedule-actions button:disabled { opacity: 0.5; cursor: wait; }
.student-schedule-list { display: grid; border-top: 1px solid rgba(195, 137, 47, 0.26); }
.student-schedule-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 3px;
  border-bottom: 1px solid rgba(195, 137, 47, 0.22);
  color: var(--student-ink);
}
.student-schedule-row strong { color: #55708e; font-size: 10px; }
.student-schedule-row span { overflow: hidden; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.student-schedule-hint { margin: 10px 0 0; padding: 9px 10px; border: 1px solid rgba(195, 137, 47, 0.26); border-radius: 9px; background: #fff8e8; color: var(--student-ink); font-size: 10px; font-weight: 800; }

.student-tool-board { grid-column: 1 / -1; padding: 18px 20px; }
.student-tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.student-tool-heading > div { display: flex; align-items: center; gap: 9px; }
.student-tool-heading img { width: 28px; height: 28px; object-fit: contain; }
.student-tool-heading h2 { margin: 0; color: #19375d; font-size: 20px; }
.student-tool-heading > strong { color: var(--student-muted); font-size: 10px; }
.student-tool-heading > button { min-height: 44px; border: 1px solid rgba(22, 129, 92, 0.32); border-radius: 10px; padding: 0 16px; background: #eaf6ef; color: var(--student-green); font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.student-tool-search input { width: min(220px, 34vw); min-height: 44px; border: 1px solid rgba(23, 50, 79, 0.18); border-radius: 10px; background: #fff; padding: 0 12px; color: var(--student-ink); font: inherit; font-size: 11px; }
.student-recommended-tool-grid,
.student-menu-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.student-recommended-tool,
.student-menu-card {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(195, 137, 47, 0.24);
  border-radius: 11px;
  background: #fffef9;
  color: var(--student-ink);
  text-decoration: none;
}
.student-recommended-tool::before { content: ""; width: 32px; height: 32px; background: url("/token-assets/student-home/tool-learn.png") center / contain no-repeat; }
.student-recommended-tool .student-tool-copy { min-width: 0; }
.student-recommended-tool .student-tool-copy small,
.student-menu-card small { display: block; overflow: hidden; color: var(--student-muted); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.student-recommended-tool .student-tool-copy strong,
.student-menu-card strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.student-menu-card > img { width: 32px; height: 32px; object-fit: contain; }
.student-menu-card[hidden] { display: none !important; }
.student-menu-empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--student-muted); font-size: 11px; font-weight: 800; text-align: center; }
.student-favorite-status { min-height: 18px; margin: 9px 0 0; color: var(--student-muted); font-size: 10px; font-weight: 800; }
.student-favorite-dialog { max-height: min(760px, calc(100vh - 28px)); }
.student-favorite-dialog form { grid-template-rows: auto minmax(0, 1fr) auto auto; max-height: min(716px, calc(100vh - 72px)); }
.student-favorite-options { display: grid; gap: 8px; overflow-y: auto; padding: 2px; }
.student-favorite-option { min-height: 52px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid rgba(195, 137, 47, 0.28); border-radius: 11px; padding: 8px 12px; background: #fffef9; }
.student-favorite-option input { width: 20px; height: 20px; accent-color: var(--student-green); }
.student-favorite-option strong, .student-favorite-option small { display: block; }
.student-favorite-option small { margin-top: 3px; color: var(--student-muted); font-size: 10px; }
.student-favorite-dialog header p { margin: 7px 0 0; color: var(--student-muted); font-size: 11px; }
.student-favorite-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.student-favorite-dialog-actions button { min-height: 46px; border: 1px solid rgba(22, 129, 92, 0.3); border-radius: 10px; background: #fff; color: var(--student-green); font: inherit; font-weight: 900; cursor: pointer; }
.student-favorite-dialog-actions button:last-child { border: 0; background: var(--student-green); color: #fff; }

.student-quiz-deferred { margin-top: 14px; padding: 12px 14px; border: 1px dashed rgba(23, 50, 79, 0.24); border-radius: 12px; background: rgba(255, 255, 255, 0.45); color: #52677c; }
.student-quiz-deferred strong { color: #29496e; font-size: 11px; }
.student-quiz-deferred p { margin: 4px 0 0; font-size: 10px; }
.student-home-status { margin: 12px 4px 0; color: #46617c; font-size: 10px; font-weight: 800; }

.student-home-tutorial { width: min(540px, calc(100% - 28px)); padding: 0; border: 1px solid #dfb861; border-radius: 18px; background: #fffaf0; color: var(--student-ink); box-shadow: 0 22px 55px rgba(15, 23, 42, 0.32); }
.student-home-tutorial::backdrop { background: rgba(15, 23, 42, 0.64); backdrop-filter: blur(3px); }
.student-home-tutorial form { display: grid; gap: 16px; padding: 22px; }
.student-home-tutorial header span { color: var(--student-green); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.student-home-tutorial h2 { margin: 4px 0 0; font-size: 24px; }
.student-home-tutorial ol { display: grid; gap: 9px; margin: 0; padding-left: 25px; }
.student-home-tutorial li { padding-left: 4px; }
.student-home-tutorial li strong,
.student-home-tutorial li span { display: block; }
.student-home-tutorial li span { margin-top: 2px; color: var(--student-muted); font-size: 11px; line-height: 1.45; }
.student-home-tutorial button { min-height: 46px; border: 0; border-radius: 10px; background: var(--student-green); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }

.student-token-chip:hover,
.student-token-chip:focus-visible,
.student-summary-row:hover,
.student-summary-row:focus-visible,
.student-avatar-entry:hover,
.student-avatar-entry:focus-visible,
.student-menu-card:hover,
.student-menu-card:focus-visible,
.student-recommended-tool:hover,
.student-recommended-tool:focus-visible { border-color: rgba(22, 129, 92, 0.58); background-color: #f4fbf6; outline: 2px solid rgba(22, 129, 92, 0.25); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1280px) {
  body.student-dashboard-body { overflow: hidden; }

  .student-economy-app {
    display: grid;
    width: min(1422px, calc(100% - 36px));
    height: 100vh;
    grid-template-columns: 250px minmax(0, 1150px);
    gap: 22px;
    margin: 0 auto;
    padding: 18px 0;
  }

  .student-economy-sidebar {
    position: relative;
    display: flex;
    min-width: 0;
    height: calc(100vh - 36px);
    min-height: 0;
    flex-direction: column;
    padding: 26px 18px 18px;
    overflow: hidden;
    background: url("/token-assets/sidebar-frame.png") center / 100% 100% no-repeat;
  }

  .student-economy-brand {
    display: flex;
    min-height: 102px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 7px 8px;
  }

  .student-economy-brand > img { width: 72px; height: 72px; object-fit: contain; }
  .student-economy-brand > span { display: grid; gap: 3px; }
  .student-economy-brand strong { display: grid; color: #2462a8; font-size: 25px; font-weight: 1000; line-height: 1.02; }
  .student-economy-brand strong em { color: #ef5a3c; font-style: normal; }
  .student-economy-brand small { color: #5c4a35; font-size: 9px; font-weight: 900; }

  .student-economy-fullscreen {
    display: flex;
    width: calc(100% - 2px);
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 10px;
    border: 0;
    border-radius: 22px;
    background: #6d6252;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .student-economy-nav { display: grid; gap: 7px; padding: 0 2px; }
  .student-economy-nav > a,
  .student-economy-nav > span {
    display: grid;
    min-height: 47px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 0 19px;
    background: url("/token-assets/sidebar-button.png") center / 100% 100% no-repeat;
    color: #49392a;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
  }

  .student-economy-nav > a.is-active {
    background-image: url("/token-assets/sidebar-button-active.png");
    color: #fff;
  }

  .student-economy-nav i { width: 20px; color: #376ca5; font-size: 15px; text-align: center; }
  .student-economy-nav > a.is-active i { color: #fff; }
  .student-economy-nav > a:hover,
  .student-economy-nav > a:focus-visible,
  .student-economy-fullscreen:hover,
  .student-economy-fullscreen:focus-visible { filter: brightness(1.06); outline: 3px solid rgb(51 112 207 / 25%); outline-offset: -3px; }
  .student-economy-nav > .is-disabled { opacity: 0.62; cursor: not-allowed; }
  .student-economy-nav > .is-disabled small { border-radius: 20px; background: #e8dec6; padding: 2px 6px; color: #785f35; font-size: 8px; }

  .student-economy-medal {
    width: 92px;
    height: 98px;
    margin: auto auto 3px;
    object-fit: contain;
  }

  .student-home-shell.student-economy-main {
    width: auto;
    height: calc(100vh - 36px);
    min-height: 0;
    padding: 0 8px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #9e9a8d transparent;
    scrollbar-width: thin;
  }

  .student-home-shell.student-economy-main::-webkit-scrollbar { width: 8px; }
  .student-home-shell.student-economy-main::-webkit-scrollbar-thumb { border-radius: 10px; background: #9e9a8d; }
  .student-home-shell.student-economy-main .student-wallet-stage { width: 100%; margin: 0; }
  .student-home-shell.student-economy-main .student-action-first { min-height: 420px; }
  .student-home-shell.student-economy-main .student-task-panel,
  .student-home-shell.student-economy-main .student-notice-panel { height: 100%; }
  .student-home-shell.student-economy-main .student-life-strip,
  .student-home-shell.student-economy-main .student-timetable-card { min-height: 560px; }
}

@media (max-width: 1279px) {
  .student-economy-sidebar { display: none; }
}

@media (min-width: 1280px) and (max-height: 940px) {
  .student-economy-sidebar { padding-top: 20px; }
  .student-economy-brand { min-height: 72px; padding-bottom: 6px; }
  .student-economy-brand > img { width: 52px; height: 57px; }
  .student-economy-brand strong { font-size: 17px; }
  .student-economy-fullscreen { min-height: 40px; margin-bottom: 6px; }
  .student-economy-nav { gap: 2px; }
  .student-economy-nav > a,
  .student-economy-nav > span { min-height: 39px; }
  .student-economy-medal { width: 72px; height: 76px; }
}

@media (max-width: 1060px) {
  .student-wallet-level-line { grid-template-columns: minmax(230px, 1fr) minmax(190px, 0.82fr); }
  .student-level-actions { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .student-wallet-stage { border-radius: 22px; }
  .student-wallet-level-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-level-actions { grid-column: 1 / -1; }
  .student-action-first { grid-template-columns: 1fr; }
  .student-task-panel,
  .student-notice-panel,
  .student-life-strip,
  .student-timetable-card { grid-column: 1 / -1; }
  .student-recommended-tool-grid,
  .student-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .student-admin-preview-switchbar { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .student-admin-preview-actions { width: 100%; }
  .student-admin-preview-actions a { flex: 1; }
  .student-admin-preview-audit { width: 100%; align-items: stretch; flex-direction: column; }
  .student-home-shell { padding: 8px; }
  .student-wallet-stage { padding: 10px 10px 18px; border-width: 1px; border-radius: 16px; }
  .student-wallet-level-line { grid-template-columns: 1fr; padding: 14px 12px; }
  .student-level-title { border-right: 0; border-bottom: 1px solid var(--student-line); padding: 0 0 12px; }
  .student-level-actions { grid-template-columns: 1fr; }
  .student-action-first,
  .student-wallet-grid { gap: 10px; }
  .student-task-panel,
  .student-notice-panel,
  .student-life-strip,
  .student-timetable-card,
  .student-tool-board { padding: 15px 13px; }
  .student-panel-heading { grid-template-columns: auto minmax(0, 1fr); }
  .student-panel-heading > a { grid-column: 1 / -1; width: 100%; }
  .student-life-grid { grid-template-columns: 1fr; }
  .student-life-card:nth-child(even) { border-left: 0; }
  .student-life-card + .student-life-card { border-top: 1px solid rgba(195, 137, 47, 0.25); }
  .student-meal-list { columns: 1; }
  .student-tool-heading { align-items: stretch; flex-direction: column; }
  .student-tool-search input { width: 100%; }
  .student-recommended-tool-grid,
  .student-menu-grid { grid-template-columns: 1fr; }
}
