@import url("/public/styles/student-admin.css");

:root {
  --ink: #17211d;
  --muted: #5d6862;
  --line: #d7ddd7;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --green: #0f6b57;
  --blue: #1b4f8f;
  --gold: #b7791f;
  --red: #b23b2d;
  --shadow: 0 10px 28px rgba(16, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  font-size: 1.24rem;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 1.02rem;
}

.nav a:hover,
.link:hover {
  color: var(--green);
}

.hero {
  padding: 72px 0 42px;
  background:
    linear-gradient(135deg, rgba(15, 107, 87, 0.12), transparent 42%),
    linear-gradient(45deg, rgba(27, 79, 143, 0.1), transparent 52%);
}

.hero-portal {
  background:
    radial-gradient(circle at top left, rgba(195, 153, 68, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(15, 107, 87, 0.1), transparent 38%),
    linear-gradient(45deg, rgba(27, 79, 143, 0.08), transparent 52%);
}

.hero-grid,
.grid-2,
.admin-shell {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 33, 29, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-consult-card {
  justify-items: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 245, 0.92));
}

.hero-consult-portal {
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 24px 44px rgba(16, 32, 28, 0.06);
  backdrop-filter: blur(12px);
}

.hero-elegant .hero-copy h1 {
  max-width: 11ch;
  letter-spacing: -0.05em;
}

.hero-elegant .lead {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-elegant .actions {
  margin-top: 10px;
}

.hero-banner-focus .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: stretch;
}

.hero-banner-focus .hero-copy {
  justify-content: start;
  align-content: start;
  padding-top: 18px;
}

.hero-brand-mark {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.hero-banner-focus .hero-copy h1 {
  max-width: none;
  font-size: clamp(4.2rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-banner-focus .lead {
  max-width: 36ch;
  margin-top: 6px;
}

.hero-visual-card {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: stretch;
}

.hero-portrait-frame {
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 243, 0.88));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 30px 54px rgba(16, 32, 28, 0.08);
  min-height: 420px;
}

.hero-portrait-frame .instructor-photo,
.hero-portrait-frame .instructor-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  margin-top: 0;
  border-radius: 0;
}

.hero-portrait-frame .instructor-photo {
  object-fit: cover;
  object-position: center top;
}

.hero-qr-corner {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(220px, calc(100% - 44px));
  padding: 18px 16px;
  text-align: left;
  justify-items: start;
}

.hero-qr-corner .qr {
  width: 104px;
  border-radius: 14px;
}

.hero-poster-banner {
  padding: 58px 0 34px;
}

.hero-poster-banner .hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(560px, 0.94fr);
  gap: 46px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  padding: 22px 28px;
  border-radius: 34px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background:
    radial-gradient(circle at 12% 18%, rgba(186, 146, 67, 0.18), transparent 20%),
    radial-gradient(circle at 80% 22%, rgba(15, 107, 87, 0.12), transparent 24%),
    linear-gradient(115deg, rgba(249, 247, 242, 0.99) 0%, rgba(243, 247, 244, 0.98) 44%, rgba(230, 239, 235, 0.98) 100%);
  box-shadow: 0 34px 60px rgba(16, 32, 28, 0.08);
  align-items: center;
}

.hero-poster-banner .hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.08)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-poster-banner .hero-grid::after {
  content: "";
  position: absolute;
  right: 22%;
  top: -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(8px);
  pointer-events: none;
}

.hero-poster-banner .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: 6px;
  align-self: center;
}

.hero-poster-banner .hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.5vw, 3.45rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.26);
  text-wrap: pretty;
}

.hero-poster-banner .hero-copy h1 span {
  display: block;
}

.hero-poster-banner .lead {
  max-width: 42ch;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-poster-banner .actions {
  margin-top: 18px;
}

.hero-poster-banner .actions .button.primary + .button.primary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(23, 33, 29, 0.12);
  box-shadow: none;
}

.hero-poster-banner .actions .student-center-cta {
  position: relative;
  min-height: 54px;
  padding: 16px 76px 10px 18px;
  background: linear-gradient(135deg, #fff4cf, #ffe4a3);
  color: #7a4300;
  border: 2px solid rgba(232, 149, 32, 0.72);
  box-shadow: 0 0 0 3px rgba(232, 149, 32, 0.14), 0 16px 30px rgba(232, 149, 32, 0.18);
  font-weight: 900;
  line-height: 1.1;
}

.hero-poster-banner .actions .student-center-cta::after {
  content: "推荐先看";
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(122, 67, 0, 0.12);
  color: #7a4300;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-poster-banner .actions .student-center-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(232, 149, 32, 0.18), 0 18px 36px rgba(232, 149, 32, 0.22);
}

.hero-poster-banner .hero-visual-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  align-items: end;
  min-height: 0;
  gap: 20px;
  padding: 0;
}

.hero-poster-banner .hero-poster-stage {
  position: relative;
  min-height: 376px;
  padding: 0 0 12px;
}

.hero-poster-banner .hero-poster-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 16%, rgba(95, 164, 235, 0.34), transparent 18%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(203, 230, 255, 0.92), rgba(234, 246, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(130, 178, 220, 0.26);
}

.hero-poster-banner .hero-poster-stage::after {
  content: "";
  position: absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.hero-poster-banner .hero-portrait-badge {
  display: none;
}

.hero-poster-banner .hero-portrait-frame {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  min-height: 376px;
  max-height: 376px;
  overflow: hidden;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  box-shadow: 0 30px 56px rgba(39, 86, 128, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(224, 241, 255, 0.92));
  z-index: 2;
}

.hero-poster-banner .hero-portrait-frame .instructor-photo,
.hero-poster-banner .hero-portrait-frame .instructor-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 376px;
  background: transparent;
}

.hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
.hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder {
  position: relative;
  z-index: 1;
  width: min(100%, 292px);
  aspect-ratio: 1 / 1;
  margin: auto;
  border-radius: 28px;
}

.hero-poster-banner .hero-portrait-frame .instructor-photo {
  display: block;
  object-fit: cover;
  object-position: center 6%;
  transform: scale(1.12);
  transform-origin: center top;
  filter: saturate(1) contrast(1.03);
}

.hero-poster-banner .hero-portrait-frame .hero-banner-qr-image {
  display: block;
  object-fit: contain;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 34px rgba(31, 73, 118, 0.12);
}

.hero-poster-banner .hero-banner-qr-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 292px);
  display: grid;
  gap: 8px;
  margin-top: -2px;
  padding: 0 8px 8px;
  text-align: center;
}

.hero-poster-banner .hero-banner-qr-copy .eyebrow,
.hero-poster-banner .hero-banner-qr-copy .muted {
  margin: 0;
}

.hero-poster-banner .hero-banner-qr-copy .muted {
  line-height: 1.65;
}

.hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(27, 79, 143, 0.22);
  color: var(--muted);
}

.hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder strong,
.hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder span {
  display: block;
}

.hero-poster-banner .hero-portrait-caption {
  display: none;
}

.hero-poster-banner .hero-brand-mark {
  margin-bottom: 10px;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
}

.hero-poster-banner .hero-qr-corner {
  position: relative;
  right: auto;
  bottom: auto;
  justify-self: stretch;
  width: 100%;
  margin-top: 0;
  margin-right: 0;
  padding: 18px 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 20px 38px rgba(16, 32, 28, 0.1);
  backdrop-filter: blur(14px);
  z-index: 2;
  align-self: end;
  min-height: 0;
}

.hero-poster-banner .hero-qr-corner .eyebrow {
  margin-bottom: 4px;
}

.hero-poster-banner .hero-qr-corner .qr {
  width: 100%;
  max-width: 188px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.hero-poster-banner .hero-qr-corner .muted {
  margin: 0;
  line-height: 1.7;
}

.overview-section {
  padding-top: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.overview-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 246, 0.94));
  box-shadow: var(--shadow);
}

.countdown-card {
  margin-top: 0;
  background:
    radial-gradient(circle at top left, rgba(183, 121, 31, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(15, 107, 87, 0.12), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 107, 87, 0.14);
}

.countdown-portal-card {
  position: relative;
  overflow: hidden;
}

.countdown-portal-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(15, 107, 87, 0.08);
}

.countdown-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  margin-top: 8px;
  letter-spacing: -0.04em;
}

.countdown-unit {
  margin-top: -4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.countdown-summary {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.countdown-portal-card > .countdown-number,
.countdown-portal-card > .countdown-unit,
.countdown-portal-card > .countdown-meta,
.countdown-portal-card > .muted:last-of-type {
  display: none;
}

.countdown-stack {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.countdown-tier {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 107, 87, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.countdown-tier.is-primary {
  background:
    linear-gradient(135deg, rgba(15, 107, 87, 0.12), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 107, 87, 0.2);
}

.countdown-tier:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(27, 79, 143, 0.12), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(27, 79, 143, 0.18);
}

.countdown-tier:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(183, 121, 31, 0.12), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
  border-color: rgba(183, 121, 31, 0.18);
}

.countdown-tier-copy {
  display: grid;
  gap: 6px;
}

.countdown-tier-label {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
}

.countdown-tier-numberline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.countdown-tier-numberline::after {
  content: "天";
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--muted);
}

.countdown-tier-numberline strong {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}

.countdown-tier:nth-child(2) .countdown-tier-numberline strong,
.countdown-tier:nth-child(2) .countdown-tier-date {
  color: #1b4f8f;
}

.countdown-tier:nth-child(2) .countdown-tier-date {
  background: rgba(27, 79, 143, 0.08);
}

.countdown-tier:nth-child(3) .countdown-tier-numberline strong,
.countdown-tier:nth-child(3) .countdown-tier-date {
  color: #9a6112;
}

.countdown-tier:nth-child(3) .countdown-tier-date {
  background: rgba(183, 121, 31, 0.1);
}

.countdown-tier-numberline span {
  display: none;
}

.countdown-tier-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.countdown-tier-date {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.08);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.countdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 107, 87, 0.12);
}

.countdown-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.countdown-meta strong {
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 64ch;
  margin-top: 18px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
button.primary,
input[type="submit"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.button.warning {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.section-head.compact h2 {
  margin: 0;
  font-size: 1.35rem;
}

.handout-library-group {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--handout-group-accent, var(--green));
  border-radius: 8px;
  background: var(--handout-group-bg, rgba(15, 107, 87, 0.06));
}

.handout-library-group.is-xigui {
  --handout-group-accent: var(--green);
  --handout-group-bg: rgba(15, 107, 87, 0.08);
  --handout-group-badge-bg: rgba(15, 107, 87, 0.12);
  --handout-group-badge-color: var(--green);
}

.handout-library-group.is-gaoxiang {
  --handout-group-accent: var(--blue);
  --handout-group-bg: rgba(27, 79, 143, 0.08);
  --handout-group-badge-bg: rgba(183, 121, 31, 0.14);
  --handout-group-badge-color: var(--blue);
}

.handout-library-group.is-course-intro {
  --handout-group-accent: #7c3aed;
  --handout-group-bg: rgba(124, 58, 237, 0.07);
  --handout-group-badge-bg: rgba(124, 58, 237, 0.12);
  --handout-group-badge-color: #6d28d9;
}

.handout-library-group .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.handout-library-group .card {
  border-top: 4px solid var(--handout-group-accent, var(--green));
}

.handout-library-group .badge {
  background: var(--handout-group-badge-bg, rgba(15, 107, 87, 0.12));
  color: var(--handout-group-badge-color, var(--green));
}

.handout-library-group .button.primary {
  background: var(--handout-group-accent, var(--green));
  border-color: var(--handout-group-accent, var(--green));
}

.handout-search-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-left: 6px solid var(--green);
  background: #f7fbf9;
}

.handout-search-panel h2 {
  margin-bottom: 6px;
}

.handout-search-panel.is-search-page {
  margin-bottom: 22px;
}

.handout-search-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.handout-search-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.handout-search-form select,
.handout-search-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.handout-search-results {
  display: grid;
  gap: 14px;
}

.handout-search-result-list {
  display: grid;
  gap: 12px;
}

.handout-search-result {
  display: grid;
  gap: 10px;
  border-left: 5px solid rgba(15, 107, 87, 0.55);
}

.handout-search-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.handout-search-result-head h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.handout-search-path {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.handout-search-excerpt {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

.handout-search-hit {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(183, 121, 31, 0.22);
  color: #8a4b0b;
  font-weight: 800;
}

.handout-search-empty {
  margin-top: 18px;
}

.instructor-section {
  background:
    linear-gradient(135deg, rgba(183, 121, 31, 0.1), transparent 38%),
    linear-gradient(45deg, rgba(15, 107, 87, 0.08), transparent 48%);
}

.instructor-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.instructor-photo-card {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.instructor-photo-card h2 {
  margin-top: 10px;
}

.instructor-photo,
.admin-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 16px;
}

.instructor-overview-card .instructor-photo,
.instructor-overview-card .instructor-photo-placeholder {
  max-width: none;
  margin-top: 8px;
}

.overview-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.overview-points li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.overview-points strong {
  font-size: 1rem;
}

.overview-points span {
  color: var(--muted);
  line-height: 1.7;
}

.course-directory {
  display: grid;
  gap: 12px;
}

.course-directory-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(249, 250, 248, 0.98);
  border: 1px solid rgba(23, 33, 29, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-directory-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 87, 0.22);
  box-shadow: 0 12px 24px rgba(16, 32, 28, 0.08);
}

.course-directory-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e8f3ee;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.course-directory-copy {
  display: grid;
  gap: 4px;
}

.course-directory-copy strong {
  font-size: 1rem;
}

.course-directory-copy small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-instructor-card .instructor-photo,
.portal-instructor-card .instructor-photo-placeholder {
  margin-top: 4px;
}

.portal-course-directory-card .actions {
  margin-top: 6px;
}

.instructor-photo-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f4f6f2;
  color: var(--muted);
  text-align: center;
}

.instructor-photo-placeholder strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.instructor-photo-placeholder span {
  font-size: 0.92rem;
}

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

.trait-card {
  min-height: 168px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.trait-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f3ee;
  color: var(--green);
  font-weight: 800;
  font-size: 0.86rem;
}

.trait-card h3 {
  margin-top: 14px;
}

.trait-card p {
  margin-top: 8px;
  color: var(--muted);
}

.cards,
.course-grid,
.social-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-grid-home {
  align-items: stretch;
}

.social-grid-compact {
  grid-template-columns: 1fr;
}

.social-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  border-radius: 22px;
}

.social-card-featured {
  min-height: 250px;
  padding: 24px;
}

.social-card-compact {
  padding: 18px;
  border-radius: 16px;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.social-card.is-douyin {
  background: linear-gradient(145deg, #10131d 0%, #16202c 42%, #1d2d42 100%);
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.08);
}

.social-card.is-douyin::before {
  background: #27f2ea;
}

.social-card.is-xiaohongshu {
  background: linear-gradient(145deg, #fff4f4 0%, #ffe3e6 48%, #ffd6db 100%);
  border-color: rgba(204, 18, 59, 0.12);
}

.social-card.is-xiaohongshu::before {
  background: #ff2442;
}

.social-card.is-bilibili {
  background: linear-gradient(145deg, #f0fbff 0%, #dbf2ff 44%, #d1ecff 100%);
  border-color: rgba(25, 102, 175, 0.12);
}

.social-card.is-bilibili::before {
  background: #4aa8ff;
}

.social-card.is-generic {
  background: linear-gradient(145deg, #f7f8f8 0%, #eef2f1 100%);
}

.social-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.social-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.social-card.is-xiaohongshu .social-card-badge,
.social-card.is-bilibili .social-card-badge,
.social-card.is-generic .social-card-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(23, 33, 29, 0.08);
}

.social-card-account,
.social-card-summary,
.social-card-note {
  margin: 0;
  position: relative;
  z-index: 1;
}

.social-card.is-douyin .social-card-account,
.social-card.is-douyin .social-card-summary,
.social-card.is-douyin .social-card-note {
  color: rgba(248, 251, 255, 0.82);
}

.social-card-summary {
  font-size: 1rem;
  line-height: 1.6;
}

.social-card-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.social-card-actions {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.social-card-actions .button,
.social-card-actions .link,
.social-card-actions .social-card-ghost {
  min-height: 40px;
}

.social-card-ghost {
  background: transparent;
  border: 1px solid currentColor;
}

.social-card.is-douyin .social-card-ghost {
  color: #f8fbff;
  border-color: rgba(248, 251, 255, 0.42);
}

.social-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.social-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.62);
  backdrop-filter: blur(6px);
}

.social-qr-dialog {
  position: relative;
  width: min(460px, calc(100vw - 24px));
  margin: min(9vh, 54px) auto 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 24px 64px rgba(10, 28, 20, 0.18);
}

.social-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #40514a;
}

.social-qr-body {
  display: grid;
  gap: 12px;
}

.social-qr-modal-entry {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.social-qr-modal-entry h3 {
  margin: 0;
}

.social-qr-modal-image {
  width: min(320px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: var(--shadow);
}

body.is-social-qr-open {
  overflow: hidden;
}

.card,
.panel,
.auth-box,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card,
.panel,
.auth-box,
.admin-card {
  padding: 22px;
}

.card-meta,
.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f3ee;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
}

.article-list-head .lead {
  margin-top: 12px;
}

.article-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.92) 0%, #ffffff 34%);
}

.article-card-title {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.4;
}

.article-card-summary {
  line-height: 1.75;
}

.article-card .actions {
  margin-top: 6px;
}

.section-success-stories {
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.88), rgba(251, 251, 247, 0.96));
}

.success-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.success-story-collapsible {
  display: grid;
  gap: 18px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(183, 121, 31, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.success-story-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.success-story-collapsible-summary::-webkit-details-marker {
  display: none;
}

.success-story-collapsible-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  color: #1f2b26;
}

.success-story-collapsible-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #b7791f;
  border-bottom: 2px solid #b7791f;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.success-story-collapsible[open] .success-story-collapsible-title::before {
  transform: rotate(45deg);
}

.success-story-collapsible-note {
  color: var(--muted);
  font-size: 1.04rem;
  text-align: right;
}

.success-story-card {
  width: 100%;
  min-height: 0;
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(183, 121, 31, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 239, 0.92));
  box-shadow: 0 14px 30px rgba(16, 32, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.success-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 121, 31, 0.28);
  box-shadow: 0 20px 40px rgba(16, 32, 28, 0.12);
}

.success-story-more-row {
  display: flex;
  justify-content: center;
}

.success-story-more-button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(183, 121, 31, 0.22);
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(255, 255, 255, 0.96));
  color: #9b6114;
  font-weight: 800;
}

.success-story-card-top,
.success-story-modal-user,
.success-story-admin-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-story-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--red), var(--gold));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.success-story-avatar.is-large,
.success-story-admin-avatar {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  font-size: 1.1rem;
}

.success-story-admin-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--red), var(--gold));
  color: #fff;
  font-weight: 900;
}

.success-story-card-meta,
.success-story-course-copy {
  display: grid;
  gap: 4px;
}

.success-story-card-meta strong,
.success-story-modal-head h3 {
  font-size: 1.38rem;
  line-height: 1.3;
}

.success-story-modal-score {
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 700;
}

.success-story-scoreline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: var(--red);
}

.success-story-scoreline.is-compact {
  gap: 6px 10px;
}

.success-story-score-item {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.success-story-score-label {
  font-size: 1.08em;
  font-weight: 800;
  color: #9b6114;
}

.success-story-score-number {
  font-size: 1.08em;
  font-weight: 800;
  color: var(--red);
}

.success-story-modal-score .success-story-scoreline {
  gap: 8px 16px;
}

.success-story-modal-score .success-story-score-label {
  font-size: 1.2em;
}

.success-story-modal-score .success-story-score-number {
  font-size: 1.2em;
}

.success-story-card-title {
  margin: 0;
  font-size: 1.46rem;
  font-weight: 800;
  line-height: 1.45;
}

.success-story-card-excerpt {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.success-story-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #8a7462;
  font-size: 0.98rem;
}

.success-story-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214, 48, 49, 0.08);
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
}

.success-story-empty {
  padding: 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(183, 121, 31, 0.14);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.success-story-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.success-story-modal[hidden],
.success-story-modal-entry[hidden] {
  display: none;
}

.success-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.62);
  backdrop-filter: blur(8px);
}

.success-story-dialog {
  position: relative;
  width: min(1480px, calc(100vw - 8px));
  margin: 4px auto 0;
  height: calc(100vh - 8px);
  max-height: calc(100vh - 8px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 28px 70px rgba(10, 28, 20, 0.24);
  background: rgba(255, 255, 255, 0.98);
}

.success-story-dialog-body {
  height: 100%;
}

.success-story-modal-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) 460px;
  height: 100%;
  min-height: 0;
}

.success-story-modal-copy {
  padding: 30px 36px 28px;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 16px;
}

.success-story-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.success-story-modal-close {
  min-height: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
}

.success-story-modal-title {
  margin: 0;
  font-size: 1.96rem;
  line-height: 1.35;
}

.success-story-modal-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(183, 121, 31, 0.08);
  color: #7a5d34;
  font-size: 1.08rem;
  line-height: 1.7;
}

.success-story-modal-bodytext {
  color: #2b3934;
  font-size: 1.9rem;
  line-height: 1.84;
  white-space: normal;
}

.success-story-modal-head .eyebrow,
.success-story-course-head .eyebrow {
  font-size: 1.12rem;
}

.success-story-modal-head h3 {
  font-size: 1.92rem;
}

.success-story-modal-score {
  font-size: 2.06rem;
}

.success-story-inline-prices {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.success-story-modal-aside {
  padding: 30px 28px 28px;
  border-left: 1px solid rgba(23, 33, 29, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.94), rgba(247, 250, 248, 0.96));
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 12px;
}

.success-story-price-guide {
  display: grid;
  gap: 12px;
}

.success-story-price-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 11px 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 249, 0.95));
  box-shadow: 0 12px 24px rgba(17, 29, 24, 0.06);
  overflow: hidden;
}

.success-story-price-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: rgba(183, 121, 31, 0.5);
}

.success-story-price-item.is-xigui {
  border-color: rgba(183, 121, 31, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 217, 153, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 233, 0.99), rgba(255, 255, 255, 0.97));
}

.success-story-price-item.is-featured {
  box-shadow: 0 18px 36px rgba(183, 121, 31, 0.18);
}

