:root {
  --ink: #1d2430;
  --muted: #667085;
  --soft-muted: #8b938d;
  --paper: #f6f5f1;
  --cream: #fffefa;
  --line: #e8e3da;
  --hairline: rgba(29, 36, 48, 0.1);
  --glass: rgba(255, 255, 255, 0.78);
  --gold: #c9952f;
  --rose: #b8615f;
  --green: #3f6d5b;
  --blue: #2f5274;
  --shadow: 0 18px 48px rgba(29, 36, 48, 0.09);
  --soft-shadow: 0 8px 24px rgba(29, 36, 48, 0.06);
  --focus: 0 0 0 4px rgba(47, 82, 116, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf7 0, var(--paper) 540px),
    var(--paper);
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(230, 223, 212, 0.85);
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #020107;
  color: #fff;
  font-family: Georgia, serif;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.65);
}

.main-nav {
  display: flex;
  gap: 28px;
  color: #3d4351;
  font-size: 15px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  color: #4d5565;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.header-action,
.primary-button,
.secondary-button,
.gateway-button,
.ghost-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.header-action,
.primary-button,
button {
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 11vh 5vw 14vh;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 26, 0.82), rgba(18, 20, 26, 0.38) 48%, rgba(18, 20, 26, 0.08)),
    linear-gradient(0deg, rgba(18, 20, 26, 0.34), rgba(18, 20, 26, 0.05) 42%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button {
  background: var(--gold);
}

.hero-student-cta {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(500px, 100%);
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(31, 36, 48, 0.86), rgba(31, 36, 48, 0.56)),
    linear-gradient(90deg, rgba(198, 144, 47, 0.28), rgba(255, 255, 255, 0.06));
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-student-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 5px solid var(--gold);
  pointer-events: none;
}

.cta-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-row strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.cta-arrow {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-meta em {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.student-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 44px 5vw;
  background: var(--ink);
  color: #fff;
}

.student-gateway h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: 0;
}

