.student-page {
  min-height: 100vh;
  padding: 28px;
  background: #f6f8fb;
}

.student-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.student-title-block {
  min-width: 0;
}

.student-kicker {
  display: block;
  color: #64748b;
  font-size: 22px;
  font-weight: 600;
}

.student-title {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
}

.student-subtitle {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 24px;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.toolbar.wrap {
  flex-wrap: wrap;
  overflow-x: visible;
}

.pill-button,
.primary-button,
.secondary-button,
.danger-button {
  min-width: 120px;
  height: 64px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 64px;
}

.primary-button {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.secondary-button,
.pill-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e3a8a;
}

.secondary-button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.danger-button {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.pill-button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.pill-button.warn {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.section-block {
  margin-top: 30px;
}

.section-heading {
  display: block;
  margin-bottom: 16px;
  color: #172033;
  font-size: 30px;
  font-weight: 800;
}

.quiet-panel {
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.report-panel {
  padding: 28px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.learning-report-panel {
  background: #f8fbff;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.profile-avatar {
  flex: 0 0 116px;
  width: 116px;
  height: 116px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  text-align: center;
}

.profile-avatar.female {
  border-color: #fbcfe8;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
  color: #be185d;
}

.profile-avatar-mark {
  display: block;
  font-size: 48px;
  font-weight: 850;
  line-height: 116px;
}

.profile-card-main {
  flex: 1;
  min-width: 0;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.avatar-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 88px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.avatar-choice.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.avatar-choice.busy {
  opacity: 0.72;
}

.avatar-choice-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  text-align: center;
}

.avatar-choice-icon.female {
  background: #fce7f3;
  color: #be185d;
}

.avatar-choice-mark {
  display: block;
  font-size: 28px;
  font-weight: 850;
  line-height: 54px;
}

.avatar-choice-copy {
  min-width: 0;
}

.avatar-choice-title {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.25;
}

.avatar-choice-meta {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 20px;
  line-height: 1.25;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-row {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.list-row.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.notification-row.active {
  border-color: #93c5fd;
}

.split-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.split-row .row-main {
  flex: 1;
  min-width: 0;
}

.composite-subquestion {
  margin-top: 0;
}

.sub-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sub-explanation {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.option-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.option-prefix {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.55;
}

.option-rich {
  flex: 1;
  min-width: 0;
}

.answer-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.answer-detail-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 22px;
  font-weight: 820;
}

.row-main {
  display: block;
  color: #111827;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.35;
}

.row-meta {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 22px;
  line-height: 1.45;
}

.notification-message {
  color: #334155;
}

.notification-action-text {
  align-self: center;
  color: #1d4ed8;
  font-weight: 760;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.compact-metric {
  padding: 18px;
}

.metric-value {
  display: block;
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 22px;
}

.report-summary-line {
  margin-top: 18px;
}

.empty-state {
  padding: 38px 26px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 24px;
  line-height: 1.5;
}

.input {
  width: 100%;
  height: 72px;
  padding: 0 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 26px;
}

.textarea {
  width: 100%;
  min-height: 140px;
  padding: 18px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 26px;
  line-height: 1.45;
}

.error-text {
  display: block;
  margin-top: 14px;
  color: #be123c;
  font-size: 22px;
  line-height: 1.4;
}

.success-text {
  display: block;
  margin-top: 14px;
  color: #047857;
  font-size: 22px;
  line-height: 1.4;
}

.muted-text {
  color: #64748b;
}

.video-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
}

.checkout-toolbar {
  align-items: center;
  overflow-x: visible;
}

.checkout-toolbar .input {
  flex: 1;
  min-width: 0;
}

.checkout-actions {
  margin-top: 18px;
}

.compact-toolbar {
  margin-top: 14px;
  padding-bottom: 0;
}

.notification-toolbar {
  margin-top: 16px;
}

.notification-summary-grid {
  margin-top: 6px;
}

.notifications-page .notification-filterbar,
.notifications-page .notification-typebar {
  gap: 10px;
}

.notifications-page .notification-typebar {
  margin-top: 12px;
}

.notifications-page .pill-button {
  min-width: 132px;
}

.notification-actions {
  flex-wrap: wrap;
  overflow-x: visible;
}

.compact-toolbar .primary-button,
.compact-toolbar .secondary-button {
  min-width: 104px;
  height: 56px;
  font-size: 22px;
  line-height: 56px;
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.amount-text {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 40px;
  font-weight: 850;
  line-height: 1.15;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 22px;
  font-weight: 750;
}

.status-badge.warning {
  background: #fffbeb;
  color: #92400e;
}

.status-badge.danger {
  background: #fff1f2;
  color: #be123c;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.trend-column {
  min-width: 0;
  text-align: center;
}

.trend-value {
  display: block;
  min-height: 28px;
  color: #334155;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.trend-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 136px;
  margin-top: 8px;
  border-radius: 8px;
  background: #f1f5f9;
}

.trend-bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 8px 8px 0 0;
  background: #2563eb;
}

.trend-bar-fill.h-bucket-0 { height: 0; }
.trend-bar-fill.h-bucket-1 { height: 10px; }
.trend-bar-fill.h-bucket-2 { height: 20px; }
.trend-bar-fill.h-bucket-3 { height: 30px; }
.trend-bar-fill.h-bucket-4 { height: 40px; }
.trend-bar-fill.h-bucket-5 { height: 50px; }
.trend-bar-fill.h-bucket-6 { height: 62px; }
.trend-bar-fill.h-bucket-7 { height: 74px; }
.trend-bar-fill.h-bucket-8 { height: 86px; }
.trend-bar-fill.h-bucket-9 { height: 98px; }
.trend-bar-fill.h-bucket-10 { height: 110px; }
.trend-bar-fill.h-bucket-11 { height: 122px; }
.trend-bar-fill.h-bucket-12 { height: 132px; }

.trend-label {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.2;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #10b981;
}

.progress-fill.w-bucket-0 { width: 0; }
.progress-fill.w-bucket-1 { width: 10%; }
.progress-fill.w-bucket-2 { width: 20%; }
.progress-fill.w-bucket-3 { width: 30%; }
.progress-fill.w-bucket-4 { width: 40%; }
.progress-fill.w-bucket-5 { width: 50%; }
.progress-fill.w-bucket-6 { width: 60%; }
.progress-fill.w-bucket-7 { width: 70%; }
.progress-fill.w-bucket-8 { width: 80%; }
.progress-fill.w-bucket-9 { width: 90%; }
.progress-fill.w-bucket-10 { width: 100%; }

.handbook-entry-body {
  margin-top: 14px;
}

.handbook-search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.handbook-search-panel .input {
  flex: 1;
  min-width: 0;
}

.handbook-search-panel .secondary-button {
  flex: 0 0 116px;
  min-width: 116px;
}

.handbook-outline {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.handbook-outline-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 360px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.handbook-outline-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.handbook-outline-index {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 20px;
  font-weight: 820;
}

.handbook-outline-title {
  min-width: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handbook-entry-list {
  margin-top: 16px;
}

.handbook-entry-row.active {
  border-color: #93c5fd;
}

.handbook-search-snippet {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 22px;
  line-height: 1.55;
  word-break: break-word;
}

.handbook-highlight {
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 820;
}

.report-sub-result {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.answer-sheet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.answer-card {
  min-width: 0;
  height: 58px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 22px;
  font-weight: 800;
  line-height: 58px;
}

.answer-card.current {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.answer-card.answered {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.answer-card.wrong {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.break-text {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.vocabulary-page .student-topbar {
  margin-bottom: 20px;
}

.vocabulary-modebar {
  margin-top: 18px;
}

.vocabulary-overview-panel {
  border-color: #bbf7d0;
  background: #f7fdf9;
}

.vocabulary-stats-grid {
  margin-top: 18px;
}

.vocabulary-plan-line {
  margin-top: 16px;
}

.vocabulary-mastery-track {
  margin-top: 18px;
}

.vocabulary-study {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vocabulary-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vocabulary-progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.vocabulary-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  transition: width 180ms ease;
}

.vocabulary-card {
  min-height: 560px;
  padding: 32px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.vocabulary-card.revealed {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.vocabulary-word {
  display: block;
  margin-top: 36px;
  color: #0f172a;
  font-size: 64px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  word-break: break-word;
}

.vocabulary-phonetic {
  display: block;
  margin-top: 16px;
  color: #64748b;
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
}

.vocabulary-card-actions {
  justify-content: center;
  margin-top: 26px;
}

.vocabulary-answer {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.vocabulary-actions {
  justify-content: center;
}

.vocabulary-word-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vocabulary-word-chip {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.vocabulary-word-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.vocabulary-word-chip.favorite {
  border-color: #f59e0b;
}

.vocabulary-chip-word {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 820;
  line-height: 1.3;
  word-break: break-word;
}

.vocabulary-chip-meta {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 20px;
}

.assets-page .list-stack {
  margin-top: 20px;
}

.asset-preview-panel {
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
}

.asset-preview-frame {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
}

.asset-preview-iframe {
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.asset-download-confirm {
  padding: 60px 36px;
}

.asset-watermark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #0f172a;
}

.asset-watermark.repeat {
  align-items: stretch;
  justify-content: stretch;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 92px,
      rgba(15, 23, 42, 0.08) 92px,
      rgba(15, 23, 42, 0.08) 94px,
      transparent 94px,
      transparent 168px
    );
}

.asset-watermark.diagonal .asset-watermark-text,
.asset-watermark.repeat .asset-watermark-text {
  transform: rotate(-24deg);
}

.asset-watermark.bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

.asset-watermark.center {
  align-items: center;
  justify-content: center;
}

.asset-watermark-text {
  max-width: 86%;
  color: #0f172a;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.asset-security-strip {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.scoreline-filter-panel {
  padding: 24px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.scoreline-filter-group {
  margin-top: 18px;
}

.scoreline-filter-label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-size: 22px;
  font-weight: 820;
  line-height: 1.25;
}

.scoreline-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.scoreline-chip-row.compact {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}

.scoreline-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 320px;
  min-width: 112px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
}

.scoreline-chip.small {
  min-width: 96px;
  height: 52px;
  padding: 0 14px;
}

.scoreline-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.scoreline-chip.warn {
  border-color: #f59e0b;
  background: #fffbeb;
}

.scoreline-chip-text {
  min-width: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreline-chip.active .scoreline-chip-text {
  color: #1d4ed8;
}

.scoreline-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.scoreline-field-filter {
  min-width: 0;
}

.scoreline-input {
  box-sizing: border-box;
  height: 64px;
  font-size: 24px;
}

.scoreline-search-button {
  margin-top: 20px;
}

.scoreline-trend-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.scoreline-trend-item {
  flex: 0 0 230px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.scoreline-trend-year {
  display: block;
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.25;
}

.scoreline-trend-value {
  display: block;
  margin-top: 8px;
  color: #334155;
  font-size: 20px;
  line-height: 1.35;
  word-break: break-word;
}

.scoreline-field-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.scoreline-field-chip {
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.scoreline-field-name {
  display: block;
  color: #64748b;
  font-size: 19px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreline-field-value {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 820;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 640px) {
  .scoreline-field-grid,
  .scoreline-field-chip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