.success-story-price-item.is-gaoxiang {
  border-color: rgba(27, 79, 143, 0.28);
  background:
    radial-gradient(circle at top right, rgba(120, 166, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(241, 246, 255, 0.99), rgba(255, 255, 255, 0.97));
}

.success-story-price-item.is-zhongxiang {
  border-color: rgba(15, 107, 87, 0.26);
  background:
    radial-gradient(circle at top right, rgba(92, 202, 164, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(239, 251, 246, 0.99), rgba(255, 255, 255, 0.97));
}

.success-story-price-item.is-xigui::before {
  background: linear-gradient(180deg, #e0a33e, #b7791f);
}

.success-story-price-item.is-gaoxiang::before {
  background: linear-gradient(180deg, #5c8fe9, #1b4f8f);
}

.success-story-price-item.is-zhongxiang::before {
  background: linear-gradient(180deg, #39b990, #0f6b57);
}

.success-story-price-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 118px);
}

.success-story-price-headline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.success-story-price-kicker {
  color: #9b6114;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.success-story-price-item.is-gaoxiang .success-story-price-kicker {
  color: #225ca5;
}

.success-story-price-item.is-zhongxiang .success-story-price-kicker {
  color: #0f7a62;
}

.success-story-price-course {
  color: #17211d;
  display: block;
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.14;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.success-story-price-badge {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(183, 121, 31, 0.16);
  color: #9b6114;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 26px;
}

.success-story-price-description {
  margin: 0;
  display: grid;
  gap: 2px;
  color: #5d6a64;
  font-size: 1.22rem;
  line-height: 1.5;
  font-weight: 600;
}

.success-story-price-description span {
  display: block;
  white-space: nowrap;
}

.success-story-price-value {
  flex: 0 0 98px;
  width: 98px;
  color: var(--red);
  font-size: 2.12rem;
  font-weight: 900;
  line-height: 1;
  padding-top: 2px;
  padding-right: 0;
  text-align: right;
  letter-spacing: -0.03em;
}

.success-story-price-item.is-xigui .success-story-price-value {
  color: #c34a2c;
}

.success-story-price-item.is-gaoxiang .success-story-price-value {
  color: #2e63c4;
}

.success-story-price-item.is-zhongxiang .success-story-price-value {
  color: #138767;
}

@media (min-width: 861px) {
  .success-story-modal-aside {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .success-story-price-guide {
    min-height: 0;
    height: 100%;
    grid-auto-rows: 1fr;
    align-content: stretch;
  }

  .success-story-price-item {
    min-height: 0;
    height: 100%;
  }
}

body.is-success-story-open {
  overflow: hidden;
}

.article-detail-page {
  padding-top: 42px;
}

@media (max-width: 1080px) {
  .success-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .success-story-modal-entry {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .success-story-modal-aside {
    padding: 24px 20px 20px;
  }

  .success-story-modal-copy {
    padding: 24px 24px 20px;
  }
}

@media (max-width: 860px) {
  .success-story-modal-entry {
    grid-template-columns: 1fr;
  }

  .success-story-modal-aside {
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 29, 0.08);
    padding: 18px 18px 20px;
  }
}

@media (max-width: 720px) {
  .success-story-collapsible {
    gap: 14px;
    padding: 14px;
  }

  .success-story-collapsible-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .success-story-collapsible-note {
    text-align: left;
    font-size: 0.96rem;
  }

  .success-story-grid {
    grid-template-columns: 1fr;
  }

  .success-story-card,
  .success-story-empty {
    padding: 18px;
  }

  .success-story-dialog {
    width: min(100vw - 16px, 100%);
    margin-top: 12px;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }

  .success-story-dialog-body,
  .success-story-modal-entry {
    height: 100%;
    min-height: 0;
  }

  .success-story-modal-copy,
  .success-story-modal-aside {
    padding: 18px;
  }

  .success-story-modal-title {
    font-size: 1.64rem;
  }

  .success-story-modal-bodytext {
    font-size: 1.56rem;
    line-height: 1.82;
  }

  .success-story-card-meta strong,
  .success-story-modal-head h3 {
    font-size: 1.24rem;
  }

  .success-story-modal-score {
    font-size: 1.34rem;
  }

  .success-story-card-title {
    font-size: 1.28rem;
  }

  .success-story-price-item {
    padding: 11px 12px 10px;
    border-radius: 14px;
  }

  .success-story-price-headline {
    gap: 8px;
  }

  .success-story-price-kicker {
    font-size: 1.12rem;
  }

  .success-story-price-course {
    font-size: 1.22rem;
  }

  .success-story-price-description {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .success-story-price-value {
    font-size: 1.92rem;
  }
}

.protocol-handout-admin-list {
  display: grid;
  gap: 10px;
}

.protocol-handout-admin-chapter {
  border: 1px solid var(--border, #d8dfe8);
  border-radius: 8px;
  background: #fff;
}

.protocol-handout-admin-chapter summary {
  padding: 12px 14px;
  cursor: pointer;
}

.protocol-handout-admin-chapter summary label {
  cursor: pointer;
  font-weight: 700;
}

.protocol-handout-admin-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  text-align: left;
}

.protocol-handout-admin-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  justify-self: start;
  accent-color: var(--brand, #0f766e);
}

.protocol-handout-admin-option span {
  min-width: 0;
}

.protocol-handout-admin-option.is-chapter {
  display: inline-grid;
  width: auto;
}

.protocol-handout-admin-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 0 14px 14px;
}

.protocol-handout-admin-sections label {
  min-width: 0;
  color: #374151;
}

.protocol-handout-admin-option.is-section {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
}

.protocol-handout-admin-option.is-section:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.protocol-handout-admin-option.is-section:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
}

.protocol-handout-admin-preview {
  padding: 0 14px 14px;
}

.student-handout-shell {
  display: grid;
  gap: 18px;
}

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

.student-handout-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.student-handout-card h2,
.student-handout-header h1 {
  margin: 0;
}

.student-handout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.student-handout-content {
  display: grid;
  gap: 14px;
}

.student-handout-terms {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #d8dfe8;
}

.student-handout-terms h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

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

.term-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d8dfe8;
  border-left: 3px solid #0f766e;
  border-radius: 8px;
  background: #f8fafc;
}

.term-card h3,
.term-card p {
  margin: 0;
}

.term-card strong {
  color: #0f766e;
  font-size: 0.88rem;
}

.term-card p {
  color: #475569;
  line-height: 1.65;
}

.protocol-handout-home-card {
  border-left: 3px solid #0f766e;
}

.protocol-practice-shell {
  width: min(1040px, calc(100vw - 32px));
}

.protocol-practice-sync-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-left: 3px solid #0f766e;
}

.protocol-practice-sync-status.is-error {
  border-left-color: #b45309;
}

.protocol-practice-sync-status p {
  margin: 6px 0 0;
  color: #64748b;
}

.protocol-practice-sync-status > span {
  color: #64748b;
  font-size: 0.88rem;
  white-space: nowrap;
}

.protocol-drill-page .student-practice-shell {
  min-width: 0;
}

.protocol-drill-unit-card.is-all {
  border-left: 3px solid #0f766e;
}

.protocol-drill-unit-card.is-empty {
  opacity: 0.78;
  cursor: default;
}

.protocol-practice-directory,
.protocol-practice-group {
  display: grid;
  gap: 14px;
}

.protocol-practice-directory-head,
.protocol-practice-group-head,
.protocol-practice-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.protocol-practice-directory-head h2,
.protocol-practice-group-head h3,
.protocol-practice-unit-head h2 {
  margin: 0;
}

.protocol-practice-directory-head span,
.protocol-practice-group-head span {
  color: #64748b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.protocol-practice-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.protocol-practice-unit-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8dfe8;
  border-left: 3px solid #0f766e;
  border-radius: 8px;
  color: #1f2937;
  background: #fff;
}

.protocol-practice-unit-card:hover {
  border-color: #88aaa2;
  background: #f7fbfa;
}

.protocol-practice-unit-card.is-empty {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.protocol-practice-unit-card strong {
  line-height: 1.5;
}

.protocol-practice-unit-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.protocol-practice-unit-card > span {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 700;
}

.protocol-practice-unit {
  display: grid;
  gap: 16px;
}

.protocol-practice-unit-head {
  padding: 2px 0;
}

.protocol-practice-unit-head .eyebrow,
.protocol-practice-unit-head .muted {
  margin: 0 0 6px;
}

.protocol-practice-unit-head .muted {
  margin: 7px 0 0;
}

.protocol-practice-question-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.protocol-practice-question-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #0f5f55;
  background: #e7f3ef;
  font-size: 0.78rem;
  font-weight: 700;
}

.protocol-practice-question-meta span + span {
  color: #80520a;
  background: #fff2d7;
}

.protocol-practice-prompts {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.protocol-practice-prompts p {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  line-height: 1.65;
}

.protocol-practice-case-list {
  display: grid;
  gap: 12px;
}

.protocol-practice-case {
  border: 1px solid #d8dfe8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.protocol-practice-case > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.protocol-practice-case > summary::-webkit-details-marker {
  display: none;
}

.protocol-practice-case > summary span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.88rem;
}

.protocol-practice-case[open] > summary {
  border-bottom: 1px solid #d8dfe8;
  background: #f7fbfa;
}

.protocol-practice-case-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.protocol-practice-material {
  padding: 14px;
  border-left: 3px solid #c18a24;
  background: #fff9ed;
}

.protocol-practice-material h4,
.protocol-practice-material p {
  margin: 0;
}

.protocol-practice-material p {
  margin-top: 8px;
  line-height: 1.75;
}

.protocol-practice-question .handout-quiz-answer > div + div,
.protocol-practice-question .handout-quiz-answer > div + p {
  margin-top: 12px;
}

.protocol-practice-question .handout-quiz-answer div p {
  margin: 7px 0 0;
  line-height: 1.7;
}

.protocol-practice-empty h2,
.protocol-practice-empty p {
  margin: 0;
}

.protocol-practice-empty h2 {
  margin-top: 6px;
}

.protocol-practice-empty p:last-child {
  margin-top: 10px;
  color: #64748b;
}

@media (max-width: 720px) {
  .protocol-handout-admin-sections,
  .student-handout-library,
  .term-card-grid,
  .protocol-practice-directory-grid {
    grid-template-columns: 1fr;
  }

  .student-handout-header {
    display: grid;
  }

  .protocol-practice-shell {
    width: min(100%, calc(100vw - 24px));
  }

  .protocol-practice-directory-head,
  .protocol-practice-group-head,
  .protocol-practice-unit-head,
  .protocol-practice-case > summary {
    display: grid;
  }

  .protocol-practice-sync-status {
    display: grid;
  }

  .protocol-practice-unit-card {
    align-items: flex-start;
  }

  .protocol-practice-unit-card > span {
    white-space: nowrap;
  }
}

.article-detail-wrap {
  width: min(900px, calc(100vw - 32px));
}

.article-detail-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.article-detail-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.22;
  max-width: 16ch;
}

.article-detail-hero .lead {
  margin-top: 0;
  max-width: 60ch;
}

.article-body {
  padding: 30px 32px;
}

.qr {
  max-width: 220px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-shop-card {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 107, 87, 0.08), rgba(15, 107, 87, 0) 40%),
    #fff;
}

.course-shop-card.is-hero {
  grid-template-columns: minmax(0, 1.2fr) 220px;
  align-items: center;
}

.course-shop-card.is-aside {
  margin-top: 20px;
}

.course-shop-copy {
  display: grid;
  gap: 8px;
}

.course-shop-copy h2 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.course-shop-copy .actions {
  margin-top: 10px;
}

.course-shop-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.course-shop-qr {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.course-shop-qr-note {
  font-size: 0.9rem;
  text-align: center;
}

.course-shop-admin-preview {
  max-width: 220px;
  aspect-ratio: 1 / 1;
}

.course-sales-admin-list {
  display: grid;
  gap: 18px;
}

.course-sales-admin-group {
  gap: 16px;
}

.course-sales-admin-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.course-sales-admin-entry {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 248, 0.9);
}

.course-sales-admin-preview {
  max-width: 220px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.course-detail-page {
  padding-top: 42px;
}

.course-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 24px;
  align-items: start;
}

.course-detail-main,
.course-detail-side {
  display: grid;
  gap: 20px;
}

.course-detail-hero-card {
  display: grid;
  gap: 14px;
  padding: 30px 32px;
  background:
    radial-gradient(circle at top left, rgba(186, 146, 67, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(15, 107, 87, 0.08), rgba(255, 255, 255, 0) 44%),
    #fff;
}

.course-detail-hero-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  max-width: none;
  white-space: normal;
}

.course-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(232, 243, 238, 0.96);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.course-detail-section {
  display: grid;
  gap: 18px;
}

.course-detail-section-head {
  display: grid;
  gap: 6px;
}

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

.course-visual-slot {
  display: grid;
  gap: 10px;
}

.course-visual-media {
  min-height: 280px;
}

.course-visual-media.is-image {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(245, 248, 246, 0.92);
}

.course-visual-media.is-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.course-visual-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed rgba(23, 33, 29, 0.22);
  background:
    linear-gradient(135deg, rgba(249, 250, 248, 0.98), rgba(239, 245, 241, 0.92));
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.course-visual-placeholder span {
  font-size: 1.08rem;
  font-weight: 700;
}

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

.course-price-group-stack {
  display: grid;
  gap: 22px;
}

.course-price-group {
  display: grid;
  gap: 14px;
}

.course-price-group-bar {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.course-price-group.is-pass-course .course-price-group-bar {
  background: linear-gradient(90deg, rgba(15, 107, 87, 0.16), rgba(15, 107, 87, 0.06));
  color: var(--green);
}

.course-price-group.is-paper-course .course-price-group-bar {
  background: linear-gradient(90deg, rgba(183, 121, 31, 0.18), rgba(183, 121, 31, 0.08));
  color: #8c5a12;
}

.course-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-price-action-button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-buy-page {
  padding-top: 32px;
}

.quick-buy-shell {
  display: grid;
  gap: 22px;
}

.quick-buy-hero {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(186, 146, 67, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.95));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 22px 44px rgba(16, 32, 28, 0.06);
}

.quick-buy-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
}

.quick-buy-hero .lead {
  margin: 0;
  max-width: 40ch;
}

.quick-buy-sections {
  display: grid;
  gap: 22px;
}

.quick-buy-course-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid var(--quick-buy-accent-border, rgba(23, 33, 29, 0.08));
  background:
    radial-gradient(circle at top right, var(--quick-buy-accent-soft, rgba(15, 107, 87, 0.08)), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 248, 0.96));
  box-shadow: 0 24px 44px rgba(16, 32, 28, 0.06);
}

.quick-buy-course-section.is-xigui {
  --quick-buy-accent: #0f6b57;
  --quick-buy-accent-soft: rgba(15, 107, 87, 0.1);
  --quick-buy-accent-border: rgba(15, 107, 87, 0.2);
}

.quick-buy-course-section.is-gaoxiang {
  --quick-buy-accent: #1b4f8f;
  --quick-buy-accent-soft: rgba(27, 79, 143, 0.1);
  --quick-buy-accent-border: rgba(27, 79, 143, 0.22);
}

.quick-buy-course-section.is-zhongxiang {
  --quick-buy-accent: #b7791f;
  --quick-buy-accent-soft: rgba(183, 121, 31, 0.12);
  --quick-buy-accent-border: rgba(183, 121, 31, 0.24);
}

.quick-buy-course-head {
  display: grid;
  gap: 6px;
  padding: 4px 2px;
}

.quick-buy-course-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  line-height: 1.16;
}

.quick-buy-course-head .muted {
  margin: 0;
  max-width: 56ch;
  font-size: 1.02rem;
}

.quick-buy-course-banner {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--quick-buy-accent-soft, rgba(15, 107, 87, 0.08)), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--quick-buy-accent-border, rgba(23, 33, 29, 0.08));
}

.quick-buy-course-banner strong {
  font-size: 1.12rem;
  color: var(--quick-buy-accent, var(--ink));
}

.quick-buy-course-banner span {
  color: var(--muted);
  font-size: 1rem;
}

.quick-buy-group-grid {
  display: grid;
  gap: 16px;
}

.quick-buy-group-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 246, 0.94));
  border: 1px solid var(--quick-buy-accent-border, rgba(23, 33, 29, 0.08));
  box-shadow: 0 18px 34px rgba(16, 32, 28, 0.06);
}

.quick-buy-group-card.has-premium-package {
  box-shadow: 0 24px 40px rgba(16, 32, 28, 0.08);
}

.quick-buy-group-copy {
  display: grid;
  gap: 8px;
}

.quick-buy-group-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.3;
}

.quick-buy-group-copy .muted {
  margin: 0;
  font-size: 1.06rem;
}

.quick-buy-package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.quick-buy-package-card {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 28, 0.04);
}

.quick-buy-package-card.is-xigui {
  border-color: rgba(15, 107, 87, 0.18);
}

.quick-buy-package-card.is-gaoxiang {
  border-color: rgba(27, 79, 143, 0.18);
}

.quick-buy-package-card.is-zhongxiang {
  border-color: rgba(183, 121, 31, 0.22);
}

.quick-buy-package-card.is-featured {
  box-shadow: 0 18px 34px rgba(16, 32, 28, 0.08);
  transform: translateY(-1px);
  border-width: 2px;
}

.quick-buy-package-card.is-xigui.is-featured {
  background: linear-gradient(180deg, rgba(243, 249, 245, 0.98), #fff);
}

.quick-buy-package-card.is-gaoxiang.is-featured {
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.98), #fff);
}

.quick-buy-package-card.is-zhongxiang.is-featured {
  background: linear-gradient(180deg, rgba(252, 247, 238, 0.98), #fff);
}

.quick-buy-package-card.is-premium {
  border-width: 2px;
}

.quick-buy-package-card.is-xigui.is-premium {
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(240, 248, 244, 0.98));
}

.quick-buy-package-card.is-zhongxiang.is-premium {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(253, 245, 228, 0.98));
}

.quick-buy-package-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.quick-buy-package-copy {
  display: grid;
  gap: 6px;
}

.quick-buy-package-copy h4 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.32;
}

.quick-buy-package-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.quick-buy-package-price {
  white-space: nowrap;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--quick-buy-accent, var(--ink));
}

.quick-buy-package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-buy-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quick-buy-tag.is-featured {
  background: var(--quick-buy-accent, var(--green));
  color: #fff;
}

.quick-buy-tag.is-premium {
  background: linear-gradient(135deg, #f3d589, #d7a637);
  color: #5a3a07;
}

.quick-buy-package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-buy-package-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-buy-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-buy-benefits li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.quick-buy-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--quick-buy-accent, var(--green));
  transform: translateY(-50%);
}

.quick-buy-package-actions {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(23, 33, 29, 0.08);
}

.quick-buy-package-actions .muted {
  margin: 0;
  font-size: 0.94rem;
}

.quick-buy-channel-strip {
  display: grid;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid rgba(23, 33, 29, 0.08);
}

.quick-buy-channel-strip .muted {
  margin: 0;
  font-size: 1rem;
}

.quick-buy-actions {
  gap: 14px;
}

.quick-buy-action-button {
  min-height: 54px;
  padding: 0 22px;
  font-size: 1.02rem;
  font-weight: 800;
  justify-content: center;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 14px 26px rgba(16, 32, 28, 0.12);
}

.quick-buy-action-button.is-xigui {
  background: linear-gradient(135deg, #0f6b57, #12906f);
}

.quick-buy-action-button.is-gaoxiang {
  background: linear-gradient(135deg, #1b4f8f, #2d6ab6);
}

.quick-buy-action-button.is-zhongxiang {
  background: linear-gradient(135deg, #b7791f, #d39834);
}

.quick-buy-action-button:hover {
  transform: translateY(-1px);
}

.quick-buy-action-button.is-xigui:hover {
  box-shadow: 0 18px 34px rgba(15, 107, 87, 0.24);
}

.quick-buy-action-button.is-gaoxiang:hover {
  box-shadow: 0 18px 34px rgba(27, 79, 143, 0.24);
}

.quick-buy-action-button.is-zhongxiang:hover {
  box-shadow: 0 18px 34px rgba(183, 121, 31, 0.24);
}

.course-price-actions-inline {
  margin-top: -2px;
  margin-bottom: 4px;
}

.course-price-actions-inline .course-price-action-button {
  min-height: 42px;
  padding: 0 16px;
}

.course-price-action-抖音 {
  background: linear-gradient(135deg, #0f6b57, #0c8a6f);
}

.course-price-action-小红书 {
  background: linear-gradient(135deg, #d94b61, #c9354c);
}

.course-price-action-微信小店 {
  background: linear-gradient(135deg, #1b8f53, #2aa769);
}

.course-price-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 246, 0.94));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 18px 34px rgba(16, 32, 28, 0.06);
}

.course-price-card.is-pass-course {
  background:
    radial-gradient(circle at top right, rgba(121, 201, 159, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(243, 249, 245, 0.99), rgba(232, 243, 238, 0.95));
  border-color: rgba(15, 107, 87, 0.2);
}

.course-price-card.is-paper-course {
  background:
    radial-gradient(circle at top right, rgba(212, 171, 95, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(250, 247, 239, 0.99), rgba(245, 237, 214, 0.95));
  border-color: rgba(183, 121, 31, 0.26);
}

.course-price-card.is-agreement-course {
  background:
    radial-gradient(circle at top right, rgba(240, 205, 115, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 240, 0.99), rgba(248, 239, 214, 0.96));
  border-color: rgba(182, 123, 31, 0.3);
  box-shadow: 0 22px 42px rgba(140, 90, 18, 0.12);
}

.course-price-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.course-price-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.course-price-category,
.course-price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.course-price-category {
  background: rgba(15, 107, 87, 0.12);
  color: var(--green);
}

.course-price-card.is-paper-course .course-price-category {
  background: rgba(183, 121, 31, 0.14);
  color: #8c5a12;
}

.course-price-card.is-agreement-course .course-price-category {
  background: rgba(182, 123, 31, 0.14);
  color: #8c5a12;
}

.course-price-badge.is-checkin {
  background: #e9f3ff;
  color: #225d98;
}

.course-price-badge.is-free {
  background: #fff1e8;
  color: #b85a18;
}

.course-price-badge.is-vip {
  background: linear-gradient(135deg, #c6922a, #f0cd73);
  color: #3a2500;
  box-shadow: 0 10px 18px rgba(198, 146, 42, 0.24);
}

.course-price-card.is-vip-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(240, 205, 115, 0.36), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 236, 0.99), rgba(252, 243, 215, 0.96));
  border: 1px solid rgba(198, 146, 42, 0.34);
  box-shadow: 0 26px 46px rgba(140, 90, 18, 0.16);
}

.course-price-card.is-vip-card::after {
  content: "主推";
  position: absolute;
  top: 16px;
  right: -34px;
  min-width: 120px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b67b1f, #e3b85d);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(35deg);
  box-shadow: 0 10px 20px rgba(140, 90, 18, 0.22);
}

.course-price-card.no-featured-ribbon::after {
  display: none;
}

.course-price-card.is-vip-card .course-price-category {
  background: rgba(182, 123, 31, 0.14);
  color: #8c5a12;
}

.course-price-card.is-vip-card .course-price-head h3 {
  font-size: 1.42rem;
}

.course-price-card.is-vip-card .course-price-value {
  color: #8c5a12;
  font-size: 2.9rem;
}

.course-price-card.is-vip-card .course-price-feature-main {
  background: rgba(182, 123, 31, 0.1);
  border-color: rgba(182, 123, 31, 0.14);
}


.course-price-head h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  line-height: 1.35;
}

.course-price-value {
  color: var(--green);
  font-size: 2.4rem;
  line-height: 0.95;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.course-price-card.is-paper-course .course-price-value {
  color: #8c5a12;
}

.course-price-card.is-agreement-course .course-price-value {
  color: #8c5a12;
}

.course-price-validity,
.course-price-materials {
  color: var(--muted);
  line-height: 1.7;
}

.course-price-validity {
  font-weight: 700;
  color: var(--ink);
}

.course-price-features {
  gap: 12px;
}

.course-price-feature-stack {
  padding-left: 0;
  list-style: none;
}

.course-price-features li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 33, 29, 0.06);
}

.course-price-feature-main {
  font-weight: 700;
}

.course-price-features,
.course-side-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
}

.course-price-features li,
.course-side-list li {
  color: var(--ink);
  line-height: 1.7;
}

.course-side-card {
  display: grid;
  gap: 10px;
}

.course-detail-side .actions {
  margin-top: -4px;
}

.xigui-landing-page {
  --xigui-bg: #f4f0e4;
  --xigui-paper: var(--paper);
  --xigui-surface: rgba(255, 255, 255, 0.92);
  --xigui-surface-soft: #f7f4ea;
  --xigui-line: rgba(15, 107, 87, 0.14);
  --xigui-line-strong: rgba(15, 107, 87, 0.24);
  --xigui-ink: var(--ink);
  --xigui-muted: var(--muted);
  --xigui-primary: var(--green);
  --xigui-primary-deep: #0b5645;
  --xigui-gold: var(--gold);
  --xigui-shadow: 0 24px 60px rgba(16, 32, 28, 0.1);
  background:
    radial-gradient(circle at top left, rgba(183, 121, 31, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 107, 87, 0.1), transparent 22%),
    linear-gradient(180deg, #f7f4ea 0%, #f3f6ef 42%, #f8f7f1 100%);
  color: var(--xigui-ink);
}

.xigui-landing-page .xigui-page {
  padding: 34px 0 82px;
}

.xigui-landing-page .xigui-shell {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 244, 0.94));
  border-radius: 36px;
  padding: 36px 42px 40px;
  border: 1px solid rgba(15, 107, 87, 0.08);
  box-shadow: var(--xigui-shadow);
  backdrop-filter: blur(16px);
}

.xigui-landing-page .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.xigui-landing-page .top-bar .breadcrumb {
  font-size: 15px;
  color: var(--xigui-muted);
  line-height: 1.7;
}

.xigui-landing-page .top-bar .breadcrumb a {
  color: var(--xigui-primary);
  text-decoration: none;
}

.xigui-landing-page .top-bar .breadcrumb a:hover {
  color: var(--xigui-primary-deep);
  text-decoration: underline;
}

.xigui-landing-page .btn-back,
.xigui-landing-page .btn-link-sm,
.xigui-landing-page .btn-qr-sm,
.xigui-landing-page .qr-modal .btn-close,
.xigui-landing-page .xigui-primary-action,
.xigui-landing-page .xigui-secondary-action,
.xigui-landing-page .xigui-trial-action {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.xigui-landing-page .btn-back,
.xigui-landing-page .btn-qr-sm,
.xigui-landing-page .xigui-secondary-action {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 107, 87, 0.18);
  color: var(--xigui-ink);
  box-shadow: 0 10px 24px rgba(16, 32, 28, 0.06);
}