.student-gateway p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.gateway-button {
  min-height: 76px;
  padding: 0 34px;
  background: var(--gold);
  color: #fff;
  font-size: 24px;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.stats div {
  min-height: 132px;
  padding: 28px 5vw;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 30px;
  color: var(--blue);
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section,
.split-section,
.student-section {
  padding: 86px 5vw;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.student-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.student-intro p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.video-grid,
.article-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 18px;
  margin-top: 36px;
}

.video-card,
.article-grid article,
.award-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 10px 28px rgba(31, 36, 48, 0.06);
}

.video-card {
  min-height: 270px;
  padding: 18px;
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1fr;
  gap: 24px;
  align-items: end;
}

.video-thumb,
.mini-thumb {
  position: relative;
  min-height: 232px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 36, 48, 0.28), rgba(31, 36, 48, 0.08)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.mini-thumb {
  min-height: 150px;
}

.mini-thumb.blue {
  background:
    linear-gradient(135deg, rgba(48, 76, 112, 0.76), rgba(48, 76, 112, 0.3)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.mini-thumb.green {
  background:
    linear-gradient(135deg, rgba(66, 107, 90, 0.78), rgba(66, 107, 90, 0.34)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.play-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.play-badge::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 22px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--ink);
}

.tag {
  margin: 16px 0 8px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.video-card h3,
.article-grid h3,
.award-list h3 {
  margin: 0 0 10px;
  line-height: 1.35;
}

.video-card p:not(.tag),
.article-grid span,
.award-list p {
  color: var(--muted);
  line-height: 1.7;
}

.course-card,
.panel,
.media-list article,
.enroll-form,
.login-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 10px 28px rgba(31, 36, 48, 0.06);
}

.course-card {
  min-height: 245px;
  padding: 24px;
}

.course-card span {
  color: var(--rose);
  font-weight: 900;
}

.course-card h3,
.media-list h3,
.panel h4 {
  margin: 16px 0 10px;
}

.course-card p,
.media-list p,
.panel p,
.panel span,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 46px;
  align-items: start;
  background: #f3efe7;
}

.awards-section {
  background: #e9eee9;
  grid-template-columns: 1fr;
  gap: 28px;
}

.awards-section .section-heading {
  max-width: 920px;
}

.award-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.award-list article {
  padding: 20px;
}

.award-list strong {
  color: var(--gold);
  font-size: 22px;
}

.award-feature .tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(68, 122, 101, 0.11);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.award-feature h3 {
  margin-top: 10px;
  font-size: 21px;
}

.award-feature p {
  margin-top: 10px;
  font-size: 15px;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.certificate-gallery article {
  overflow: hidden;
  border: 1px solid rgba(29, 36, 48, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.certificate-gallery article:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 36, 48, 0.13);
  box-shadow: var(--shadow);
}

.certificate-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.certificate-gallery span,
.certificate-gallery h3,
.certificate-gallery p {
  margin-left: 18px;
  margin-right: 18px;
}

.certificate-gallery span {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(210, 151, 42, 0.13);
  color: #8f641c;
  font-size: 13px;
  font-weight: 800;
}

.certificate-gallery h3 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.certificate-gallery p {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.articles-section {
  background: var(--paper);
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.wechat-article-grid {
  grid-template-columns: repeat(4, 1fr);
}

.wechat-article-link {
  color: inherit;
  text-decoration: none;
}

.article-grid .wechat-article-link article {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.wechat-article-link:hover article {
  border-color: rgba(201, 149, 45, 0.46);
  box-shadow: 0 16px 34px rgba(31, 36, 48, 0.12);
  transform: translateY(-3px);
}

.article-grid .wechat-article-cover {
  display: block;
  width: 100%;
  flex: 0 0 132px;
  min-height: 132px;
  background:
    linear-gradient(0deg, rgba(17, 21, 30, 0.36), rgba(17, 21, 30, 0.04)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.article-grid .wechat-article-cover.cover-one {
  background:
    linear-gradient(0deg, rgba(25, 31, 49, 0.08), rgba(25, 31, 49, 0.02)),
    url("./assets/article-cover-1.png") center / cover;
}

.article-grid .wechat-article-cover.cover-two {
  background:
    url("./assets/article-cover-2.png") center / cover;
}

.article-grid .wechat-article-cover.cover-three {
  background:
    linear-gradient(0deg, rgba(25, 31, 49, 0.08), rgba(25, 31, 49, 0.02)),
    url("./assets/article-cover-3.jpg") center / cover;
}

.article-grid .wechat-article-cover.cover-four {
  background:
    linear-gradient(0deg, rgba(17, 21, 30, 0.48), rgba(17, 21, 30, 0.12)),
    url("./assets/hero-piano-growth.png") 60% center / cover;
}

.article-grid .wechat-article-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px 22px;
}

.article-grid .wechat-article-content .tag {
  margin: 0 0 10px;
}

.article-grid .wechat-article-content strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.article-grid .wechat-article-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.article-grid .wechat-article-action b {
  font-size: 20px;
  font-weight: 500;
}

.article-grid article {
  min-height: 220px;
  padding: 24px;
}

.article-grid span {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
  color: var(--blue);
}

.media-list {
  display: grid;
  gap: 14px;
}

.media-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.play-icon,
.article-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--blue);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 21px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.article-icon {
  background: var(--green);
}

.article-icon::before,
.article-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

.article-icon::before {
  top: 18px;
}

.article-icon::after {
  top: 30px;
}

.enrollment {
  background: var(--cream);
}

.enroll-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
  padding: 22px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #3d4351;
  font-weight: 700;
}

input,
select,
textarea {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d9d0c2;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.enroll-form button {
  align-self: end;
  background: var(--rose);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
}

.student-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  gap: 36px;
  align-items: start;
  background: #e9eee9;
}

.login-box {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
}

.login-box button {
  background: var(--green);
}

.student-dashboard {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.dashboard-top h3 {
  margin: 6px 0 0;
  font-size: 30px;
}

.muted {
  color: rgba(255, 255, 255, 0.7);
}

.stars {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.stars strong {
  color: #ffd166;
  font-size: 38px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}

.panel {
  padding: 20px;
  box-shadow: none;
}

.panel h4 {
  margin-top: 0;
}

.panel .big {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.panel button {
  width: 100%;
  margin-top: 16px;
  background: var(--blue);
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebef;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.course-map {
  position: relative;
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.course-map-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 12px;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.course-map-track::before {
  position: absolute;
  top: 30px;
  right: 28px;
  left: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66, 107, 90, 0.38), rgba(198, 144, 47, 0.32));
  content: "";
}

.course-node {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(31, 36, 48, 0.08);
  scroll-snap-align: center;
  text-align: left;
}

button.course-node {
  width: 100%;
  cursor: pointer;
}

.course-node-index {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(66, 107, 90, 0.24);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.course-node-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.course-node strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.course-node em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.course-node.is-done {
  background: rgba(246, 250, 247, 0.88);
}

.course-node.is-done .course-node-index {
  background: var(--green);
  color: #fff;
}

.course-node.is-active {
  border-color: rgba(198, 144, 47, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 247, 229, 0.94));
  box-shadow:
    0 18px 44px rgba(198, 144, 47, 0.18),
    0 0 0 3px rgba(198, 144, 47, 0.13);
}

.course-node.is-active .course-node-index {
  border-color: rgba(198, 144, 47, 0.42);
  background: var(--gold);
  color: #fff;
}

.course-node:not(.is-done):not(.is-active) {
  opacity: 0.72;
}

.teacher-course-map {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 0;
  contain: layout paint;
}

.teacher-course-map .course-map-track {
  grid-auto-columns: minmax(220px, 260px);
}

.teacher-course-map .course-node {
  min-height: 104px;
  padding: 14px;
  box-shadow: none;
}

.teacher-course-map .course-node strong {
  font-size: 15px;
}

.teacher-course-map .course-node em {
  font-size: 12px;
}

.homework ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.star-row {
  color: #f0b429;
  font-size: 28px;
  letter-spacing: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer div {
  display: inline-flex;
  gap: 18px;
}

.portal-body {
  background: #f3efe7;
}

.portal-shell {
  padding: 42px 5vw 80px;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 36, 48, 0.92), rgba(31, 36, 48, 0.62)),
    url("./assets/cover-piano-growth.png") center / cover;
  color: #fff;
}

.teacher-hero {
  background:
    linear-gradient(90deg, rgba(48, 76, 112, 0.94), rgba(31, 36, 48, 0.7)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.admin-hero {
  background:
    linear-gradient(90deg, rgba(31, 36, 48, 0.94), rgba(66, 107, 90, 0.72)),
    url("./assets/cover-piano-growth.png") center / cover;
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
}

.portal-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.portal-login-card,
.portal-panel,
.portal-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

.portal-login-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
}

.portal-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-login-card button {
  background: var(--green);
}

.teacher-body .portal-login-card button {
  background: var(--blue);
}

.portal-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.portal-summary article {
  padding: 22px;
}

.portal-summary span {
  color: var(--muted);
  font-weight: 800;
}

.portal-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 36px);
}

.teacher-summary strong {
  color: var(--green);
}

.teacher-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.admin-summary {
  grid-template-columns: repeat(4, 1fr);
}

.admin-summary strong {
  color: var(--blue);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  align-items: start;
}

.portal-main,
.portal-side {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.portal-panel {
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}

.portal-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.7;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.schedule-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.booking-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 14px;
  margin-top: 18px;
}

.teacher-card-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(29, 36, 48, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.teacher-card:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 94, 131, 0.28);
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 36, 48, 0.08);
}

.teacher-card.is-selected {
  border-color: rgba(54, 94, 131, 0.52);
  background: linear-gradient(180deg, #fff, #f4f8f6);
  box-shadow: 0 16px 34px rgba(54, 94, 131, 0.12);
}

.teacher-card.is-responsible {
  border-color: rgba(201, 149, 45, 0.42);
}

.teacher-card-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #365e83, #477963);
  color: #fff;
  font-size: 22px;
  font-weight: 780;
}

.teacher-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.teacher-card-body > span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.teacher-card-body strong {
  font-size: 17px;
  line-height: 1.2;
}

.teacher-card-body em {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(201, 149, 45, 0.14);
  color: #9b6c17;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.teacher-card-body small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recurring-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  cursor: pointer;
}

.recurring-option input {
  position: relative;
  appearance: none;
  flex: 0 0 34px;
  width: 34px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8d6d1;
  cursor: pointer;
  transition: background 160ms ease;
}

.recurring-option input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 36, 48, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.recurring-option input:checked {
  background: var(--green);
}

.recurring-option input:checked::after {
  transform: translateX(14px);
}

.recurring-option span {
  display: grid;
  gap: 2px;
}

.recurring-option strong {
  color: var(--ink);
  font-size: 14px;
}

.recurring-option small {
  color: var(--muted);
  font-size: 12px;
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  min-width: 0;
  width: 100%;
}

.date-tab {
  display: grid;
  gap: 3px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.date-tab strong {
  font-size: 17px;
}

.date-tab span,
.date-tab em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.date-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.date-tab.is-active span,
.date-tab.is-active em {
  color: rgba(255, 255, 255, 0.75);
}

.daily-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-width: 0;
  width: 100%;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #eeeae2;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row.is-full-hour {
  min-height: 58px;
}

.timeline-row.is-half-hour {
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 40px;
  margin-left: 24px;
  padding: 2px 0;
}

.timeline-row time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.timeline-row time strong {
  font-size: 14px;
  font-weight: 650;
}

.timeline-row.is-half-hour time strong {
  color: #8e8a81;
  font-size: 12px;
  font-weight: 550;
}

.timeline-row time span {
  color: #9a958b;
  font-size: 12px;
  font-weight: 500;
}

.timeline-row time span::before {
  margin-right: 6px;
  content: "–";
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.timeline-track small {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-track strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.timeline-row.is-half-hour .timeline-track {
  min-height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.timeline-row.is-half-hour .timeline-track strong {
  font-size: 12px;
  font-weight: 550;
}

.timeline-row.is-closed .timeline-track {
  background: #f5f4f1;
  color: #8b8479;
}

.timeline-row.is-booked .timeline-track {
  border-color: #d9e0eb;
  background: #f0f4fa;
  color: #304c70;
}

.timeline-row.is-mine .timeline-track {
  border-color: #d9c080;
  background: #fff5dc;
  color: #684b17;
}

.timeline-row:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.timeline-row:not(:disabled):hover .timeline-track {
  border-color: #c6d7cf;
  background: #f1f6f3;
  box-shadow: none;
}

.timeline-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(207, 148, 37, 0.13);
  color: #8a6119;
  font-size: 11px;
  font-weight: 650;
}

.teacher-timeline .timeline-row {
  cursor: pointer;
}

.teacher-timeline .timeline-track {
  padding-right: 32px;
}

.teacher-timeline .timeline-track::after {
  position: absolute;
  right: 12px;
  color: #aaa59b;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: "›";
}

.teacher-timeline .timeline-row:hover .timeline-track {
  border-color: #d5dbe4;
  background: #f5f7fa;
}

.schedule-editor {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(31, 36, 48, 0.24);
}

.schedule-editor::backdrop {
  background: rgba(31, 36, 48, 0.3);
  backdrop-filter: blur(8px);
}

.schedule-editor-card {
  padding: 24px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.98);
}

.schedule-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.schedule-editor-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.schedule-editor-heading h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.editor-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #eeece8;
  color: #706c64;
  font-size: 22px;
  font-weight: 400;
}

.editor-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 22px;
  padding: 3px;
  border-radius: 8px;
  background: #e9e7e2;
}

.editor-segmented label {
  cursor: pointer;
}

.editor-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.editor-segmented span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 6px;
  color: #66625b;
  font-size: 13px;
  font-weight: 650;
}

.editor-segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(31, 36, 48, 0.14);
}

.schedule-editor-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.schedule-editor.is-booking .schedule-editor-fields {
  display: grid;
}

.schedule-editor-fields label:not(.recurring-option) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.schedule-editor-fields select,
.schedule-editor-fields input[type="text"],
.schedule-editor-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.editor-note-field,
.editor-recurring {
  grid-column: 1 / -1;
}

.editor-recurring {
  width: auto;
  margin: 0;
}

.editor-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--rose);
  font-size: 13px;
}