.xigui-landing-page .btn-back:hover,
.xigui-landing-page .btn-qr-sm:hover,
.xigui-landing-page .xigui-secondary-action:hover {
  border-color: rgba(15, 107, 87, 0.34);
  color: var(--xigui-primary);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(16, 32, 28, 0.08);
}

.xigui-landing-page .course-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 28px;
}

.xigui-landing-page .xigui-hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px 6px 14px;
}

.xigui-landing-page .course-header .left .name {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--xigui-ink);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.xigui-landing-page .course-header .left .name .title-prefix {
  display: block;
  margin-bottom: 10px;
}

.xigui-landing-page .course-header .left .name .title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.xigui-landing-page .course-header .left .name .badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(15, 107, 87, 0.1);
  color: var(--xigui-primary);
}

.xigui-landing-page .course-header .left .desc {
  font-size: 18px;
  color: var(--xigui-muted);
  line-height: 1.85;
  max-width: 34em;
}

.xigui-landing-page .xigui-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.xigui-landing-page .xigui-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 107, 87, 0.14);
  color: #264d43;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 32, 28, 0.05);
}

.xigui-landing-page .trial-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 238, 0.95));
  border-radius: 28px;
  border: 1px solid rgba(15, 107, 87, 0.14);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 42px rgba(16, 32, 28, 0.08);
}

.xigui-landing-page .trial-section .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--xigui-ink);
}

.xigui-landing-page .trial-section .section-label small {
  font-size: 15px;
  font-weight: 500;
  color: var(--xigui-muted);
}

.xigui-landing-page .xigui-trial-video-frame {
  border-radius: 22px;
  border-color: rgba(15, 107, 87, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.xigui-landing-page .xigui-trial-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--xigui-muted);
}

.xigui-landing-page .xigui-trial-actions {
  display: flex;
  justify-content: flex-start;
}

.xigui-landing-page .xigui-primary-action,
.xigui-landing-page .btn-link-sm,
.xigui-landing-page .qr-modal .btn-close,
.xigui-landing-page .xigui-trial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--xigui-primary), var(--xigui-primary-deep));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 107, 87, 0.18);
}

.xigui-landing-page .xigui-primary-action:hover,
.xigui-landing-page .btn-link-sm:hover,
.xigui-landing-page .qr-modal .btn-close:hover,
.xigui-landing-page .xigui-trial-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #15836a, #0c5f4d);
  box-shadow: 0 18px 34px rgba(15, 107, 87, 0.22);
}

.xigui-landing-page .package-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
  padding: 8px;
  background: rgba(15, 107, 87, 0.07);
  border-radius: 26px;
  border: 1px solid rgba(15, 107, 87, 0.12);
}

.xigui-landing-page .package-tab {
  min-height: 74px;
  padding: 16px 22px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  color: var(--xigui-muted);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  text-align: left;
  box-shadow: none;
}

.xigui-landing-page .package-tab:hover {
  color: var(--xigui-primary);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 107, 87, 0.12);
}

.xigui-landing-page .package-tab.active {
  color: var(--xigui-ink);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 107, 87, 0.16);
  box-shadow: 0 14px 30px rgba(16, 32, 28, 0.1);
}

.xigui-landing-page .package-tab.active::after {
  content: "";
  position: absolute;
  inset: auto 18px 8px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--xigui-primary), rgba(183, 121, 31, 0.92));
}

.xigui-landing-page .package-tab .price-tag {
  display: inline-flex;
  margin-left: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--xigui-gold);
}

.xigui-landing-page .package-tab .vip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #8a5b17;
  background: rgba(183, 121, 31, 0.16);
}

.xigui-landing-page .xigui-action-strip {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(252, 251, 247, 0.94);
  border: 1px solid rgba(15, 107, 87, 0.16);
  box-shadow: 0 18px 42px rgba(16, 32, 28, 0.12);
  backdrop-filter: blur(18px);
}

.xigui-landing-page .xigui-action-strip-copy {
  display: grid;
  gap: 6px;
}

.xigui-landing-page .xigui-action-strip-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--xigui-muted);
}

.xigui-landing-page .xigui-action-strip-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.xigui-landing-page .xigui-action-strip-main strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--xigui-ink);
}

.xigui-landing-page .xigui-action-strip-main span {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: var(--xigui-gold);
}

.xigui-landing-page .xigui-action-strip-copy p {
  margin: 0;
  font-size: 15px;
  color: var(--xigui-muted);
}

.xigui-landing-page .xigui-action-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.xigui-landing-page .package-panel {
  display: none;
  animation: fadeUp 0.3s ease;
}

.xigui-landing-page .package-panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xigui-landing-page .xigui-package-card {
  padding: 30px 32px 32px;
  border-radius: 30px;
  border: 1px solid rgba(15, 107, 87, 0.12);
  background:
    radial-gradient(circle at top right, rgba(183, 121, 31, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 238, 0.98));
  box-shadow: 0 24px 52px rgba(16, 32, 28, 0.08);
}

.xigui-landing-page .package-panel .price-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.xigui-landing-page .package-panel .price-row .price {
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--xigui-primary);
}

.xigui-landing-page .package-panel .price-row .price span {
  margin-left: 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--xigui-muted);
}

.xigui-landing-page .package-panel .price-row .tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.xigui-landing-page .package-panel .price-row .tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: var(--xigui-primary);
  font-size: 14px;
  font-weight: 800;
}

.xigui-landing-page .package-panel .price-row .tags .tag.hot {
  background: rgba(183, 121, 31, 0.15);
  color: #8a5b17;
}

.xigui-landing-page .package-panel .price-row .tags .tag.vip {
  background: rgba(23, 33, 29, 0.08);
  color: #38423f;
}

.xigui-landing-page .benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.xigui-landing-page .xigui-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.xigui-landing-page .xigui-package-option {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(16, 32, 28, 0.05);
}

.xigui-landing-page .xigui-package-option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.xigui-landing-page .xigui-package-option-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--xigui-ink);
}

.xigui-landing-page .xigui-package-option-head p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--xigui-muted);
}

.xigui-landing-page .xigui-package-option-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 900;
  color: var(--xigui-gold);
}

.xigui-landing-page .xigui-package-option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xigui-landing-page .xigui-package-option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xigui-landing-page .xigui-package-option-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.08);
  color: var(--xigui-muted);
  font-size: 14px;
  font-weight: 700;
}

.xigui-landing-page .xigui-package-option-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.xigui-landing-page .xigui-package-option-features li {
  color: var(--xigui-ink);
  line-height: 1.72;
  font-size: 16px;
}

.xigui-landing-page .xigui-package-panel-note {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--xigui-muted);
}

.xigui-landing-page .benefit-item {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 107, 87, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 32, 28, 0.05);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--xigui-ink);
}

.xigui-landing-page .benefit-item .icon {
  font-size: 24px;
  line-height: 1.2;
}

.xigui-landing-page .info-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 22px;
  border-left: 4px solid var(--xigui-gold);
  background: linear-gradient(135deg, rgba(15, 107, 87, 0.08), rgba(183, 121, 31, 0.08));
}

.xigui-landing-page .info-box .label {
  font-size: 16px;
  font-weight: 800;
  color: var(--xigui-ink);
}

.xigui-landing-page .info-box .value {
  font-size: 19px;
  font-weight: 900;
  color: var(--xigui-primary);
}

.xigui-landing-page .info-box .info-note {
  font-size: 15px;
  color: var(--xigui-muted);
}

.xigui-landing-page .channels-section {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(15, 107, 87, 0.12);
  background: rgba(247, 244, 236, 0.92);
}

.xigui-landing-page .channels-section .title {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
  color: var(--xigui-ink);
}

.xigui-landing-page .channels-section .title small {
  font-size: 15px;
  font-weight: 500;
  color: var(--xigui-muted);
}

.xigui-landing-page .channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.xigui-landing-page .channel-card {
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 107, 87, 0.12);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 14px 30px rgba(16, 32, 28, 0.06);
}

.xigui-landing-page .channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--xigui-line-strong);
  box-shadow: 0 22px 38px rgba(16, 32, 28, 0.1);
}

.xigui-landing-page .channel-card .platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: var(--xigui-primary);
  font-size: 13px;
  font-weight: 800;
}

.xigui-landing-page .channel-card .platform-name {
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: var(--xigui-ink);
}

.xigui-landing-page .channel-card .platform-desc {
  min-height: 4.8em;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--xigui-muted);
}

.xigui-landing-page .channel-card .actions {
  display: grid;
  gap: 10px;
}

.xigui-landing-page .btn-link-sm,
.xigui-landing-page .btn-qr-sm {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.xigui-landing-page .qr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  background: rgba(15, 19, 16, 0.42);
  backdrop-filter: blur(8px);
}

.xigui-landing-page .qr-modal-overlay.show {
  display: flex;
}

.xigui-landing-page .qr-modal {
  width: calc(100% - 28px);
  max-width: 420px;
  padding: 28px 32px 24px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8f6ef);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  animation: fadeUp 0.3s ease;
}

.xigui-landing-page .qr-modal-image {
  width: min(100%, 280px);
  margin: 16px auto 14px;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(15, 107, 87, 0.12);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(16, 32, 28, 0.08);
}

.xigui-landing-page .qr-modal-empty {
  margin: 16px 0 14px;
  padding: 28px 20px;
  border-radius: 18px;
  border: 2px dashed rgba(15, 107, 87, 0.18);
  background: #f4f3ed;
  color: #8b968f;
  font-size: 15px;
}

.xigui-landing-page .qr-modal .platform-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--xigui-ink);
}

.xigui-landing-page .qr-modal .hint {
  font-size: 15px;
  line-height: 1.7;
  color: var(--xigui-muted);
}

.xigui-landing-page a:focus-visible,
.xigui-landing-page button:focus-visible {
  outline: 3px solid rgba(15, 107, 87, 0.22);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .xigui-landing-page .xigui-shell {
    padding: 28px 24px 30px;
  }

  .xigui-landing-page .course-header {
    grid-template-columns: 1fr;
  }

  .xigui-landing-page .channel-grid,
  .xigui-landing-page .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xigui-landing-page .xigui-action-strip {
    top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .xigui-landing-page .xigui-action-strip-actions {
    width: 100%;
  }

  .xigui-landing-page .xigui-primary-action,
  .xigui-landing-page .xigui-secondary-action {
    flex: 1 1 0;
  }
}

@media (max-width: 720px) {
  .xigui-landing-page .xigui-page {
    padding: 18px 0 calc(88px + env(safe-area-inset-bottom));
  }

  .xigui-landing-page .xigui-shell {
    width: min(100vw - 24px, 100%);
    padding: 20px 16px 22px;
    border-radius: 24px;
  }

  .xigui-landing-page .top-bar {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .xigui-landing-page .course-header .left .name {
    font-size: clamp(34px, 10vw, 42px);
  }

  .xigui-landing-page .course-header .left .name .title-prefix {
    margin-bottom: 8px;
  }

  .xigui-landing-page .course-header .left .name .title-main {
    gap: 8px 12px;
  }

  .xigui-landing-page .course-header .left .desc {
    font-size: 17px;
  }

  .xigui-landing-page .package-tabs {
    grid-template-columns: 1fr;
  }

  .xigui-landing-page .package-tab {
    min-height: 64px;
    padding: 14px 16px;
    font-size: 18px;
  }

  .xigui-landing-page .xigui-action-strip {
    position: sticky;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 14px;
    border-radius: 20px;
  }

  .xigui-landing-page .xigui-action-strip-main strong {
    font-size: 22px;
  }

  .xigui-landing-page .xigui-action-strip-main span {
    font-size: 24px;
  }

  .xigui-landing-page .xigui-action-strip-actions {
    flex-direction: column;
  }

  .xigui-landing-page .xigui-primary-action,
  .xigui-landing-page .xigui-secondary-action,
  .xigui-landing-page .xigui-trial-action {
    width: 100%;
    min-height: 48px;
  }

  .xigui-landing-page .xigui-package-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .xigui-landing-page .package-panel .price-row .price {
    font-size: 40px;
  }

  .xigui-landing-page .benefit-grid,
  .xigui-landing-page .channel-grid {
    grid-template-columns: 1fr;
  }

  .xigui-landing-page .xigui-trial-actions {
    width: 100%;
  }

  .xigui-landing-page .xigui-package-grid {
    grid-template-columns: 1fr;
  }

  .xigui-landing-page .xigui-package-option {
    padding: 18px 16px;
  }

  .xigui-landing-page .xigui-package-option-head {
    flex-direction: column;
  }
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.icp-record {
  margin: 4px 0 0;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icp-record a {
  color: inherit;
}

.auth-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth-box {
  width: min(480px, 100%);
}

.auth-page-compact {
  padding: 28px 16px;
}

.auth-box-compact {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: var(--shadow);
}

.auth-box-compact h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.auth-box-compact .muted,
.auth-box-compact .notice,
.auth-box-compact label {
  font-size: 0.98rem;
}

.auth-box-compact input,
.auth-box-compact textarea,
.auth-box-compact select,
.auth-box-compact .button,
.auth-box-compact input[type="submit"] {
  min-height: 44px;
}

.auth-password-card {
  gap: 12px;
}

.auth-page-login {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  justify-items: stretch;
}

.auth-login-card-stacked {
  gap: 16px;
}

.auth-login-overview {
  display: grid;
  gap: 10px;
}

.auth-login-overview .muted {
  margin: 0;
  max-width: 58ch;
}

.auth-step-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.auth-step-head,
.auth-temp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-step-head h2,
.auth-temp-head h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  line-height: 1.25;
}

.auth-step-head .muted,
.auth-temp-head .muted,
.auth-contact-text {
  margin: 6px 0 0;
}

.auth-login-step-card .auth-login-form,
.auth-temp-form {
  gap: 12px;
}

.auth-access-request-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.button.primary.auth-access-request-button,
button.primary.auth-access-request-button {
  width: 100%;
  min-height: 62px;
  font-size: 1.08rem;
  background: #ff5a1f;
  border-color: #ff5a1f;
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 90, 31, 0.42);
  animation: accessRequestPulse 1.05s ease-in-out infinite;
}

.button.primary.auth-access-request-button:hover,
button.primary.auth-access-request-button:hover {
  background: #ef3f15;
  border-color: #ef3f15;
}

.auth-access-request-hint {
  margin: 0;
  font-weight: 700;
}

.auth-access-request-done {
  display: grid;
  gap: 4px;
}

.auth-access-request-done span {
  color: var(--muted);
}

@keyframes accessRequestPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 34px rgba(255, 90, 31, 0.36);
  }
  50% {
    transform: translateY(-2px) scale(1.012);
    box-shadow: 0 22px 44px rgba(255, 90, 31, 0.62);
  }
}

.access-review-panel {
  overflow: hidden;
}

.access-date-summary {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 107, 87, 0.08);
  color: var(--green);
  font-weight: 800;
}

.access-choice-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.72);
}

.access-choice-section h3 {
  margin: 0;
}

.access-choice-section .muted {
  margin: 0;
}

.access-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.access-choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(23, 33, 29, 0.1);
  background: #fff;
  cursor: pointer;
}

.access-choice-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(15, 107, 87, 0.16);
}

.access-choice-learning:nth-child(1) {
  border-color: rgba(15, 107, 87, 0.38);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), #fff);
}

.access-choice-learning:nth-child(2) {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), #fff);
}

.access-choice-learning:nth-child(3) {
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.94), #fff);
}

.access-choice-paper {
  border-color: rgba(245, 120, 37, 0.34);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), #fff);
}

.access-choice-learning:nth-child(1):has(input:checked) {
  border-color: #0f6b57;
}

.access-choice-learning:nth-child(2):has(input:checked) {
  border-color: #2563eb;
}

.access-choice-learning:nth-child(3):has(input:checked) {
  border-color: #7c3aed;
}

.access-choice-paper:has(input:checked) {
  border-color: #f97316;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.18);
}

.access-choice-main {
  display: grid;
  gap: 4px;
}

.access-choice-main strong {
  font-size: 1.1rem;
}

.access-choice-main small {
  color: var(--muted);
}

.access-choice-tag {
  grid-column: 2;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.access-choice-paper .access-choice-tag {
  background: rgba(184, 115, 20, 0.12);
  color: var(--gold);
}

.access-review-panel .actions .button,
.access-review-panel .actions button {
  min-height: 54px;
  padding: 12px 22px;
  font-size: 1.05rem;
}

.access-review-panel .actions .button:not(.primary),
.access-review-panel .actions button:not(.primary) {
  min-height: 50px;
}

.auth-login-actions .is-hidden,
.is-hidden {
  display: none !important;
}

.student-home {
  display: grid;
  gap: 18px;
}

.student-home-hero {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 107, 87, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 247, 0.92));
}

.student-home-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.student-home-hero .lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.55;
}

.student-home-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.student-home-hero-compact {
  gap: 12px;
}

.student-home-hero-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.student-home-hero-main > div:first-child {
  display: grid;
  gap: 4px;
}

.student-home-user-badge {
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(15, 107, 87, 0.08);
  color: #0f6b57;
}

.student-home-user-badge strong,
.student-home-user-badge span {
  margin: 0;
}

.student-home-user-badge span {
  font-size: 0.9rem;
  color: rgba(15, 107, 87, 0.82);
}

.student-course-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-course-switch {
  min-width: min(240px, 100%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.student-course-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 107, 87, 0.08);
}

.student-course-switch strong,
.student-course-switch small {
  display: block;
}

.student-course-switch strong {
  font-size: 1rem;
}

.student-course-switch small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.student-course-switch.is-active {
  border-color: rgba(15, 107, 87, 0.26);
  background: linear-gradient(180deg, rgba(15, 107, 87, 0.1), rgba(255, 255, 255, 0.94));
  box-shadow: 0 14px 28px rgba(15, 107, 87, 0.1);
}

.student-course-flow {
  display: grid;
  gap: 14px;
}

.student-course-flow[hidden] {
  display: none !important;
}

.student-course-flow-empty {
  display: grid;
  gap: 12px;
}

.student-countdown-banner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #245f73, #0f6b57);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 107, 87, 0.16);
}

.student-countdown-copy {
  display: grid;
  gap: 4px;
}

.student-countdown-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.12;
}

.student-countdown-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.45;
}

.student-countdown-banner-main {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.student-countdown-banner-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.student-countdown-banner-number {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  line-height: 1;
}

.student-countdown-banner-number strong {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.06em;
}

.student-countdown-banner-number span {
  padding-bottom: 5px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.student-stage-panels {
  display: grid;
}

.student-stage-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: var(--shadow);
}

.student-stage-panel[hidden] {
  display: none !important;
}

.student-panel-head {
  display: grid;
  gap: 8px;
}

.student-stage-heading {
  display: grid;
  gap: 10px;
}

.student-stage-heading-badge {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.12);
  color: #0f6b57;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.student-stage-heading-copy {
  display: grid;
  gap: 6px;
}

.student-stage-heading-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.student-panel-head h2,
.student-panel-head h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.student-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.student-stage-main {
  display: grid;
  gap: 18px;
}

.student-stage-panel.is-guided-focus {
  border-color: rgba(15, 107, 87, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 107, 87, 0.12), var(--shadow);
}

.student-stage-locked-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.98), rgba(241, 244, 242, 0.98));
  border: 1px dashed rgba(23, 33, 29, 0.14);
}

.student-stage-locked-card strong,
.student-stage-locked-card p {
  margin: 0;
}

.student-stage-lock-badge {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-stage-actions {
  align-items: center;
  gap: 12px;
}

.student-stage-actions .button,
.student-stage-actions button,
.student-stage-actions input[type="submit"] {
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
}

.student-stage-actions form {
  margin: 0;
}

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

.student-benefit-merged {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(249, 250, 249, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-benefit-merged-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.student-benefits-overview {
  display: grid;
  gap: 14px;
}

.student-benefits-overview-head {
  display: grid;
  gap: 4px;
}

.student-benefits-overview-head h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.35;
}

.student-benefit-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(249, 250, 249, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-benefit-item-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(15, 107, 87, 0.12);
  color: #0f6b57;
  font-weight: 900;
  font-size: 0.96rem;
}

.student-benefit-item strong,
.student-benefit-item p {
  margin: 0;
}

.student-benefit-item strong {
  font-size: 1rem;
  line-height: 1.42;
}

.student-benefit-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.student-coupon-box {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7e6, #fff3d6);
  border: 2px dashed #f39c12;
}

.student-coupon-box-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.student-coupon-box-head h3 {
  margin: 4px 0 0;
  font-size: 1.32rem;
  line-height: 1.3;
}

.student-coupon-box .student-coupon-code code {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #b85d0a;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow-x: auto;
}

.student-panel-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #7f5206;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.65;
}

.student-guide-callout {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(36, 95, 115, 0.1), rgba(15, 107, 87, 0.12));
  border: 1px solid rgba(15, 107, 87, 0.16);
}

.student-guide-callout strong,
.student-guide-callout p {
  margin: 0;
}

.student-guide-callout strong {
  font-size: 1.05rem;
}

.student-guide-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  font-size: 1.04rem;
  line-height: 1.7;
}

.student-guide-step-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(15, 107, 87, 0.12);
  color: #0f6b57;
  font-weight: 900;
}

.student-guide-visual {
  display: grid;
  gap: 10px;
}

.student-flow-details {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.9);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-flow-details-summary {
  cursor: pointer;
  color: #0f6b57;
  font-weight: 800;
  list-style: none;
}

.student-flow-details-summary::-webkit-details-marker {
  display: none;
}

.student-flow-details-summary::before {
  content: "＋";
  margin-right: 8px;
  color: #0f6b57;
  font-weight: 900;
}

.student-flow-details[open] .student-flow-details-summary::before {
  content: "－";
}

.student-flow-details-body {
  display: grid;
  gap: 14px;
}

.student-materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.student-materials-card,
.student-teacher-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-materials-card h3,
.student-teacher-section h3 {
  margin: 4px 0 0;
  font-size: 1.24rem;
  line-height: 1.35;
}

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

.student-materials-meta-compact {
  grid-template-columns: 1fr;
}

.student-materials-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-materials-stat span {
  color: var(--muted);
  font-size: 1rem;
}

.student-materials-stat strong {
  font-size: 1.08rem;
  line-height: 1.4;
}

.student-materials-stat-merged {
  gap: 4px;
}

.student-materials-stat-merged span,
.student-materials-stat-merged strong {
  display: block;
}

.student-coupon-meta,
.student-materials-card .muted,
.student-teacher-section .muted,
.student-stage-panel .muted,
.student-flow-status {
  font-size: 1rem;
  line-height: 1.65;
}

.student-section {
  display: grid;
  gap: 12px;
}

.student-checkin-shell,
.student-checkin-today-panel,
.student-checkin-detail-panel {
  display: grid;
  gap: 16px;
}

.student-checkin-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.student-checkin-hero-copy {
  display: grid;
  gap: 6px;
}

.student-checkin-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.student-checkin-hero .lead {
  margin: 0;
  max-width: 64ch;
}

.student-checkin-hero-actions {
  gap: 10px;
}

.student-checkin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-checkin-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-checkin-stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.student-checkin-stat-card strong {
  font-size: 1.18rem;
  line-height: 1.35;
}

.student-checkin-today-head,
.student-checkin-day-head,
.student-checkin-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.student-checkin-today-head h2,
.student-checkin-day-copy h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.student-checkin-goal,
.student-checkin-materials {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.student-checkin-materials {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-checkin-task-list,
.student-checkin-task-stack {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.student-checkin-task-list {
  padding-left: 20px;
}

.student-checkin-task-list li {
  line-height: 1.7;
}

.student-checkin-task-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  font-weight: 600;
}

.student-checkin-task-option input {
  margin-top: 4px;
}

.student-checkin-day-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.student-checkin-day-list {
  display: grid;
  gap: 12px;
}

.student-checkin-day-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.student-checkin-day-card.is-completed {
  border-color: rgba(15, 107, 87, 0.16);
  background: linear-gradient(180deg, rgba(240, 252, 247, 0.94), rgba(255, 255, 255, 0.98));
}

.student-checkin-day-card.is-backfill {
  border-color: rgba(215, 132, 28, 0.18);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.96), rgba(255, 255, 255, 0.98));
}

.student-checkin-day-card.is-today {
  border-color: rgba(36, 95, 115, 0.2);
  box-shadow: 0 10px 24px rgba(36, 95, 115, 0.08);
}

.student-checkin-day-card.is-future {
  opacity: 0.78;
}

.student-checkin-day-copy {
  display: grid;
  gap: 8px;
  flex: 1 1 360px;
}

.student-checkin-day-actions {
  display: grid;
  align-content: start;
}

.student-checkin-day-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 107, 87, 0.1);
  color: #0f6b57;
  font-weight: 800;
  text-decoration: none;
}