.schedule-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.schedule-editor-actions button {
  min-width: 112px;
}

#deleteScheduleEvent {
  visibility: hidden;
}

.schedule-editor.has-booking #deleteScheduleEvent {
  visibility: visible;
}

.schedule-day {
  display: grid;
  gap: 10px;
}

.schedule-day-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e7;
}

.schedule-day-heading strong {
  color: var(--ink);
}

.schedule-day-heading span {
  color: var(--muted);
  font-weight: 800;
}

.day-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d8ccb9;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.slot-card strong {
  font-size: 30px;
}

.slot-card span,
.slot-card em {
  color: var(--muted);
  font-style: normal;
}

.slot-card.is-booked {
  cursor: not-allowed;
  background: #e8e4dd;
  color: #8a8174;
}

.slot-card.is-mine {
  border-color: var(--gold);
  background: #fff6df;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
}

.timeline article > span {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c7cbd1;
}

.timeline article.done > span,
.timeline article.active > span {
  background: var(--gold);
}

.timeline h3 {
  margin: 0 0 6px;
}

.timeline p,
.portal-panel p,
.reminder-list p {
  color: var(--muted);
  line-height: 1.7;
}

.star-bank {
  color: #f0b429;
  font-size: 26px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.student-progress {
  margin: 8px 0 10px;
}

.compact-plan {
  padding-bottom: 14px;
}

.compact-plan h2 {
  margin-bottom: 10px;
}

.lesson-star-list,
.redemption-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lesson-star-list article,
.redemption-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.lesson-star-list strong,
.lesson-star-list span,
.redemption-list strong,
.redemption-list span {
  display: block;
}

.lesson-star-list span,
.redemption-list span {
  margin-top: 4px;
  color: var(--muted);
}

.lesson-star-list p,
.redemption-list p {
  margin: 0;
  color: #f0b429;
  font-weight: 900;
  white-space: nowrap;
}

.redemption-list p {
  color: var(--rose);
}

.lesson-star-list em {
  color: var(--ink);
  font-style: normal;
}

.teacher-schedule {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.teacher-slot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.teacher-slot span {
  color: var(--muted);
}

.teacher-slot strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.teacher-slot em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.teacher-slot p {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.teacher-slot.is-booked {
  border-color: rgba(198, 144, 47, 0.45);
  background: #fff7e7;
}

.reminder-list {
  display: grid;
  gap: 12px;
}

.reminder-list article {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.reminder-list article {
  border: 1px solid rgba(29, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.reminder-list article strong {
  color: var(--ink);
  font-size: 15px;
}

.reminder-list article p {
  margin: 8px 0 0;
}

.reminder-list .today-summary-card {
  border-color: rgba(63, 109, 91, 0.18);
  background: rgba(239, 247, 243, 0.72);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.student-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 246, 242, 0.86));
}

.student-manager-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.student-manager-toolbar select {
  background: #fff;
}

.student-manager-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.student-hub {
  margin-top: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.96)),
    radial-gradient(circle at top right, rgba(198, 144, 47, 0.08), transparent 36%);
  box-shadow: 0 18px 46px rgba(31, 36, 48, 0.08);
}

.student-hub-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--hairline);
}