.student-checkin-day-link.is-disabled {
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
}

.student-checkin-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.student-checkin-status-pill.is-completed {
  background: rgba(15, 107, 87, 0.12);
  color: #0f6b57;
}

.student-checkin-status-pill.is-backfill {
  background: rgba(243, 156, 18, 0.14);
  color: #b26c00;
}

.student-checkin-status-pill.is-pending,
.student-checkin-status-pill.is-today {
  background: rgba(36, 95, 115, 0.12);
  color: #245f73;
}

.student-checkin-status-pill.is-future {
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
}

.student-checkin-detail-block {
  display: grid;
  gap: 10px;
}

.student-checkin-form textarea {
  min-height: 140px;
}

.student-mobile-section {
  display: grid;
  gap: 0;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.student-mobile-section summary {
  list-style: none;
}

.student-mobile-section summary::-webkit-details-marker {
  display: none;
}

.student-mobile-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
}

.student-mobile-section-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--muted);
}

.student-mobile-section[open] .student-mobile-section-summary::after {
  content: "-";
}

.student-mobile-section-copy {
  display: grid;
  gap: 4px;
}

.student-mobile-section-copy strong,
.student-mobile-section-copy span {
  margin: 0;
}

.student-mobile-section-copy span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.student-mobile-section-body {
  padding: 0 20px 20px;
}

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

.student-course-card,
.student-file-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.student-course-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.student-course-card h3,
.student-file-card h3,
.student-tool-card h2 {
  margin: 0;
}

.student-file-list {
  display: grid;
  gap: 12px;
}

.student-file-row {
  padding: 16px 0;
}

.student-file-panel {
  display: grid;
  gap: 0;
}

.student-tool-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.student-tool-card-copy {
  display: grid;
  gap: 10px;
}

.student-memorize-home-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.student-memorize-home-copy {
  display: grid;
  gap: 8px;
}

.student-memorize-home-card h3 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.3;
}

.calc-help-home-card .actions {
  display: flex;
  justify-content: flex-end;
}

.calc-help-home-action,
.calc-help-open-button,
.calc-help-submit-button {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(12, 28, 22, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.calc-help-home-action::before,
.calc-help-open-button::before,
.calc-help-submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.calc-help-home-action:hover,
.calc-help-open-button:hover,
.calc-help-submit-button:hover,
.calc-help-home-action:focus-visible,
.calc-help-open-button:focus-visible,
.calc-help-submit-button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.calc-help-home-action:active,
.calc-help-open-button:active,
.calc-help-submit-button:active {
  transform: translateY(0);
}

.calc-help-home-action {
  min-width: 188px;
  justify-content: center;
  background: linear-gradient(135deg, #0f6b57 0%, #157a6a 52%, #245f73 100%);
  box-shadow: 0 18px 34px rgba(36, 95, 115, 0.22);
}

.calc-help-open-button {
  min-width: 196px;
  justify-content: center;
  background: linear-gradient(135deg, #0f6b57 0%, #157a6a 54%, #245f73 100%);
  box-shadow: 0 18px 34px rgba(36, 95, 115, 0.22);
}

.calc-help-submit-button {
  min-width: 148px;
  background: linear-gradient(135deg, #245f73 0%, #157a6a 52%, #0f6b57 100%);
  box-shadow: 0 18px 34px rgba(36, 95, 115, 0.22);
}

.student-practice-page {
  display: grid;
  gap: 16px;
}

.student-practice-page .section-head.student-practice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}

.student-practice-header-copy {
  display: grid;
  gap: 6px;
}

.student-practice-page .section-head.student-practice-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.student-practice-page .section-head.student-practice-header .eyebrow {
  margin: 0;
  font-size: 0.9rem;
}

.student-practice-page .section-head.student-practice-header .lead {
  margin: 0;
  max-width: 700px;
  color: #64748b;
  font-size: 1.04rem;
  line-height: 1.55;
}

.student-practice-top-actions {
  margin-top: 0;
  gap: 8px;
  justify-content: flex-end;
}

.student-practice-top-actions .button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1rem;
}

.student-practice-directory-head,
.student-practice-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.student-practice-directory-head h2,
.student-practice-chapter-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.student-practice-directory-head .muted,
.student-practice-chapter-head .muted {
  margin: 6px 0 0;
  max-width: 720px;
}

.student-practice-shell .stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-practice-shell .stat-item {
  background: #fafbff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #edf2f7;
}

.student-practice-shell .stat-item .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.student-practice-shell .stat-item .label {
  font-size: 0.98rem;
  color: #64748b;
  margin-top: 6px;
}

.student-practice-shell .stat-item .num.green {
  color: #00b894;
}

.student-practice-shell .stat-item .num.red {
  color: #e17055;
}

.student-practice-shell .stat-item .num.blue {
  color: #4f6ef7;
}

.student-practice-shell .stat-item .num.orange {
  color: #f39c12;
}

.student-practice-shell .progress-block {
  background: #fafbff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #edf2f7;
}

.student-practice-shell .progress-block .top-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  flex-wrap: wrap;
}

.student-practice-shell .progress-block .track {
  margin-top: 8px;
  height: 9px;
  background: #e9edf4;
  border-radius: 40px;
  overflow: hidden;
}

.student-practice-shell .progress-block .track .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f6ef7, #6c5ce7);
  border-radius: 40px;
}

.student-practice-shell .progress-block .detail {
  display: flex;
  gap: 14px 18px;
  margin-top: 10px;
  font-size: 0.98rem;
  color: #475569;
  flex-wrap: wrap;
}

.student-practice-shell .progress-block .detail .dot-green,
.student-practice-shell .progress-block .detail .dot-red,
.student-practice-shell .progress-block .detail .dot-gray {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.student-practice-shell .progress-block .detail .dot-green {
  background: #00b894;
}

.student-practice-shell .progress-block .detail .dot-red {
  background: #e17055;
}

.student-practice-shell .progress-block .detail .dot-gray {
  background: #d1d5db;
}

.student-practice-shell .question-area {
  background: #fafbff;
  border-radius: 18px;
  padding: 20px 20px 16px;
  border: 1px solid #edf2f7;
}

.student-practice-shell .question-area .q-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.96rem;
  color: #94a3b8;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.student-practice-shell .question-area .q-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 4px;
}

.student-practice-shell .question-area .q-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 30px;
  background: #eef2ff;
  color: #4f6ef7;
  margin-bottom: 14px;
}

.student-practice-shell .options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-practice-shell .option-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  transition: 0.2s;
}

.student-practice-shell .option-item:hover {
  border-color: #4f6ef7;
  background: #f8faff;
}

.student-practice-shell .option-item .letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.86rem;
  color: #475569;
  flex-shrink: 0;
  margin-top: 1px;
}

.student-practice-shell .option-item .option-copy {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  line-height: 1.45;
  text-align: left;
}

.student-practice-shell .option-item.correct {
  border-color: #00b894;
  background: #ecfdf5;
}

.student-practice-shell .option-item.correct .letter {
  background: #00b894;
  color: #fff;
}

.student-practice-shell .option-item.wrong {
  border-color: #e17055;
  background: #fef2f2;
}

.student-practice-shell .option-item.wrong .letter {
  background: #e17055;
  color: #fff;
}

.student-practice-shell .action-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
}

.student-practice-action-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-practice-action-group-links {
  flex: 1 1 auto;
}

.student-practice-action-group-nav {
  justify-content: flex-end;
}

.student-practice-submit-feedback {
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.student-practice-submit-feedback[hidden] {
  display: none !important;
}

.student-practice-submit-feedback.is-success {
  color: #0f9f7a;
}

.student-practice-shell .btn-primary,
.student-practice-shell .btn-outline,
.student-practice-shell .btn-outline-red,
.student-practice-shell .btn-success {
  min-height: 42px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.student-practice-shell .btn-primary.is-hidden,
.student-practice-shell .btn-outline.is-hidden,
.student-practice-shell .btn-outline-red.is-hidden,
.student-practice-shell .btn-success.is-hidden {
  display: none !important;
}

.student-practice-shell .btn-primary {
  background: #4f6ef7;
  color: #fff;
  border: none;
  padding: 10px 20px;
}

.student-practice-shell .btn-primary:hover {
  background: #3a56d4;
}

.student-practice-shell .btn-outline {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  padding: 10px 18px;
  color: #475569;
}

.student-practice-shell .btn-outline:hover {
  border-color: #4f6ef7;
  color: #4f6ef7;
}

.student-practice-shell .btn-outline-red {
  background: transparent;
  border: 1.5px solid #e17055;
  color: #e17055;
  padding: 10px 18px;
}

.student-practice-shell .btn-outline-red:hover {
  background: #fef2f2;
}

.student-practice-shell .btn-success {
  background: #00b894;
  color: #fff;
  border: none;
  padding: 10px 20px;
}

.student-practice-shell .btn-success:hover {
  background: #00a381;
}

.student-practice-shell {
  display: grid;
  gap: 14px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(79, 110, 247, 0.1);
}

.student-practice-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-practice-chapter-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(79, 110, 247, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.student-practice-chapter-card:hover {
  transform: translateY(-2px);
  border-color: #b9ccff;
  box-shadow: 0 18px 36px rgba(79, 110, 247, 0.14);
}

.student-practice-chapter-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.4;
  color: #1e293b;
}

.student-practice-chapter-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.98rem;
}

.student-practice-chapter-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.student-practice-chapter-status,
.student-practice-chapter-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.student-practice-chapter-status {
  background: #eef2ff;
  color: #4f6ef7;
}

.student-practice-chapter-arrow {
  background: #f8fafc;
  color: #475569;
}

.student-practice-chapter-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.student-practice-chapter-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f6ef7, #6c5ce7);
}

.student-practice-chapter-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #475569;
  font-size: 0.94rem;
  font-weight: 700;
}

.student-practice-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.student-practice-empty-state h2,
.student-practice-empty-state p {
  margin: 0;
}

.student-practice-stats,
.student-practice-progress,
.student-practice-question,
.student-practice-actions {
  margin-bottom: 0;
}

.student-practice-question .option-item {
  width: 100%;
  border: 2px solid #e9edf4;
  text-align: left;
}

.student-practice-question .option-item[disabled] {
  cursor: default;
}

.student-practice-analysis {
  margin-top: 14px;
  background: #eef2ff;
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 3px solid #4f6ef7;
}

.student-practice-analysis strong,
.student-practice-analysis p {
  margin: 0;
}

.student-practice-analysis p {
  color: #475569;
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.student-practice-result {
  display: grid;
  gap: 8px;
}

.student-practice-result h2,
.student-practice-result p {
  margin: 0;
}

.student-portal-card,
.student-paper-card {
  display: grid;
  gap: 18px;
}

.student-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.student-countdown-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-countdown-card h2 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.student-countdown-numberline {
  display: flex;
  align-items: end;
  gap: 8px;
  line-height: 1;
}

.student-countdown-numberline strong {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.06em;
}

.student-countdown-numberline span {
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 6px;
}

.student-countdown-label {
  margin: 0;
  font-weight: 800;
}

.student-portal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.student-portal-header h2 {
  margin: 4px 0 0;
}

.student-portal-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.student-portal-copy,
.student-portal-block {
  display: grid;
  gap: 12px;
}

.student-portal-copy h2,
.student-portal-block h3,
.student-paper-card h2,
.student-flow-step h3 {
  margin: 0;
}

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

.student-flow-step,
.student-portal-block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.95);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-flow-step {
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  padding-left: 78px;
}

.student-flow-step::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 52px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 107, 87, 0.28), rgba(15, 107, 87, 0.04));
}

.student-flow-step:last-child::before {
  display: none;
}

.student-flow-index {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 107, 87, 0.16), rgba(15, 107, 87, 0.08));
  color: #0f6b57;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.student-portal-block ul,
.student-portal-block ol,
.student-flow-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.student-portal-image,
.student-teacher-qr {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: #fff;
  object-fit: cover;
}

.student-image-launch {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.student-image-launch:hover .student-portal-image,
.student-image-launch:hover .student-teacher-qr,
.student-image-launch:focus-visible .student-portal-image,
.student-image-launch:focus-visible .student-teacher-qr {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 28, 20, 0.12);
  border-color: rgba(15, 107, 87, 0.2);
  outline: none;
}

.student-image-launch-qr {
  justify-items: start;
}

.student-image-launch-badge {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.12);
  color: #0f6b57;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-teacher-qr {
  max-width: 220px;
}

.student-image-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.student-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.72);
  backdrop-filter: blur(8px);
}

.student-image-dialog {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  margin: min(6vh, 32px) auto 0;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 28px 72px rgba(10, 28, 20, 0.24);
}

.student-image-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #40514a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.student-image-frame {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.student-image-preview {
  width: min(100%, 680px);
  max-height: min(72vh, 860px);
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: #fff;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.student-image-empty,
.student-image-caption {
  margin: 0;
}

.student-image-empty {
  color: var(--muted);
}

.student-image-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

body.is-student-image-open {
  overflow: hidden;
}

.student-portal-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.95);
  border: 1px dashed rgba(23, 33, 29, 0.14);
  color: var(--muted);
}

.student-coupon-code {
  margin: 0;
}

.student-coupon-code code {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(23, 33, 29, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.student-flow-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: #0f6b57;
  font-weight: 800;
}

.student-flow-locked {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(23, 33, 29, 0.04);
  border: 1px dashed rgba(23, 33, 29, 0.16);
}

.student-coupon-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 107, 87, 0.08), rgba(247, 249, 247, 0.96));
  border: 1px solid rgba(15, 107, 87, 0.14);
}

.student-coupon-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.student-coupon-panel-head h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.student-coupon-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.student-flow-next {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 107, 87, 0.08);
  color: #0f6b57;
  font-weight: 700;
}

.student-flow-step-accent {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 107, 87, 0.18);
  box-shadow: 0 8px 24px rgba(15, 107, 87, 0.06);
}

.student-flow-tiplist {
  color: var(--text);
}

.student-paper-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.student-paper-card-copy {
  display: grid;
  gap: 12px;
}

.student-paper-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.student-paper-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-paper-stat strong {
  font-size: 1.02rem;
  line-height: 1.4;
}

.student-paper-stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.student-paper-guidance {
  margin: 0;
  color: var(--muted);
}

.student-paper-page {
  display: grid;
  gap: 20px;
}

.student-paper-hero,
.student-paper-form-card,
.student-paper-history-card {
  display: grid;
  gap: 16px;
}

.student-paper-user-badge {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.08);
  color: #0f6b57;
  font-weight: 700;
}

.student-paper-guidance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.student-paper-guidance-type,
.student-paper-guidance-class,
.paper-guidance-badge,
.paper-background-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.student-paper-guidance-type.is-voice,
.paper-guidance-badge.is-voice {
  background: #fff0d8;
  color: #9a4d00;
  border: 1px solid #f3b562;
}

.student-paper-guidance-type.is-text,
.paper-guidance-badge.is-text {
  background: #e9f6ff;
  color: #155e75;
  border: 1px solid #8ecae6;
}

.student-paper-guidance-class {
  background: rgba(15, 107, 87, 0.08);
  color: #0f6b57;
  border: 1px solid rgba(15, 107, 87, 0.18);
}

.paper-background-badge.is-approved {
  background: #e8f7ed;
  color: #166534;
  border: 1px solid #9fd9ad;
}

.paper-background-badge.is-needs_review {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fda4af;
}

.paper-background-badge.is-empty {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.student-paper-remain-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #245f73, #0f6b57);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 107, 87, 0.16);
}

.student-paper-remain-main {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.student-paper-remain-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.student-paper-remain-number span {
  font-size: 1.15rem;
  opacity: 0.82;
  font-weight: 600;
}

.student-paper-remain-copy {
  display: grid;
  gap: 6px;
}

.student-paper-remain-copy p,
.student-paper-remain-copy strong {
  margin: 0;
}

.student-paper-remain-tag {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
}

.student-paper-form {
  display: grid;
  gap: 18px;
}

.student-paper-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.student-paper-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.student-paper-password-row .button {
  min-height: 44px;
  white-space: nowrap;
}

.student-paper-label-preview {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.student-paper-label-preview strong,
.student-paper-label-preview p {
  margin: 0;
}

.student-paper-label-preview p {
  overflow-wrap: anywhere;
  color: #3730a3;
  font-weight: 800;
}

.student-paper-upload-box {
  display: grid;
  gap: 8px;
  padding: 24px 20px;
  border-radius: 18px;
  border: 2px dashed rgba(36, 95, 115, 0.18);
  background: rgba(247, 249, 247, 0.96);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.student-paper-upload-box:hover,
.student-paper-upload-box.is-dragging,
.student-paper-upload-box.has-file {
  border-color: #4f6ef7;
  background: #f8faff;
}

.student-paper-upload-box.is-dragging {
  transform: translateY(-2px);
}

.student-paper-upload-box input[type="file"] {
  display: none;
}

.student-paper-upload-box p,
.student-paper-upload-box span {
  margin: 0;
}

.student-paper-notice-box {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fdf6e8;
  border-left: 4px solid #d39b35;
}

.student-paper-notice-box p,
.student-paper-notice-box strong {
  margin: 0;
}

.student-paper-notice-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text);
}

.student-paper-form-actions {
  justify-content: flex-end;
}

.student-paper-history-list {
  display: grid;
  gap: 10px;
}

.student-paper-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.72);
}

.student-paper-history-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.student-paper-history-id,
.student-paper-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.student-paper-history-id {
  background: #eef2ff;
  color: #4f46e5;
}

.student-paper-history-main h3,
.student-paper-history-main p {
  margin: 0;
}

.student-paper-history-main h3 {
  font-size: 1rem;
}

.student-paper-submit-label,
.student-paper-admin-note {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.student-paper-admin-note {
  padding-top: 6px;
  color: var(--text);
}

.student-paper-history-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.student-paper-status.is-pending {
  background: #fef9e7;
  color: #b45309;
}

.student-paper-status.is-reviewing {
  background: #e0f2fe;
  color: #0369a1;
}

.student-paper-status.is-reviewed,
.student-paper-status.is-approved {
  background: #ecfdf5;
  color: #047857;
}

.student-paper-status.is-needs_revision {
  background: #fff1f2;
  color: #be123c;
}

.table-wrap {
  overflow-x: auto;
}

.student-paper-admin-table td {
  vertical-align: top;
}

.student-paper-admin-table td:nth-child(5),
.student-paper-admin-table td:nth-child(14),
.student-paper-admin-table td:nth-child(15) {
  min-width: 140px;
  max-width: 240px;
  white-space: normal;
}

.is-hidden {
  display: none;
}

.auth-login-card {
  width: 100%;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.auth-login-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.auth-login-form {
  gap: 12px;
}

.auth-note-block,
.auth-temp-block {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.92);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.auth-note-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.auth-note-list {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
}

.auth-temp-block {
  display: grid;
  gap: 12px;
}

.auth-temp-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-temp-password-label {
  font-weight: 800;
}

.auth-temp-password-value {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  white-space: nowrap;
}

.auth-temp-copy-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.92rem;
}

.auth-temp-copy-status {
  min-height: 1em;
  white-space: nowrap;
}

.auth-temp-copy-hint {
  margin: 0;
  color: var(--muted);
}

.auth-temp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-temp-head h2 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  white-space: nowrap;
}

.auth-temp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.auth-temp-success {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.45;
}

.auth-temp-footnote {
  margin: 0;
}

.auth-login-actions {
  margin-top: -2px;
}

.auth-card-footnote {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.student-enrollment-time-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.student-enrollment-time-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.student-enrollment-time-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.student-enrollment-time-head p {
  margin: 0;
}

.student-enrollment-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.student-list-fold {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.student-list-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.student-list-fold-summary::-webkit-details-marker {
  display: none;
}

.student-list-fold-summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.student-list-fold[open] .student-list-fold-summary::after {
  transform: rotate(225deg);
}

.student-list-fold-summary span {
  font-weight: 800;
}

.student-list-fold-summary strong {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.student-list-fold-body {
  padding: 0 16px 16px;
  overflow-x: auto;
}

@media (max-width: 760px) {
  .student-enrollment-time-head {
    display: grid;
  }

  .student-enrollment-time-grid {
    grid-template-columns: 1fr;
  }

  .student-list-fold-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-actions .button {
  min-height: 34px;
  padding: 6px 12px;
}

.article-filters {
  display: block;
}

.article-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.article-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1 1 180px;
}

.article-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
}

.article-filter-actions .button,
.article-filter-actions button {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .auth-login-card {
    padding: 22px;
  }

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

  .resource-toolbar-grid,
  .resource-form-row,
  .resource-queue-row {
    grid-template-columns: 1fr 1fr;
  }

  .resource-course-chip {
    min-width: calc(50% - 8px);
  }

  .resource-toolbar-search {
    grid-column: span 2;
  }

  .auth-box-compact {
    padding: 20px;
  }

  .auth-temp-form {
    grid-template-columns: 1fr;
  }

  .auth-temp-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .auth-page,
  .auth-page-compact {
    min-height: auto;
    padding: 18px 12px 24px;
  }

  .resource-form-panel,
  .resource-toolbar,
  .resource-file-card,
  .resource-batch-defaults,
  .resource-batch-panel,
  .resource-queue-panel,
  .resource-nojs-fields,
  .resource-course-section.is-collapsed {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .resource-stats-grid,
  .resource-toolbar-grid,
  .resource-form-row,
  .resource-queue-row {
    grid-template-columns: 1fr;
  }

  .resource-toolbar-search {
    grid-column: span 1;
  }

  .resource-toolbar-actions,
  .resource-file-actions,
  .resource-form-actions,
  .resource-dropzone-actions,
  .resource-mode-toggle,
  .resource-course-section-actions {
    width: 100%;
  }

  .resource-toolbar-actions .button,
  .resource-file-actions .button,
  .resource-file-actions form,
  .resource-file-actions form button,
  .resource-form-actions .button,
  .resource-dropzone-actions .button,
  .resource-queue-item-head .button,
  .resource-mode-toggle .button,
  .resource-course-section-actions .button {
    width: 100%;
  }

  .resource-file-title-row,
  .resource-file-card,
  .resource-queue-item-head,
  .resource-batch-section-head,
  .resource-course-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-course-chip {
    min-width: 100%;
  }

  .resource-card-list,
  .resource-file-main {
    gap: 10px;
  }

  .resource-file-main {
    flex: 1 1 auto;
    width: 100%;
  }

  .resource-file-card {
    gap: 12px;
    justify-content: flex-start;
  }

  .resource-file-title-row {
    gap: 10px;
  }

  .resource-file-title-row h2 {
    margin-top: 2px;
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .resource-file-badges {
    gap: 6px;
  }

  .resource-file-meta {
    gap: 8px 12px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .resource-bundle-manifest {
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .student-resource-card .resource-file-main {
    flex-basis: auto;
  }

  .auth-login-card,
  .auth-box-compact {
    border-radius: 18px;
    padding: 18px 16px;
    gap: 14px;
  }

  .auth-login-card h1,
  .auth-box-compact h1 {
    font-size: 1.45rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .auth-login-form,
  .auth-temp-form,
  .auth-password-card,
  .auth-box-compact.form-grid {
    gap: 10px;
  }

  .auth-note-block,
  .auth-temp-block {
    padding: 14px;
    border-radius: 14px;
  }

  .auth-note-list,
  .auth-temp-footnote,
  .auth-temp-copy-hint,
  .auth-box-compact .muted,
  .auth-box-compact .notice,
  .auth-box-compact label {
    font-size: 0.92rem;
  }

  .auth-temp-password-row {
    align-items: flex-start;
    gap: 8px;
  }

  .auth-temp-password-value {
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.95rem;
  }

  .auth-temp-copy-button,
  .auth-login-card .button,
  .auth-box-compact .button,
  .auth-box-compact input[type="submit"] {
    width: 100%;
    min-height: 42px;
    font-size: 0.95rem;
  }

  .auth-login-actions .button {
    width: 100%;
  }

  .student-course-grid {
    grid-template-columns: 1fr;
  }

  .student-portal-grid,
  .student-countdown-grid {
    grid-template-columns: 1fr;
  }

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

  .student-practice-shell .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .student-practice-page {
    gap: 12px;
  }

  .student-practice-page .section-head.student-practice-header {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .student-practice-header-copy {
    gap: 4px;
  }

  .student-practice-page .section-head.student-practice-header .eyebrow {
    font-size: 0.84rem;
  }

  .student-practice-page .section-head.student-practice-header h1 {
    font-size: 1.52rem;
    line-height: 1.25;
  }

  .student-practice-page .section-head.student-practice-header .lead {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #8a97aa;
  }

  .student-practice-top-actions {
    margin-top: 2px;
    gap: 6px;
  }

  .student-practice-top-actions .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.94rem;
  }

  .student-practice-directory-head,
  .student-practice-chapter-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .student-practice-directory-head h2,
  .student-practice-chapter-head h2 {
    font-size: 1.28rem;
  }

  .student-practice-directory-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .student-practice-chapter-card {
    padding: 16px 14px;
    border-radius: 18px;
    gap: 10px;
  }

  .student-practice-chapter-card h2 {
    font-size: 1.06rem;
    line-height: 1.45;
  }

  .student-practice-chapter-card p {
    font-size: 0.94rem;
  }

  .student-practice-chapter-status,
  .student-practice-chapter-arrow {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.9rem;
  }

  .student-practice-chapter-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-size: 0.9rem;
  }

  .student-practice-shell .stat-item {
    padding: 10px 10px 9px;
    border-radius: 12px;
  }

  .student-practice-shell .stat-item .num {
    font-size: 1.35rem;
  }

  .student-practice-shell .stat-item .label {
    font-size: 0.84rem;
    line-height: 1.35;
    margin-top: 3px;
  }

  .student-practice-shell .progress-block {
    padding: 14px;
    border-radius: 14px;
  }

  .student-practice-shell .progress-block .top-row {
    font-size: 0.94rem;
  }

  .student-practice-shell .progress-block .track {
    margin-top: 7px;
    height: 8px;
  }

  .student-practice-shell .progress-block .detail {
    gap: 8px 14px;
    margin-top: 9px;
    font-size: 0.9rem;
  }

  .student-practice-shell .question-area {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }

  .student-practice-shell .question-area .q-header {
    font-size: 0.86rem;
    margin-bottom: 8px;
  }

  .student-practice-shell .question-area .q-tag {
    font-size: 0.82rem;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  .student-practice-shell .question-area .q-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .student-practice-shell .options {
    gap: 8px;
  }

  .student-practice-shell .option-item {
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.98rem;
    border-radius: 11px;
  }

  .student-practice-shell .option-item .letter {
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
  }

  .student-practice-shell .option-item .option-copy {
    line-height: 1.4;
  }

  .student-practice-analysis {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .student-practice-analysis p {
    font-size: 0.94rem;
  }

  .student-practice-shell .action-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .student-practice-action-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .student-practice-action-group-nav {
    justify-content: stretch;
  }

  .student-practice-shell .action-row .btn-primary,
  .student-practice-shell .action-row .btn-outline,
  .student-practice-shell .action-row .btn-outline-red,
  .student-practice-shell .action-row .btn-success {
    text-align: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 10px;
    font-size: 0.94rem;
  }

  .student-practice-shell {
    gap: 12px;
    padding: 14px 12px;
    border-radius: 18px;
  }

  .student-memorize-home-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .student-paper-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .student-home-hero {
    padding: 14px;
  }

  .student-home-hero-main,
  .student-countdown-banner,
  .student-materials-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .student-countdown-banner-main {
    justify-items: start;
    text-align: left;
  }

  .student-benefit-grid,
  .student-materials-meta {
    grid-template-columns: 1fr;
  }

  .auth-page-login {
    width: min(100vw - 20px, 720px);
  }

  .auth-login-card {
    padding: 18px;
    gap: 14px;
  }

  .auth-step-card {
    padding: 14px;
    gap: 12px;
  }

  .student-course-flow {
    gap: 8px;
  }

  .student-countdown-banner,
  .student-stage-panel {
    padding: 12px;
  }

  .student-home {
    gap: 12px;
  }

  .student-home-hero {
    gap: 10px;
  }

  .student-home-hero-compact {
    gap: 10px;
  }

  .student-home-hero-main {
    gap: 8px;
  }

  .student-home-actions {
    margin-top: -2px;
  }

  .student-home-user-badge {
    min-width: 0;
    padding: 10px 14px;
  }

  .student-course-switches {
    gap: 6px;
  }

  .student-course-switch {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .student-countdown-banner {
    gap: 6px;
    padding: 12px 12px;
    border-radius: 16px;
  }

  .student-countdown-copy {
    gap: 2px;
  }

  .student-countdown-copy h2 {
    font-size: 1.34rem;
    line-height: 1.14;
  }

  .student-countdown-meta {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .student-countdown-banner-main {
    gap: 1px;
  }

  .student-section .section-head {
    margin-bottom: 4px;
  }

  .student-panel-head h2,
  .student-panel-head h3 {
    font-size: 1.24rem;
  }

  .student-panel-head p,
  .student-benefit-item p,
  .student-guide-step,
  .student-panel-note {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .student-stage-actions .button,
  .student-stage-actions button,
  .student-stage-actions input[type="submit"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
  }

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

  .student-course-card-head,
  .file-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-flow-step {
    padding-left: 18px;
  }

  .student-flow-step::before,
  .student-flow-index {
    position: static;
  }

  .student-flow-step::before {
    display: none;
  }

  .student-flow-index {
    width: fit-content;
    height: auto;
    padding: 5px 10px;
    border-radius: 999px;
  }

  .student-coupon-panel-head {
    flex-direction: column;
  }

  .student-coupon-code code {
    font-size: 0.98rem;
  }

  .student-course-switch {
    width: 100%;
    min-width: 0;
  }

  .student-stage-switch {
    min-height: auto;
  }

  .student-stage-panel,
  .student-materials-card,
  .student-teacher-section,
  .student-coupon-box {
    padding: 15px 14px;
  }

  .student-coupon-box-head {
    flex-direction: column;
  }

  .student-panel-head {
    gap: 6px;
  }

  .student-stage-heading {
    gap: 8px;
  }

  .student-stage-heading-copy {
    gap: 4px;
  }

  .student-stage-heading-badge {
    padding: 6px 12px;
  }

  .student-stage-main {
    gap: 14px;
  }

  .student-stage-locked-card {
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
  }

  .student-stage-actions {
    gap: 10px;
  }

  .student-benefit-grid {
    gap: 7px;
  }

  .student-benefit-merged {
    gap: 7px;
    padding: 10px;
    border-radius: 12px;
  }

  .student-benefit-merged-item {
    gap: 8px;
  }

  .student-benefits-overview {
    gap: 8px;
  }

  .student-benefit-item {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .student-benefit-item-index {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .student-benefit-item strong {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .student-benefit-item p {
    margin-top: 2px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .student-coupon-box {
    gap: 8px;
  }

  .student-coupon-box-head h3 {
    margin-top: 1px;
    line-height: 1.24;
  }

  .student-panel-note {
    padding: 8px 10px;
    line-height: 1.45;
  }

  .student-guide-callout {
    gap: 4px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .student-guide-steps {
    gap: 7px;
  }

  .student-guide-step {
    gap: 8px;
    padding: 10px 12px;
  }

  .student-guide-visual {
    gap: 4px;
  }

  .student-flow-details {
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .student-flow-details-body {
    gap: 10px;
  }

  .student-portal-image,
  .student-teacher-qr {
    border-radius: 14px;
  }

  .student-materials-layout {
    gap: 12px;
  }

  .student-materials-card,
  .student-teacher-section {
    gap: 10px;
    border-radius: 18px;
  }

  .student-materials-card h3,
  .student-teacher-section h3 {
    margin-top: 2px;
    line-height: 1.28;
  }

  .student-materials-meta {
    gap: 10px;
  }

  .student-materials-stat {
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
  }

  .student-teacher-qr {
    margin-top: 2px;
  }

  .student-image-launch-badge {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  .student-image-dialog {
    width: min(100vw - 16px, 760px);
    margin-top: 10px;
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .student-image-preview {
    max-height: min(74vh, 680px);
    border-radius: 16px;
  }

  .student-image-caption {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .student-paper-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .student-paper-stats {
    grid-template-columns: 1fr;
  }

  .student-paper-remain-card,
  .student-paper-remain-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-paper-form-row {
    grid-template-columns: 1fr;
  }

  .student-mobile-section {
    border-radius: 18px;
  }

  .student-mobile-section-summary {
    padding: 16px;
  }

  .student-mobile-section-body {
    padding: 0 16px 16px;
  }

  .student-mobile-section-copy strong {
    font-size: 1rem;
    line-height: 1.35;
  }

  .student-mobile-section-copy span {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .student-mobile-section .student-section,
  .student-mobile-section .calc-help-entry-card {
    gap: 12px;
  }

  .student-mobile-section .section-head {
    margin-bottom: 12px;
  }

  .student-mobile-section .section-head h2,
  .student-mobile-section .student-paper-card h2,
  .student-mobile-section .student-tool-card h2,
  .student-mobile-section .calc-help-entry-card h2,
  .student-mobile-section .student-course-card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .student-mobile-section .section-head .muted,
  .student-mobile-section .student-course-card .muted,
  .student-mobile-section .student-paper-card .muted,
  .student-mobile-section .student-paper-guidance,
  .student-mobile-section .student-tool-card .muted,
  .student-mobile-section .calc-help-entry-card .muted,
  .student-mobile-section .student-paper-stat-label {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .student-mobile-section .student-course-card,
  .student-mobile-section .student-paper-card,
  .student-mobile-section .student-tool-card,
  .student-mobile-section .calc-help-entry-card {
    gap: 12px;
  }

  .student-mobile-section .student-course-card,
  .student-mobile-section .student-paper-card,
  .student-mobile-section .student-tool-card,
  .student-mobile-section .calc-help-entry-card,
  .student-mobile-section .student-paper-stat {
    padding: 14px;
  }

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

  .student-mobile-section .button,
  .student-mobile-section button,
  .student-mobile-section input[type="submit"] {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 130px;
}

.admin-shell {
  grid-template-columns: 230px 1fr;
  padding: 28px 0 60px;
  align-items: start;
}

.admin-shell > main {
  min-width: 0;
}

body:has(.admin-shell) {
  overflow: hidden;
}

.admin-shell {
  height: calc(100vh - 72px);
  overflow: hidden;
}

.admin-shell > main {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.resource-admin-page,
.student-files-page {
  display: grid;
  gap: 22px;
}

.resource-course-rail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.resource-course-chip {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.05);
  color: inherit;
  display: grid;
  gap: 6px;
}

.resource-course-chip strong {
  font-size: 1rem;
}

.resource-course-chip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.resource-course-chip.is-active {
  border-color: rgba(51, 92, 255, 0.28);
  background: linear-gradient(180deg, rgba(244, 247, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 32px rgba(51, 92, 255, 0.10);
}

.resource-focus-sections {
  display: grid;
  gap: 18px;
}

.resource-course-section {
  display: grid;
  gap: 18px;
}

.resource-course-section.is-collapsed {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.05);
}

.resource-course-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-course-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.resource-course-section-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-course-section-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.05);
}

.resource-course-section-actions {
  display: flex;
  justify-content: flex-start;
}

.resource-form-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(79, 110, 247, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  border: 1px solid rgba(79, 110, 247, 0.14);
  box-shadow: 0 18px 46px rgba(47, 72, 130, 0.10);
}

.resource-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.resource-panel-head h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.resource-form-grid {
  gap: 18px;
}

.resource-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-upload-label {
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(79, 110, 247, 0.25);
  background: rgba(244, 247, 255, 0.92);
}

.resource-upload-label input[type="file"] {
  margin-top: 4px;
}

.resource-batch-form.is-enhanced .resource-form-actions {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.resource-batch-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-batch-section-head h2 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.resource-batch-defaults,
.resource-batch-panel,
.resource-queue-panel,
.resource-nojs-fields {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(79, 110, 247, 0.14);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(245, 248, 255, 0.96));
}

.resource-mode-switch {
  display: grid;
  gap: 14px;
}

.resource-mode-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-mode-toggle .button.is-selected {
  background: linear-gradient(135deg, #335cff, #2147da);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(51, 92, 255, 0.18);
}

.resource-default-note {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(79, 110, 247, 0.2);
  background: rgba(244, 247, 255, 0.78);
}

.resource-default-note strong {
  color: #335cff;
}

.resource-dropzone-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-dropzone {
  border-radius: 24px;
  border: 1.5px dashed rgba(51, 92, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(51, 92, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.resource-dropzone:hover,
.resource-dropzone.is-dragover {
  border-color: rgba(51, 92, 255, 0.58);
  box-shadow: 0 16px 36px rgba(51, 92, 255, 0.12);
  transform: translateY(-1px);
}

.resource-dropzone:focus-visible {
  outline: 2px solid rgba(51, 92, 255, 0.38);
  outline-offset: 4px;
}

.resource-dropzone-copy {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.resource-dropzone-copy strong {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #1f2f73;
}

.resource-dropzone-copy p,
.resource-dropzone-note,
.resource-submit-note {
  margin: 0;
}

.resource-upload-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  font-size: 0.96rem;
}

.resource-upload-status.is-busy {
  color: #2147da;
  font-weight: 700;
}

.resource-upload-status.is-error {
  color: #b33535;
  font-weight: 700;
}

.resource-upload-status.is-success {
  color: #138a66;
  font-weight: 700;
}

.resource-queue-list {
  display: grid;
  gap: 14px;
}

.resource-queue-empty {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(23, 33, 29, 0.12);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.resource-queue-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.05);
}

.resource-queue-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-queue-item-head h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.resource-queue-item-head p {
  margin: 0;
}

.resource-queue-row {
  align-items: end;
}

.resource-form-actions {
  display: flex;
  justify-content: flex-start;
}

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

.resource-stat-card {
  padding: 22px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 12px 30px rgba(23, 33, 29, 0.06);
  display: grid;
  gap: 6px;
}

.resource-stat-card strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
}

.resource-stat-card p {
  margin: 0;
  color: var(--muted);
}

.resource-stat-card.is-blue strong {
  color: #335cff;
}

.resource-stat-card.is-gold strong {
  color: #d48a12;
}

.resource-stat-card.is-green strong {
  color: #138a66;
}

.resource-stat-kicker {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.resource-toolbar {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
}

.resource-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.resource-toolbar-search {
  grid-column: span 2;
}

.resource-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-toolbar-summary {
  margin: 0;
}

.resource-card-list {
  display: grid;
  gap: 14px;
}

.resource-file-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 36px rgba(23, 33, 29, 0.06);
}

.resource-file-main {
  display: grid;
  gap: 14px;
  flex: 1 1 520px;
}

.resource-file-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-file-title-row h2 {
  margin: 4px 0 0;
  font-size: 1.26rem;
  line-height: 1.35;
}

.resource-file-course {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.resource-file-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.resource-type-badge {
  background: rgba(15, 107, 87, 0.10);
}

.resource-asset-badge {
  background: rgba(51, 92, 255, 0.12);
  color: #335cff;
}

.resource-version-badge {
  background: rgba(51, 92, 255, 0.10);
  color: #335cff;
}

.resource-file-meta {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-file-personal-meta {
  margin: 0;
}

.resource-bundle-manifest {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(51, 92, 255, 0.18);
  background: rgba(247, 250, 255, 0.82);
}

.resource-bundle-manifest summary {
  cursor: pointer;
  font-weight: 700;
  color: #2147da;
}

.resource-bundle-manifest ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.resource-bundle-preview-card {
  display: grid;
  gap: 14px;
}

.resource-file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px 10px;
  align-items: start;
}

.resource-file-actions .button,
.resource-file-actions form,
.resource-file-actions form button {
  min-height: 42px;
}

.resource-download-status {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  line-height: 1.42;
}

.resource-file-actions form {
  margin: 0;
}

.student-sheet-preview-page {
  display: grid;
  gap: 18px;
}

.student-sheet-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-sheet-preview-summary {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.student-sheet-preview-summary p {
  margin: 0;
}

.student-sheet-preview-list {
  display: grid;
  gap: 16px;
}

.student-sheet-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}

.student-sheet-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.student-sheet-preview-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.student-sheet-preview-head p {
  margin: 0;
}

.student-sheet-preview-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.student-sheet-preview-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.student-sheet-preview-table th,
.student-sheet-preview-table td {
  padding: 10px 12px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
}

.student-sheet-preview-table th {
  background: rgba(17, 131, 100, 0.10);
  color: #0d6a52;
  font-weight: 700;
}

.button.danger {
  border-color: rgba(179, 53, 53, 0.18);
  color: #b33535;
  background: rgba(179, 53, 53, 0.06);
}

.button.danger:hover {
  border-color: rgba(179, 53, 53, 0.3);
  background: rgba(179, 53, 53, 0.12);
}

.resource-empty-state {
  padding: 28px 22px;
  border-radius: 22px;
  text-align: center;
}

.resource-page-head {
  margin-bottom: 0;
}

.student-resource-toolbar {
  margin-top: -4px;
}

.student-resource-card .resource-file-main {
  flex-basis: 560px;
}

.qr-cropper {
  gap: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 248, 0.98), rgba(242, 246, 244, 0.96));
  border: 1px dashed rgba(15, 107, 87, 0.28);
}

.qr-cropper-stage {
  width: min(100%, 420px);
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: var(--shadow);
}

.qr-cropper-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #fff;
  cursor: grab;
}

.qr-cropper-controls {
  display: grid;
  gap: 12px;
}

.qr-cropper-stage canvas.is-dragging {
  cursor: grabbing;
}

.qr-cropper-hint {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.side-nav a:hover,
.side-nav a.is-active {
  background: #edf4f1;
  color: var(--green);
}

.side-nav a.is-active {
  font-weight: 800;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-module-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  align-content: start;
}

.admin-module-card:hover {
  border-color: rgba(15, 107, 87, 0.32);
  box-shadow: 0 12px 28px rgba(18, 38, 32, 0.08);
  transform: translateY(-1px);
}

.admin-module-card strong {
  font-size: 1.12rem;
}

.admin-module-card span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-module-card em {
  align-self: end;
  justify-self: start;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.08);
  color: var(--green);
  font-style: normal;
  font-weight: 800;
  font-size: 0.84rem;
}

.admin-module-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green) !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f1f5f2;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e8;
  border: 1px solid #ead3a8;
  color: #77520f;
}

.page-shell {
  padding: 30px 0 56px;
}

.page-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.page-intro h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.18;
}

.page-intro .lead {
  max-width: 68ch;
}

.section-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-card h2,
.section-card h3 {
  margin: 0;
}

.protocol-option-stack {
  gap: 10px;
}

.protocol-answer-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.protocol-answer-section + .protocol-answer-section {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.protocol-case-card,
.protocol-question-card {
  box-shadow: none;
}

.protocol-case-body {
  display: grid;
  gap: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.protocol-case-card h4 {
  margin: 8px 0 10px;
  font-size: 18px;
}

.protocol-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.protocol-option input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.protocol-option span {
  display: inline-block;
}

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

.course-detail-section {
  display: grid;
  gap: 14px;
}

.rich-content img {
  max-width: 100%;
}

.rich-content {
  display: grid;
  gap: 22px;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0;
}

.rich-content h2 {
  font-size: clamp(1.34rem, 2.4vw, 1.86rem);
  line-height: 1.32;
}

.rich-content h3 {
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--green);
}

.rich-content p,
.rich-content li {
  font-size: 1.02rem;
  line-height: 1.84;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.3rem;
}

.article-intro-card,
.article-highlight-card,
.article-cta-card,
.article-checklist {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 20px 22px;
}

.article-intro-card {
  background:
    linear-gradient(135deg, rgba(15, 107, 87, 0.08), rgba(15, 107, 87, 0) 46%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  border-color: #dbe7df;
}

.article-highlight-card {
  background: #f5fbf8;
  border-left: 4px solid var(--green);
}

.article-cta-card {
  background: linear-gradient(180deg, #0f6b57 0%, #155f51 100%);
  border-color: rgba(15, 107, 87, 0.24);
  color: #fff;
}

.article-cta-card h3,
.article-cta-card p,
.article-cta-card li,
.article-cta-card a {
  color: inherit;
}

.article-cta-card a {
  font-weight: 700;
  text-decoration: underline;
}

.article-checklist {
  background: #fff8ec;
  border-color: #eed7a9;
}

.article-checklist h3 {
  color: #8c5a12;
}

.article-checklist ul {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.article-section {
  display: grid;
  gap: 14px;
}

.article-section + .article-section {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf4f1;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-intro-card .article-kicker,
.article-section .article-kicker {
  box-shadow: inset 0 0 0 1px rgba(15, 107, 87, 0.06);
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.handout-overview {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.handout-section-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.handout-section-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.handout-section-row:hover {
  border-color: rgba(15, 107, 87, 0.42);
  background: #edf4f1;
}

.handout-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.handout-page-head h1 {
  margin-top: 8px;
}

.handout-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.handout-side,
.handout-notes {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.handout-nav {
  display: grid;
  gap: 8px;
}

.handout-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
}

.handout-nav a:hover,
.handout-nav a.active {
  color: var(--green);
  background: #edf4f1;
  border-color: rgba(15, 107, 87, 0.16);
}

.handout-content {
  font-size: 1.02rem;
}

.handout-paragraph-block {
  display: grid;
  gap: 10px;
}

.handout-exam-original {
  margin: 20px 0 16px;
  padding: 16px 20px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-left: 6px solid #dc2626;
  border-radius: 8px;
  background: #fff1f2;
}

.handout-exam-original p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 900;
  line-height: 1.9;
  white-space: pre-line;
}

.handout-exam-original .handout-term {
  background: #fee2e2;
  color: #991b1b;
}

.handout-exam-original .handout-term:hover,
.handout-exam-original .handout-term.active {
  background: #991b1b;
  color: #fff;
}

.handout-teaching-summary {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-left: 3px solid #c084fc;
  background: #f7f0ff;
  color: #6b21a8;
  font-size: 0.96rem;
}

.handout-mnemonic {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-left: 5px solid #0891b2;
  border-radius: 8px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 900;
}

.handout-question {
  margin: 18px 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-left: 5px solid #ca8a04;
  border-radius: 8px;
  background: #fffbeb;
  color: #854d0e;
  font-weight: 900;
}

.handout-content h2,
.handout-content h3,
.handout-content h4 {
  scroll-margin-top: 88px;
}

.handout-content h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.handout-content h2 + h3 {
  margin-top: 10px;
}

.handout-content h3 {
  font-size: 1.45rem;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.handout-content h4 {
  font-size: 1.12rem;
  margin-top: 22px;
}

.handout-content p {
  margin-top: 12px;
}

.handout-example-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 28px;
}

.handout-example-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  align-items: start;
}

.handout-example-main {
  min-width: 0;
}

.handout-example-gap {
  min-height: 1px;
}

@media (max-width: 1100px) {
  .handout-example-shell {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
}

@media (max-width: 860px) {
  .handout-example-shell {
    grid-template-columns: 1fr;
  }

  .handout-example-gap {
    display: none;
  }
}

.handout-example-panel > h2,
.handout-example-panel > .notice,
.handout-example-panel > .actions,
.handout-example-panel > .handout-example-content {
  grid-column: 1 / 2;
}

.handout-term {
  padding: 1px 4px;
  border-radius: 4px;
  background: #ffe9e3;
  color: #a22f23;
  font-weight: 800;
}

.handout-figure {
  margin: 22px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.handout-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.handout-figure-scaled img {
  width: calc(100% * var(--handout-figure-scale, 1));
  margin: 0 auto;
}

.handout-figure-caption {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--muted);
}

.handout-table-caption {
  margin: 0 0 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--muted);
}

.handout-table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.handout-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.handout-table-large {
  font-size: 1.22rem;
  line-height: 1.75;
}

.handout-table-cap-properties {
  font-size: 1.05rem;
  line-height: 1.62;
}

.handout-table th,
.handout-table td {
  min-width: 120px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.handout-table-large th,
.handout-table-large td {
  min-width: 170px;
  max-width: 390px;
  padding: 14px 16px;
}

.handout-table-cap-properties th,
.handout-table-cap-properties td {
  min-width: 150px;
  max-width: 340px;
  padding: 12px 14px;
}

.handout-table-org-impact {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  font-size: 0.8rem;
  line-height: 1.42;
}

.handout-table-org-impact th,
.handout-table-org-impact td {
  min-width: 0;
  max-width: none;
  padding: 8px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.handout-table-org-impact th:nth-child(1),
.handout-table-org-impact td:nth-child(1) {
  width: 21%;
}

.handout-table-org-impact th:nth-child(2),
.handout-table-org-impact td:nth-child(2) {
  width: 21%;
}

.handout-table-org-impact th:nth-child(3),
.handout-table-org-impact td:nth-child(3),
.handout-table-org-impact th:nth-child(5),
.handout-table-org-impact td:nth-child(5),
.handout-table-org-impact th:nth-child(6),
.handout-table-org-impact td:nth-child(6),
.handout-table-org-impact th:nth-child(7),
.handout-table-org-impact td:nth-child(7) {
  width: 10%;
}

.handout-table-org-impact th:nth-child(4),
.handout-table-org-impact td:nth-child(4) {
  width: 18%;
}

.handout-table-adm-phases th:first-child,
.handout-table-adm-phases td:first-child {
  min-width: 120px;
  max-width: 150px;
}

.handout-table-adm-phases th:last-child,
.handout-table-adm-phases td:last-child {
  min-width: 460px;
  max-width: 760px;
}

.handout-table-it-decisions th:first-child,
.handout-table-it-decisions td:first-child {
  min-width: 120px;
  max-width: 160px;
  width: 35%;
}

.handout-table-it-decisions th:last-child,
.handout-table-it-decisions td:last-child {
  min-width: 560px;
  max-width: 820px;
  width: 65%;
}

.handout-table-course-intro th,
.handout-table-course-intro td {
  min-width: 170px;
  max-width: 420px;
}

.handout-table-course-intro th:first-child,
.handout-table-course-intro td:first-child {
  min-width: 130px;
  max-width: 190px;
  font-weight: 800;
}

.handout-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf4f1;
  color: var(--green);
  font-weight: 800;
}

.handout-table td:first-child,
.handout-table th:first-child {
  min-width: 96px;
}

.handout-notes h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.term-card {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.term-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.term-card h3 {
  color: var(--red);
  font-size: 1.05rem;
}

.term-card strong {
  color: var(--green);
  font-size: 0.92rem;
}

.term-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.handout-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.teaching-shell {
  width: min(1500px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.dev-build-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.72);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.teaching-reveal-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 24;
}

.teaching-page {
  position: relative;
}

.teaching-toolbar {
  position: sticky;
  top: 61px;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 6px 0;
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.teaching-toolbar h1 {
  margin-top: 2px;
  font-size: clamp(1.18rem, 1.9vw, 1.72rem);
}

.teaching-toolbar .eyebrow {
  font-size: 0.86rem;
}

.teaching-toolbar .muted {
  font-size: 0.9rem;
}

.teaching-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 620px;
}

.teaching-actions .button,
.teaching-actions button {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

body.teaching-mode {
  --teaching-topbar-height: 61px;
  --teaching-toolbar-height: 96px;
}

body.teaching-mode.teaching-header-collapsed .topbar {
  transform: translateY(calc(var(--teaching-topbar-height, 61px) * -1));
  opacity: 0;
  pointer-events: none;
}

body.teaching-mode.teaching-header-collapsed .teaching-toolbar {
  transform: translateY(calc((var(--teaching-topbar-height, 61px) + var(--teaching-toolbar-height, 96px)) * -1));
  opacity: 0;
  pointer-events: none;
}

body.teaching-mode.teaching-header-collapsed.teaching-header-peek .topbar,
body.teaching-mode.teaching-header-collapsed.teaching-header-peek .teaching-toolbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.teaching-content {
  width: min(1040px, 80%);
  margin: 0 auto 0 0;
  padding: 34px;
  font-size: 1.09rem;
}

.teaching-content h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  margin-bottom: 12px;
}

.teaching-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.teaching-content h4 {
  font-size: 1.22rem;
}

.teaching-content p {
  line-height: 1.78;
}

.handout-term {
  display: inline;
  min-height: 0;
  padding: 1px 5px;
  border: 0;
  border-radius: 4px;
  background: #ffe9e3;
  color: #a22f23;
  box-shadow: none;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  vertical-align: baseline;
  cursor: pointer;
}

.handout-term:hover,
.handout-term.active {
  background: #b23b2d;
  color: #fff;
  outline: 2px solid rgba(178, 59, 45, 0.2);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 18, 15, 0.24);
}

.drawer-backdrop[hidden] {
  display: none;
}

.teaching-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 70;
  width: min(390px, calc(100vw - 28px));
  padding: 20px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(16, 32, 28, 0.2);
  transition: transform 180ms ease;
}

.nav-drawer {
  left: 0;
  transform: translateX(-105%);
  border-radius: 0 12px 12px 0;
}

.term-drawer {
  right: 0;
  transform: translateX(105%);
  border-radius: 12px 0 0 12px;
}

.teaching-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 1.25rem;
}

.drawer-close {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.term-card.active {
  border-top: 0;
  padding-top: 0;
}

.handout-quiz-group {
  margin-top: 28px;
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.handout-quiz-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.handout-quiz-head h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.08rem;
  color: var(--green);
}

.handout-quiz-head .muted {
  font-size: 0.9rem;
}

.handout-quiz-list {
  display: grid;
  gap: 10px;
}

.handout-quiz-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.handout-quiz-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
}

.handout-quiz-content {
  min-width: 0;
}

.handout-quiz-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.handout-quiz-index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e6efe9;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.handout-quiz-stem {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

.handout-quiz-options {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.handout-quiz-options li {
  line-height: 1.7;
}

.handout-quiz-details {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.handout-quiz-code {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}

.handout-quiz-code-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(28, 37, 31, 0.08);
}

.handout-quiz-details[open] + .handout-quiz-code {
  display: none;
}

.handout-quiz-code-dot.is-yellow {
  background: #e7d44e;
}

.handout-quiz-code-dot.is-pink {
  background: #e7a5c8;
}

.handout-quiz-details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  list-style: none;
}

.handout-quiz-details summary::-webkit-details-marker {
  display: none;
}

.handout-quiz-details summary::before {
  content: "展开";
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-weight: 500;
}

.handout-quiz-details[open] summary::before {
  content: "收起";
}

.handout-quiz-answer {
  margin-top: 12px;
}

.handout-quiz-answer p {
  margin: 8px 0 0;
  font-size: 0.96rem;
}

.handout-lab-summary,
.handout-lab-block {
  margin-top: 18px;
}

.handout-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.handout-lab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.handout-lab-filters label {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.handout-lab-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.handout-lab-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.handout-lab-card strong {
  display: block;
  margin-bottom: 6px;
}

.handout-lab-card p {
  margin: 0;
}

.handout-lab-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.handout-lab-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.handout-practice-main {
  display: grid;
  gap: 18px;
}

.handout-practice-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.handout-practice-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.handout-practice-stats strong {
  display: block;
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1.1;
}

.handout-practice-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.handout-practice-stats .is-warning strong {
  color: #b45309;
}

.handout-practice-ok,
.handout-practice-issues {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  padding: 14px 16px;
}

.handout-practice-issues {
  background: #fff7ed;
  border-color: #fed7aa;
}

.handout-practice-issues h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.handout-practice-issues ul,
.handout-practice-rule-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.handout-practice-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.handout-practice-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.handout-practice-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.handout-practice-meta strong {
  color: var(--green);
}

.handout-practice-rule-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.handout-practice-rule-list h3 {
  margin: 0;
  font-size: 1rem;
}

.handout-analysis-subsection {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  scroll-margin-top: 170px;
  border-top: 2px solid rgba(15, 107, 87, 0.18);
}

.handout-analysis-subsection.is-inline {
  margin: 30px 0 8px;
  padding: 18px;
  border: 1px solid rgba(15, 107, 87, 0.2);
  border-radius: 8px;
  background: #f7faf8;
}

.handout-analysis-head,
.handout-analysis-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.handout-analysis-head h3,
.handout-analysis-result-head h2 {
  margin: 2px 0 4px;
  padding: 0;
  border: 0;
}

.handout-analysis-head h3 {
  color: var(--green);
  font-size: 1.12rem;
}

.handout-analysis-head .eyebrow,
.handout-analysis-head .muted,
.handout-analysis-result-head .muted {
  margin: 0;
}

.handout-analysis-groups,
.handout-analysis-case-list,
.handout-analysis-case-body {
  display: grid;
  gap: 10px;
}

.handout-analysis-type,
.handout-analysis-case {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.handout-analysis-type > summary,
.handout-analysis-case > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.handout-analysis-type > summary::-webkit-details-marker,
.handout-analysis-case > summary::-webkit-details-marker {
  display: none;
}

.handout-analysis-type > summary::before,
.handout-analysis-case > summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e6efe9;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.handout-analysis-type[open] > summary::before,
.handout-analysis-case[open] > summary::before {
  content: "−";
}

.handout-analysis-type > summary strong,
.handout-analysis-case > summary strong {
  flex: 1;
}

.handout-analysis-type > summary span,
.handout-analysis-case > summary span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.handout-analysis-type > .handout-quiz-list,
.handout-analysis-type > .handout-analysis-case-list {
  padding: 0 12px 12px;
}

.handout-analysis-case {
  background: #fbfcfb;
}

.handout-analysis-case-body {
  padding: 0 12px 12px;
}

.handout-analysis-material {
  padding: 12px 14px;
  border-left: 3px solid #c99832;
  background: #fffaf0;
}

.handout-analysis-material > strong {
  color: #7a4b00;
}

.handout-analysis-material p {
  margin: 8px 0 0;
  line-height: 1.75;
}

.handout-analysis-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.88rem;
}

.handout-analysis-difficulty {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ef;
  color: #415047;
  font-size: 0.8rem;
  font-weight: 700;
}

.handout-analysis-difficulty.is-易 {
  background: #e8f5ee;
  color: #176447;
}

.handout-analysis-difficulty.is-中 {
  background: #e9f1f7;
  color: #245b7a;
}

.handout-analysis-difficulty.is-中偏难 {
  background: #fff3d6;
  color: #7a5200;
}

.handout-analysis-difficulty.is-难 {
  background: #fbe9e7;
  color: #9b2c24;
}

.handout-analysis-prompt-lines p {
  margin: 8px 0 0;
}

.handout-analysis-statements {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 24px;
}

.handout-analysis-statements li {
  line-height: 1.7;
}

.handout-analysis-filter-panel {
  margin-bottom: 18px;
}

.handout-analysis-filter-panel .handout-lab-filters {
  margin-bottom: 0;
}

.handout-analysis-layout .handout-analysis-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.calc-help-entry-card {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(15, 107, 87, 0.08), rgba(15, 107, 87, 0) 42%),
    #fff;
}

.calc-help-student-page {
  display: grid;
  gap: 22px;
}

.calc-help-student-grid,
.calc-help-admin-grid {
  display: grid;
  gap: 18px;
}

.admin-workbench-page {
  display: grid;
  gap: 18px;
}

.admin-workbench-hero {
  display: grid;
  gap: 16px;
  padding: 24px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(232, 149, 32, 0.12), transparent 26%),
    radial-gradient(circle at top left, rgba(15, 107, 87, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.96));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 16px 40px rgba(23, 33, 29, 0.06);
}

.admin-workbench-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-workbench-hero-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.admin-workbench-hero-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-workbench-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-workbench-toolbar .button,
.admin-workbench-toolbar button {
  min-height: 38px;
}

.admin-workbench-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.admin-workbench-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.admin-workbench-summary-card strong {
  font-size: 1.3rem;
}

.admin-workbench-summary-card span {
  color: var(--muted);
}

.admin-workbench-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.05);
}

.admin-workbench-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-workbench-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-workbench-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.admin-workbench-main {
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.admin-upload-dropzone {
  align-items: center;
  border: 1px dashed rgba(31, 111, 87, 0.35);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-upload-dropzone:hover,
.admin-upload-dropzone.is-dragover {
  background: rgba(239, 248, 244, 0.9);
  border-color: rgba(31, 111, 87, 0.68);
  box-shadow: 0 10px 24px rgba(31, 111, 87, 0.08);
}

.admin-upload-dropzone input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.admin-upload-dropzone-copy {
  display: grid;
  gap: 4px;
}

.admin-upload-dropzone-copy strong {
  color: var(--green);
}

.admin-upload-dropzone-copy small,
.admin-upload-file-list {
  color: var(--muted);
}

.admin-upload-file-list {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 9px 10px;
}

.admin-upload-file-list.is-error {
  color: #963b2f;
  background: rgba(202, 72, 55, 0.1);
}

.admin-upload-result-list {
  display: grid;
  gap: 10px;
}

.admin-upload-result-card {
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(247, 249, 247, 0.78);
}

.admin-upload-result-card span {
  color: var(--muted);
}

.admin-workbench-nav {
  display: grid;
  gap: 10px;
}

.admin-workbench-nav-link {
  display: grid;
  gap: 8px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  color: inherit;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-workbench-nav-link:hover,
.admin-workbench-nav-link:focus-visible {
  border-color: rgba(15, 107, 87, 0.24);
  background: rgba(242, 248, 245, 0.98);
  box-shadow: 0 10px 24px rgba(15, 107, 87, 0.08);
  transform: translateY(-1px);
}

.admin-workbench-nav-link.is-active {
  border-color: rgba(15, 107, 87, 0.28);
  background: linear-gradient(180deg, rgba(239, 248, 244, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(15, 107, 87, 0.10);
}

.admin-workbench-nav-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.admin-workbench-nav-top strong {
  font-size: 1rem;
  line-height: 1.35;
}

.admin-workbench-nav-total {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-workbench-nav-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-workbench-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-workbench-chip.is-risk {
  color: #8a4a00;
  background: rgba(232, 149, 32, 0.14);
}

.admin-workbench-chip.is-pending {
  color: #67520d;
  background: rgba(232, 190, 32, 0.18);
}

.admin-workbench-chip.is-fix {
  color: #963b2f;
  background: rgba(202, 72, 55, 0.14);
}

.admin-workbench-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-workbench-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-workbench-list-head h2 {
  margin: 0;
}

.admin-workbench-list-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-workbench-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.admin-workbench-directory-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(circle at top right, rgba(232, 149, 32, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 247, 0.98));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-workbench-directory-card:hover,
.admin-workbench-directory-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 87, 0.22);
  box-shadow: 0 18px 34px rgba(15, 107, 87, 0.10);
}

.admin-workbench-directory-card .admin-workbench-nav-top {
  gap: 14px;
}

.admin-workbench-directory-card .admin-workbench-nav-top strong {
  font-size: 1.04rem;
  line-height: 1.5;
  word-break: break-word;
}

.admin-workbench-directory-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-workbench-chapter-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
}

.admin-workbench-chapter-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.admin-workbench-chapter-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-workbench-bulk {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 107, 87, 0.06);
}

.admin-workbench-list {
  display: grid;
  gap: 12px;
}

.admin-workbench-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.admin-workbench-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-workbench-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-workbench-row-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.admin-workbench-row-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-workbench-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-workbench-pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-workbench-pagination-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-workbench-empty {
  padding: 26px 24px;
  text-align: center;
  color: var(--muted);
}

.admin-workbench-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(10, 18, 15, 0.28);
}

.admin-workbench-backdrop[hidden] {
  display: none;
}

body:has(.admin-workbench-drawer) {
  overflow: hidden;
}

.admin-workbench-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 79;
  width: min(520px, calc(100vw - 28px));
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(16, 32, 28, 0.18);
}

.admin-workbench-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-workbench-drawer-head h2 {
  margin: 0;
}

.admin-workbench-drawer-stack {
  display: grid;
  gap: 16px;
}

.admin-workbench-inline-form {
  display: inline;
}

.admin-workbench-drawer .panel {
  margin: 0;
}

.admin-workbench-drawer .panel h3 {
  margin: 0 0 8px;
}

.calc-help-student-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.calc-help-search-form,
.calc-help-result-card,
.calc-help-admin-block,
.calc-help-summary {
  display: grid;
  gap: 14px;
}

.calc-help-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.calc-help-form-actions .calc-help-submit-button,
.calc-help-form-actions .calc-help-reset-button {
  min-height: 48px;
}

.calc-help-reset-button {
  border-color: rgba(15, 107, 87, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(245, 248, 246, 0.96));
  color: var(--green);
}

.calc-help-reset-button:hover,
.calc-help-reset-button:focus-visible {
  border-color: rgba(15, 107, 87, 0.28);
  background: linear-gradient(180deg, rgba(240, 248, 243, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(15, 107, 87, 0.08);
}

.memorize-review-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.memorize-review-summary div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.memorize-review-summary strong {
  font-size: 1.35rem;
}

.memorize-review-summary span {
  color: var(--muted);
}

.memorize-bulk-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 107, 87, 0.06);
}

.memorize-review-cell {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.memorize-review-cell small {
  color: var(--muted);
  line-height: 1.5;
}

.memorize-risk-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.memorize-risk-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a4a00;
  background: rgba(232, 149, 32, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}

.memorize-review-badge.is-pending {
  color: #67520d;
  background: rgba(232, 190, 32, 0.18);
}

.memorize-review-badge.is-needs-fix {
  color: #963b2f;
  background: rgba(202, 72, 55, 0.14);
}

.memorize-review-badge.is-verified {
  color: #0f6b57;
  background: rgba(15, 107, 87, 0.12);
}

.calc-help-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.calc-help-result-actions {
  display: flex;
  align-items: center;
}

.calc-help-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1113;
  aspect-ratio: 16 / 9;
}

.calc-help-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.memorize-training-page {
  display: grid;
  gap: 22px;
}

.memorize-training-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(232, 149, 32, 0.2), transparent 26%),
    radial-gradient(circle at 14% 18%, rgba(15, 107, 87, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(249, 245, 233, 0.98), rgba(255, 255, 255, 0.97));
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.memorize-training-hero-copy {
  display: grid;
  gap: 12px;
}

.memorize-training-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.memorize-training-hero .lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.memorize-training-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memorize-training-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: #0f6b57;
  font-size: 0.94rem;
  font-weight: 800;
}

.memorize-training-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.memorize-training-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.memorize-training-anchorbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
}

.memorize-anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 33, 29, 0.1);
}

.memorize-anchor-link:hover,
.memorize-anchor-link:focus-visible {
  color: #0f6b57;
  border-color: rgba(15, 107, 87, 0.4);
  background: rgba(15, 107, 87, 0.08);
}

.memorize-anchor-link.is-warm {
  background: rgba(255, 248, 235, 0.96);
  border-color: rgba(232, 149, 32, 0.2);
  color: #8f5600;
}

.memorize-training-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.94));
  border: 1px solid rgba(23, 33, 29, 0.07);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.06);
  scroll-snap-align: start;
}

.memorize-training-stat-card strong {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.memorize-training-stat-card span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.memorize-training-stat-card.is-mastered strong {
  color: #0f6b57;
}

.memorize-training-stat-card.is-mastered {
  background: linear-gradient(180deg, rgba(234, 246, 240, 0.98), rgba(255, 255, 255, 0.96));
}

.memorize-training-stat-card.is-review strong {
  color: #a96100;
}

.memorize-training-stat-card.is-review {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.memorize-training-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 149, 32, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(240, 248, 243, 0.98), rgba(255, 251, 244, 0.98));
}

.memorize-training-suggestion-copy {
  display: grid;
  gap: 8px;
}

.memorize-training-suggestion-copy h2,
.memorize-training-suggestion-copy p {
  margin: 0;
}

.memorize-training-suggestion-copy h2 {
  font-size: clamp(1.24rem, 2.3vw, 1.6rem);
  line-height: 1.3;
}

.memorize-training-suggestion-copy p:last-child {
  color: var(--muted);
  line-height: 1.68;
}

.memorize-training-suggestion-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.memorize-training-suggestion-badge,
.memorize-mode-target-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: #8f5600;
  background: rgba(255, 248, 235, 0.96);
  border: 1px solid rgba(232, 149, 32, 0.18);
}

.memorize-training-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.memorize-training-section-head h2,
.memorize-training-list-head h2 {
  margin: 0;
  font-size: clamp(1.34rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}

.memorize-training-progress,
.memorize-training-mode-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.memorize-training-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memorize-training-progress-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(247, 249, 247, 0.9);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.memorize-training-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.memorize-training-progress-label {
  color: #8f5600;
  font-weight: 900;
}

.memorize-training-progress-top strong {
  color: var(--ink);
  font-size: 1.22rem;
}

.memorize-training-progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.08);
}

.memorize-training-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b57, var(--gold));
}

.memorize-training-progress-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.memorize-stage-home,
.memorize-stage-chapters,
.memorize-stage-mode,
.memorize-card-stage {
  display: grid;
  gap: 16px;
}

.memorize-star-entry-shell,
.memorize-stage-shell {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.memorize-stage-shell-narrow {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.memorize-star-entry-grid,
.memorize-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.memorize-star-entry-card,
.memorize-chapter-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.94));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.memorize-star-entry-card.is-recommended {
  border-color: rgba(232, 149, 32, 0.26);
  background:
    radial-gradient(circle at 100% 0, rgba(232, 149, 32, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 249, 247, 0.94));
}

.memorize-star-entry-card:hover,
.memorize-star-entry-card:focus-visible,
.memorize-chapter-card:hover,
.memorize-chapter-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 87, 0.28);
  box-shadow: 0 18px 36px rgba(23, 33, 29, 0.08);
}

.memorize-star-entry-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 149, 32, 0.14);
  color: #8f5600;
  font-size: 0.82rem;
  font-weight: 900;
}

.memorize-star-entry-top,
.memorize-chapter-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.memorize-chapter-card-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.memorize-chapter-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.memorize-chapter-status.is-fresh {
  color: var(--muted);
  background: rgba(23, 33, 29, 0.08);
}

.memorize-chapter-status.is-progress {
  color: #8f5600;
  background: rgba(232, 149, 32, 0.14);
}

.memorize-chapter-status.is-complete {
  color: #0f6b57;
  background: rgba(15, 107, 87, 0.12);
}

.memorize-star-entry-top strong,
.memorize-chapter-card-head strong {
  font-size: 1.24rem;
  color: var(--ink);
}

.memorize-chapter-card-head span,
.memorize-star-entry-top span:last-child {
  color: #0f6b57;
  font-weight: 900;
}

.memorize-star-entry-card p,
.memorize-chapter-card p {
  margin: 0;
  color: var(--muted);
}

.memorize-star-entry-action,
.memorize-chapter-card-meta {
  color: #8f5600;
  font-weight: 800;
}

.memorize-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.memorize-breadcrumbs a {
  color: #0f6b57;
  text-decoration: none;
  font-weight: 800;
}

.memorize-breadcrumbs strong {
  color: var(--ink);
  font-weight: 900;
}

.memorize-stage-meta-row {
  margin-top: -2px;
}

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

.memorize-training-mode-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(247, 249, 247, 0.9);
  border: 2px solid rgba(23, 33, 29, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.memorize-training-mode-card:hover,
.memorize-training-mode-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 87, 0.38);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.08);
}

.memorize-training-mode-card.is-active {
  background: linear-gradient(180deg, rgba(235, 247, 241, 0.98), rgba(255, 255, 255, 0.96));
  border-color: rgba(15, 107, 87, 0.54);
}

.memorize-training-mode-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #0f6b57;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.memorize-training-mode-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.memorize-training-mode-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.memorize-training-star-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memorize-training-mode-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 244, 232, 0.92);
  border: 1px solid rgba(232, 149, 32, 0.16);
}

.memorize-training-mode-note {
  color: #775123;
  font-weight: 800;
}

.memorize-training-star-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 33, 29, 0.1);
}