.student-hub-summary article {
  min-width: 0;
  padding: 20px 22px;
  border-right: 0;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.student-hub-summary article:last-child {
  border-right: 0;
}

.student-hub-summary span {
  display: block;
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 650;
}

.student-hub-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.1;
}

.student-hub-summary p {
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.student-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 30px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.student-hub-section {
  min-width: 0;
}

.student-hub-section + .student-hub-section {
  padding-left: 30px;
  border-left: 1px solid var(--hairline);
}

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

.student-hub-heading span {
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 650;
}

.student-hub-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 760;
  line-height: 1.25;
}

.student-hub .admin-form {
  gap: 18px;
  margin-top: 20px;
}

.student-hub .admin-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.student-hub input,
.student-hub select,
.student-hub textarea {
  min-height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(31, 36, 48, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.student-hub textarea {
  line-height: 1.6;
}

.student-hub input:focus,
.student-hub select:focus,
.student-hub textarea:focus {
  outline: 0;
  border-color: rgba(48, 76, 112, 0.36);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(48, 76, 112, 0.09);
}

.student-hub .form-note {
  margin: 0;
  color: var(--soft-muted);
  font-size: 13px;
}

.student-hub .admin-form button:not(.course-node) {
  justify-self: start;
  min-width: 180px;
  min-height: 48px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(48, 76, 112, 0.14);
}

.student-hub .teacher-redemption-list {
  max-height: 330px;
  overflow-y: auto;
}

.student-hub .redemption-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
}

.student-hub .redemption-list article:last-child {
  border-bottom: 0;
}

.student-hub .redemption-list strong {
  font-weight: 700;
}

.student-hub .redemption-list p {
  color: var(--rose);
  font-size: 15px;
  font-weight: 760;
}

.admin-form .full-field,
.admin-form button:not(.course-node),
.admin-form .form-note {
  grid-column: 1 / -1;
}

.admin-form button:not(.course-node) {
  background: var(--blue);
}

.open-slot-form {
  margin-bottom: 20px;
}

.availability-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  gap: 14px;
  margin-top: 20px;
}

.availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
}

.availability-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.availability-legend .open {
  background: var(--green);
}

.availability-legend .closed {
  background: #b7b1a7;
}

.availability-legend .booked {
  background: var(--gold);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 10px;
}