.memorize-training-star-chip:hover,
.memorize-training-star-chip:focus-visible,
.memorize-training-star-chip.is-active {
  color: #0f6b57;
  border-color: rgba(15, 107, 87, 0.4);
  background: rgba(15, 107, 87, 0.08);
}

.memorize-training-toolbar {
  display: grid;
  gap: 16px;
}

.memorize-training-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.memorize-training-toolbar-actions {
  justify-content: flex-start;
}

.memorize-training-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.memorize-training-list-head p {
  margin: 6px 0 0;
}

.memorize-training-stage-head {
  align-items: center;
}

.memorize-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.memorize-summary-grid div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.memorize-summary-grid strong {
  font-size: 1.28rem;
  line-height: 1.2;
}

.memorize-summary-grid span {
  color: var(--muted);
  font-size: 0.95rem;
}

.memorize-toolbar {
  margin-bottom: 18px;
}

.memorize-card-list {
  display: grid;
  gap: 16px;
}

.memorize-card {
  display: grid;
  gap: 16px;
}

.memorize-card-stage {
  display: grid;
  gap: 16px;
}

.memorize-training-anchorbar,
.memorize-training-stats,
.memorize-training-progress,
.memorize-training-mode-panel,
.memorize-card-stage {
  scroll-margin-top: 88px;
}

.memorize-stage-progress-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 107, 87, 0.12), rgba(15, 107, 87, 0.04));
  border: 1px solid rgba(15, 107, 87, 0.16);
  color: #0f6b57;
  font-weight: 900;
  white-space: nowrap;
}

.memorize-stage-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.memorize-stage-nav-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(249, 245, 233, 0.94);
  border: 1px solid rgba(232, 149, 32, 0.18);
  color: #775123;
  font-weight: 800;
  text-align: center;
}

.memorize-stage-nav .button.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.memorize-session-strip {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(241, 247, 244, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 107, 87, 0.12);
}

.memorize-session-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memorize-session-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.08);
  color: #0f6b57;
  font-size: 0.86rem;
  font-weight: 900;
}

.memorize-session-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.memorize-session-progress-top strong {
  font-size: 1rem;
  color: var(--ink);
}

.memorize-session-progress-top span {
  color: var(--muted);
  font-weight: 700;
}

.memorize-session-feedback,
.memorize-goal-note {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.memorize-session-feedback {
  background: rgba(23, 33, 29, 0.04);
  color: var(--muted);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.memorize-session-feedback.is-success {
  background: rgba(232, 244, 239, 0.96);
  color: #0f6b57;
  border-color: rgba(15, 107, 87, 0.16);
}

.memorize-session-feedback.is-review {
  background: rgba(255, 248, 235, 0.96);
  color: #8f5600;
  border-color: rgba(232, 149, 32, 0.18);
}

.memorize-goal-note {
  background: rgba(249, 245, 233, 0.92);
  color: #775123;
  border: 1px solid rgba(232, 149, 32, 0.14);
}

.memorize-card-single {
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 100% 0, rgba(232, 149, 32, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 236, 0.95));
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}

.memorize-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.memorize-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.memorize-card-meta::-webkit-scrollbar,
.memorize-training-star-row::-webkit-scrollbar,
.memorize-training-hero-meta::-webkit-scrollbar,
.memorize-training-stats::-webkit-scrollbar {
  display: none;
}

.memorize-star-badge,
.memorize-category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.memorize-star-badge {
  background: rgba(232, 149, 32, 0.14);
  color: #9a5a00;
}

.memorize-category-tag {
  background: rgba(15, 107, 87, 0.1);
  color: #0f6b57;
}

.memorize-card-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.06);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.memorize-question-block {
  display: grid;
  gap: 16px;
}

.memorize-question-block h2 {
  margin: 0;
  font-size: clamp(1.48rem, 2.6vw, 2rem);
  line-height: 1.42;
}

.memorize-mnemonic-box,
.memorize-answer-block {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.05);
}

.memorize-mnemonic-box {
  background: linear-gradient(180deg, rgba(232, 244, 239, 0.98), rgba(247, 249, 247, 0.94));
  border-color: rgba(24, 127, 84, 0.14);
}

.memorize-answer-block {
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(232, 149, 32, 0.18);
}

.memorize-answer-block[hidden] {
  display: none !important;
}

.memorize-mnemonic-box strong,
.memorize-mnemonic-box p,
.memorize-answer-block strong,
.memorize-answer-block p {
  margin: 0;
}

.memorize-answer-raw {
  color: var(--ink);
  line-height: 1.82;
  white-space: pre-line;
}

.memorize-answer-chunks {
  display: grid;
  gap: 12px;
}

.memorize-answer-chunk {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(232, 149, 32, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 247, 229, 0.9));
  color: var(--ink);
  line-height: 1.88;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.memorize-answer-chunk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(220, 155, 46, 0.95), rgba(153, 103, 18, 0.68));
}

.memorize-answer-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35rem;
}

.memorize-answer-points li {
  line-height: 1.72;
}

.memorize-answer-figure {
  margin: 10px 0;
}

.memorize-answer-figure img {
  background: #fff;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
}

.memorize-dictation-area {
  display: grid;
  gap: 12px;
}

.memorize-dictation-area textarea,
.memorize-preview-card textarea {
  min-height: 128px;
}

.memorize-card-actions,
.memorize-progress-actions {
  gap: 12px;
  align-items: stretch;
}

.memorize-card-actions {
  display: grid;
  gap: 14px;
}

.memorize-card-actions .button,
.memorize-progress-actions .button,
.memorize-progress-actions input[type="submit"] {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 800;
}

.memorize-preview-list {
  display: grid;
  gap: 16px;
}

.memorize-preview-actions {
  align-items: center;
  background: rgba(247, 251, 248, 0.96);
  border: 1px solid rgba(31, 111, 87, 0.2);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.memorize-preview-actions .muted {
  margin: 4px 0 0;
}

.memorize-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.calc-help-admin-grid {
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
}

.calc-help-list-block {
  grid-column: 1 / -1;
}

.calc-help-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.calc-help-summary-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.calc-help-summary-grid strong {
  font-size: 1.35rem;
  color: var(--green);
}

.calc-help-summary-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.calc-help-error-list {
  display: grid;
  gap: 8px;
}

.calc-help-error-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8ec;
  border: 1px solid #eed7a9;
  color: #8c5a12;
}

.calc-help-table code {
  font-size: 0.92rem;
  font-weight: 700;
}

.calc-help-badge {
  border-radius: 999px;
}

.calc-help-badge.is-published {
  background: #e8f3ee;
  color: var(--green);
}

.calc-help-badge.is-draft {
  background: #f3efe3;
  color: #8c5a12;
}

.calc-help-badge.is-protocol {
  background: #e8eef8;
  color: #315f8b;
}