.availability-slot {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.availability-slot strong {
  font-size: 22px;
}

.availability-slot span {
  font-size: 13px;
  font-weight: 700;
}

.availability-slot.is-open {
  border-color: rgba(66, 107, 90, 0.48);
  background: #edf5f0;
  color: var(--green);
}

.availability-slot.is-closed {
  background: #ebe8e2;
  color: #827b70;
}

.availability-slot.is-booked {
  cursor: not-allowed;
  border-color: rgba(198, 144, 47, 0.5);
  background: #fff4d8;
  color: #8a6119;
}

.reward-form button:not(.course-node) {
  background: linear-gradient(180deg, #c86c67, var(--rose));
  box-shadow: 0 10px 22px rgba(185, 97, 94, 0.18);
}

.teacher-redemption-list {
  margin-top: 18px;
}

.teacher-student-status {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 8px;
  background: #fff7e7;
}

.teacher-student-status strong {
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.teacher-student-status span {
  color: var(--muted);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.account-list,
.site-data-list,
.inquiry-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-item,
.site-data-list article,
.inquiry-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-item span,
.site-data-list span,
.inquiry-list span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.account-item strong,
.site-data-list strong,
.inquiry-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.account-item p,
.account-item em,
.site-data-list p,
.inquiry-list p {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.account-item button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--rose);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.site-data-list article,
.inquiry-list article {
  display: block;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(31, 36, 48, 0.88), rgba(31, 36, 48, 0.44)),
    url("./assets/cover-piano-growth.png") center / cover fixed;
}

.login-page .site-header {
  background: rgba(251, 248, 242, 0.88);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 8vh 5vw;
}

.login-copy {
  max-width: 760px;
  color: #fff;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.04;
}

.login-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-highlights span {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.login-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
}

.login-card button {
  min-height: 54px;
  background: var(--green);
}

.teacher-login-page .login-card button {
  background: var(--blue);
}

.admin-login-page .login-card button {
  background: var(--ink);
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Unified visual refresh */
.site-header {
  min-height: 70px;
  border-bottom-color: rgba(29, 36, 48, 0.08);
  background: rgba(250, 249, 245, 0.82);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand {
  color: var(--ink);
  font-weight: 760;
}

.brand-mark {
  background: #020107;
  box-shadow:
    0 8px 18px rgba(29, 36, 48, 0.14),
    inset 0 0 0 1px rgba(201, 149, 47, 0.28);
}

.main-nav a,
.header-link {
  color: rgba(29, 36, 48, 0.7);
  font-weight: 650;
  transition: color 160ms ease;
}

.main-nav a:hover,
.header-link:hover {
  color: var(--ink);
}

.header-action,
.primary-button,
.gateway-button,
button {
  border-radius: 8px;
  background: linear-gradient(180deg, #202837, #171d28);
  box-shadow: 0 8px 18px rgba(29, 36, 48, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.header-action:hover,
.primary-button:hover,
.gateway-button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 36, 48, 0.14);
}

.primary-button,
.gateway-button {
  background: linear-gradient(180deg, #d5a039, var(--gold));
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.ghost-button {
  border-color: rgba(29, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.section,
.split-section,
.student-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.hero {
  min-height: calc(100vh - 70px);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 24, 33, 0.82), rgba(20, 24, 33, 0.42) 48%, rgba(20, 24, 33, 0.12)),
    linear-gradient(0deg, rgba(20, 24, 33, 0.28), rgba(20, 24, 33, 0.02) 46%);
}

.hero h1,
.portal-hero h1,
.login-copy h1 {
  font-weight: 780;
}

.hero-copy,
.portal-hero p:not(.eyebrow),
.login-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.hero-student-cta {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(20, 24, 33, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-student-cta::before {
  border-left-width: 3px;
}

.cta-arrow {
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(201, 149, 47, 0.22);
}

.student-gateway {
  background:
    linear-gradient(135deg, #192131, #263447);
}

.stats {
  border-top: 1px solid rgba(29, 36, 48, 0.06);
  border-bottom-color: rgba(29, 36, 48, 0.07);
  background: rgba(255, 255, 255, 0.66);
}

.stats div {
  border-right-color: rgba(29, 36, 48, 0.07);
}

.video-card,
.article-grid article,
.award-list article,
.course-card,
.panel,
.media-list article,
.enroll-form,
.login-box,
.portal-login-card,
.portal-panel,
.portal-summary article,
.login-card,
.account-item,
.site-data-list article,
.inquiry-list article,
.empty-state {
  border-color: rgba(29, 36, 48, 0.09);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.video-card,
.article-grid article,
.award-list article,
.portal-panel,
.portal-summary article,
.login-card,
.enroll-form {
  backdrop-filter: blur(14px);
}

.video-card,
.article-grid article,
.award-list article,
.portal-summary article,
.account-item,
.site-data-list article,
.inquiry-list article {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.video-card:hover,
.article-grid article:hover,
.award-list article:hover,
.portal-summary article:hover,
.account-item:hover,
.site-data-list article:hover,
.inquiry-list article:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 36, 48, 0.13);
  box-shadow: var(--shadow);
}

.split-section,
.awards-section,
.articles-section,
.enrollment,
.portal-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    var(--paper);
}

.section-heading h2,
.student-intro h2,
.portal-panel h2,
.student-gateway h2,
.login-card h2 {
  font-weight: 760;
}

.tag {
  color: var(--green);
  font-weight: 760;
}

.video-thumb,
.mini-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.play-badge {
  box-shadow: 0 10px 28px rgba(29, 36, 48, 0.16);
}

input,
select,
textarea {
  border-color: rgba(29, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 1px rgba(29, 36, 48, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(47, 82, 116, 0.38);
  background: #fff;
  box-shadow: var(--focus);
}

label {
  color: rgba(29, 36, 48, 0.74);
  font-size: 13px;
  font-weight: 680;
}

.portal-shell {
  padding-top: 34px;
}

.portal-hero {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.portal-panel {
  padding: 26px;
}

.portal-summary article {
  padding: 20px;
}

.portal-summary span {
  font-size: 13px;
  font-weight: 680;
}

.portal-summary strong {
  font-weight: 760;
}

.date-tab,
.daily-timeline,
.availability-legend span,
.recurring-option,
.student-manager-toolbar,
.student-hub-summary,
.course-node,
.lesson-star-list article,
.redemption-list article {
  border-color: rgba(29, 36, 48, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.date-tab.is-active {
  border-color: rgba(47, 82, 116, 0.3);
  background: linear-gradient(180deg, #365e83, var(--blue));
}

.timeline-track {
  border-radius: 8px;
}

.timeline-row.is-booked .timeline-track {
  border-color: rgba(47, 82, 116, 0.15);
  background: rgba(47, 82, 116, 0.08);
}

.timeline-row.is-mine .timeline-track,
.course-node.is-active {
  border-color: rgba(201, 149, 47, 0.36);
  background: rgba(255, 248, 231, 0.86);
}

.student-time-grid {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 6px 0 6px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-time-grid::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 19px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(63, 109, 91, 0.22), rgba(201, 149, 47, 0.18));
  content: "";
}

.student-time-grid .timeline-row,
.student-time-grid .timeline-row.is-full-hour,
.student-time-grid .timeline-row.is-half-hour {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 66px;
  margin: 0;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(29, 36, 48, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 16px rgba(29, 36, 48, 0.04);
}

.student-time-grid .timeline-row::before {
  position: absolute;
  left: -6px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.student-time-grid .timeline-row.is-half-hour {
  grid-template-columns: 104px minmax(0, 1fr);
  width: calc(100% - 46px);
  min-height: 46px;
  margin-left: 46px;
  padding: 7px 10px 7px 16px;
  border-color: rgba(29, 36, 48, 0.06);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.student-time-grid .timeline-row.is-half-hour::before {
  left: -51px;
  width: 8px;
  height: 8px;
  border-width: 2px;
  background: rgba(63, 109, 91, 0.55);
}

.student-time-grid .timeline-row time {
  display: grid;
  gap: 1px;
}

.student-time-grid .timeline-row time strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 760;
}

.student-time-grid .timeline-row.is-half-hour time strong {
  color: #7d847e;
  font-size: 15px;
  font-weight: 680;
}

.student-time-grid .timeline-row time span {
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 560;
}

.student-time-grid .timeline-row.is-half-hour time span {
  font-size: 11px;
}

.student-time-grid .timeline-row time span::before {
  display: none;
}

.student-time-grid .timeline-track,
.student-time-grid .timeline-row.is-half-hour .timeline-track {
  justify-self: start;
  min-height: 30px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(63, 109, 91, 0.1);
  color: var(--green);
}

.student-time-grid .timeline-track strong {
  font-size: 13px;
  font-weight: 720;
}

.student-time-grid .timeline-row.is-half-hour .timeline-track {
  min-height: 26px;
  padding: 4px 9px;
}

.student-time-grid .timeline-row.is-half-hour .timeline-track strong {
  font-size: 11px;
  font-weight: 680;
}

.student-time-grid .timeline-row:hover {
  border-color: rgba(63, 109, 91, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.student-time-grid .timeline-row:hover .timeline-track {
  border: 0;
  background: rgba(63, 109, 91, 0.15);
}

.student-time-grid .timeline-row.is-booked,
.student-time-grid .timeline-row.is-closed,
.student-time-grid .timeline-row.is-past {
  background: rgba(245, 245, 243, 0.76);
}

.student-time-grid .timeline-row.is-booked::before,
.student-time-grid .timeline-row.is-closed::before,
.student-time-grid .timeline-row.is-past::before {
  background: rgba(29, 36, 48, 0.24);
}

.student-time-grid .timeline-row.is-booked .timeline-track,
.student-time-grid .timeline-row.is-closed .timeline-track,
.student-time-grid .timeline-row.is-past .timeline-track {
  background: rgba(29, 36, 48, 0.07);
  color: var(--soft-muted);
}

.student-time-grid .timeline-row.is-past {
  color: #aaa69d;
  box-shadow: none;
}

.student-time-grid .timeline-row.is-too-soon {
  border-color: rgba(29, 36, 48, 0.06);
  background: rgba(245, 245, 243, 0.76);
  color: #9b978f;
  box-shadow: none;
}

.student-time-grid .timeline-row.is-too-soon::before {
  background: #aaa69d;
}

.student-time-grid .timeline-row.is-too-soon .timeline-track {
  background: rgba(29, 36, 48, 0.07);
  color: #8b8881;
}

.student-time-grid .timeline-row.is-past time strong,
.student-time-grid .timeline-row.is-past time span {
  color: #aaa69d;
}

.student-time-grid .timeline-row.is-finished .timeline-track {
  background: rgba(63, 109, 91, 0.08);
  color: #66756e;
}

.student-time-grid .timeline-row.is-mine {
  border-color: rgba(201, 149, 47, 0.34);
  background: rgba(255, 248, 231, 0.86);
}

.student-time-grid .timeline-row.is-mine::before {
  background: var(--gold);
}

.student-time-grid .timeline-row.is-mine .timeline-track {
  background: rgba(201, 149, 47, 0.14);
  color: #805b16;
}

.booking-row-action {
  min-height: 32px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(128, 91, 22, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #805b16;
  font-size: 12px;
  font-weight: 700;
}

.booking-row-action.is-leave {
  border-color: rgba(177, 77, 68, 0.2);
  color: #a3473f;
}

.booking-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}

.booking-dialog::backdrop {
  background: rgba(29, 36, 48, 0.32);
  backdrop-filter: blur(8px);
}

.booking-dialog-card {
  padding: 28px;
  border: 1px solid rgba(29, 36, 48, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(29, 36, 48, 0.22);
}

.booking-dialog-card h2 {
  margin: 5px 0 10px;
  font-size: 28px;
}

.booking-dialog-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.booking-dialog-summary {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 8px;
  background: #f5f5f2;
  color: var(--ink);
  font-weight: 700;
}

.booking-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.booking-dialog-actions button {
  min-height: 44px;
}

.booking-dialog-actions .is-destructive {
  background: #a3473f;
}

.student-time-grid .timeline-badge {
  display: none;
}

.teacher-timeline {
  position: relative;
  gap: 8px;
  padding: 6px 0 6px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.teacher-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 19px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 82, 116, 0.22), rgba(201, 149, 47, 0.18));
  content: "";
}

.teacher-timeline .timeline-row,
.teacher-timeline .timeline-row.is-full-hour,
.teacher-timeline .timeline-row.is-half-hour {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 128px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  margin: 0;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(29, 36, 48, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 16px rgba(29, 36, 48, 0.04);
}

.teacher-timeline .timeline-row::before {
  position: absolute;
  left: -6px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.teacher-timeline .timeline-row.is-half-hour {
  grid-template-columns: 104px minmax(120px, 1fr) auto;
  width: calc(100% - 46px);
  min-height: 46px;
  margin-left: 46px;
  padding: 7px 10px 7px 16px;
  border-color: rgba(29, 36, 48, 0.06);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.teacher-timeline .timeline-row.is-half-hour::before {
  left: -51px;
  width: 8px;
  height: 8px;
  border-width: 2px;
  background: rgba(47, 82, 116, 0.55);
}

.teacher-timeline .timeline-row time {
  display: grid;
  gap: 1px;
}

.teacher-timeline .timeline-row time strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 760;
}

.teacher-timeline .timeline-row.is-half-hour time strong {
  color: #7d847e;
  font-size: 15px;
  font-weight: 680;
}

.teacher-timeline .timeline-row time span {
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 560;
}

.teacher-timeline .timeline-row time span::before {
  display: none;
}

.teacher-timeline .timeline-track,
.teacher-timeline .timeline-row.is-half-hour .timeline-track {
  justify-self: start;
  min-height: 30px;
  padding: 5px 34px 5px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 82, 116, 0.1);
  color: var(--blue);
}

.teacher-timeline .timeline-track strong {
  font-size: 13px;
  font-weight: 720;
}

.teacher-timeline .timeline-row.is-half-hour .timeline-track {
  min-height: 26px;
  padding: 4px 30px 4px 9px;
}

.teacher-timeline .timeline-row.is-half-hour .timeline-track strong {
  font-size: 11px;
  font-weight: 680;
}

.teacher-timeline .timeline-track::after {
  content: none;
}

.teacher-timeline .timeline-row:hover {
  border-color: rgba(47, 82, 116, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.teacher-timeline .timeline-row:hover .timeline-track {
  border: 0;
  background: rgba(47, 82, 116, 0.15);
}

.teacher-timeline .timeline-row.is-booked {
  border-color: rgba(201, 149, 47, 0.26);
  background: rgba(255, 248, 231, 0.86);
}

.teacher-timeline .timeline-row.is-booked::before {
  background: var(--gold);
}

.teacher-timeline .timeline-row.is-booked .timeline-track {
  background: rgba(201, 149, 47, 0.14);
  color: #805b16;
}

.teacher-timeline .timeline-row.is-closed {
  background: rgba(245, 245, 243, 0.76);
}

.teacher-timeline .timeline-row.is-closed::before {
  background: rgba(29, 36, 48, 0.24);
}

.teacher-timeline .timeline-row.is-closed .timeline-track {
  background: rgba(29, 36, 48, 0.07);
  color: var(--soft-muted);
}

.teacher-timeline .timeline-row.is-past {
  border-color: rgba(29, 36, 48, 0.06);
  background: rgba(242, 242, 240, 0.7);
  box-shadow: none;
}

.teacher-timeline .timeline-row.is-past::before {
  background: #aaa69d;
}

.teacher-timeline .timeline-row.is-past time strong,
.teacher-timeline .timeline-row.is-past time span {
  color: #aaa69d;
}

.teacher-timeline .timeline-row.is-past .timeline-track {
  background: rgba(29, 36, 48, 0.06);
  color: #77746e;
}

.teacher-timeline .timeline-row.is-past.is-booked {
  border-color: rgba(201, 149, 47, 0.18);
  background: rgba(248, 245, 237, 0.8);
}

.teacher-timeline .timeline-row.is-past.is-booked::before {
  background: #b59a63;
}

.slot-missed-button {
  background: #eceae5;
  color: #5f5c56;
}

.teacher-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.teacher-row-actions button {
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.slot-toggle-button {
  background: rgba(29, 36, 48, 0.06);
  color: #666d76;
}

.slot-toggle-button.is-open-action {
  background: rgba(58, 112, 89, 0.1);
  color: #356d57;
}

.slot-toggle-button:hover {
  background: rgba(29, 36, 48, 0.11);
}

.slot-toggle-button.is-open-action:hover {
  background: rgba(58, 112, 89, 0.16);
}

.slot-weekly-button {
  background: transparent;
  color: #6f6658;
  box-shadow: inset 0 0 0 1px rgba(111, 102, 88, 0.18);
}

.slot-weekly-button:hover {
  background: rgba(111, 102, 88, 0.08);
}

.slot-weekly-button.is-active {
  background: rgba(201, 149, 47, 0.12);
  color: #805b16;
  box-shadow: inset 0 0 0 1px rgba(201, 149, 47, 0.22);
}

.weekly-closed-badge {
  background: rgba(29, 36, 48, 0.08);
  color: #70695f;
}

.slot-schedule-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 36, 48, 0.12);
}

.slot-schedule-button:hover {
  background: #303744;
}

.slot-complete-button {
  background: rgba(58, 112, 89, 0.12);
  color: #2f6952;
  box-shadow: inset 0 0 0 1px rgba(58, 112, 89, 0.18);
}

.slot-complete-button:hover {
  background: rgba(58, 112, 89, 0.2);
}

.teacher-timeline .timeline-row.is-half-hour .teacher-row-actions button {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 11px;
}

.booking-credit-note {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(47, 82, 116, 0.12);
  border-radius: 7px;
  background: rgba(47, 82, 116, 0.06);
  color: #475d74;
  font-size: 13px;
  font-weight: 600;
}

.student-credit-admin {
  margin-bottom: 24px;
}

.student-type-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(29, 36, 48, 0.06);
}

.student-type-tabs button {
  padding: 8px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.student-type-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(29, 36, 48, 0.08);
}

.student-credit-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: 20px;
  margin-top: 20px;
}

.student-profile-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.student-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.student-profile-row.is-active {
  border-color: rgba(47, 82, 116, 0.34);
  background: rgba(47, 82, 116, 0.07);
}

.student-profile-row span {
  display: grid;
  gap: 3px;
}

.student-profile-row span:last-child {
  text-align: right;
}

.student-profile-row strong,
.student-profile-row b {
  font-size: 14px;
}

.student-profile-row em,
.student-profile-row small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.student-credit-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.selected-student-heading {
  grid-column: 1 / -1;
}

.selected-student-heading span,
.selected-student-heading em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.selected-student-heading h3 {
  margin: 4px 0;
  font-size: 24px;
}

.credit-balance-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.credit-balance-board article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-right: 1px solid var(--line);
}

.credit-balance-board article:last-child {
  border-right: 0;
}

.credit-balance-board span {
  color: var(--muted);
  font-size: 11px;
}

.credit-balance-board strong {
  font-size: 17px;
}

.credit-ledger {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.credit-ledger h3 {
  margin: 0 0 12px;
}

.credit-ledger article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.credit-ledger article div {
  display: grid;
  gap: 3px;
}

.credit-ledger article span {
  color: var(--muted);
  font-size: 11px;
}

.credit-ledger b {
  align-self: center;
}

.is-credit-add {
  color: #317057;
}

.is-credit-deduct {
  color: #a55151;
}

.student-hub {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
}

.student-hub-section + .student-hub-section {
  border-left-color: rgba(29, 36, 48, 0.08);
}

.login-page {
  background:
    linear-gradient(90deg, rgba(20, 24, 33, 0.84), rgba(20, 24, 33, 0.38)),
    url("./assets/cover-piano-growth.png") center / cover fixed;
}

.login-card {
  background: rgba(255, 255, 255, 0.86);
}

.login-highlights span,
.cta-meta em {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-avatar {
  display: grid;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #f07aa5, #d95f8f);
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  box-shadow: 0 8px 20px rgba(217, 95, 143, 0.22);
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-avatar:hover {
  transform: translateY(-1px);
}

.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(29, 36, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(29, 36, 48, 0.18);
  backdrop-filter: blur(20px);
}

.account-popover-profile {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(29, 36, 48, 0.08);
}

.account-avatar-large {
  width: 58px;
  height: 58px;
  min-height: 58px;
}

.account-popover-profile strong,
.account-popover-profile span,
.account-popover-profile em {
  display: block;
}

.account-popover-profile strong {
  color: var(--ink);
  font-size: 20px;
}

.account-popover-profile span,
.account-popover-profile em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.account-menu-item {
  display: grid;
  width: 100%;
  min-height: auto;
  justify-content: stretch;
  gap: 3px;
  padding: 14px 18px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.account-menu-item:hover {
  transform: none;
  background: rgba(29, 36, 48, 0.05);
  box-shadow: none;
}

.account-menu-item span {
  font-size: 15px;
  font-weight: 720;
}

.account-menu-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.account-logout {
  border-top: 1px solid rgba(29, 36, 48, 0.08);
}

.profile-dialog {
  width: min(720px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}

.profile-dialog::backdrop {
  background: rgba(29, 36, 48, 0.32);
  backdrop-filter: blur(8px);
}

.profile-dialog-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(29, 36, 48, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(29, 36, 48, 0.2);
}

.profile-dialog-heading,
.profile-identity,
.profile-dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.profile-dialog-heading span,
.profile-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-dialog-heading h2 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.15;
}

.profile-identity {
  justify-content: start;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(29, 36, 48, 0.08);
  border-radius: 8px;
  background: rgba(246, 245, 241, 0.72);
}

.account-avatar-profile {
  width: 64px;
  height: 64px;
  min-height: 64px;
  font-size: 24px;
}

.profile-identity strong {
  font-size: 22px;
}

.profile-identity p,
.profile-dialog-actions p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(29, 36, 48, 0.08);
}

.profile-section-heading {
  display: grid;
  gap: 3px;
}

.profile-section-heading strong {
  font-size: 17px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-form-grid .full-field {
  grid-column: 1 / -1;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.avatar-upload-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(29, 36, 48, 0.08);
  border-radius: 8px;
  background: rgba(246, 245, 241, 0.72);
}

.avatar-upload-field span {
  color: var(--ink);
  font-weight: 700;
}

.avatar-upload-field small {
  color: var(--muted);
  font-size: 12px;
}

.avatar-upload-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-toggles {
  display: grid;
  gap: 10px;
}

.profile-toggles label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.profile-toggles input {
  appearance: none;
  position: relative;
  width: 40px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9d6cf;
}

.profile-toggles input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(29, 36, 48, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.profile-toggles input:checked {
  background: var(--green);
}

.profile-toggles input:checked::after {
  transform: translateX(16px);
}

.content-visibility-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid rgba(29, 36, 48, 0.09);
  border-radius: 8px;
  background: rgba(246, 245, 241, 0.72);
}

.content-visibility-toggle span {
  display: grid;
  gap: 3px;
}

.content-visibility-toggle strong {
  color: var(--ink);
  font-size: 15px;
}

.content-visibility-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.content-visibility-toggle input {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d5d0;
  cursor: pointer;
  transition: background 160ms ease;
}

.content-visibility-toggle input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 36, 48, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.content-visibility-toggle input:checked {
  background: var(--green);
}

.content-visibility-toggle input:checked::after {
  transform: translateX(18px);
}

.profile-dialog-actions {
  align-items: center;
}

.profile-dialog-actions button {
  background: linear-gradient(180deg, #365e83, var(--blue));
}

.site-footer {
  background: #171d28;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .stats,
  .course-grid,
  .enroll-form,
  .student-section,
  .split-section,
  .video-grid,
  .article-grid,
  .portal-hero,
  .login-shell,
  .admin-summary,
  .admin-layout,
  .portal-layout,
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .student-intro,
  .student-dashboard,
  .split-section .section-heading,
  .featured-video,
  .portal-hero > div:first-child,
  .portal-login-card,
  .login-copy,
  .login-card,
  .portal-main,
  .admin-layout .portal-main,
  .admin-layout .portal-side,
  .portal-side {
    grid-column: 1 / -1;
  }

  .enroll-form label,
  .enroll-form button {
    grid-column: span 1;
  }

  .student-gateway {
    grid-template-columns: 1fr;
  }

  .availability-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .awards-section {
    grid-template-columns: 1fr;
  }

  .award-list {
    grid-template-columns: 1fr 1fr;
  }

  .certificate-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .student-hub-grid {
    grid-template-columns: 1fr;
  }

  .student-hub-section + .student-hub-section {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gateway-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand span:last-child {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: 680px;
    padding: 86px 22px 70px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(18, 20, 26, 0.84), rgba(18, 20, 26, 0.38));
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .stats,
  .course-grid,
  .enroll-form,
  .dashboard-grid,
  .student-section,
  .split-section,
  .video-grid,
  .article-grid,
  .portal-hero,
  .login-shell,
  .admin-summary,
  .admin-layout,
  .booking-controls,
  .portal-summary,
  .portal-layout,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .day-slot-grid {
    grid-template-columns: 1fr;
  }

  .availability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .awards-section,
  .award-list {
    grid-template-columns: 1fr;
  }

  .certificate-gallery {
    grid-template-columns: 1fr;
  }

  .availability-toolbar {
    grid-template-columns: 1fr;
  }

  .student-manager-toolbar {
    grid-template-columns: 1fr;
  }

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

  .student-type-tabs {
    width: 100%;
  }

  .student-type-tabs button {
    flex: 1;
  }

  .student-time-grid .timeline-row,
  .student-time-grid .timeline-row.is-full-hour {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .student-time-grid .timeline-row.is-half-hour {
    grid-template-columns: 84px minmax(0, 1fr);
    width: calc(100% - 28px);
    margin-left: 28px;
  }

  .student-time-grid .timeline-row.is-half-hour::before {
    left: -33px;
  }

  .teacher-timeline .timeline-row,
  .teacher-timeline .timeline-row.is-full-hour {
    grid-template-columns: 96px minmax(100px, 1fr) auto;
  }

  .teacher-timeline .timeline-row.is-half-hour {
    grid-template-columns: 84px minmax(90px, 1fr) auto;
    width: calc(100% - 28px);
    margin-left: 28px;
  }

  .teacher-timeline .timeline-row.is-half-hour::before {
    left: -33px;
  }

  .student-hub-summary {
    grid-template-columns: 1fr;
  }

  .student-hub-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-hub-summary article:last-child {
    border-bottom: 0;
  }

  .student-hub-grid {
    gap: 22px;
    margin-top: 22px;
    padding-top: 22px;
  }

  .timeline-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 9px;
  }

  .timeline-row.is-half-hour {
    grid-template-columns: 72px minmax(0, 1fr);
    margin-left: 18px;
  }

  .timeline-row time {
    display: grid;
    gap: 0;
  }

  .timeline-row time span::before {
    margin-right: 3px;
  }

  .timeline-track {
    padding: 8px 10px;
  }

  .schedule-editor-card {
    padding: 20px;
  }

  .schedule-editor-fields {
    grid-template-columns: 1fr;
  }

  .editor-note-field,
  .editor-recurring {
    grid-column: auto;
  }

  .schedule-editor-actions button {
    min-width: 0;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 22px;
  }

  .section,
  .split-section,
  .student-section {
    padding: 64px 22px;
  }

  .student-gateway {
    padding: 36px 22px;
  }

  .gateway-button {
    width: 100%;
    min-height: 64px;
    font-size: 20px;
  }

  .featured-video {
    grid-template-columns: 1fr;
  }

  .portal-shell {
    padding: 24px 18px 56px;
  }

  .portal-hero {
    padding: 26px;
  }

  .portal-hero-actions {
    flex-direction: column;
  }

  .login-page {
    background-attachment: scroll;
  }

  .login-shell {
    min-height: auto;
    padding: 56px 22px;
  }

  .login-card {
    padding: 22px;
  }

  .account-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-item button {
    width: 100%;
  }

  .portal-panel {
    padding: 20px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .ghost-button {
    width: 100%;
  }

  .course-card {
    min-height: auto;
  }

  .enroll-form label,
  .enroll-form button {
    grid-column: 1;
  }

  .dashboard-top {
    flex-direction: column;
  }

  .stars {
    justify-items: start;
  }
}