@media (max-width: 860px) {
  .wrap {
    width: min(100vw - 28px, 100%);
  }

  .topbar {
    position: static;
  }

  .hero-grid,
  .grid-2,
  .admin-shell,
  .overview-grid,
  .cards,
  .course-grid,
  .social-grid,
  .instructor-grid,
  .instructor-traits,
  .handout-overview,
  .handout-layout {
    grid-template-columns: 1fr;
  }

  .memorize-training-hero,
  .memorize-star-entry-grid,
  .memorize-chapter-grid,
  .memorize-training-mode-grid,
  .memorize-training-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .memorize-training-anchorbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 14px;
  }

  .memorize-training-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .memorize-training-progress-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .memorize-star-entry-shell,
  .memorize-stage-shell {
    padding: 18px 16px;
  }

  .memorize-training-hero-actions,
  .memorize-training-toolbar-actions {
    justify-content: stretch;
  }

  .memorize-training-hero-actions .button,
  .memorize-training-toolbar-actions .button,
  .memorize-training-toolbar-actions input[type="submit"] {
    width: 100%;
  }

  .memorize-training-list-head,
  .memorize-training-section-head {
    display: grid;
    align-items: start;
  }

  .memorize-training-hero-meta,
  .memorize-training-star-row,
  .memorize-training-mode-summary .actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .memorize-training-mode-summary {
    align-items: stretch;
  }

  .memorize-training-mode-note {
    width: 100%;
  }

  .memorize-training-suggestion {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .memorize-training-suggestion-actions {
    justify-items: stretch;
  }

  .memorize-training-suggestion-actions .button {
    width: 100%;
  }

  .memorize-breadcrumbs {
    line-height: 1.6;
  }

  .memorize-stage-nav {
    grid-template-columns: 1fr 1fr;
  }

  .memorize-stage-nav-tip {
    grid-column: 1 / -1;
    order: -1;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .memorize-card-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .memorize-card-counter {
    justify-self: end;
  }

  .memorize-question-block h2 {
    font-size: 1.5rem;
  }

  .memorize-card-meta {
    flex-wrap: wrap;
    overflow: visible;
    gap: 12px;
  }

  .memorize-category-tag {
    min-height: 0;
    line-height: 1.55;
    white-space: normal;
  }

  .memorize-card-single {
    padding: 16px;
  }

  .memorize-mnemonic-box,
  .memorize-answer-block {
    padding: 16px;
    border-radius: 18px;
  }

  .memorize-session-strip {
    padding: 14px;
    border-radius: 18px;
  }

  .memorize-session-progress-top {
    align-items: flex-start;
  }

  .memorize-session-progress-top strong,
  .memorize-session-progress-top span {
    width: 100%;
  }

  .memorize-answer-chunks {
    gap: 10px;
  }

  .memorize-answer-chunk {
    padding: 12px 12px 12px 15px;
    border-radius: 14px;
    line-height: 1.8;
  }

  .memorize-training-stat-card {
    gap: 4px;
    padding: 10px 8px;
    border-radius: 16px;
    box-shadow: 0 10px 18px rgba(23, 33, 29, 0.05);
  }

  .memorize-training-stat-card strong {
    font-size: clamp(1.05rem, 5.4vw, 1.7rem);
    letter-spacing: -0.04em;
  }

  .memorize-training-stat-card span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .memorize-star-entry-badge,
  .memorize-chapter-status {
    font-size: 0.78rem;
  }

  .handout-library-group .cards {
    grid-template-columns: 1fr;
  }

  .instructor-photo-card {
    position: static;
  }

  .hero-banner-focus .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner-focus .hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero-poster-banner .hero-grid {
    min-height: auto;
    gap: 24px;
    padding: 22px 18px 18px;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .hero-poster-banner .hero-copy {
    max-width: none;
    padding-top: 0;
    gap: 10px;
  }

  .hero-poster-banner .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 7.8vw, 2.7rem);
    line-height: 1.04;
  }

  .hero-poster-banner .hero-copy h1 span {
    display: inline;
  }

  .hero-poster-banner .lead {
    max-width: none;
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .course-detail-shell,
  .course-visual-grid,
  .course-price-grid {
    grid-template-columns: 1fr;
  }

  .protocol-mini-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-hero-card h1 {
    white-space: normal;
  }

  .hero-poster-banner .hero-visual-card {
    position: relative;
    inset: auto;
    margin-top: 4px;
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 12px;
  }

  .hero-poster-banner .hero-poster-stage {
    min-height: 0;
    padding: 0;
  }

  .hero-poster-banner .hero-poster-stage::before,
  .hero-poster-banner .hero-poster-stage::after {
    inset: 0;
  }

  .hero-poster-banner .hero-portrait-badge {
    left: 12px;
    top: 18px;
    padding: 12px 8px;
  }

  .hero-poster-banner .hero-portrait-frame {
    position: relative;
    right: auto;
    width: 100%;
    min-height: 248px;
    margin-left: 0;
    border-radius: 22px;
    overflow: hidden;
    max-height: 248px;
  }

  .hero-poster-banner .hero-portrait-frame .instructor-photo,
  .hero-poster-banner .hero-portrait-frame .instructor-photo-placeholder,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder {
    min-height: 248px;
  }

  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder {
    width: min(100%, 228px);
    padding: 14px;
    border-radius: 20px;
  }

  .hero-poster-banner .hero-banner-qr-copy {
    width: min(100%, 228px);
    padding: 0 6px 6px;
    gap: 6px;
  }

  .hero-poster-banner .hero-portrait-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .hero-visual-card,
  .hero-portrait-frame,
  .hero-portrait-frame .instructor-photo,
  .hero-portrait-frame .instructor-photo-placeholder,
  .hero-portrait-frame .hero-banner-qr-image,
  .hero-portrait-frame .hero-banner-qr-placeholder {
    min-height: 248px;
  }

  .hero-qr-corner {
    position: static;
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
    margin-right: 0;
    padding: 14px 14px 16px;
    min-height: 0;
    border-radius: 18px;
  }

  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    font-size: 1.14rem;
  }

  .nav {
    gap: 10px 16px;
    font-size: 1.02rem;
  }

  .hero {
    padding: 18px 0 18px;
  }

  .hero-poster-banner {
    padding: 18px 0 14px;
  }

  .hero-poster-banner .hero-brand-mark {
    margin-bottom: 4px;
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .hero-poster-banner .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .hero-poster-banner .actions .button,
  .hero-poster-banner .actions button {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.98rem;
  }

  .hero-poster-banner .actions .student-center-cta::after {
    top: 6px;
    right: 8px;
    font-size: 0.66rem;
  }

  .side-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .handout-page-head,
  .handout-pager {
    flex-direction: column;
  }

  .handout-side,
  .handout-notes {
    position: static;
    max-height: none;
  }

  .teaching-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .article-detail-wrap {
    width: min(100%, calc(100vw - 24px));
  }

  .article-body {
    padding: 22px 18px;
  }

  .article-detail-hero h1 {
    max-width: none;
  }

  .countdown-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .teaching-toolbar {
    top: 0;
    flex-direction: column;
  }

  .teaching-actions {
    justify-content: flex-start;
  }

  .teaching-content {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
  }

  .handout-quiz-group {
    padding: 16px 14px 6px;
  }

  .handout-lab-filters,
  .handout-lab-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .handout-quiz-item summary {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 12px;
  }

  .handout-quiz-main {
    padding: 12px;
  }

  .handout-quiz-top {
    flex-direction: column;
  }

  .handout-analysis-head,
  .handout-analysis-result-head {
    flex-direction: column;
  }

  .handout-analysis-subsection.is-inline {
    padding: 14px;
  }

  .handout-analysis-type > summary,
  .handout-analysis-case > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .handout-analysis-type > summary span,
  .handout-analysis-case > summary span {
    width: 100%;
    padding-left: 34px;
    white-space: normal;
  }

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

  .handout-analysis-layout > aside {
    display: none;
  }

  .calc-help-student-grid,
  .calc-help-admin-grid,
  .calc-help-summary-grid,
  .memorize-review-summary,
  .memorize-summary-grid {
    grid-template-columns: 1fr;
  }

  .memorize-bulk-actions {
    display: grid;
    align-items: stretch;
  }

  .memorize-bulk-actions .button,
  .memorize-bulk-actions button {
    width: 100%;
  }

  .calc-help-home-card {
    grid-template-columns: 1fr;
  }

  .calc-help-home-card .actions,
  .calc-help-result-actions {
    width: 100%;
  }

  .calc-help-home-action,
  .calc-help-open-button,
  .calc-help-submit-button,
  .calc-help-reset-button {
    width: 100%;
    justify-content: center;
  }

  .memorize-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .memorize-card-actions .button,
  .memorize-progress-actions .button,
  .memorize-progress-actions input[type="submit"] {
    width: 100%;
  }

  .course-shop-card.is-hero {
    grid-template-columns: 1fr;
  }

  .course-sales-admin-entry-grid {
    grid-template-columns: 1fr;
  }

  .course-price-actions {
    gap: 10px;
  }

  .course-price-action-button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-poster-banner .actions .button.primary + .button.primary {
    order: 0;
  }

  .quick-buy-page {
    padding-top: 22px;
  }

  .quick-buy-course-section {
    padding: 18px;
    border-radius: 24px;
  }

  .quick-buy-hero,
  .quick-buy-group-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .quick-buy-course-head .muted {
    font-size: 0.98rem;
  }

  .quick-buy-course-head h2 {
    font-size: 1.65rem;
  }

  .quick-buy-course-banner {
    padding: 12px 14px;
  }

  .quick-buy-package-list {
    grid-template-columns: 1fr;
  }

  .quick-buy-package-top {
    flex-direction: column;
  }

  .quick-buy-package-price {
    white-space: normal;
    font-size: 1.6rem;
  }

  .quick-buy-package-actions .muted {
    font-size: 0.92rem;
  }

  .quick-buy-group-copy h3 {
    font-size: 1.28rem;
  }

  .quick-buy-group-copy .muted {
    font-size: 0.98rem;
  }

  .quick-buy-action-button {
    min-height: 48px;
  }

  .handout-example-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100vw - 20px, 100%);
  }

  .nav {
    gap: 8px 14px;
    font-size: 0.92rem;
  }

  .hero-poster-banner .hero-grid {
    gap: 18px;
    padding: 18px 14px 14px;
    border-radius: 22px;
  }

  .hero-poster-banner .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.84rem, 8.2vw, 2.28rem);
  }

  .hero-poster-banner .lead {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-poster-banner .hero-portrait-frame,
  .hero-poster-banner .hero-portrait-frame .instructor-photo,
  .hero-poster-banner .hero-portrait-frame .instructor-photo-placeholder,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder,
  .hero-visual-card,
  .hero-portrait-frame,
  .hero-portrait-frame .instructor-photo,
  .hero-portrait-frame .instructor-photo-placeholder,
  .hero-portrait-frame .hero-banner-qr-image,
  .hero-portrait-frame .hero-banner-qr-placeholder {
    min-height: 216px;
    max-height: 216px;
  }

  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder {
    width: min(100%, 188px);
    padding: 12px;
    border-radius: 18px;
  }

  .hero-poster-banner .hero-banner-qr-copy {
    width: min(100%, 188px);
    padding: 0 4px 4px;
    gap: 5px;
  }

  .hero-poster-banner .hero-qr-corner {
    padding: 12px 12px 14px;
  }

  .hero-poster-banner .hero-qr-corner .qr {
    max-width: 108px;
  }

  .hero-poster-banner .actions {
    grid-template-columns: 1fr;
  }

  .resource-file-card {
    padding: 16px 14px;
    border-radius: 18px;
    gap: 12px;
    justify-content: flex-start;
  }

  .resource-file-main {
    flex: 1 1 auto;
    width: 100%;
    gap: 10px;
  }

  .resource-card-list {
    gap: 10px;
  }

  .resource-file-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .resource-file-title-row h2 {
    margin-top: 2px;
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .resource-file-badges {
    gap: 6px;
  }

  .resource-file-meta {
    gap: 8px 12px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .resource-file-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .resource-file-actions .button,
  .resource-file-actions form,
  .resource-file-actions form button {
    width: 100%;
  }

  .resource-bundle-manifest {
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .student-resource-card .resource-file-main {
    flex: 1 1 auto;
    flex-basis: auto;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .overview-grid,
  .cards,
  .course-grid,
  .social-grid {
    gap: 14px;
  }

  .overview-card,
  .social-card-featured {
    padding: 18px;
    border-radius: 20px;
  }

  .overview-points {
    gap: 8px;
  }

  .overview-points li {
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .course-directory {
    gap: 10px;
  }

  .course-directory-item {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .course-directory-index {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .hero-poster-banner .hero-grid {
    gap: 18px;
    padding: 18px 16px 14px;
  }

  .hero-poster-banner .hero-copy {
    gap: 8px;
  }

  .hero-poster-banner .lead {
    margin-top: 2px;
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .hero-poster-banner .actions {
    gap: 8px;
    margin-top: 10px;
  }

  .hero-poster-banner .actions .button,
  .hero-poster-banner .actions button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.94rem;
  }

  .hero-poster-banner .hero-portrait-frame,
  .hero-poster-banner .hero-portrait-frame .instructor-photo,
  .hero-poster-banner .hero-portrait-frame .instructor-photo-placeholder,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder,
  .hero-visual-card,
  .hero-portrait-frame,
  .hero-portrait-frame .instructor-photo,
  .hero-portrait-frame .instructor-photo-placeholder,
  .hero-portrait-frame .hero-banner-qr-image,
  .hero-portrait-frame .hero-banner-qr-placeholder {
    min-height: 228px;
    max-height: 228px;
  }

  .hero-poster-banner .hero-banner-qr-copy {
    gap: 4px;
  }

  .section-success-stories .section-head .muted,
  .social-card-summary,
  .social-card-note {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .social-card {
    gap: 10px;
    border-radius: 18px;
  }

  .social-card-featured {
    min-height: 216px;
    padding: 16px;
  }

  .social-card-head {
    gap: 10px;
  }

  .social-card-badge {
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 0.78rem;
  }

  .social-card-head h3 {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .social-card-account {
    font-size: 0.92rem;
  }

  .social-card-summary {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .social-card-note {
    font-size: 0.88rem;
    line-height: 1.44;
  }

  .social-card-actions .button,
  .social-card-actions .link,
  .social-card-actions .social-card-ghost {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .success-story-collapsible {
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .success-story-card,
  .success-story-empty {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .success-story-card-footer {
    gap: 8px;
    font-size: 0.9rem;
  }

  .course-grid {
    gap: 12px;
  }

  .course-grid .card {
    padding: 16px;
    border-radius: 18px;
    gap: 10px;
  }

  .course-grid .badge {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .course-grid .card h3 {
    margin-top: 8px !important;
    font-size: 1.24rem;
    line-height: 1.3;
  }

  .course-grid .card .muted,
  .course-grid .card .card-meta {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .course-grid .card .actions {
    margin-top: 10px;
  }

  .course-grid .card .button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .countdown-card {
    gap: 10px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .countdown-card h2 {
    font-size: 1.8rem;
  }

  .countdown-summary {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .countdown-stack {
    gap: 10px;
  }

  .countdown-tier {
    gap: 9px;
    padding: 13px 14px 14px;
    border-radius: 16px;
  }

  .countdown-tier-copy {
    gap: 4px;
  }

  .countdown-tier-label {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .countdown-tier-numberline {
    gap: 6px;
  }

  .countdown-tier-numberline strong {
    font-size: clamp(1.82rem, 8vw, 2.7rem);
  }

  .countdown-tier-numberline::after {
    font-size: 0.9rem;
  }

  .countdown-tier-note {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .countdown-tier-date {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .student-home {
    gap: 10px;
  }

  .student-home-hero {
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
  }

  .student-home-hero-compact,
  .student-home-hero-main,
  .student-course-flow,
  .student-stage-main,
  .student-course-switches,
  .student-checkin-shell,
  .student-checkin-today-panel,
  .student-checkin-detail-panel,
  .student-checkin-day-list,
  .student-checkin-task-stack {
    gap: 8px;
  }

  .student-home-actions {
    margin-top: 0;
    gap: 5px;
  }

  .student-home-actions .button,
  .student-home-actions button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .student-home-user-badge {
    gap: 1px;
    min-width: 0;
    padding: 5px 9px;
    border-radius: 12px;
  }

  .student-home-user-badge strong {
    font-size: 0.92rem;
  }

  .student-home-user-badge span {
    font-size: 0.8rem;
  }

  .student-home-hero .lead {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .student-course-switch {
    min-width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .student-course-switch strong {
    font-size: 0.95rem;
  }

  .student-course-switch small {
    margin-top: 2px;
    font-size: 0.84rem;
  }

  .student-countdown-banner,
  .student-stage-panel,
  .student-materials-card,
  .student-teacher-section,
  .student-coupon-box {
    padding: 12px;
    border-radius: 18px;
  }

  .student-countdown-banner {
    gap: 8px;
  }

  .student-countdown-copy,
  .student-panel-head,
  .student-stage-heading,
  .student-stage-heading-copy,
  .student-guide-visual,
  .student-flow-details-body,
  .student-guide-steps,
  .student-materials-meta,
  .student-benefit-grid,
  .student-mobile-section .student-section,
  .student-mobile-section .calc-help-entry-card {
    gap: 8px;
  }

  .student-countdown-meta,
  .student-panel-head p,
  .student-benefit-item p,
  .student-guide-step,
  .student-panel-note,
  .student-coupon-meta,
  .student-materials-card .muted,
  .student-teacher-section .muted,
  .student-stage-panel .muted,
  .student-flow-status,
  .student-checkin-goal,
  .student-checkin-materials {
    line-height: 1.5;
  }

  .student-stage-actions {
    gap: 8px;
  }

  .student-stage-actions .button,
  .student-stage-actions button,
  .student-stage-actions input[type="submit"] {
    min-height: 44px;
    padding: 10px 14px;
  }

  .student-benefit-item,
  .student-guide-step,
  .student-stage-locked-card,
  .student-materials-stat,
  .student-mobile-section .student-course-card,
  .student-mobile-section .student-paper-card,
  .student-mobile-section .student-tool-card,
  .student-mobile-section .calc-help-entry-card,
  .student-mobile-section .student-paper-stat,
  .student-checkin-stat-card,
  .student-checkin-day-card,
  .student-checkin-task-option,
  .student-checkin-materials {
    padding: 12px;
  }

  .student-checkin-hero,
  .student-checkin-today-head,
  .student-checkin-day-head,
  .student-checkin-detail-meta {
    gap: 8px;
  }

  .student-checkin-stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-checkin-hero h1 {
    font-size: 1.42rem;
  }

  .student-checkin-today-head h2,
  .student-checkin-day-copy h3 {
    font-size: 1.06rem;
  }

  .student-mobile-section {
    border-radius: 16px;
  }

  .student-mobile-section-summary {
    padding: 14px;
  }

  .student-mobile-section-body {
    padding: 0 14px 14px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .footer-inner {
    gap: 8px;
    padding: 8px 0;
  }

  .nav {
    gap: 6px 12px;
    font-size: 0.96rem;
  }

  .hero {
    padding: 14px 0 12px;
  }

  .hero-poster-banner {
    padding: 14px 0 10px;
  }

  .hero-poster-banner .hero-grid {
    gap: 14px;
    padding: 14px 12px 12px;
    border-radius: 20px;
  }

  .hero-poster-banner .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.72rem, 8vw, 2.12rem);
  }

  .hero-poster-banner .lead {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .hero-poster-banner .actions {
    gap: 7px;
    margin-top: 8px;
  }

  .hero-poster-banner .actions .button,
  .hero-poster-banner .actions button {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .hero-poster-banner .hero-portrait-frame,
  .hero-poster-banner .hero-portrait-frame .instructor-photo,
  .hero-poster-banner .hero-portrait-frame .instructor-photo-placeholder,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-image,
  .hero-poster-banner .hero-portrait-frame .hero-banner-qr-placeholder,
  .hero-visual-card,
  .hero-portrait-frame,
  .hero-portrait-frame .instructor-photo,
  .hero-portrait-frame .instructor-photo-placeholder,
  .hero-portrait-frame .hero-banner-qr-image,
  .hero-portrait-frame .hero-banner-qr-placeholder {
    min-height: 204px;
    max-height: 204px;
  }

  .overview-card,
  .social-card-featured {
    padding: 16px 14px;
  }

  .overview-points {
    gap: 6px;
  }

  .overview-points li {
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .social-card {
    gap: 8px;
    border-radius: 16px;
  }

  .social-card-featured {
    min-height: 196px;
    padding: 14px 12px;
  }

  .social-card-head {
    gap: 8px;
  }

  .social-card-badge {
    min-width: 44px;
    height: 44px;
    padding: 0 9px;
    border-radius: 14px;
    font-size: 0.74rem;
  }

  .social-card-head h3 {
    font-size: 1.18rem;
  }

  .social-card-account,
  .social-card-summary {
    font-size: 0.88rem;
  }

  .social-card-note {
    font-size: 0.84rem;
  }

  .social-card-actions .button,
  .social-card-actions .link,
  .social-card-actions .social-card-ghost {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  .section {
    padding: 22px 0;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .success-story-collapsible {
    padding: 10px;
  }

  .success-story-card,
  .success-story-empty {
    padding: 14px;
  }

  .course-grid {
    gap: 10px;
  }

  .course-grid .card {
    padding: 14px;
    border-radius: 16px;
    gap: 8px;
  }

  .course-grid .card h3 {
    font-size: 1.16rem;
  }

  .course-grid .card .muted,
  .course-grid .card .card-meta {
    font-size: 0.88rem;
    line-height: 1.46;
  }

  .course-grid .card .actions {
    margin-top: 8px;
  }

  .course-grid .card .button {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .countdown-card {
    gap: 8px;
    padding: 14px 12px;
  }

  .countdown-card h2 {
    font-size: 1.58rem;
  }

  .countdown-summary {
    font-size: 0.88rem;
    line-height: 1.46;
  }

  .countdown-stack {
    gap: 8px;
  }

  .countdown-tier {
    gap: 8px;
    padding: 11px 12px 12px;
    border-radius: 14px;
  }

  .countdown-tier-label {
    font-size: 0.88rem;
  }

  .countdown-tier-numberline strong {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .countdown-tier-note {
    font-size: 0.82rem;
  }

  .countdown-tier-date {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .student-home {
    gap: 8px;
  }

  .student-home-hero {
    gap: 4px;
    padding: 6px;
  }

  .student-home-hero h1 {
    font-size: clamp(1.5rem, 8.5vw, 1.9rem);
    max-width: none;
  }

  .student-home-hero .lead {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .student-home-hero-main {
    gap: 6px;
  }

  .student-home-user-badge {
    padding: 4px 8px;
    border-radius: 10px;
  }

  .student-home-user-badge strong {
    font-size: 0.88rem;
  }

  .student-home-user-badge span {
    font-size: 0.76rem;
  }

  .student-home-actions {
    gap: 4px;
  }

  .student-home-actions .button,
  .student-home-actions button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.84rem;
  }

  .student-panel-head h2,
  .student-panel-head h3 {
    font-size: 1.14rem;
  }

  .student-countdown-banner-number strong {
    font-size: clamp(1.92rem, 9vw, 2.5rem);
  }

  .student-stage-panel,
  .student-materials-card,
  .student-teacher-section,
  .student-coupon-box {
    padding: 10px;
    border-radius: 16px;
  }

  .student-stage-actions .button,
  .student-stage-actions button,
  .student-stage-actions input[type="submit"] {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .student-materials-card,
  .student-teacher-section {
    gap: 10px;
  }

  .student-materials-card h3,
  .student-teacher-section h3 {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .student-materials-meta {
    gap: 8px;
  }

  .student-materials-stat {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .student-materials-stat span {
    font-size: 0.88rem;
  }

  .student-materials-stat strong {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .student-materials-card .muted,
  .student-teacher-section .muted,
  .student-stage-panel .muted {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .student-mobile-section-summary {
    padding: 12px;
  }

  .student-mobile-section-body {
    padding: 0 12px 12px;
  }
}

.student-checkin-shell {
  gap: 14px;
}

.student-checkin-home-card {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.student-checkin-home-head,
.student-checkin-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-checkin-home-head h2,
.student-checkin-side-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.46rem);
  line-height: 1.32;
}

.student-checkin-home-layout {
  display: grid;
  grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.student-checkin-home-calendar,
.student-checkin-home-summary,
.student-checkin-calendar-panel,
.student-checkin-side-panel {
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(247, 249, 247, 0.92);
}

.student-checkin-home-calendar,
.student-checkin-calendar-panel {
  padding: 12px;
}

.student-checkin-home-summary,
.student-checkin-side-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.student-checkin-home-summary h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

.student-checkin-home-card-compact {
  gap: 10px;
}

.student-checkin-home-summary-compact {
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.95), rgba(255, 255, 255, 0.98));
  min-width: 0;
}

.student-checkin-home-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.student-checkin-home-flash {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.student-checkin-home-flash.is-completed {
  color: #114d41;
  border: 1px solid rgba(15, 107, 87, 0.18);
  background: linear-gradient(135deg, rgba(237, 252, 245, 0.98), rgba(255, 249, 235, 0.98));
}

.student-checkin-home-flash.is-updated {
  color: #245f73;
  border: 1px solid rgba(36, 95, 115, 0.14);
  background: rgba(236, 244, 255, 0.92);
}

.student-checkin-home-date-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(36, 95, 115, 0.14);
  background: rgba(36, 95, 115, 0.08);
  color: #17211d;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}

.student-checkin-home-date-link strong {
  font-size: 1rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-checkin-home-date-label {
  color: #245f73;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.student-checkin-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.student-checkin-inline-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(36, 95, 115, 0.08);
  color: #245f73;
  font-size: 0.88rem;
  font-weight: 700;
}

.student-checkin-home-phase,
.student-checkin-phase-summary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(236, 244, 255, 0.88);
  color: #24425b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.student-checkin-home-direct-layout {
  display: grid;
  grid-template-columns: minmax(248px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.student-checkin-home-direct-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.student-checkin-home-direct-copy h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
}

.student-checkin-home-task-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.student-checkin-home-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.student-checkin-home-submit-button {
  min-width: 148px;
}

.student-checkin-home-calendar {
  min-width: 0;
  overflow: hidden;
}

.student-checkin-home-date-picker {
  max-width: 100%;
}

.student-checkin-home-task-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.96);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.student-checkin-home-task-option:hover {
  transform: translateY(-1px);
}

.student-checkin-home-task-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.student-checkin-home-task-control {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(36, 95, 115, 0.22);
  background: rgba(36, 95, 115, 0.06);
  position: relative;
  margin-top: 2px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.student-checkin-home-task-copy {
  display: grid;
  gap: 5px;
}

.student-checkin-home-task-copy strong {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #17211d;
}

.student-checkin-home-task-option small {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.student-checkin-home-task-option.is-completed {
  border-color: rgba(15, 107, 87, 0.22);
  background: linear-gradient(180deg, rgba(240, 252, 247, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 107, 87, 0.08);
}

.student-checkin-home-task-option.is-completed .student-checkin-home-task-control,
.student-checkin-home-task-option input:checked + .student-checkin-home-task-control {
  border-color: rgba(15, 107, 87, 0.95);
  background: #0f6b57;
  transform: scale(1.04);
}

.student-checkin-home-task-option.is-completed .student-checkin-home-task-control::after,
.student-checkin-home-task-option input:checked + .student-checkin-home-task-control::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.student-checkin-home-task-option.is-completed .student-checkin-home-task-copy strong,
.student-checkin-home-task-option input:checked ~ .student-checkin-home-task-copy strong {
  color: #0f6b57;
}

.student-checkin-home-task-option.is-disabled {
  opacity: 0.72;
}

.student-checkin-home-task-option.is-disabled:hover {
  transform: none;
}

.student-checkin-mini-task-list {
  display: grid;
  gap: 8px;
}

.student-checkin-mini-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 33, 29, 0.07);
}

.student-checkin-mini-task strong {
  font-size: 0.96rem;
  line-height: 1.5;
}

.student-checkin-mini-task small {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.student-checkin-mini-task.is-completed {
  border-color: rgba(15, 107, 87, 0.2);
  background: linear-gradient(180deg, rgba(241, 252, 247, 0.96), rgba(255, 255, 255, 0.98));
}

.student-checkin-mini-task-copy {
  display: grid;
  gap: 6px;
}

.student-checkin-mini-task-marker {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(36, 95, 115, 0.18);
  background: rgba(36, 95, 115, 0.06);
  margin-top: 2px;
  position: relative;
}

.student-checkin-mini-task.is-completed .student-checkin-mini-task-marker {
  border-color: rgba(15, 107, 87, 0.9);
  background: #0f6b57;
}

.student-checkin-mini-task.is-completed .student-checkin-mini-task-marker::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.student-checkin-mini-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.1);
  color: #0f6b57;
  font-size: 0.78rem;
  font-weight: 800;
}

.student-checkin-calendar-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.student-checkin-calendar-panel {
  position: sticky;
  top: 18px;
}

.student-checkin-mobile-summary {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.student-checkin-mobile-summary strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #17211d;
}

.student-checkin-date-picker {
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.student-checkin-date-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.student-checkin-date-picker-summary::-webkit-details-marker {
  display: none;
}

.student-checkin-date-picker-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.student-checkin-date-picker-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.student-checkin-date-picker-copy strong {
  font-size: 1rem;
  line-height: 1.45;
  color: #17211d;
  overflow-wrap: anywhere;
}

.student-checkin-date-picker-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #245f73;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.student-checkin-date-picker-action::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -3px;
}

.student-checkin-date-picker[open] .student-checkin-date-picker-action::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.student-checkin-date-picker-panel {
  padding: 0 12px 12px;
}

.admin-claim-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(23, 33, 29, 0.06);
  color: #49535b;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-claim-status.is-claimed {
  background: rgba(15, 107, 87, 0.12);
  border-color: rgba(15, 107, 87, 0.2);
  color: #0f6b57;
}

.admin-claim-status.is-unclaimed {
  background: rgba(223, 127, 0, 0.12);
  border-color: rgba(223, 127, 0, 0.2);
  color: #9a5b00;
}

.admin-claim-status.is-no_active_course {
  background: rgba(23, 33, 29, 0.06);
  border-color: rgba(23, 33, 29, 0.08);
  color: #6b7280;
}

.student-checkin-side-panel {
  background: rgba(255, 255, 255, 0.96);
}

.student-checkin-task-option {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
}

.student-checkin-task-option span {
  display: grid;
  gap: 4px;
}

.student-checkin-task-option strong {
  color: #0f6b57;
  font-size: 0.84rem;
  line-height: 1.2;
}

.student-checkin-task-option em {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.56;
}

.student-checkin-task-option small {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.student-checkin-task-option {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.student-checkin-task-option:hover {
  transform: translateY(-1px);
}

.student-checkin-task-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.student-checkin-task-option-control {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(36, 95, 115, 0.22);
  background: rgba(36, 95, 115, 0.06);
  position: relative;
  margin-top: 2px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.student-checkin-task-option-copy {
  display: grid;
  gap: 4px;
}

.student-checkin-task-option.is-completed {
  border-color: rgba(15, 107, 87, 0.22);
  background: linear-gradient(180deg, rgba(240, 252, 247, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 107, 87, 0.08);
}

.student-checkin-task-option.is-completed .student-checkin-task-option-control,
.student-checkin-task-option input:checked + .student-checkin-task-option-control {
  border-color: rgba(15, 107, 87, 0.95);
  background: #0f6b57;
  transform: scale(1.04);
}

.student-checkin-task-option.is-completed .student-checkin-task-option-control::after,
.student-checkin-task-option input:checked + .student-checkin-task-option-control::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.student-checkin-task-option.is-completed strong,
.student-checkin-task-option input:checked ~ .student-checkin-task-option-copy strong {
  color: #0f6b57;
}

.student-checkin-task-option.is-disabled {
  opacity: 0.72;
}

.student-checkin-task-option.is-disabled:hover {
  transform: none;
}

.student-checkin-celebration {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 107, 87, 0.18);
  background: linear-gradient(135deg, rgba(237, 252, 245, 0.98), rgba(255, 249, 235, 0.98));
  color: #114d41;
  animation: studentCheckinCelebrate 0.45s ease;
}

.student-checkin-celebration strong {
  font-size: 0.98rem;
}

.student-checkin-celebration span {
  font-size: 0.9rem;
  line-height: 1.55;
}

.student-checkin-submit-button.is-celebrating,
.student-checkin-status-pill.is-celebrating {
  animation: studentCheckinCelebrate 0.45s ease;
}

.admin-claim-mode-card {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(36, 95, 115, 0.12);
  background: rgba(247, 249, 247, 0.96);
}

.admin-claim-mode-note {
  margin: 0;
}

@keyframes studentCheckinCelebrate {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.student-calendar {
  display: grid;
  gap: 10px;
}

.student-calendar.is-compact {
  gap: 8px;
}

.student-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-calendar-month {
  font-size: 1rem;
  font-weight: 800;
  color: #17211d;
}

.student-calendar-nav {
  display: inline-flex;
  gap: 6px;
}

.student-calendar-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #17211d;
  text-decoration: none;
  font-weight: 800;
}

.student-calendar-nav-button.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.student-calendar-weekdays,
.student-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.student-calendar-weekdays span {
  display: inline-flex;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.student-calendar-day {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #17211d;
  text-decoration: none;
  justify-items: center;
  align-content: start;
}

.student-calendar-day small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.student-calendar-day-number {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
}

.student-calendar-day.is-outside {
  opacity: 0.38;
}

.student-calendar-day.is-completed {
  border-color: rgba(15, 107, 87, 0.2);
  background: linear-gradient(180deg, rgba(234, 250, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.student-calendar-day.is-backfill {
  border-color: rgba(226, 144, 30, 0.2);
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 255, 255, 0.98));
}

.student-calendar-day.is-today,
.student-calendar-day.is-pending {
  border-color: rgba(36, 95, 115, 0.18);
}

.student-calendar-day.is-future {
  background: rgba(244, 246, 245, 0.88);
}

.student-calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px #245f73;
}

.student-calendar.is-compact .student-calendar-day {
  min-height: 46px;
  padding: 6px 4px;
  border-radius: 12px;
}

.student-calendar.is-compact .student-calendar-day-number {
  font-size: 0.88rem;
}

.student-calendar.is-compact .student-calendar-day small {
  font-size: 0.6rem;
}

@media (max-width: 900px) {
  .student-checkin-home-direct-layout,
  .student-checkin-home-layout,
  .student-checkin-calendar-layout {
    grid-template-columns: 1fr;
  }

  .student-checkin-calendar-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .student-checkin-home-card,
  .student-checkin-shell,
  .student-checkin-calendar-layout,
  .student-checkin-home-layout,
  .student-checkin-home-summary,
  .student-checkin-side-panel {
    gap: 10px;
  }

  .student-checkin-home-calendar,
  .student-checkin-home-summary,
  .student-checkin-calendar-panel,
  .student-checkin-side-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .student-checkin-shell {
    padding: 10px;
  }

  .student-checkin-stat-grid {
    display: none;
  }

  .student-checkin-mobile-summary {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .student-checkin-home-head h2,
  .student-checkin-side-head h2 {
    font-size: 1.06rem;
  }

  .student-checkin-home-date-link {
    padding: 9px 10px;
    gap: 8px;
    align-items: flex-start;
  }

  .student-checkin-home-date-link strong {
    font-size: 0.9rem;
  }

  .student-checkin-home-date-label,
  .student-checkin-date-picker-action {
    font-size: 0.78rem;
  }

  .student-checkin-date-picker-summary {
    padding: 10px 12px;
    gap: 8px;
    align-items: flex-start;
  }

  .student-checkin-date-picker-copy strong {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .student-checkin-home-flash,
  .student-checkin-home-phase {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .student-checkin-home-direct-copy {
    gap: 8px;
  }

  .student-checkin-home-task-list {
    gap: 7px;
  }

  .student-checkin-home-submit-row {
    justify-content: stretch;
    padding-top: 2px;
  }

  .student-checkin-home-submit-button,
  .student-checkin-home-submit-row .student-flow-status {
    width: 100%;
    justify-content: center;
  }

  .student-checkin-home-task-option,
  .student-checkin-mini-task,
  .student-checkin-task-option {
    padding: 10px;
    border-radius: 12px;
  }

  .student-checkin-home-task-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .student-checkin-home-task-option small {
    grid-column: 2;
  }

  .student-checkin-mini-task {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .student-checkin-mini-task small {
    grid-column: 2;
  }

  .student-calendar-weekdays,
  .student-calendar-grid {
    gap: 4px;
  }

  .student-checkin-date-picker {
    gap: 8px;
    border-radius: 14px;
  }

  .student-checkin-date-picker-summary {
    padding: 10px 12px;
    gap: 10px;
  }

  .student-checkin-date-picker-copy strong {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .student-checkin-date-picker-action {
    font-size: 0.8rem;
  }

  .student-checkin-date-picker-panel {
    padding: 0 8px 8px;
  }

  .student-checkin-side-panel {
    gap: 8px;
    padding: 10px;
  }

  .student-checkin-side-head {
    gap: 6px;
  }

  .student-checkin-day-meta {
    font-size: 0.88rem;
  }

  .student-calendar-day {
    min-height: 48px;
    padding: 6px 4px;
    border-radius: 12px;
  }

  .student-calendar-day-number {
    font-size: 0.84rem;
  }

.student-calendar-day small {
  font-size: 0.58rem;
}
}

@media (max-width: 1080px) {
  body:has(.admin-shell) {
    overflow: auto;
  }

  .admin-shell {
    height: auto;
    overflow: visible;
  }

  .admin-shell > main,
  .admin-workbench-main {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

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

  .admin-workbench-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .handout-search-form {
    grid-template-columns: 1fr;
  }

  .handout-search-result-head {
    display: grid;
  }

  .admin-workbench-hero,
  .admin-workbench-panel,
  .admin-workbench-drawer {
    padding: 18px;
  }

  .admin-workbench-filters {
    grid-template-columns: 1fr;
  }

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

  .admin-workbench-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Practice, memorize, and calc-help admin import layout. */
}

.admin-content-table {
  min-width: 920px;
}

.memorize-answer-image {
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(232, 149, 32, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 247, 229, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.memorize-answer-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(23, 33, 29, 0.08);
}
.practice-import-result-card,
.practice-import-review-panel,
.practice-import-list-hint {
  border-radius: 20px;
}

.practice-import-result-card {
  gap: 18px;
}

.practice-import-result-card.is-success {
  border: 1px solid rgba(15, 107, 87, 0.18);
  background: linear-gradient(180deg, rgba(237, 248, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.practice-import-result-card.is-partial,
.practice-import-result-card.is-review {
  border: 1px solid rgba(214, 158, 46, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 228, 0.98), rgba(255, 255, 255, 0.98));
}

.practice-import-result-card.is-warning,
.practice-import-result-card.is-empty {
  border: 1px solid rgba(183, 88, 53, 0.2);
  background: linear-gradient(180deg, rgba(255, 243, 238, 0.98), rgba(255, 255, 255, 0.98));
}

.practice-import-result-head,
.practice-import-section-head,
.practice-import-result-actions,
.practice-table-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.practice-import-result-eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.practice-import-source-tag,
.practice-import-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.practice-import-source-tag {
  border: 1px solid rgba(23, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #17211d;
  max-width: 100%;
  word-break: break-all;
}

.practice-import-action.is-inserted {
  background: rgba(232, 243, 238, 1);
  color: var(--green);
}

.practice-import-action.is-updated {
  background: rgba(255, 243, 219, 1);
  color: #8c5a12;
}

.practice-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.practice-import-summary-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.practice-import-summary-grid strong {
  font-size: 1.4rem;
  color: #17211d;
}

.practice-import-summary-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.practice-import-success-list,
.practice-import-success-table {
  display: grid;
  gap: 12px;
}

.practice-import-review-list {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.practice-import-review-card {
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.practice-import-review-card summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  background: rgba(250, 246, 232, 0.76);
}

.practice-import-review-card summary::-webkit-details-marker {
  display: none;
}

.practice-import-review-index {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.practice-import-review-reason {
  color: #8c5a12;
  font-size: 0.9rem;
}

.practice-import-review-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.practice-import-review-stem {
  grid-column: 1 / -1;
  margin: 0;
  color: #17211d;
  line-height: 1.7;
}

.practice-import-span-full {
  grid-column: 1 / -1;
}

.practice-import-confirm-actions {
  grid-column: 1 / -1;
}

.practice-table-pagination {
  margin: 4px 0;
}

.practice-search-span-full {
  grid-column: 1 / -1;
}

.practice-search-feedback {
  margin: 8px 0 0;
}

.practice-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.practice-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(232, 243, 238, 0.92);
  border: 1px solid rgba(15, 107, 87, 0.14);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

.practice-review-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.practice-review-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.96));
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.practice-review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.08);
}

.practice-review-card.is-active {
  border-color: rgba(15, 107, 87, 0.24);
  box-shadow: 0 12px 28px rgba(15, 107, 87, 0.1);
  background: linear-gradient(180deg, rgba(237, 248, 242, 0.98), rgba(255, 255, 255, 0.98));
}

.practice-review-card strong {
  font-size: 1.5rem;
  color: #17211d;
}

.practice-review-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.practice-filter-toolbar {
  margin-top: 0;
}

.practice-stem-preview {
  min-width: 280px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 16px;
  background: rgba(247, 249, 247, 0.96);
  overflow: hidden;
}

.practice-stem-preview summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.practice-stem-preview summary::-webkit-details-marker {
  display: none;
}

.practice-stem-summary {
  color: #17211d;
  line-height: 1.68;
  word-break: break-word;
}

.practice-stem-toggle {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
}

.practice-stem-full {
  padding: 0 14px 12px;
  color: #17211d;
  line-height: 1.76;
  white-space: pre-wrap;
  word-break: break-word;
}

.practice-option-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.practice-option-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.practice-option-item.is-answer {
  border-color: rgba(15, 107, 87, 0.22);
  background: rgba(232, 243, 238, 0.98);
}

.practice-option-item strong,
.practice-option-item span,
.practice-option-empty {
  margin: 0;
}

.practice-option-item span {
  line-height: 1.62;
  word-break: break-word;
}

.practice-option-empty {
  padding: 0 14px 14px;
  color: var(--muted);
}

.practice-question-cell {
  min-width: 320px;
}

.practice-question-row.has-issues {
  background: rgba(255, 248, 228, 0.42);
}

.practice-major-category {
  display: inline-block;
  font-weight: 700;
  color: #17211d;
  line-height: 1.5;
}

.practice-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.practice-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.practice-review-badge.is-normal {
  background: rgba(232, 243, 238, 0.96);
  color: var(--green);
}

.practice-review-badge.is-missing_stem,
.practice-review-badge.is-invalid_answer {
  background: rgba(255, 238, 232, 0.96);
  color: #b75835;
}

.practice-review-badge.is-multiple_answer,
.practice-review-badge.is-duplicate_stem,
.practice-review-badge.is-duplicate_option,
.practice-review-badge.is-option_issue {
  background: rgba(255, 243, 219, 0.96);
  color: #8c5a12;
}

.practice-answer-text {
  font-weight: 800;
  color: #17211d;
}

.practice-source-name {
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.calc-help-error-list {
  display: grid;
  gap: 8px;
}

.calc-help-error-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8ec;
  border: 1px solid #eed7a9;
  color: #8c5a12;
}

.calc-help-table code {
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-content-table td,
.admin-content-table th {
  white-space: normal;
}

.calc-help-badge {
  border-radius: 999px;
}

.calc-help-badge.is-published {
  background: #e8f3ee;
  color: var(--green);
}

.calc-help-badge.is-draft {
  background: #f3efe3;
  color: #8c5a12;
}


@media (max-width: 860px) {
  .practice-review-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .practice-import-review-body {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    margin: 0 -2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-content-table {
    min-width: 960px;
  }

  .memorize-bulk-actions {
    display: grid;
    align-items: stretch;
  }

  .memorize-bulk-actions .button,
  .memorize-bulk-actions button {
    width: 100%;
  }
}
