:root {
  --coral: #5B7385;
  --coral-dark: #44586A;
  --point: #B95C3A;        /* 09-28 포인트(강조) 색 — 교재 테라코타. 블루그레이 위·크림 위 둘 다 잘 보이게 */
  --point-soft: #FBE9DF;
  --peach: #E29A7E;
  --sun: #F3D68A;
  --mint: #6F9B84;
  --cream: #F6F0E2;
  --card: #FFF9EC;
  --ink: #2F3B45;
  --ink-soft: #6B7A86;
  --line: #E3DCCF;
  --success-bg: #E8F7EF;
  --success-ink: #2F8F5F;
  --error-bg: #FBE8E2;
  --error-ink: #C9533F;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  /* 한글은 기본적으로 단어(띄어쓰기) 중간에서도 줄바꿈될 수 있어서, 문장이 이상한 위치에서 뚝뚝 끊겨 보임 —
     띄어쓰기 단위로만 줄바꿈되게 해서 훨씬 자연스럽게 읽히도록 함 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

header.nav {
  display: flex;
  flex-direction: column;
  padding: 14px 28px 18px;
  background: var(--card);
  border-bottom: 3px solid var(--line);
}

/* 맨 위 줄 — 언어 선택만 오른쪽 끝에. 바로 아래 줄(로그인/회원가입)과 가깝게 붙임 */
header.nav .nav-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

/* 로고 + 로그인/회원가입(또는 이름·로그아웃) 줄 */
header.nav .nav-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

header.nav .logo {
  display: inline-flex;
  align-items: center;
}

header.nav .logo img {
  height: 46px;
  display: block;
}

header.nav .nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 메뉴 링크 줄 */
header.nav > nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

header.nav a,
header.nav .user-badge {
  white-space: nowrap;
}

header.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

header.nav a:hover {
  color: var(--point);
}

/* 메뉴 줄 (09-28 대표: "맨 위 메뉴탭 좀 더 잘 보이게 포인트") — 알약 버튼, 지금 페이지는 포인트 색으로 채움 */
header.nav > nav { gap: 6px 4px; }
header.nav > nav > a {
  font-size: 15px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
}
header.nav > nav > a:hover { background: #E6EDF2; color: var(--coral-dark); }
header.nav > nav > a.on { background: var(--coral); color: #FFF9EC; }   /* 09-28 대표: "메뉴 눌렀을 때 색은 블루그레이로" */

header.nav .user-badge {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--cream);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  width: auto;
}

.lang-switch button.active {
  background: var(--coral);
  color: #fff;
}

.floating-contact-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
}

.floating-contact {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(68, 88, 106, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.floating-contact:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(68, 88, 106, 0.5);
}

.floating-contact svg {
  width: 26px;
  height: 26px;
}

.floating-contact-menu {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.floating-contact-wrap:hover .floating-contact-menu,
.floating-contact-wrap.open .floating-contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-contact-menu a {
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
}

.floating-contact-menu a:hover {
  color: var(--coral-dark);
}

.kakao-chat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.kakao-chat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FEE500;
  color: #191919;
  border-radius: 16px;
  padding: 16px 20px;
  flex: 1 1 260px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kakao-chat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #191919;
}

.kakao-chat-icon {
  font-size: 26px;
}

.kakao-chat-card strong {
  display: block;
  font-size: 15px;
}

.kakao-chat-sub {
  display: block;
  font-size: 13px;
  color: #4a4a4a;
  margin-top: 2px;
}

main {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

p.subtitle {
  color: var(--ink-soft);
  margin-top: 0;
  font-size: 15.5px;
}

/* 페이지 제목(h1)/부제목이 아래 카드(.card)의 안쪽 글자랑 같은 위치에서 시작하게 맞춤 */
/* (카드는 자체 padding:28px가 있어서, 카드 밖에 있는 제목도 똑같이 28px 들여쓰기 해줘야 시작점이 맞음) */
main > h1,
main > p.subtitle {
  padding-left: 28px;
  padding-right: 28px;
}

.card {
  background: var(--card);
  border: none;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
}

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

.hero a.tile {
  display: block;
  background: var(--card);
  border: none;
  border-radius: 18px;
  padding: 24px 20px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero a.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(68, 88, 106, 0.15);
  color: var(--coral-dark);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--coral);
}

button {
  padding: 12px 22px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

button.secondary {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--line);
}

button.secondary:hover {
  background: #fff;
  border-color: var(--coral);
  color: var(--coral-dark);
}

/* 회원탈퇴처럼 되돌릴 수 없는 위험한 동작에 쓰는 버튼 */
button.danger {
  background: var(--error-ink);
}

button.danger:hover {
  background: #A5402F;
}

button:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
}

.message {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}

.message.error {
  background: var(--error-bg);
  color: var(--error-ink);
}

.message.success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.post {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.post:last-child {
  border-bottom: none;
}

.post h3 {
  margin: 0 0 4px 0;
  font-size: 16.5px;
  font-weight: 700;
}

.post .meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.post .actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.post .actions button {
  padding: 7px 14px;
  font-size: 12px;
}

.time-slot {
  display: inline-block;
  padding: 9px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  margin: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  transition: all 0.15s ease;
}

.time-slot:hover {
  border-color: var(--peach);
}

.time-slot.selected {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.booking-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.booking-item:last-child {
  border-bottom: none;
}

.status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-ink);
}

.status.cancelled {
  background: var(--line);
  color: var(--ink-soft);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-title {
  font-weight: 800;
  font-size: 16px;
}

.cal-nav {
  padding: 6px 14px;
  font-size: 16px;
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding-bottom: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--line);
  border: 2px solid transparent;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.has-slots {
  cursor: pointer;
  color: var(--ink);
  background: var(--cream);
  border-color: var(--line);
  transition: all 0.15s ease;
}

.calendar-day.has-slots:hover {
  border-color: var(--peach);
}

.calendar-day.has-slots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.calendar-day.selected {
  background: var(--coral) !important;
  color: #fff !important;
  border-color: var(--coral) !important;
}

.calendar-day.selected .dot {
  background: #fff;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--sun);
}

.times-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.custom-time-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.custom-time-row input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.custom-time-row button {
  padding: 10px 16px;
  font-size: 13px;
}

.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.admin-tabs {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 20px;
}

.admin-tab {
  background: var(--card);
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  width: auto;
  box-shadow: 0 2px 10px rgba(68, 88, 106, 0.06);
}

.admin-tab:hover {
  background: var(--card);
  color: var(--ink);
  transform: none;
}

.admin-tab.active {
  background: var(--coral);
  color: #fff;
}

.admin-panels {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-tabs {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    width: 100%;
  }

  .admin-tab {
    flex: 1 1 auto;
    text-align: center;
  }

}

.announce-bar {
  background: #34495A;   /* 09-27 교재 색: 나이트 잉크 (토픽 표지) */
  color: #F4EBDD;
  text-align: center;
  font-size: 12.5px;
  padding: 9px 16px;
}

.announce-bar a {
  color: var(--sun);
  font-weight: 700;
  text-decoration: none;
  margin-left: 8px;
}

.hero-banner {
  background: #5B7385;   /* 09-27 대표: "그라데이션은 AI 느낌 — 하지 마" → 단색 미스티 블루 (초급 표지 색) */
  padding: 56px 24px;
  text-align: center;
}

.hero-banner-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-kicker {   /* 09-27 대표: "한국어 × 일본어 사이즈 더 키워 줘" */
  display: inline-block;
  background: #F3D68A;
  color: #2F3B45;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  padding: 9px 26px;
  border-radius: 999px;
  margin-bottom: 20px;
}
@media (max-width: 560px) { .hero-kicker { font-size: 16px; padding: 7px 20px; } }

.hero-banner h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 12px;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  background: #fff;
  color: var(--coral-dark);
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(68, 88, 106, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-ico svg {
  width: 100%;
  height: 100%;
}

/* 보조 버튼(회원가입하기)은 채우지 않고 테두리만 있는 형태로, 주 버튼(강의 예약하기)과 위계를 분리함 */
.btn-cta.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.btn-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* 홈페이지에서 main 바로 아래 섹션들(퀵메뉴/강사진/언어/커뮤니티/CTA) 사이 간격을 전부 똑같이 맞춤 */
main > section {
  margin-bottom: 40px;
}

main > section:last-child {
  margin-bottom: 0;
}

.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 09-28 대표: "영어로 볼 때 Book a Lesson 가운데 정렬이 안 맞아" → 메뉴 8개 = 4칸 × 2줄 (둘째 줄이 왼쪽에 쏠리지 않게) */
  gap: 12px;
}
.quick-menu a { text-align: center; line-height: 1.3; }   /* 두 줄로 꺾여도 가운데 */

.quick-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border-radius: 16px;
  padding: 18px 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(68, 88, 106, 0.07);
  transition: transform 0.15s ease;
}

.quick-menu a:hover {
  transform: translateY(-2px);
  color: var(--coral-dark);
}

.quick-menu .qm-icon {
  display: flex;
  width: 28px;
  height: 28px;
}

.quick-menu .qm-icon svg {
  width: 100%;
  height: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
}

.section-head a {
  font-size: 13px;
  color: var(--coral-dark);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.mini-instructors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mini-instructor {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
}

.mini-instructor .instructor-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.mini-instructor .mi-name {
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-instructor .mi-tagline {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.lang-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.lang-track {
  display: block;
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
  transition: transform 0.15s ease;
}

.lang-track:not(.disabled):hover {
  transform: translateY(-2px);
}

.lang-track .lt-flag {
  font-size: 28px;
}

.lang-track .lt-title {
  font-weight: 800;
  font-size: 17px;
  margin: 8px 0 4px;
}

.lang-track .lt-format {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.lang-track .lt-status {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--success-ink);
}

.lang-track.disabled {
  opacity: 0.65;
}

.lang-track.disabled .lt-status {
  color: var(--ink-soft);
}

.course-detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.course-detail:last-child {
  border-bottom: none;
}

.course-detail h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.course-detail p {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  color: var(--ink);
}

.course-detail .cd-status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--success-ink);
  text-decoration: none;
}

.course-detail.disabled .cd-status {
  color: var(--ink-soft);
}

.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.recent-post-item {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  font-size: 13.5px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
}

.recent-post-item .rp-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.recent-post-item .rp-meta {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cta-banner {
  text-align: center;
  background: var(--card);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
}

.cta-banner h2 {
  margin-top: 0;
}

.materials-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.materials-section-title {
  margin: 0 0 16px 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--coral-dark);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 교재 목록은 다른 페이지보다 옆으로 넓게 써서(720px → 860px) 데스크탑에서 3열로 보이게 함.
   무료판 3개가 한 줄에 딱 맞고, 유료판 2개도 한 줄에 맞아 목록이 더 정돈돼 보임. */
.materials-page {
  max-width: 860px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: var(--ink);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(68, 88, 106, 0.14);
  color: var(--ink);
}

.product-image {
  /* 책 표지 목업 사진이 세로로 긴 비율(원본 957×1400 ≈ 2:3)이라 칸도 세로형으로 맞춤.
     object-position: top으로 위쪽(제목이 있는 부분)이 잘리지 않게 함 — 혹시 나중에
     다른 비율의 표지가 올라와도 위쪽(제목)은 항상 보이도록 하는 안전장치. */
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.product-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* 판본(글로벌판/일본어판) 배지를 썸네일 왼쪽 상단에 겹쳐 보여주기 위한 감싸개.
   목록 카드와 상세 페이지 둘 다 이 wrap 안에 이미지+배지를 넣음(js/materials.js의 thumbWithBadgeHtml) */
.product-thumb-wrap {
  position: relative;
  display: block;
}

.edition-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  line-height: 1.4;
  white-space: nowrap;
  /* 표지 사진이 짙은 초록/갈색 계열이라, 배지 자체는 진한 단색 배경 + 그림자로 어떤 표지 위에서도 읽히게 함 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.edition-badge-global {
  background: var(--coral-dark);
}

.edition-badge-ja {
  background: var(--mint);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.product-body h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  /* 제목이 길어도 카드가 늘어나지 않게 2줄까지만 보여주고 나머지는 말줄임 처리 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--coral-dark);
}

/* 모바일에서는 카드가 화면을 거의 다 차지해서 스크롤이 너무 길어지니 2열로 줄여서
   한 화면에 여러 개가 보이게 함. 카드가 좁아진 만큼 안쪽 여백/글자 크기도 같이 줄임. */
@media (max-width: 640px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-body {
    padding: 10px 12px 14px;
    gap: 4px;
  }

  .product-body h3 {
    font-size: 13px;
  }

  .product-price {
    font-size: 13.5px;
  }


}

/* ===== 교재 상세 페이지 (목록에서 클릭해서 들어왔을 때) ===== */
.detail-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.detail-back:hover {
  color: var(--coral-dark);
}

.detail-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-main .product-thumb-wrap {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.detail-main .product-image {
  width: 220px;
  border-radius: 16px;
}

.detail-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-info h2 {
  margin: 0;
  font-size: 22px;
}

.detail-purchase {
  margin-top: auto;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.detail-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--coral-dark);
}

.detail-info .actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.detail-description {
  margin-top: 24px;
}

.detail-description h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.detail-description p {
  font-size: 14.5px;
  color: var(--ink);
  white-space: pre-wrap;
}

.material-description-image {
  display: block;
  max-width: 100%;
  width: 400px;
  border-radius: 14px;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.1);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-btn {
  background: var(--cream);
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}

.qty-btn:hover {
  background: #fff;
  color: var(--coral-dark);
}

.qty-value {
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.about-illustration {
  margin: 24px 0 28px;
}

.about-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.instructor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.instructor-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
}

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

.instructor-card h3 {
  margin: 0;
  font-size: 20px;
}

.instructor-card > p {
  margin: 0;
  max-width: 480px;
}

.instructor-card .meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: -4px;
}

.instructor-motto {
  font-style: italic;
  font-size: 14px;
  color: var(--point);
  font-weight: 700;
}


.instructor-hobby {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 6px;
}

.instructor-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--point-soft);
  border: 2px solid #E9B9A3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--point);
  white-space: nowrap;
}
/* 09-28 대표: "뱃지 부분을 좀 더 강조" → 포인트 색(테라코타) 한 색으로 (4색 시안 뒤 대표 선택) */

.instructor-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.instructor-book img {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 8px;
  box-shadow: 0 4px 18px rgba(68, 88, 106, 0.12);
}

.instructor-book span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sun);
  color: #7A5A12;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.instructor-card > .lang-badge {
  margin-left: 0;
}

/* ── 왼쪽 SNS 버튼 (유튜브 / 인스타) ──────────────────────────────
   우측 하단 문의 버튼(.floating-contact)과 **의도적으로 같은 조형**이다 —
   크기·색·그림자·열리는 방식을 그대로 맞췄다. 처음엔 어두운 각진 탭으로 만들었다가
   대표가 "너무 이질적"이라고 해서 바꿨다. 이 사이트에 없던 모양을 새로 만들면 겉돈다.
   버튼은 2개뿐이고, 누르면 Sumin/Toe가 옆으로 펼쳐진다. */
.social-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-group { position: relative; display: flex; align-items: center; }
.social-btn {
  /* ⚠️ 코랄 배경으로 두면 안 된다 — 홈 히어로가 코랄이라 그 위에서 통째로 묻힌다.
     (문의 버튼은 크림색 본문 위에만 있어서 코랄이어도 괜찮다)
     흰 원 + 코랄 아이콘이면 코랄 히어로에서도, 크림 본문에서도 다 보인다. */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(61, 50, 41, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.social-btn:hover,
.social-group.open .social-btn {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(68, 88, 106, 0.45);
}
.sr-ico { display: inline-flex; }
.sr-ico svg { width: 24px; height: 24px; display: block; }

/* 펼침 메뉴 — 버튼 오른쪽으로 나온다 */
.social-menu {
  position: absolute;
  left: 100%;
  margin-left: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.social-group:hover .social-menu,
.social-group.open .social-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.social-menu a {
  background: #fff;
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
}
.social-menu a:hover { color: var(--coral-dark); }

@media (max-width: 899px) {
  /* 모바일에선 세로 가운데에 두면 본문을 가려서, 문의 버튼과 대칭으로 왼쪽 아래에 둔다 */
  .social-rail {
    top: auto;
    bottom: 22px;
    left: 22px;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }
  .social-btn { width: 46px; height: 46px; }
  .sr-ico svg { width: 21px; height: 21px; }
  /* 화면 폭이 좁아 오른쪽으로 펼치면 잘린다 → 버튼 위로 세워서 펼친다 */
  .social-menu {
    left: 0;
    bottom: 100%;
    margin-left: 0;
    margin-bottom: 10px;
    flex-direction: column;
    transform: translateY(8px);
  }
  .social-group:hover .social-menu,
  .social-group.open .social-menu { transform: translateY(0); }
}

/* ── 사이트 공통 푸터 (학원 설명) ─────────────────────────────────
   SNS 링크는 왼쪽 레일로 옮겼고(대표 요청), 여기엔 "여기가 뭐 하는 곳인지"를 적는다. */
.site-footer {
  margin-top: 64px;
  padding: 52px 20px 104px;
  background: #44586A;   /* 09-27 대표: "하단 색도 안 어울려 — 전면 수정" → 중급 표지 슬레이트 + 아이보리 글자 */
  color: #F4EBDD;
}
.sf-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.sf-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F3D68A;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.sf-about {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(244, 235, 221, 0.9);
  margin-bottom: 18px;
}
.sf-format {
  font-size: 0.85rem;
  color: rgba(244, 235, 221, 0.72);
  margin-bottom: 22px;
}
.sf-more {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(244, 235, 221, 0.45);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.sf-more:hover { background: rgba(244, 235, 221, 0.12); border-color: var(--sun); }
.sf-copy {
  margin-top: 28px;
  font-size: 0.78rem;
  color: rgba(244, 235, 221, 0.6);
}

@media (max-width: 560px) {
  .site-footer { padding: 40px 22px 96px; }
  .sf-about { font-size: 0.9rem; line-height: 1.7; }
}

/* ===== 예약: 나라/시간대 선택 (2026-09-25) ===== */
.tz-bar {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin-bottom: 16px;
}
.tz-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.tz-ico svg { stroke: var(--coral); stroke-width: 1.6; fill: none; display: block; }
.tz-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.tz-selects select { flex: 1 1 180px; margin: 0; }
.tz-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.kst-note { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ===== 예약: 1회 / 정기 수업 탭 ===== */
.mode-tabs {
  display: flex;
  gap: 6px;
  background: var(--cream);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.mode-tabs[hidden] { display: none; }
.mode-tab {
  flex: 1;
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  box-shadow: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.mode-tab.active { background: var(--card); color: var(--coral-dark); box-shadow: 0 2px 6px rgba(61, 50, 41, .08); }
/* 09-27 체험/정기 = 큰 선택 카드 (위 알약 탭 스타일을 덮어씀) */
.mode-tabs { display: block; background: none; border-radius: 0; padding: 0; margin-bottom: 20px; }
.mode-q { margin: 0 0 8px; font-weight: 800; font-size: 15px; color: var(--ink); }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-tab { width: 100%; display: grid; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 12px; text-align: left;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: none; transition: border-color .15s, background .15s; }
.mode-tab:hover { background: #EEF2F5; border-color: #A9B8C4; transform: none; color: var(--ink); }
.mode-tab .mt-ico { width: 44px; height: 44px; border-radius: 12px; background: #EEF2F5; display: flex; align-items: center; justify-content: center; }
.mode-tab .mt-ico svg { fill: none; stroke: #5B7385; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-tab .mt-ico svg .dot { fill: #5B7385; stroke: none; }
.mode-tab .mt-txt b { display: block; font-size: 16px; font-weight: 800; }
.mode-tab .mt-txt small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.mode-tab .mt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C3CFD8; box-sizing: border-box; }
.mode-tab.active { background: #EEF2F5; border-color: #5B7385; color: var(--ink); box-shadow: 0 0 0 3px rgba(91, 115, 133, .18); }
.mode-tab.active .mt-ico { background: #5B7385; }
.mode-tab.active .mt-ico svg { stroke: #FFF9EC; } .mode-tab.active .mt-ico svg .dot { fill: #FFF9EC; }
.mode-tab.active .mt-check { border: 0; background: #5B7385 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23FFF9EC' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 560px) { .mode-cards { grid-template-columns: 1fr; } .mode-tab { white-space: normal; padding: 12px 14px; font-size: 14px; } }

.sub-intro { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }

.weekly-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.weekly-row:last-child { border-bottom: 0; }
.weekly-day { flex: 0 0 76px; font-weight: 700; font-size: 14px; padding-top: 12px; }
.weekly-times { flex: 1; }
.times-heading small { font-weight: 600; color: var(--ink-soft); font-size: 13px; }
.sub-list { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.9; }
.sub-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--coral-dark); background: #EEF2F5; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
/* 정기 수업 자동결제 (2026-09-26) */
.sub-badge.pending { color: #6B5A1E; background: #FFF6D6; }
.sub-badge.warn { color: #fff; background: #D9534F; }
.autopay-item { align-items: flex-start; }
.autopay-item .sub-block { margin-top: 4px; }
.autopay-head { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.weekly-days { margin-bottom: 4px; }

@media (max-width: 480px) {
  .weekly-row { flex-direction: column; gap: 0; }
  .weekly-day { flex: none; padding-top: 4px; }
  .booking-item { flex-wrap: wrap; gap: 6px; }
}

/* ===== 정기 수업 요금제 카드 (선택형) — 2026-09-25 재디자인 ===== */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; padding-top: 10px; }
.plan-card {
  position: relative; width: 100%; margin: 0; font: inherit; text-align: left;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px;
  padding: 16px 16px 14px; box-shadow: none; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.plan-card:hover { border-color: var(--peach); background: var(--card); transform: translateY(-1px); }
.plan-card.selected { border-color: var(--coral); background: #EEF2F5; box-shadow: 0 4px 14px rgba(91, 115, 133, .14); }
.plan-card:focus-visible { outline: 3px solid rgba(91, 115, 133, .35); outline-offset: 2px; }
.plan-top { display: flex; align-items: center; gap: 8px; }
.plan-radio {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #CFC8BC; background: #fff; position: relative;
}
.plan-card.selected .plan-radio { border-color: var(--coral); }
.plan-card.selected .plan-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--coral);
}
.plan-name { font-size: 17px; font-weight: 800; }
/* 할인 배지는 카드 윗선에 걸쳐 붙임 — 이름 줄 높이를 안 밀어서 두 카드의 가격 줄이 맞음 */
.plan-badge {
  position: absolute; top: -11px; right: 14px; font-size: 11.5px; font-weight: 800; color: #fff;
  background: var(--coral); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(91, 115, 133, .3);
}
.plan-detail { font-size: 13px; color: var(--ink-soft); padding-left: 28px; }
.plan-bottom { display: flex; flex-direction: column; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.plan-base { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; line-height: 1.3; }
.plan-base.is-empty { visibility: hidden; } /* 할인 없는 카드도 같은 높이를 차지해서 가격 줄이 나란히 맞게 */
.plan-price { font-size: 22px; font-weight: 800; color: var(--coral-dark); line-height: 1.25; }
.plan-per { font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 480px) {
  .plan-cards { gap: 10px; }
  .plan-card { padding: 14px 12px 12px; border-radius: 16px; }
  .plan-name { font-size: 15.5px; }
  .plan-badge { right: 10px; font-size: 11px; padding: 2px 8px; }
  .plan-detail { padding-left: 0; }
  .plan-price { font-size: 19px; }
  /* .mode-tab 모바일 모양은 위 "큰 선택 카드" 규칙에서 처리 (09-27) */
}

/* ===== 예약: 선생님 선택 (일본어 — Toe 대면 / Sumin 화상) ===== */
.teacher-cards { margin: 4px 0 10px; }
.teacher-cards[hidden] { display: none; }
.teacher-label { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.teacher-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.teacher-card {
  width: 100%; margin: 0; font: inherit; text-align: left; display: flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: none; cursor: pointer;
}
.teacher-card:hover { border-color: var(--peach); background: var(--card); }
.teacher-card.selected { border-color: var(--coral); background: #EEF2F5; }
.teacher-card.selected .plan-radio { border-color: var(--coral); }
.teacher-card.selected .plan-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--coral); }
.teacher-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.teacher-name { font-size: 16px; font-weight: 800; }
.teacher-meta { font-size: 12.5px; color: var(--ink-soft); }
.teacher-price { font-size: 14px; font-weight: 800; color: var(--coral-dark); white-space: nowrap; }
@media (max-width: 480px) {
  .teacher-card { flex-wrap: wrap; padding: 10px 12px; }
  .teacher-price { width: 100%; padding-left: 30px; }
}

/* ===== 교재: 선생님 → 언어 탭 (2026-09-25) ===== */
.mat-tabs { margin-bottom: 18px; }
.mat-teacher-tabs { display: flex; gap: 6px; background: var(--cream); border-radius: 999px; padding: 4px; max-width: 360px; margin-bottom: 10px; border: 2px solid var(--line); }
.mat-teacher-tab { flex: 1; text-align: center; padding: 9px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.mat-teacher-tab.selected { background: var(--card); color: var(--coral-dark); box-shadow: 0 2px 6px rgba(61, 50, 41, .08); }
.mat-subject-tabs a.time-slot { text-decoration: none; color: inherit; }
.mat-subject-tabs a.time-slot.selected { color: #fff; }

/* ===== 교재 판본 메달 + 출시 기념가 스티커 (2026-09-25) =====
   예전 작은 알약 배지(.edition-badge)는 눈에 안 띈다는 피드백 → 금색 메달로 크게. 표지 왼쪽 위에 살짝 걸쳐 붙임 */
.edition-medal {
  position: absolute; top: 6px; left: 8px; width: 92px; z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .28));
  transform: rotate(-8deg);
}
.edition-medal .medal-svg { display: block; width: 100%; height: auto; }
.edition-medal-text {
  position: absolute; left: 0; right: 0; top: 36px; text-align: center;
  font-size: 14px; font-weight: 900; color: #7A5A12; letter-spacing: -0.02em; line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  padding: 0 14px; word-break: keep-all;
}
.material-detail .edition-medal { width: 72px; top: 6px; left: 6px; }   /* 09-27 대표: 상세 페이지 배지가 너무 큼 (표지 220px에 120px → 72px) */
.material-detail .edition-medal-text { font-size: 11px; top: 28px; padding: 0 10px; }

.product-price, .detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.detail-price { justify-content: flex-end; }
.launch-tag {
  display: inline-block; font-size: 12px; font-weight: 900; color: #fff; line-height: 1.3;
  background: #C97A5E; border-radius: 6px; padding: 3px 8px;
  box-shadow: 0 2px 0 #A9604A; transform: rotate(-3deg); white-space: nowrap;
}
.detail-price .launch-tag { font-size: 14px; padding: 4px 10px; }
@media (max-width: 640px) {
  .edition-medal { width: 64px; top: 4px; left: 4px; }
  .edition-medal-text { font-size: 10.5px; top: 25px; padding: 0 10px; }
  .launch-tag { font-size: 10.5px; padding: 2px 7px; }
  .material-detail .edition-medal { width: 64px; top: 4px; left: 4px; }
  .material-detail .edition-medal-text { font-size: 10.5px; top: 25px; padding: 0 10px; }
}

/* 가격 줄 정렬 (2026-09-25): 제목이 1줄/2줄로 달라도 모든 카드의 "출시 기념가 + 가격"이 같은 높이(카드 맨 아래)에 오도록 */
.product-body { flex: 1; }
.product-body .product-price { margin-top: auto; padding-top: 4px; }
.launch-tag { transform: none; box-shadow: 0 2px 0 #A9604A; } /* 기울기 빼서 가격과 한 줄로 반듯하게 */
.product-price .launch-tag, .detail-price .launch-tag { align-self: center; }

/* ===== 교재 개정판 무료 제공 안내 (2026-09-25) ===== */
.revision-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #EEF8F3; border: 2px solid #BFE6D3; border-radius: 16px;
  padding: 14px 16px; margin: 0 0 22px; color: var(--ink);
}
.revision-ico { color: #2F8F5F; flex: none; margin-top: 1px; }
.revision-notice strong { font-size: 15px; color: #2F8F5F; }
.revision-notice p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.revision-version { display: inline-block; font-size: 12px; font-weight: 800; color: #2F8F5F; background: #fff; border: 1px solid #BFE6D3; border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 1px; }
.material-detail .revision-notice { margin: 22px 0 0; }
.version-chip { align-self: flex-start; font-size: 11.5px; font-weight: 800; color: #2F8F5F; background: #EEF8F3; border: 1px solid #BFE6D3; border-radius: 999px; padding: 1px 8px; }

/* ===== 수업 시간 변경 패널 (2026-09-25) ===== */
.resched-panel { background: var(--cream); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 4px 0 12px; }
.resched-panel[hidden] { display: none; }
.resched-title { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.resched-date { margin: 0 0 8px; }
.resched-times { margin-bottom: 10px; }
.resched-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.booking-item .resched-btn { margin-right: 6px; }

/* ===== 결제 전 취소·환불 규정 안내 + 동의 (2026-09-25) ===== */
.policy-box { margin-top: 16px; background: #EEF2F5; border: 2px dashed #C9D6E0; border-radius: 14px; padding: 12px 14px; }
.policy-head { margin: 0 0 4px; font-weight: 800; font-size: 13.5px; }
.policy-summary { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.policy-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.policy-agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--coral); }
.policy-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--coral-dark); }
.policy-page .policy-card h3 { margin: 18px 0 6px; font-size: 16px; }
.policy-page .policy-card h3:first-child { margin-top: 0; }
.policy-page .policy-card p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.policy-updated { margin-top: 20px !important; font-size: 12.5px !important; color: var(--ink-soft); }
.autopay-item .sub-block .cancel-sub-btn { padding: 3px 10px; font-size: 12px; margin-left: 6px; min-height: 0; }
.autopay-item .stop-autopay-btn { font-size: 13px; }

/* ===== 교재 세트 (2026-09-27) — 본책 + 단어장 10% 할인 ===== */
.set-offer { margin: 18px 0 0; background: #EEF2F5; border: 2px solid #C9D6E0; border-radius: 16px; padding: 16px 18px; }
.set-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.set-head strong { font-size: 16px; }
.set-badge { display: inline-block; background: #C97A5E; color: #fff; font-weight: 900; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.set-items { list-style: none; padding: 0; margin: 0 0 8px; }
.set-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #DCD5C8; font-size: 14px; }
.set-item-price { color: #8C98A2; white-space: nowrap; }
.set-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-size: 20px; font-weight: 900; color: #44586A; margin: 6px 0 10px; }
.set-was { color: #8C98A2; font-weight: 600; font-size: 14px; text-decoration: line-through; text-decoration-color: #D0453A; text-decoration-thickness: 2px; }   /* 09-28 대표: 원래 가격에 빨간 줄 */
.set-note { font-size: 13.5px; color: #6B7A86; margin: 4px 0 0; }
.set-buy-btn { width: 100%; }
.set-card .set-thumbs { position: relative; display: flex; justify-content: center; gap: 0; padding: 10px 0 0; }
.set-card .set-thumbs img { width: 48%; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.set-card .set-thumbs img + img { margin-left: -12%; transform: translateY(8px); }
.set-card .set-thumbs .set-badge { position: absolute; top: 4px; left: 6px; }
.product-price .set-was { margin-right: 6px; }

/* 시리즈별 묶음 (2026-09-27) */
.series-sub { margin: -10px 0 16px; font-size: 14px; color: var(--ink-soft); }
.series-sub:empty { display: none; }

.set-items li { flex-wrap: wrap; align-items: center; }
.set-items .add-on-btn { flex-basis: 100%; margin-top: 6px; padding: 7px 12px; font-size: 13.5px; }
.set-owned { color: #2E9E80; font-size: 12.5px; font-weight: 800; }

/* 무료 미리보기 상자 — 유료판 상세 안 (2026-09-27) */
.sample-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #FFF7DD; border: 1.5px solid #EBCB72; border-radius: 12px; }
.sample-box strong { font-size: 14.5px; color: #7A5A12; }
.sample-box p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.sample-box button { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .sample-box { flex-direction: column; align-items: stretch; } }

/* ===== 시리즈 상품 · 내 교재 (2026-09-27 대표 인터뷰) ===== */
.series-level { align-self: flex-start; width: fit-content; display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--coral-dark); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.series-card-sub { font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; line-height: 1.45; }
.usd { color: #7C8A95; font-weight: 700; font-size: 12.5px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 12px; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.opt.on { border-color: var(--coral); background: #EEF2F5; }
.opt.off { opacity: .5; cursor: not-allowed; }
.opt input { margin: 0; accent-color: var(--coral); }
.opt-name { font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.opt-name .set-badge { margin-left: 4px; vertical-align: 1px; }
.opt-inc { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.opt-price { text-align: right; font-weight: 900; color: var(--coral-dark); white-space: nowrap; }
.opt-price .usd { display: block; }
.sample-btns { display: flex; flex-direction: column; gap: 6px; width: 290px; flex: none; }
.sample-btns button { width: 100%; text-align: center; }
@media (max-width: 640px) { .sample-btns { width: 100%; } }
.mine-link { text-align: right; margin: -6px 0 -18px; }
.mine-link a { font-weight: 800; color: var(--coral-dark); text-decoration: none; }
.mine-title { margin: 6px 0 4px; }
.mine-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mine-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.mine-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.mine-info b { font-size: 14.5px; }
.mine-info small { display: block; color: var(--ink-soft); margin-top: 2px; }
.mine-new { background: #C97A5E; color: #fff; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 1px 8px; }
@media (max-width: 640px) { .opt { grid-template-columns: 20px 1fr; } .opt-price { grid-column: 2; text-align: left; } }

/* 상품 화면: 큰 표지 아래 "+ 단어장" 작은 표지 (2026-09-27) */
.series-thumbs { flex: 0 0 auto; width: 220px; }
.series-thumbs .product-thumb-wrap { width: 220px; border-radius: 16px; overflow: hidden; }
.series-thumbs .product-image { width: 220px; border-radius: 16px; display: block; }
.plus-words { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.plus-words .plus { font-size: 26px; font-weight: 900; color: var(--coral-dark); line-height: 1; }
.plus-words img { width: 84px; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.plus-words small { font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 640px) { .series-thumbs, .series-thumbs .product-thumb-wrap, .series-thumbs .product-image { width: 100%; } }

/* 시리즈 자세한 설명 (2026-09-27) */
.sd { margin-top: 28px; display: flex; flex-direction: column; gap: 26px; }
.sd h3 { margin: 0 0 10px; font-size: 17px; }
.sd-who { margin: 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-who li { background: #EEF2F5; border: 1.5px solid #C9D6E0; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.sd-who li::before { content: '✓ '; color: var(--coral-dark); }
.sd-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sd-feat { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sd-feat b { font-size: 15px; }
.sd-feat p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.sd-no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 1px; }
.sd-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sd-page { text-decoration: none; color: inherit; }
.sd-page img { width: 100%; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: block; aspect-ratio: 210 / 297; object-fit: cover; background: #fff; }
.sd-page span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }
.sd-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-flow: column; gap: 6px 14px; }   /* 09-28 대표: 왼쪽 세로로 쭉 → 오른쪽, 반반 */
.sd-toc li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sd-toc .n { font-weight: 900; color: var(--ink-soft); }
.sd-toc .tt small { color: var(--ink-soft); font-weight: 600; }
.sd-toc .st { font-size: 11.5px; font-weight: 800; color: #8C98A2; white-space: nowrap; }
.sd-toc li.open .n, .sd-toc li.open .st { color: #2E9E80; }
.sd-toc li.open .tt { font-weight: 800; }
.sd-now ul { margin: 0; padding-left: 20px; }
.sd-now li { font-size: 14px; line-height: 1.6; }
.sd-now { background: #F1FAF6; border: 1.5px solid #BFE3D4; border-radius: 14px; padding: 14px 18px; }
@media (max-width: 640px) { .sd-feats, .sd-toc { grid-template-columns: 1fr; } .sd-toc { grid-template-rows: none; grid-auto-flow: row; } .sd-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 세트 표지: 한 칸 안에 본책(왼쪽 위) + 단어장(오른쪽 아래) 겹침 (2026-09-27) */
.set-combo { position: relative; width: 220px; aspect-ratio: 957 / 1400; border-radius: 16px; background: #EFE7DA; overflow: hidden; }
.set-combo img { position: absolute; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.22); border: 3px solid #fff; }
.set-combo .sc-main { left: 6px; top: 6px; width: 66%; }
.set-combo .sc-add1 { right: 6px; bottom: 6px; width: 58%; }
.set-combo.n3 .sc-main { width: 58%; }
.set-combo.n3 .sc-add1 { right: 6px; top: 30%; bottom: auto; width: 50%; }
.set-combo.n3 .sc-add2 { left: 22%; bottom: 6px; width: 50%; }
.set-combo .sc-plus { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; font: 900 28px/40px "Nunito", sans-serif; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.set-combo.n3 .sc-plus { left: 46%; top: 52%; }
@media (max-width: 640px) { .set-combo { width: 100%; } }

/* 세트 표지 2차 (2026-09-27): 본책 목업 그대로 + 오른쪽 아래에 평면 표지 작게 */
.set-over { position: relative; }
.so-adds { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; }
.so-adds img { width: 74px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.35); border: 2px solid #fff; }
.so-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font: 900 22px/30px "Nunito", sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* 토픽 탭 (2026-09-27) */
.series-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 2px; }
.stab { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: 14px; cursor: pointer; }
.stab.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.stab:disabled { opacity: .5; cursor: not-allowed; }
.stab small { font-weight: 700; font-size: 11px; }

/* 무료 받기 버튼 (2026-09-27 대표: "무료 버튼 크기 동일하게 좌우 맞추고, 결제 버튼과 다른 색") — 버터 옐로 + 진한 글자 */
button.free-btn { background: #F3D68A; color: #2F3B45; border: 2px solid #E0BE5E; }
button.free-btn:hover { background: #EBCB72; }
.sample-box button.secondary { border-color: #E0BE5E; }

/* 교재 탭 반 뱃지 (09-27) — 표지 좌상단, 수업 소개의 반 이름과 같게. 반마다 교재 색 */
.class-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 8px rgba(47, 59, 69, .22); }
.class-badge.cb-beg { background: #F3D68A; color: #2F3B45; }   /* 초급 표지 제목색 */
.class-badge.cb-mid { background: #F4EBDD; color: #2F3B45; }   /* 09-27 대표: "회화반만 블루그레이 — 교재 제목 색으로" → 중급 표지 제목색(아이보리). 세 뱃지 = 각 표지 제목색 + 진한 글자 */
.class-badge.cb-topik { background: #E29A7E; color: #2F3B45; }   /* 토픽 표지 제목색 */
.series-thumbs .class-badge { font-size: 14px; padding: 6px 14px; }

/* 시리즈 상품 화면: 결제 버튼·무료 목록을 옵션 목록과 같은 너비로 (09-27 대표: "처음과 끝이 안 맞아") */
.series-purchase { align-self: stretch; align-items: stretch; text-align: left; margin-top: 0; }
.series-purchase .actions { align-items: stretch; }
.series-purchase .actions button { width: 100%; padding: 14px 22px; font-size: 15px; }
/* 무료로 먼저 보기 — 옵션 카드와 같은 칸 모양 (아이콘 · 이름/설명 · 버튼) */
.free-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1.5px dashed var(--line); }
.free-head { display: flex; align-items: center; gap: 8px; }
.free-head b { font-size: 15px; }
.free-head small { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.free-tag { background: #F3D68A; color: #2F3B45; font-size: 11px; font-weight: 900; letter-spacing: .06em; border-radius: 6px; padding: 2px 7px; }
.free-row { display: grid; grid-template-columns: 36px 1fr 128px; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.fr-ico { width: 36px; height: 36px; border-radius: 10px; background: #FFF7DD; display: flex; align-items: center; justify-content: center; }
.fr-ico svg { fill: none; stroke: #B8862A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fr-txt b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.fr-txt small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-top: 1px; }
.free-row .fr-btn { width: 100%; padding: 9px 10px; font-size: 13px; white-space: nowrap; text-align: center; }
@media (max-width: 560px) { .free-row { grid-template-columns: 32px 1fr 104px; gap: 10px; } }

/* 수업 소개 반별 교재 (09-27 → 09-28 대표: "교재 들어간 아이디어는 좋은데 깔끔하지 않아 — 인터페이스 더 깔끔하게") — 왼쪽 표지 칸 · 오른쪽 내용, 모든 반 같은 모양 */
.course-detail.cd2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; }
.cd2 .cd-side { position: static; }   /* 09-28 대표: "책이 스크롤 내리면 움직여" → 따라다니지 않게 고정 해제 */
.cd2 .cd-cover { display: block; text-decoration: none; }
.cd2 .cd-cover img, .cd2 .cd-cover svg { display: block; width: 100%; aspect-ratio: 456 / 644; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 18px rgba(47, 59, 69, .2); transition: transform .15s; }
.cd2 a.cd-cover:hover img { transform: translateY(-3px); }
.cd2 .cd-ill svg { box-shadow: none; background: #EEF2F5; }
.cd2 .cd-book { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 800; line-height: 1.3; color: var(--ink-soft); text-align: center; }
.cd2 .cd-body h4 { margin-top: 2px; }
.course-detail.cd2.disabled .cd-side { opacity: .55; }
@media (max-width: 560px) { .course-detail.cd2 { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } .cd2 .cd-book { font-size: 10.5px; } }
.made-books { margin: 14px 0 6px; }
.made-books .mb-h { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.made-books .mb-row { display: flex; gap: 10px; justify-content: center; }
.made-books .mb-row a { width: 78px; border-radius: 7px; overflow: hidden; box-shadow: 0 6px 14px rgba(47, 59, 69, .22); transition: transform .15s; }
.made-books .mb-row a:hover { transform: translateY(-2px); }
.made-books .mb-row img { display: block; width: 100%; height: auto; }

/* 장바구니 (09-28) */
header.nav .nav-cart { position: relative; font-weight: 700; text-decoration: none; }
header.nav .nav-cart .cart-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: #C97A5E; color: #FFF9EC; font-size: 11px; font-weight: 900; text-align: center; vertical-align: 1px; }
.series-purchase .actions .cart-add-btn { width: 100%; }
a.cart-add-btn.in { display: block; text-align: center; padding: 12px 18px; border-radius: 999px; border: 2px dashed #A9B8C4; color: #44586A; font-weight: 800; text-decoration: none; }
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cart-row { display: grid; grid-template-columns: 56px 1fr auto 32px; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.cart-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-info b { font-size: 14.5px; }
.cart-info small { display: block; color: var(--ink-soft); margin-top: 2px; font-size: 12px; }
.cart-price { text-align: right; font-weight: 900; color: var(--coral-dark); white-space: nowrap; }
.cart-price .usd { display: block; }
.cart-remove { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); border: 2px solid var(--line); font-size: 13px; }
.cart-remove:hover { background: #FBE8E2; color: var(--error-ink); border-color: #F2C4B6; transform: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 12px 4px 0; border-top: 2px solid var(--line); font-weight: 800; }
.cart-total .cart-sum { font-size: 20px; font-weight: 900; color: var(--coral-dark); }
.cart-pay { margin-top: 12px; }
.cart-pay-btn { width: 100%; padding: 14px 22px; font-size: 15px; }
.cart-notes { margin-top: 10px; background: #FFF7DD; border: 1.5px solid #EBCB72; border-radius: 12px; padding: 8px 14px; font-size: 13px; }
.cart-notes p { margin: 3px 0; }
.cart-empty { margin-top: 18px; text-align: center; color: var(--ink-soft); }
@media (max-width: 560px) { .cart-row { grid-template-columns: 48px 1fr 28px; } .cart-row img { width: 48px; height: 48px; } .cart-price { grid-column: 2; text-align: left; } .cart-remove { grid-row: 1; grid-column: 3; } }

/* 09-28 강조 색 (대표: "블루그레이로 바뀌면서 말 강조하는 포인트 색이 눈에 잘 안 들어와") — 글 속 굵은 말·글 속 링크·홈 큰 제목 */
main p strong, main li strong, main p b:not([class]), .card p strong { color: var(--point); }
main p a:not([class]), main li a:not([class]) { color: var(--point); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hero-banner h1 .hl { color: var(--sun); }
/* 09-28 대표: "한국어·일본어 제목이 왼쪽이라 밑 설명과 정렬이 안 맞아 → 중앙으로" */
.course-lang { display: table; margin: 0 auto 22px; padding: 9px 28px; border-radius: 999px; font-size: 21px; font-weight: 900; letter-spacing: .02em; color: #FFF9EC; background: var(--coral); box-shadow: 0 4px 0 rgba(47, 59, 69, .18); }
/* 09-28 대표: "한국어·일본어 좀 더 강조 — 뱃지도 괜찮고 최적의 방법으로" → 가운데 큰 알약 배지. 한국어 = 블루그레이(한국어 교재 색) · 일본어 = 테라코타(포인트 색) */
.course-lang.ja { background: var(--coral); }   /* 09-28 대표: "일본어도 똑같은 뱃지 색깔로 우선" */

/* 09-28 토픽 급수 단계 선택 (3·4급 All in One / 5·6급 준비 중) */
.band-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.band { width: 100%; margin: 0; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.band b { font-size: 16px; font-weight: 900; }
.band small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.band.on { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.band.on small { color: var(--coral); }
.band-soon { margin-top: 12px; border: 2px dashed var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.band-soon b { font-size: 16px; }
.band-soon p { margin: 6px 0 8px; color: var(--ink-soft); font-size: 14px; }
.band-soon ul { margin: 0 0 12px 18px; font-size: 14px; line-height: 1.7; }
.band-back { border: 0; background: var(--coral); color: #fff; font-weight: 800; border-radius: 999px; padding: 9px 16px; cursor: pointer; }

/* ===== 모바일 메뉴 (10-03 대표: "모바일에서 메뉴탭이 선으로 돼 있는 게 구려 — 세련되게") =====
   PC는 그대로. 640px 이하: 로고 + 장바구니 + ☰ 한 줄 → 누르면 오른쪽에서 서랍 메뉴 (아이콘 · 지금 페이지 블루그레이 · 언어 · 로그인) */
.m-menu-btn, .m-backdrop, .m-drawer { display: none; }
@media (max-width: 640px) {
  header.nav { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; border-bottom-width: 2px; }
  header.nav .nav-toolbar, header.nav > nav { display: none; }
  header.nav .nav-brand-row { flex: 1; flex-wrap: nowrap; margin: 0; min-width: 0; }
  header.nav .logo img { height: 34px; }
  header.nav .nav-auth > :not(.nav-cart) { display: none; }
  header.nav .nav-cart { width: 44px; height: 44px; border-radius: 14px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 19px; }
  header.nav .nav-cart [data-i18n] { display: none; }
  header.nav .nav-cart .cart-count { position: absolute; top: -4px; right: -4px; }

  .m-menu-btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; flex: none; padding: 0; border: none; border-radius: 14px; background: var(--coral); cursor: pointer; }
  .m-menu-btn span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #FFF9EC; transition: transform .25s ease, opacity .2s ease; }
  header.nav.m-open .m-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav.m-open .m-menu-btn span:nth-child(2) { opacity: 0; }
  header.nav.m-open .m-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .m-backdrop { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(47, 59, 69, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
  header.nav.m-open .m-backdrop { opacity: 1; pointer-events: auto; }
  .m-drawer { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101; width: min(86vw, 340px); padding: 16px 16px 22px; overflow-y: auto; background: var(--card); border-radius: 24px 0 0 24px; box-shadow: -14px 0 44px rgba(47, 59, 69, .2); transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  header.nav.m-open .m-drawer { transform: none; }
  .m-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  header.nav .m-drawer-logo { padding: 0; }
  .m-drawer-logo img { height: 30px; display: block; }
  .m-close { width: 40px; height: 40px; padding: 0; border: none; border-radius: 12px; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .m-close svg { width: 20px; height: 20px; }
  .m-hello { margin: 0 6px 10px; font-size: 13px; font-weight: 800; color: var(--ink-soft); }

  .m-links { display: flex; flex-direction: column; gap: 4px; }
  header.nav .m-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; font-size: 15.5px; font-weight: 800; color: var(--ink); white-space: normal; }
  header.nav .m-links a:active { background: #E6EDF2; }
  .m-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--cream); color: var(--coral-dark); display: flex; align-items: center; justify-content: center; }
  .m-ic svg { width: 20px; height: 20px; }
  .m-chev { width: 16px; height: 16px; margin-left: auto; color: var(--ink-soft); opacity: .45; }
  header.nav .m-links a.on { background: var(--coral); color: #FFF9EC; box-shadow: 0 6px 16px rgba(68, 88, 106, .25); }
  header.nav .m-links a.on .m-ic { background: rgba(255, 249, 236, .16); color: #FFF9EC; }
  header.nav .m-links a.on .m-chev { color: #FFF9EC; opacity: .8; }
  header.nav.m-open .m-links a { animation: mIn .38s cubic-bezier(.2, .8, .2, 1) both; }
  header.nav.m-open .m-links a:nth-child(2) { animation-delay: .03s; } header.nav.m-open .m-links a:nth-child(3) { animation-delay: .06s; }
  header.nav.m-open .m-links a:nth-child(4) { animation-delay: .09s; } header.nav.m-open .m-links a:nth-child(5) { animation-delay: .12s; }
  header.nav.m-open .m-links a:nth-child(6) { animation-delay: .15s; } header.nav.m-open .m-links a:nth-child(7) { animation-delay: .18s; }
  header.nav.m-open .m-links a:nth-child(8) { animation-delay: .21s; } header.nav.m-open .m-links a:nth-child(9) { animation-delay: .24s; }

  .m-account { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 18px; }
  header.nav .m-acc-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 10px; border-radius: 14px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 800; }
  header.nav .m-acc-btn.primary { background: var(--point); color: #FFF9EC; }
  .m-account .m-acc-btn:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .m-account .cart-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: #C97A5E; color: #FFF9EC; font-size: 11px; font-weight: 900; text-align: center; }
  .m-lang { align-self: center; margin-top: auto; padding: 4px; }
  .m-lang button { padding: 7px 14px; font-size: 13px; }
  header.nav .m-withdraw { align-self: center; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
  body.m-lock { overflow: hidden; }
}
@keyframes mIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .m-drawer, .m-backdrop, .m-menu-btn span { transition: none; } header.nav.m-open .m-links a { animation: none; } }

/* 10-03 토픽 All in One 포함 책 두 줄 (읽기+단어장 / 듣기+쓰기) */
.opt-inc .inc-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-name { min-width: 0; }
.opt-inc.inc-wrap .inc-line { white-space: normal; }
.opt-name .opt-inc { display: block; max-width: 100%; }

/* 10-03 중급 판 고르기 — 누르면 아래로 부드럽게 펼쳐지는 목록 */
.edition-pick { display: block; margin: 12px 0 10px; }   /* 10-03 대표: 밑의 옵션 상자와 좌우 폭 맞춤 → 글씨는 위, 목록은 전체 폭 */
.ed-label { display: block; margin: 0 0 6px 2px; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.ed-dd { position: relative; width: 100%; }
.ed-btn, .ed-opt { width: 100%; margin: 0; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.ed-btn { padding: 10px 12px; border: 2px solid var(--coral); border-radius: 12px; background: var(--card); transition: box-shadow .2s ease, border-radius .2s ease; }
.ed-btn, .ed-btn:hover, .ed-btn:focus, .ed-btn:active { background: var(--card); color: var(--ink); }
.ed-btn:hover { box-shadow: 0 4px 14px rgba(68, 88, 106, .14); }
.ed-opt:hover, .ed-opt:focus, .ed-opt:active { color: var(--ink); }
.ed-flag { flex: none; width: 20px; text-align: center; font-size: 18px; line-height: 1; }   /* 밑 옵션의 동그라미 칸(20px)과 같은 세로줄 */
.ed-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ed-txt b { font-size: 14.5px; font-weight: 800; }
.ed-txt small { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.ed-chev { flex: none; width: 18px; height: 18px; color: var(--coral); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.ed-dd.open .ed-chev { transform: rotate(180deg); }
.ed-dd.open .ed-btn { border-radius: 12px 12px 0 0; box-shadow: 0 6px 18px rgba(68, 88, 106, .16); }
.ed-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; overflow: hidden; background: var(--card); border: 2px solid var(--coral); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 14px 28px rgba(47, 59, 69, .16);
  max-height: 0; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: max-height .32s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.ed-dd:not(.open) .ed-menu { border-width: 0; }
.ed-dd.open .ed-menu { max-height: 260px; opacity: 1; transform: none; pointer-events: auto; }
.ed-opt { padding: 11px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; transition: background .15s ease; }
.ed-opt:hover { background: #EEF2F5; }
.ed-opt.on { background: #EEF2F5; }
.ed-check { flex: none; font-weight: 900; color: var(--coral); }
@media (prefers-reduced-motion: reduce) { .ed-menu, .ed-chev { transition: none; } }
.ja-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: #BC002D; color: #fff; font-size: 13px; font-weight: 800; }
.ja-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ja-actions > * { width: auto; margin: 0; }

/* ===== 10-04 카카오 로그인 · 공유 · 지도 (카카오 디자인 가이드: 버튼 #FEE500 · 검은 말풍선) ===== */
.btn-kakao { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #FEE500; color: rgba(0,0,0,.85); font-weight: 800; font-size: 15.5px; border-radius: 12px; padding: 12px 16px; text-decoration: none; }
.btn-kakao:hover { filter: brightness(.97); }
.kakao-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; color: var(--ink-soft); font-size: 13px; }
.kakao-or::before, .kakao-or::after { content: ""; flex: 1; border-top: 1px solid #E3DCCF; }
.kakao-share-slot { display: flex; justify-content: center; margin: -6px 0 18px; }
.btn-kakao-share { display: inline-flex; align-items: center; gap: 7px; background: #FEE500; color: rgba(0,0,0,.85); border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 14px; cursor: pointer; width: auto; }
.btn-kakao-share svg { width: 18px; height: 18px; }
.kakao-map-box { margin: 14px 0 6px; }
.kakao-map { width: 100%; height: 200px; border-radius: 14px; overflow: hidden; border: 1px solid #E3DCCF; }
.kakao-map-cap { font-size: 13px; color: var(--ink-soft); margin: 6px 0 14px; }
.btn-naver-map { display: inline-block; margin-left: 6px; background: #03C75A; color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 3px 12px; text-decoration: none; white-space: nowrap; }
.btn-naver-map:hover { filter: brightness(.95); }

/* ===== 10-04 무료 TOPIK 4급 요점 (일본어판) 전용 페이지 ===== */
.free-banner { display: block; text-align: center; background: #F3D68A; color: #2F3B45; font-weight: 800; border-radius: 14px; padding: 12px 16px; margin: 0 0 22px; text-decoration: none; }
.free-banner:hover { filter: brightness(.97); }
.free-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.free-hero img { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(47,59,69,.22); display: block; }
.free-kicker { display: inline-block; background: #F3D68A; color: #2F3B45; font-weight: 800; border-radius: 999px; padding: 5px 16px; font-size: 14px; }
.free-hero h1 { margin: 12px 0 4px; font-size: 28px; line-height: 1.3; }
.free-edition { color: var(--coral-dark); font-weight: 800; font-size: 14px; margin: 0 0 10px; }
.free-hero .free-list { list-style: none; padding: 0; margin: 14px 0 18px; border-top: 0; display: block; }
.free-hero .free-list li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed #E3DCCF; font-size: 15px; }
.free-hero .free-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--coral); font-weight: 900; }
.free-btn { width: 100%; max-width: 360px; font-size: 17px; padding: 14px 18px; }
.free-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
.free-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.free-previews img { width: 100%; border-radius: 8px; border: 1px solid #E3DCCF; display: block; }
.free-lesson { display: block; text-align: center; margin-top: 22px; font-weight: 800; color: var(--coral-dark); }
@media (max-width: 680px) { .free-hero { grid-template-columns: 1fr; gap: 16px; } .free-hero h1 { font-size: 24px; } .free-hero img { max-width: 170px; margin: 0 auto; } .free-previews { grid-template-columns: repeat(2, 1fr); } .free-btn { max-width: none; } }

/* 10-04 교재 페이지 무료 배너: 일본어 화면 → TOPIK 4급 요약(일본어판) · 그 외 → 초급 1장 */
html[lang="ja"] .free-banner.b-day1, html:not([lang="ja"]) .free-banner.b-topik4 { display: none; }
.free-lesson + .free-lesson { margin-top: 6px; }

/* 10-05 무료 교재 모음 (free.html) — 대표: "조잡하다 · 다운 받을 때 편하게 · 표지 통일 · 토픽 4급 일본인 요약은 특별판으로 따로"
   이름은 fh- 로만 (교재 페이지의 .free-row · .free-list와 겹치지 않게 — 6-172 교훈)
   한 가지 카드 모양: 표지(PDF 첫 장, A4 비율) · 이름 · 쪽수/해설 언어 · 버튼 — 모든 카드 같은 크기, 버튼은 맨 아래 같은 자리 */
.fh-main { max-width: 960px; }
.fh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding-left: 28px; }
.fh-tab { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; }
.fh-tab small { margin-left: 6px; font-size: 11.5px; color: var(--ink-soft); font-weight: 800; }
.fh-tab.on { background: #2F3B45; border-color: #2F3B45; color: #fff; }
.fh-tab.on small { color: #F3D68A; }
.fh-tab.sp { border-color: #E29A7E; color: #9A4A30; }
.fh-tab.sp.on { background: #E29A7E; border-color: #E29A7E; color: #2F3B45; }
.fh-tab.sp.on small { color: #2F3B45; }
/* TOPIK 안 작은 탭 (읽기 · 듣기 · 쓰기 · 단어장) */
.fh-soon { margin: 18px 10px; padding: 18px 20px; border: 2px dashed #E29A7E; border-radius: 14px; color: #9A4A30; font-weight: 800; }
.fh-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0 10px; }
.fh-subtab { padding: 6px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font-weight: 800; font-size: 13px; cursor: pointer; }
.fh-subtab small { margin-left: 5px; font-size: 11px; color: var(--ink-soft); }
.fh-subtab.on { background: #F3D68A; border-color: #E0BE5E; color: #2F3B45; }
/* 카드 줄: 옆으로 밀어서 넘김 (스크롤 막대는 숨기고 화살표로) */
.fh-strip-wrap { position: relative; }
.fh-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 10px; scrollbar-width: none; }
.fh-strip::-webkit-scrollbar { display: none; }
.fh-strip .fh-item { flex: 0 0 200px; scroll-snap-align: start; }
.fh-arrow { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: #2F3B45; font-size: 24px; line-height: 1; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(47,59,69,.18); }
.fh-arrow.prev { left: -14px; } .fh-arrow.next { right: -14px; }
.fh-arrow[hidden] { display: none; }
.fh-sec { margin: 0 0 30px; padding: 0 18px; }   /* 모든 묶음 같은 안쪽 여백 → 특별판 카드도 같은 폭 */
.fh-sec-head { padding: 0 10px; margin-bottom: 12px; }
.fh-sec-head h2 { margin: 0; font-size: 20px; }
.fh-sec-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.fh-item { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px; }
.fh-cover { width: 100%; aspect-ratio: 420 / 595; object-fit: cover; border-radius: 8px; background: #EFE7DA; box-shadow: 0 6px 16px rgba(47,59,69,.15); display: block; }
.fh-name { margin-top: 10px; font-size: 14px; line-height: 1.35; min-height: 2.7em; }
.fh-part { margin-top: 3px; font-size: 13px; font-weight: 800; color: var(--coral-dark); }
.fh-meta { margin-top: 1px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.fh-btn { display: block; width: 100%; height: 42px; margin: 10px 0 0; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap; background: #F3D68A; color: #2F3B45; border: 2px solid #E0BE5E; cursor: pointer; }
.fh-btn:hover { background: #EBCB72; }
.fh-msg { min-height: 0; margin: 4px 0 0; font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.fh-msg:empty { display: none; }
.fh-more { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--coral-dark); text-align: center; }
/* 특별판: 시리즈와 따로 — 테라코타 테두리 상자 */
.fh-special { background: #FFF4EE; border: 2px solid #E29A7E; border-radius: 18px; padding: 18px 16px 20px; }
.fh-special .fh-sec-head h2 { color: #9A4A30; }

@media (max-width: 620px) { .fh-strip .fh-item { flex-basis: 41vw; padding: 10px; } .fh-arrow { display: none; } .fh-tabs { padding: 0 4px; } .fh-tab { padding: 7px 12px; font-size: 13px; } .fh-name { font-size: 13.5px; } .fh-sec { padding: 0 4px; } .fh-special { padding: 14px 2px 16px; } .fh-sec-head { padding: 0 4px; } }

/* 10-05 릴스 → 학생까지 길: 로그인 ↔ 가입 링크 · 가입 선택 칸 접기 · 무료 받은 뒤 다음 단계 링크 */
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.auth-switch a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.signup-more { margin: 4px 0 14px; border: 1px dashed var(--line, #ddd); border-radius: 12px; padding: 10px 14px; }
.signup-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.signup-more[open] summary { margin-bottom: 10px; }
.fh-msg a, #free-msg a, #free-msg-mid a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ===== 마이페이지 (10-08) ===== */
.mypage .mp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.mp-tab { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; }
.mp-tab.on { background: #2F3B45; border-color: #2F3B45; color: #fff; }
.mypage .card h3 { margin-top: 0; }
.mp-note { color: var(--ink-soft); font-size: 14px; margin: 4px 0 10px; }
.mp-book-name { font-weight: 800; margin: 14px 0 6px; }
.mp-lessons { display: grid; gap: 8px; }
.mp-lesson { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.mp-lesson a { margin-left: auto; font-weight: 800; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.mp-withdraw { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.m-hello a { color: inherit; text-decoration: none; }

/* 아이디 · 비밀번호 찾기 (10-08) — 코드 넣는 칸은 코드를 보낸 뒤에만 */
#reset-form[hidden] { display: none; }
#reset-form .secondary { margin-left: 8px; }

#signup-banner[hidden] { display: none; }

/* 11-05 와이즈 계좌이체 문의 */
.wise-pay-link { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #44586A; text-decoration: none; }
.wise-pay-link[hidden], .wise-note[hidden] { display: none; }
.wise-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #F6F1E7; font-size: 14px; line-height: 1.6; }

/* ===== 강사 주간 시간표 (11-16 · 요일 × 시간 드래그) ===== */
.wk-modes { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
.wk-mode { background: transparent; color: inherit; border: 1.5px solid #cfd6dd; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.wk-mode.active { background: #2f3b45; color: #fff; border-color: #2f3b45; }
.wk-help { font-size: 13.5px; color: #5b6670; margin: 4px 0 10px; line-height: 1.55; }
.wk-nav[hidden] { display: none; }
.wk-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.wk-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-grid { display: grid; grid-template-columns: 54px repeat(7, minmax(42px, 1fr)); min-width: 360px; user-select: none; -webkit-user-select: none; touch-action: none; border: 1px solid #e3e7eb; border-radius: 10px; overflow: hidden; }
.wk-c { border-right: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; }
.wk-corner, .wk-day { background: #f6f8fa; }
.wk-day { text-align: center; font-weight: 800; font-size: 13.5px; padding: 6px 0; line-height: 1.2; }
.wk-day small { display: block; font-weight: 600; font-size: 11px; color: #7b8794; }
.wk-day.wkend { color: #c0504d; }
.wk-time { font-size: 11.5px; color: #7b8794; text-align: right; padding: 0 6px; height: 22px; line-height: 22px; background: #fbfcfd; }
.wk-cell { height: 22px; cursor: pointer; font-size: 10.5px; font-weight: 800; text-align: center; line-height: 22px; color: #fff; }
.wk-cell:hover { background: #eef6ef; }
.wk-cell.open { background: #4caf7a; }
.wk-cell.open:hover { background: #3f9a6a; }
.wk-cell.busy { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 4px, transparent 4px 8px); }
.wk-cell.booked { background: #3b6fb6; cursor: not-allowed; }
.wk-cell.past { background-color: #f1f2f4; cursor: not-allowed; opacity: .6; }
.wk-cell.past.open { background-color: #b9d8c6; }
.wk-cell.changed { box-shadow: inset 0 0 0 2px #f2a93b; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #5b6670; margin-top: 8px; }
.wk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wk-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.wk-sw.open { background: #4caf7a; } .wk-sw.booked { background: #3b6fb6; }
.wk-sw.busy { background: #ddd repeating-linear-gradient(45deg, rgba(0,0,0,.18) 0 3px, transparent 3px 6px); }
.wk-sw.changed { box-shadow: inset 0 0 0 2px #f2a93b; background: #fff; }
@media (max-width: 480px) {
  .wk-grid { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); min-width: 0; }
  .wk-time { font-size: 10px; padding: 0 3px; }
  .wk-day { font-size: 12.5px; }
}
/* 11-16 프레플리 캘린더 참고: 수업 종류 색 · 휴무 · 오늘 · 목록 */
.wk-today { padding: 6px 12px; font-size: 13px; }
.wk-cell.booked.t-first { background: #2f7d5b; } .wk-cell.booked.t-single { background: #3b6fb6; } .wk-cell.booked.t-weekly { background: #c2417a; }
.wk-cell.booked { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 2px; }
.wk-cell.off:not(.booked) { background-color: #efe3d3; background-image: repeating-linear-gradient(135deg, rgba(139,94,60,.18) 0 4px, transparent 4px 8px); cursor: not-allowed; }
.wk-day.dayoff { background: #efe3d3; } .wk-day em { display: block; font-style: normal; font-size: 10.5px; color: #8b5e3c; }
.wk-sw.first { background: #2f7d5b; } .wk-sw.single { background: #3b6fb6; } .wk-sw.weekly { background: #c2417a; }
.wk-sw.off { background: #efe3d3 repeating-linear-gradient(135deg, rgba(139,94,60,.3) 0 3px, transparent 3px 6px); }
.wk-off { background: #fbf6ee; border: 1px solid #e8dcc8; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; }
.wk-off-help { color: #6b7a86; font-size: 12.5px; }
.wk-off-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.wk-off-row input[type=date] { max-width: 150px; } .wk-off-row input[type=text] { flex: 1; min-width: 120px; }
.wk-off-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-top: 1px dashed #e3dccf; }
.wk-off-item button { padding: 3px 10px; font-size: 12px; } .wk-off-empty { color: #8a8f96; font-size: 13px; padding: 4px 0; }
.wk-agenda { display: flex; flex-direction: column; gap: 10px; }
.ag-day { border: 1px solid #e3e7eb; border-radius: 10px; overflow: hidden; }
.ag-date { background: #f6f8fa; font-weight: 800; padding: 6px 12px; font-size: 13.5px; } .ag-date em { font-style: normal; color: #8b5e3c; font-size: 12px; margin-left: 6px; }
.ag-item { display: flex; gap: 12px; align-items: center; padding: 7px 12px; border-top: 1px solid #eef1f4; border-left: 5px solid #3b6fb6; font-size: 14px; }
.ag-item.t-first { border-left-color: #2f7d5b; } .ag-item.t-weekly { border-left-color: #c2417a; }
.ag-item i { margin-left: auto; font-style: normal; font-size: 12px; color: #6b7a86; }
/* 11-16 프레플리 Availability 참고: 이어진 칸 덩어리 이름 · 예약 규칙 (인기 시간 · 새벽 경고는 대표 수업 방식에 안 맞아 뺌) */
.wk-cell.open.runstart { font-size: 10px; font-weight: 800; color: #fff; text-align: left; padding-left: 4px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rules-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; margin: 0; }
.rules-note { font-size: 12.5px; color: #6b7a86; margin: 8px 0 10px; }
@media (max-width: 600px) { .rules-grid { grid-template-columns: 1fr; } }
/* 11-16 대표 "강사 설정 화면에 꽉 찼으면 — 프레플리처럼, 너무 좁다" → 강사 설정만 넓게 · 주간 시간표 칸 크게 */
main.admin-wide { max-width: min(1500px, 100%); }
main.admin-wide .admin-panel:not([data-panel="schedule"]) .card,
main.admin-wide .admin-panel[data-panel="schedule"] .card:not(#wk-card) { max-width: 900px; }
#wk-card { padding: 24px 28px; }
#wk-card .wk-grid { grid-template-columns: 64px repeat(7, minmax(84px, 1fr)); }
#wk-card .wk-day { font-size: 15px; padding: 10px 0; }
#wk-card .wk-time { height: 32px; line-height: 32px; font-size: 12.5px; }
#wk-card .wk-cell { height: 32px; line-height: 32px; font-size: 12px; }
#wk-card .wk-cell.open.runstart { font-size: 12px; padding-left: 8px; }
@media (max-width: 480px) {
  #wk-card { padding: 16px 12px; }
  #wk-card .wk-grid { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
  #wk-card .wk-time, #wk-card .wk-cell { height: 24px; line-height: 24px; }
}

/* 11-16 홈 화면 앱 안내 */
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(47,59,69,.22); }
.app-banner img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.app-banner .ab-t { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; flex: 1; min-width: 0; }
.app-banner .ab-t b { font-size: 14px; }
.app-banner .ab-t span { color: var(--ink-soft); }
.app-banner button { width: auto; padding: 8px 12px; font-size: 13px; flex: none; }
.app-banner .ab-x { background: transparent; color: var(--ink-soft); box-shadow: none; padding: 8px 6px; }
@media (display-mode: standalone) { .app-banner { display: none; } }

/* ===== 11-16 대표 "강사 설정처럼 다른 탭도 웹 화면에서는 넓게" — 넓은 화면(1100px↑)에서만 · 휴대폰은 그대로 ===== */
@media (min-width: 1100px) {
  main:not(.narrow):not(.policy-page):not(.admin-wide):not(.mypage) { max-width: 1180px; }
  /* 강사 소개: 두 강사를 나란히 */
  main.page-instructors { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  main.page-instructors > :not(.instructor-card) { grid-column: 1 / -1; }
  /* 수업 소개: 언어마다 수업을 2열로 */
  main.page-courses .card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  main.page-courses .card > :not(.course-detail) { grid-column: 1 / -1; }
  /* 학원 소개: 글 카드를 2열로 (그림은 한 줄 전체) */
  /* 교재: 한 줄에 더 많이 */
  .materials-page { max-width: 1180px; }
  .fh-main { max-width: 1180px; }
}

/* ===================== 11-16 홈 화면 앱 (대표 "웹이랑 똑같아서 앱 느낌이 안 든다 — 프레플리 같은 앱처럼") ===================== */
body.appx, html.in-app body {
  --ax-bg: #F7F6F2; --ax-card: #FFFFFF; --ax-ink: #1F2A33; --ax-soft: #707C86; --ax-line: #ECE8E0;
  --ax-hero: #2F4250; --ax-accent: #B95C3A; --ax-safe-b: env(safe-area-inset-bottom, 0px); --ax-safe-t: env(safe-area-inset-top, 0px);
}
body.appx { background: var(--ax-bg); color: var(--ax-ink); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
body.appx #app-root { max-width: 560px; margin: 0 auto; padding: calc(var(--ax-safe-t) + 18px) 18px calc(96px + var(--ax-safe-b)); }
/* 앱 안에선 웹 메뉴 · 바닥글 · 옆 소셜 · 떠 있는 문의 버튼 · 공지 띠 숨김 */
body.appx .site-footer, body.appx .social-rail, body.appx .floating-contact-wrap,
html.in-app .nav, html.in-app .site-footer, html.in-app .social-rail, html.in-app .floating-contact-wrap, html.in-app .announce-bar { display: none !important; }

.ax-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.ax-top small { display: block; color: var(--ax-soft); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ax-top h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 800; }
.ax-avatar, .ax-av { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #E4ECF1; color: #2F4250; font-weight: 800; font-size: 15px; text-decoration: none; flex: none; }
.ax-av.big { width: 60px; height: 60px; font-size: 22px; }

/* 다음 수업 카드 */
.ax-hero { background: var(--ax-hero); color: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 10px 28px rgba(31,42,51,.18); position: relative; overflow: hidden; }
.ax-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); }
.ax-hero.ax-live { background: linear-gradient(135deg, #B95C3A, #8E4429); }
.ax-hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ax-pill { background: rgba(255,255,255,.16); padding: 5px 11px; border-radius: 99px; font-weight: 700; }
.ax-rel { color: #F3D68A; font-weight: 700; }
.ax-hero-when { margin: 16px 0 14px; }
.ax-hero-when b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.02em; font-weight: 800; }
.ax-hero-when span { display: block; margin-top: 6px; color: rgba(255,255,255,.78); font-size: 14px; }
.ax-hero-who { display: flex; align-items: center; gap: 10px; padding: 12px 0 16px; border-top: 1px solid rgba(255,255,255,.14); }
.ax-hero-who .ax-av { background: #F3D68A; color: #2F4250; width: 38px; height: 38px; }
.ax-hero-who b { display: block; font-size: 15px; }
.ax-hero-who small { color: rgba(255,255,255,.7); font-size: 12.5px; }
.ax-hero-note { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.75); }
.ax-hero-link { display: inline-block; margin-top: 12px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; opacity: .9; }
.ax-hero-empty { text-align: center; padding: 26px 20px 22px; }
.ax-hero-empty h3 { margin: 10px 0 4px; font-size: 19px; }
.ax-hero-empty p { margin: 0 0 16px; color: rgba(255,255,255,.75); font-size: 14px; }
.ax-hero-ico { display: inline-flex; width: 58px; height: 58px; border-radius: 18px; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #F3D68A; }

/* 버튼 */
.ax-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 16px; font-size: 16px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.ax-primary { background: var(--ax-hero); color: #fff; }
.ax-light { background: #fff; color: var(--ax-ink); }
.ax-ghost { background: transparent; color: var(--ax-ink); border: 1.5px solid #D9D3C8; }
.ax-mt { margin-top: 18px; }
.ax-link { display: block; text-align: center; margin-top: 14px; color: var(--ax-soft); font-size: 14px; }

/* 빠른 메뉴 */
.ax-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 6px; }
.ax-q { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--ax-ink); font-size: 12.5px; font-weight: 700; }
.ax-q-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 2px 8px rgba(31,42,51,.06); color: #2F4250; }
.ax-q-book { background: #FBE9DF; color: #B95C3A; }
.ax-q-shop { background: #E4ECF1; }
.ax-q-free { background: #FBF1D3; color: #9A7414; }
.ax-q-chat { background: #E5F0E9; color: #3F7A5A; }
.ax-q-grid { background: #FBE9DF; color: #B95C3A; }
.ax-q-admin { background: #E4ECF1; }

/* 섹션 머리 */
.ax-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 12px; }
.ax-sec h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ax-sec a { color: var(--ax-accent); font-size: 14px; font-weight: 700; text-decoration: none; }

/* 교재 표지 */
.ax-hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.ax-hscroll::-webkit-scrollbar { display: none; }
.ax-cover { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; scroll-snap-align: start; min-width: 0; }
.ax-cover.sm { flex: 0 0 116px; }
.ax-cover-img { display: block; aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; background: #E9E4DA; box-shadow: 0 4px 12px rgba(31,42,51,.14); }
.ax-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-cover b { font-size: 13px; line-height: 1.3; font-weight: 700; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-cover small { color: var(--ax-soft); font-size: 12px; }
.ax-cover.busy { opacity: .55; }
.ax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.ax-empty-shelf { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; background: #fff; border-radius: 18px; text-decoration: none; color: var(--ax-ink); }
.ax-empty-shelf span { color: var(--ax-accent); font-weight: 700; font-size: 14px; }

/* 수업 목록 */
.ax-card { background: var(--ax-card); border-radius: 20px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.ax-lessons { padding: 4px 14px; }
.ax-lesson { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.ax-lesson + .ax-lesson { border-top: 1px solid var(--ax-line); }
.ax-date { flex: none; width: 50px; text-align: center; background: #F2EFE8; border-radius: 14px; padding: 6px 0; line-height: 1.1; }
.ax-date b { display: block; font-size: 20px; font-weight: 800; }
.ax-date small { display: block; font-size: 10.5px; color: var(--ax-soft); font-weight: 700; text-transform: uppercase; }
.ax-linfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ax-linfo b { font-size: 16px; }
.ax-linfo span { font-size: 14px; }
.ax-linfo small { color: var(--ax-soft); font-size: 12.5px; }
.ax-tag { font-style: normal; font-size: 11px; font-weight: 800; background: #FBE9DF; color: #B95C3A; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.ax-join { flex: none; background: var(--ax-hero); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; padding: 9px 13px; border-radius: 12px; }
.ax-st { flex: none; font-size: 12px; font-weight: 700; color: var(--ax-soft); background: #F2EFE8; padding: 5px 9px; border-radius: 99px; }
.ax-lesson.is-cancelled .ax-linfo b { text-decoration: line-through; color: var(--ax-soft); }
.ax-day { font-size: 14px; color: var(--ax-soft); font-weight: 700; margin: 22px 4px 8px; }
.ax-seg { display: flex; background: #ECE8E0; border-radius: 14px; padding: 4px; }
.ax-seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 11px; font-size: 15px; font-weight: 700; color: var(--ax-soft); font-family: inherit; cursor: pointer; }
.ax-seg button.on { background: #fff; color: var(--ax-ink); box-shadow: 0 1px 4px rgba(31,42,51,.1); }
.ax-tz { color: var(--ax-soft); font-size: 12.5px; margin: 10px 4px 0; }
.ax-empty { text-align: center; color: var(--ax-soft); padding: 48px 20px 10px; }
.ax-empty p { margin: 10px 0 18px; font-size: 15px; }
.ax-muted { color: var(--ax-soft); font-size: 14px; margin: 0 4px; }

/* 내 정보 */
.ax-profile { display: flex; align-items: center; gap: 14px; padding: 18px; }
.ax-profile b { display: block; font-size: 18px; }
.ax-profile small { display: block; color: var(--ax-soft); font-size: 13px; margin-top: 2px; }
.ax-list { margin-top: 14px; padding: 0 16px; }
.ax-row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; color: var(--ax-ink); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.ax-row + .ax-row { border-top: 1px solid var(--ax-line); }
.ax-row[hidden] { display: none; }
.ax-row i { font-style: normal; color: #B8B1A5; font-size: 22px; }
.ax-langs { display: flex; gap: 4px; background: #F2EFE8; border-radius: 10px; padding: 3px; }
.ax-langs button { border: 0; background: transparent; padding: 6px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ax-soft); font-family: inherit; cursor: pointer; }
.ax-langs button.on { background: #fff; color: var(--ax-ink); }

/* 첫 화면(로그인 전) */
.ax-welcome { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
.ax-wlogo { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 14px; box-shadow: 0 10px 28px rgba(31,42,51,.18); }
.ax-welcome h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.ax-welcome p { margin: 0 0 22px; color: var(--ax-soft); font-size: 15px; }

/* 아래 탭 */
.ax-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; justify-content: space-around; align-items: flex-end;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid #E7E2D8;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
.ax-tabbar[hidden] { display: none; }
.ax-tab { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: #9AA3AA; text-decoration: none; font-size: 11px; font-weight: 700; }
.ax-tab.on { color: #2F4250; }
.ax-tab.on .ax-ico svg { stroke-width: 2.3; }
.ax-center .ax-ico { width: 50px; height: 50px; margin-top: -22px; border-radius: 18px; background: #B95C3A; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(185,92,58,.38); }
.ax-center.on { color: #B95C3A; }

/* 다른 화면(예약 · 교재 …)을 앱에서 열 때: 위 앱 바 */
.ax-appbar { position: sticky; top: 0; z-index: 800; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: calc(52px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247,246,242,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #ECE8E0; }
.ax-appbar b { text-align: center; font-size: 16.5px; font-weight: 800; color: #1F2A33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-back { border: 0; background: transparent; height: 44px; display: flex; align-items: center; justify-content: center; color: #1F2A33; cursor: pointer; }
html.in-app body { background: #F7F6F2; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

html.in-app .app-banner { display: none; }
@media (min-width: 700px) { .ax-grid { grid-template-columns: repeat(4, 1fr); } }
/* 앱 바에 제목이 있으니 화면 안 큰 제목 · 부제는 숨기고 위 여백 줄임 */
html.in-app main { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 14px !important; padding-left: 16px; padding-right: 16px; }
html.in-app main > h1:first-child, html.in-app main > h1:first-child + p { display: none; }
html.in-app main .card { background: #fff; border-radius: 20px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.ax-linfo small.ax-first { color: #B95C3A; font-weight: 700; }
.ax-cover-img { position: relative; }
.ax-cover-tag { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(31,42,51,.88); color: #fff; font-size: 11px; font-weight: 800; text-align: center; padding: 5px 4px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-cover-plain { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; background: linear-gradient(160deg, #44586A, #2F4250); color: #F3D68A; text-align: center; font-size: 13px; line-height: 1.3; }

/* ---------- 11-16 앱 다듬기 (대표 "앱 디테일 — 다른 앱들 참고해서 가다듬어 줘") ---------- */
/* 화면 바뀔 때 살짝 올라오며 나타남 */
body.appx .ax-screen:not([hidden]) { animation: axIn .28s ease both; }
@keyframes axIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 누를 때 눌리는 느낌 · 두 번 눌러 확대 막기 · 길게 눌러 글자 선택 막기(버튼류만) */
body.appx, html.in-app body { touch-action: manipulation; overscroll-behavior-y: contain; }
.ax-btn, .ax-q, .ax-cover, .ax-tab, .ax-join, .ax-row, .ax-seg button, .ax-hero-link { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .12s ease, opacity .12s; }
.ax-btn:active, .ax-q:active .ax-q-ico, .ax-cover:active .ax-cover-img, .ax-join:active, .ax-hero-link:active { transform: scale(.96); }
.ax-row:active { opacity: .55; }
.ax-tab:active .ax-ico { transform: scale(.88); }
.ax-ico { transition: transform .12s; display: inline-flex; }
/* 오늘 수업 있으면 수업 탭에 점 */
.ax-tab { position: relative; }
.ax-tab.dot .ax-ico::after { content: ""; position: absolute; top: 3px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: #E0533D; border: 2px solid #fff; }
.ax-hero-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ax-hero-links:empty { display: none; }
/* 불러오는 동안 회색 자리(스켈레톤) */
.ax-sk { display: inline-block; background: linear-gradient(90deg, #ECE8E0 25%, #F5F2EC 50%, #ECE8E0 75%); background-size: 200% 100%; animation: axSk 1.2s infinite linear; border-radius: 10px; height: 1em; }
.ax-sk-hero { display: block; height: 290px; border-radius: 24px; }
.ax-sk-cover { flex: 0 0 116px; height: 164px; }
@keyframes axSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* 당겨서 새로 고침 */
#ax-ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; z-index: 950; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(31,42,51,.18); opacity: 0; transform: translate(-50%, -50px); transition: transform .2s, opacity .2s; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#ax-ptr i { width: 16px; height: 16px; border: 2.5px solid #2F4250; border-right-color: transparent; border-radius: 50%; }
#ax-ptr.spin i { animation: axSpin .7s linear infinite; }
@keyframes axSpin { to { transform: rotate(360deg); } }
/* 알림 토스트 · 새 버전 */
#ax-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 1200; display: flex; align-items: center; gap: 12px; background: #1F2A33; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px); }
#ax-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#ax-toast button, #ax-update button { border: 0; background: transparent; color: #F3D68A; font-weight: 800; font-size: 14px; font-family: inherit; cursor: pointer; padding: 0; }
#ax-update { position: fixed; left: 16px; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 1300; display: flex; justify-content: space-between; align-items: center; background: #1F2A33; color: #fff; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* 앱 설치 안내 (아래에서 올라오는 창) */
.is-bg { position: fixed; inset: 0; z-index: 10000; background: rgba(20,28,34,0); transition: background .25s; display: flex; align-items: flex-end; justify-content: center; }
.is-bg.on { background: rgba(20,28,34,.45); }
.is-sheet { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-sizing: border-box; max-height: 88vh; overflow: auto; }
.is-bg.on .is-sheet { transform: none; }
.is-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #DDD7CC; margin: 0 auto 10px; }
.is-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F2EFE8; font-size: 20px; line-height: 1; color: #6B7A86; cursor: pointer; }
.is-sheet h3, .install-h { margin: 6px 0 14px; font-size: 20px; font-weight: 800; color: #1F2A33; letter-spacing: -.01em; }
.is-head { display: flex; align-items: center; gap: 12px; }
.is-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 12px rgba(31,42,51,.15); }
.is-head b { display: block; font-size: 17px; color: #1F2A33; }
.is-head small { color: #707C86; font-size: 13px; }
.is-why { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.is-why li { position: relative; padding-left: 26px; font-size: 14.5px; color: #2F3B45; }
.is-why li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #E5F0E9; color: #3F7A5A; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.is-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.is-steps li { display: flex; align-items: center; gap: 12px; background: #F7F6F2; border-radius: 14px; padding: 12px 14px; font-size: 15px; color: #1F2A33; line-height: 1.45; }
.is-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2F4250; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.is-ico { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #2F7BF6; box-shadow: 0 1px 4px rgba(0,0,0,.1); margin: 0 2px; font-style: normal; }
.is-warn { background: #FBF1D3; border-radius: 14px; padding: 13px 14px; display: grid; gap: 4px; font-size: 14px; color: #5A4A1A; line-height: 1.5; margin-bottom: 10px; }
.is-warn b { font-size: 15px; color: #1F2A33; }
.is-url { font-weight: 800; font-size: 16px; color: #1F2A33; }
.is-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 8px; border: 0; border-radius: 14px; background: #2F4250; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.is-ghost { background: #fff; color: #1F2A33; border: 1.5px solid #D9D3C8; }
.is-ok { background: #E5F0E9; color: #2F6B4A; border-radius: 14px; padding: 14px; font-weight: 700; text-align: center; }
.install-page { padding-top: 24px; }
.install-card { padding: 22px; }
.install-open { display: block; text-align: center; margin: 18px 0 40px; color: #B95C3A; font-weight: 700; text-decoration: none; }
.app-banner .ab-go { white-space: nowrap; }

/* ===== 11-16 학원 소개 새 화면 (대표 "학원 소개 화면이 너무 이상하다") ===== */
main.page-about { max-width: 1080px; }
.ab-hero { display: grid; gap: 28px; align-items: center; padding: 8px 0 28px; }
.ab-pill { display: inline-block; background: #F3D68A; color: #2F3B45; font-weight: 800; font-size: 13.5px; padding: 7px 14px; border-radius: 99px; }
.ab-hero h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 12px; color: #2F3B45; }
.ab-sub { color: #6B7A86; font-size: 17px; line-height: 1.6; margin: 0 0 22px; }
.ab-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ab-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; }
.ab-primary { background: #B95C3A; color: #fff; box-shadow: 0 6px 16px rgba(185,92,58,.28); }
.ab-ghost { background: #fff; color: #2F3B45; border: 1.5px solid #E3DCCF; }
.ab-light { background: #fff; color: #2F3B45; }
.ab-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.ab-hero-art svg { width: 100%; height: auto; display: block; }
.ab-features { display: grid; gap: 14px; margin: 8px 0 44px; }
.ab-feat { background: #FFF9EC; border: 1px solid #EFE6D4; border-radius: 20px; padding: 22px; }
.ab-feat h3 { margin: 14px 0 6px; font-size: 18px; color: #2F3B45; }
.ab-feat p { margin: 0; color: #6B7A86; font-size: 15px; line-height: 1.6; }
.ab-ico { display: inline-flex; width: 50px; height: 50px; border-radius: 15px; align-items: center; justify-content: center; background: #FBE9DF; color: #B95C3A; }
.ab-ico-2 { background: #E4ECF1; color: #44586A; }
.ab-ico-3 { background: #E5F0E9; color: #3F7A5A; }
.page-about section h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 16px; color: #2F3B45; }
.ab-why { background: #fff; border-radius: 24px; padding: 28px; margin-bottom: 44px; }
.ab-why p { font-size: 16px; line-height: 1.75; color: #3B4852; margin: 0 0 10px; }
.ab-why p:last-child { margin-bottom: 0; }
.ab-why strong { color: #B95C3A; }
.ab-langs { margin-bottom: 44px; }
.ab-lang-grid { display: grid; gap: 14px; }
.ab-lang { display: flex; gap: 16px; align-items: center; background: #FFF9EC; border: 1px solid #EFE6D4; border-radius: 20px; padding: 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.ab-lang:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(47,59,69,.1); }
.ab-lang img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.ab-lang small { display: block; color: #B95C3A; font-weight: 800; font-size: 13px; }
.ab-lang b { display: block; font-size: 20px; color: #2F3B45; }
.ab-lang p { margin: 4px 0 8px; color: #6B7A86; font-size: 14.5px; line-height: 1.5; }
.ab-chip { display: inline-block; background: #E4ECF1; color: #44586A; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.ab-note { color: #6B7A86; font-size: 14px; margin: 14px 4px 0; }
.ab-note a { color: #B95C3A; font-weight: 700; }
.ab-how { margin-bottom: 44px; }
.ab-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.ab-steps li { position: relative; background: #fff; border-radius: 20px; padding: 22px 22px 22px 76px; }
.ab-n { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: #44586A; color: #F3D68A; font-weight: 900; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.ab-steps b { display: block; font-size: 17px; color: #2F3B45; margin-top: 7px; }
.ab-steps p { margin: 6px 0 0; color: #6B7A86; font-size: 15px; line-height: 1.6; }
.ab-cta { background: #44586A; border-radius: 26px; padding: 34px 26px; text-align: center; color: #fff; margin-bottom: 20px; }
.page-about .ab-cta h2 { color: #fff; margin-bottom: 18px; }
.ab-cta .ab-btns { justify-content: center; }
@media (min-width: 820px) {
  .ab-hero { grid-template-columns: 1fr 1.05fr; padding: 24px 0 48px; }
  .ab-features { grid-template-columns: repeat(3, 1fr); }
  .ab-lang-grid { grid-template-columns: 1fr 1fr; }
  .ab-steps { grid-template-columns: repeat(3, 1fr); }
  .ab-steps li { padding: 76px 22px 24px; }
  .ab-steps b { margin-top: 0; }
  .ab-why { padding: 36px 40px; }
}
/* 11-16 휴대폰 수업 알림 — 홈 카드 · 내 정보 스위치 */
.ax-push-card { display: flex; gap: 14px; background: #fff; border-radius: 20px; padding: 16px; margin-top: 14px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.ax-push-card[hidden] { display: none; }
.ax-push-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FBF1D3; color: #9A7414; display: flex; align-items: center; justify-content: center; }
.ax-push-card b { font-size: 16px; }
.ax-push-card p { margin: 4px 0 10px; font-size: 13.5px; color: var(--ax-soft); line-height: 1.5; }
.ax-push-btns { display: flex; gap: 8px; }
.ax-push-btns button { border: 0; border-radius: 11px; padding: 9px 14px; font-weight: 800; font-size: 14px; font-family: inherit; cursor: pointer; }
.ax-push-on { background: #2F4250; color: #fff; }
.ax-push-later { background: #F2EFE8; color: var(--ax-soft); }
.ax-row-sub { display: block; font-size: 12.5px; color: var(--ax-soft); font-weight: 500; margin-top: 2px; }
#ax-push-row { padding: 10px 0; }
.ax-switch { flex: none; width: 50px; height: 30px; border-radius: 99px; border: 0; background: #DDD7CC; position: relative; cursor: pointer; transition: background .2s; padding: 0; }
.ax-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ax-switch.on { background: #3F9A6B; }
.ax-switch.on i { transform: translateX(20px); }
.ax-switch:disabled { opacity: .45; }
/* 11-16 수업 노트 · 학생 카드 · 진도 · 남은 횟수 */
.ax-tappable { cursor: pointer; }
.ax-tappable:active { opacity: .6; }
.ax-chev { flex: none; font-style: normal; color: #B8B1A5; font-size: 22px; }
.ax-notechip { font-style: normal; font-size: 11px; font-weight: 800; background: #E5F0E9; color: #3F7A5A; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.ax-sheet h3 { margin: 4px 0 2px; font-size: 20px; }
.ax-sheet h4 { margin: 20px 0 8px; font-size: 14px; color: var(--ax-soft, #707C86); font-weight: 800; }
.ax-sheet-sub { margin: 0 0 12px; color: #707C86; font-size: 13.5px; }
.ax-note-box { background: #F7F6F2; border-radius: 16px; padding: 14px 16px; margin-top: 10px; }
.ax-note-box b { font-size: 13px; color: #707C86; }
.ax-note-box p { margin: 6px 0 0; font-size: 16px; line-height: 1.65; color: #1F2A33; }
.ax-hw { background: #FBF1D3; }
.ax-card-head { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ax-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ax-facts span { background: #F2EFE8; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; color: #3B4852; }
.ax-past { border-left: 3px solid #E3DCCF; padding: 2px 0 2px 12px; margin-bottom: 12px; }
.ax-past small { color: #707C86; font-weight: 700; font-size: 12px; }
.ax-past p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.ax-private { background: #FBE9DF; border-radius: 8px; padding: 6px 9px; color: #7A3A22; }
.ax-past-hw { color: #7A6420; }
.ax-field { display: block; margin-bottom: 10px; }
.ax-field span { display: block; font-size: 13px; font-weight: 800; color: #3B4852; margin-bottom: 5px; }
.ax-field em { font-style: normal; font-weight: 600; color: #B95C3A; font-size: 12px; margin-left: 4px; }
.ax-field textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #E3DCCF; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; resize: vertical; background: #fff; }
.ax-field textarea:focus { outline: none; border-color: #44586A; }
.ax-mt8 { margin-top: 8px; }
.ax-lastnote { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px; background: #fff; border-radius: 20px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.ax-lastnote small { display: block; color: #707C86; font-size: 12.5px; font-weight: 700; }
.ax-lastnote b { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.ax-lastnote > div { flex: 1; min-width: 0; }
.ax-note-ico { background: #E5F0E9; color: #3F7A5A; }
.ax-progress { padding: 16px; display: grid; gap: 14px; }
.ax-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.ax-prog-top span { color: #707C86; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ax-bar { height: 10px; background: #ECE8E0; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ax-bar i { display: block; height: 100%; background: linear-gradient(90deg, #44586A, #5B7385); border-radius: 99px; }
.ax-plans { margin-top: 14px; padding: 4px 16px; }
.ax-plan { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.ax-plan + .ax-plan { border-top: 1px solid #ECE8E0; }
.ax-plan small { display: block; color: #707C86; font-size: 12.5px; }
.ax-plan-n { text-align: right; }
.ax-plan-n b { font-size: 24px; color: #B95C3A; }
/* 11-16 앱 소개 카드 (예약 끝난 화면 · 마이페이지) */
.app-promo { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #E3DCCF; border-radius: 18px; padding: 14px 16px; margin: 14px 0; text-align: left; }
.app-promo .ap-icon { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 3px 10px rgba(47,59,69,.15); }
.app-promo .ap-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-promo b { font-size: 16px; color: #2F3B45; }
.app-promo span { font-size: 13.5px; color: #6B7A86; line-height: 1.5; }
.app-promo small { font-size: 12.5px; color: #B95C3A; font-weight: 700; margin-top: 2px; }
.app-promo .ap-btn { align-self: flex-start; margin-top: 8px; border: 0; border-radius: 11px; background: #44586A; color: #fff; font-weight: 800; font-size: 14px; padding: 9px 16px; font-family: inherit; cursor: pointer; }
.app-promo .ap-qr { width: 96px; height: 96px; flex: none; border-radius: 8px; }
/* 홈 앱 소개 칸 */
.home-app { display: grid; gap: 28px; align-items: center; background: #EEF2F5; border-radius: 28px; padding: 30px 24px; margin: 40px 0; overflow: hidden; }
.home-app h2 { margin: 0 0 10px; font-size: 26px; color: #2F3B45; letter-spacing: -.02em; }
.home-app p { margin: 0 0 14px; color: #5B6A76; line-height: 1.65; font-size: 15.5px; }
.ha-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ha-list li { position: relative; padding-left: 28px; font-weight: 700; color: #2F3B45; font-size: 15px; }
.ha-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #44586A; color: #F3D68A; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ha-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ha-qr, .ha-qr-t { display: none; }
.ha-phone { justify-self: center; width: 230px; height: 440px; border-radius: 38px; background: #1F2A33; padding: 10px; box-shadow: 0 24px 48px rgba(31,42,51,.25); }
.ha-screen { position: relative; height: 100%; border-radius: 30px; background: #F7F6F2; overflow: hidden; padding: 30px 12px 0; box-sizing: border-box; }
.ha-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ha-top span { width: 70px; height: 9px; border-radius: 5px; background: #DDD7CC; }
.ha-top b { font-size: 11px; color: #2F4250; }
.ha-hero { position: relative; background: #2F4250; border-radius: 16px; padding: 12px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.ha-pill { align-self: flex-start; font-size: 9px; font-weight: 800; background: rgba(255,255,255,.16); padding: 3px 7px; border-radius: 99px; }
.ha-in { position: absolute; right: 12px; top: 14px; font-size: 9px; color: #F3D68A; font-weight: 800; }
.ha-time { font-size: 30px; line-height: 1; }
.ha-join { background: #fff; color: #1F2A33; font-size: 10px; font-weight: 800; text-align: center; padding: 8px; border-radius: 9px; margin-top: 4px; }
.ha-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 12px 0; }
.ha-tiles i { height: 36px; border-radius: 11px; background: #FBE9DF; }
.ha-tiles i:nth-child(2) { background: #E4ECF1; } .ha-tiles i:nth-child(3) { background: #FBF1D3; } .ha-tiles i:nth-child(4) { background: #E5F0E9; }
.ha-books { display: flex; gap: 7px; }
.ha-books img { width: 31%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 6px; box-shadow: 0 3px 8px rgba(31,42,51,.15); }
.ha-tab { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #fff; border-top: 1px solid #E7E2D8; display: flex; justify-content: space-around; align-items: center; }
.ha-tab i { width: 16px; height: 16px; border-radius: 5px; background: #C9CFD4; }
.ha-tab em { font-style: normal; width: 30px; height: 30px; margin-top: -14px; border-radius: 10px; background: #B95C3A; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (min-width: 820px) {
  .home-app { grid-template-columns: 1.2fr 1fr; padding: 40px 48px; }
  .ha-qr { display: block; width: 92px; height: 92px; border-radius: 8px; background: #fff; padding: 4px; }
  .ha-qr-t { display: block; max-width: 150px; font-size: 12.5px; color: #6B7A86; line-height: 1.4; }
}
.home-app .ha-btn { background: #44586A; color: #fff; }
/* 진도 % (11-16 대표 "진도는 %로도") */
.ax-bar-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ax-bar-row .ax-bar { flex: 1; margin-top: 0; }
.ax-pct { font-style: normal; font-weight: 800; font-size: 14px; color: #44586A; min-width: 40px; text-align: right; }

/* ===================== 11-16 다크 모드 (대표 "다크 모드 만들어 줘") — 앱 화면(app.html)만 · 자동 = 휴대폰 설정 따라감 ===================== */
html.dark body.appx { --ax-bg: #14191E; --ax-card: #1F262D; --ax-ink: #ECEFF2; --ax-soft: #9AA6B0; --ax-line: #2C353D; --ax-hero: #2A3B49; --ax-accent: #E29A7E; background: #14191E; color: #ECEFF2; }
html.dark { color-scheme: dark; background: #14191E; }
html.dark body.appx .ax-avatar, html.dark body.appx .ax-av { background: #2A3540; color: #CFE0EC; }
html.dark body.appx .ax-hero-who .ax-av { background: #F3D68A; color: #2F4250; }
html.dark body.appx .ax-hero { box-shadow: 0 10px 28px rgba(0,0,0,.4); }
html.dark body.appx .ax-primary, html.dark body.appx .ax-join, html.dark body.appx .ax-push-on { background: #4C6577; color: #fff; }
html.dark body.appx .ax-ghost { border-color: #3A444D; color: #ECEFF2; }
html.dark body.appx .ax-q { color: #ECEFF2; }
html.dark body.appx .ax-q-ico { background: #1F262D; box-shadow: none; color: #CFE0EC; }
html.dark body.appx .ax-q-book, html.dark body.appx .ax-q-grid { background: #3A2A24; color: #F0A88A; }
html.dark body.appx .ax-q-shop, html.dark body.appx .ax-q-admin { background: #26323B; color: #B9CCDA; }
html.dark body.appx .ax-q-free { background: #3A3422; color: #EBCB76; }
html.dark body.appx .ax-q-chat { background: #233229; color: #8FCFAE; }
html.dark body.appx .ax-card, html.dark body.appx .ax-push-card, html.dark body.appx .ax-lastnote, html.dark body.appx .ax-empty-shelf { background: #1F262D; box-shadow: none; color: #ECEFF2; }
html.dark body.appx .ax-date, html.dark body.appx .ax-st, html.dark body.appx .ax-facts span, html.dark body.appx .ax-push-later { background: #262E35; color: #CBD3DA; }
html.dark body.appx .ax-seg, html.dark body.appx .ax-langs { background: #262E35; }
html.dark body.appx .ax-seg button.on, html.dark body.appx .ax-langs button.on { background: #3A444D; color: #ECEFF2; box-shadow: none; }
html.dark body.appx .ax-row { color: #ECEFF2; }
html.dark body.appx .ax-row i, html.dark body.appx .ax-chev { color: #56616B; }
html.dark body.appx .ax-cover-img { background: #262E35; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
html.dark body.appx .ax-cover { color: #ECEFF2; }
html.dark body.appx .ax-sec a { color: #E29A7E; }
html.dark body.appx .ax-notechip { background: #233229; color: #8FCFAE; }
html.dark body.appx .ax-linfo small.ax-first { color: #F0A88A; }
html.dark body.appx .ax-switch { background: #3A444D; }
html.dark body.appx .ax-switch.on { background: #3F9A6B; }
html.dark body.appx .ax-push-ico { background: #3A3422; color: #EBCB76; }
html.dark body.appx .ax-note-ico { background: #233229; color: #8FCFAE; }
html.dark body.appx .ax-bar { background: #2C353D; }
html.dark body.appx .ax-bar i { background: linear-gradient(90deg, #6F8BA0, #9AB3C6); }
html.dark body.appx .ax-pct { color: #B9CCDA; }
html.dark body.appx .ax-plan-n b { color: #E29A7E; }
html.dark body.appx .ax-sk { background: linear-gradient(90deg, #1F262D 25%, #2A323A 50%, #1F262D 75%); background-size: 200% 100%; }
html.dark body.appx .ax-tabbar { background: rgba(22,27,32,.94); border-top-color: #2C353D; }
html.dark body.appx .ax-tab { color: #6E7A84; }
html.dark body.appx .ax-tab.on { color: #E8EEF2; }
html.dark body.appx .ax-center.on { color: #E29A7E; }
html.dark body.appx .ax-tab.dot .ax-ico::after { border-color: #161B20; }
html.dark body.appx #ax-toast, html.dark body.appx #ax-update { background: #2C353D; }
html.dark body.appx #ax-ptr { background: #2C353D; }
html.dark body.appx #ax-ptr i { border-color: #ECEFF2; border-right-color: transparent; }
/* 아래에서 올라오는 창 (노트 · 학생 카드 · 설치 안내) */
html.dark body.appx .is-sheet { background: #1F262D; color: #ECEFF2; }
html.dark body.appx .is-sheet h3, html.dark body.appx .is-head b, html.dark body.appx .is-warn b { color: #ECEFF2; }
html.dark body.appx .is-grab { background: #3A444D; }
html.dark body.appx .is-x { background: #2C353D; color: #9AA6B0; }
html.dark body.appx .is-steps li, html.dark body.appx .ax-note-box { background: #262E35; color: #ECEFF2; }
html.dark body.appx .ax-note-box p { color: #ECEFF2; }
html.dark body.appx .ax-hw { background: #3A3422; }
html.dark body.appx .is-why li { color: #CBD3DA; }
html.dark body.appx .is-warn { background: #3A3422; color: #E6D9A8; }
html.dark body.appx .is-ghost { background: transparent; color: #ECEFF2; border-color: #3A444D; }
html.dark body.appx .ax-past { border-left-color: #3A444D; }
html.dark body.appx .ax-private { background: #3A2A24; color: #F0B9A2; }
html.dark body.appx .ax-past-hw { color: #E6D9A8; }
html.dark body.appx .ax-field span { color: #CBD3DA; }
html.dark body.appx .ax-field textarea { background: #161B20; border-color: #34404A; color: #ECEFF2; }
html.dark body.appx .ax-field textarea:focus { border-color: #6F8BA0; }
html.dark body.appx .ax-welcome p, html.dark body.appx .ax-link { color: #9AA6B0; }
html.dark body.appx .ax-light { background: #fff; color: #1F2A33; }

/* 11-16 아이폰 설치 안내 그림 3장 (대표 "안내를 실제 화면 그림으로") */
.ip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.ip-card { position: relative; background: #F7F6F2; border-radius: 14px; padding: 10px 6px 10px; text-align: center; }
.ip-card .is-n { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; font-size: 12px; }
.ip-svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto; }
.ip-card p { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.4; color: #1F2A33; word-break: keep-all; }
.ip-ring { animation: ipPulse 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ipPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.18); } }
html.dark body.appx .ip-card { background: #262E35; }
html.dark body.appx .ip-card p { color: #ECEFF2; }
.ip-card p b { white-space: nowrap; }
.ip-card p small { display: block; font-size: 11px; color: #707C86; margin-top: 2px; }
html.dark body.appx .ip-card p small { color: #9AA6B0; }

/* ===== 11-16 대표 "웹에서 화면 넓이가 강사 설정만 달라서 통일성이 없어 — 프레플리 웹 참고해서 통일" =====
   넓은 화면(1100px↑): 모든 페이지 본문 = 같은 폭(1240px) · 머리 메뉴도 같은 폭 안에 (로고 왼쪽 끝 = 본문 왼쪽 끝)
   · 로그인 · 가입 같은 입력 화면만 가운데 좁은 카드(프레플리도 같음) · 휴대폰은 그대로 */
@media (min-width: 1100px) {
  :root { --page-max: 1240px; }
  main:not(.narrow):not(.policy-page), main.admin-wide, main.mypage, main.page-about, .materials-page, .fh-main { max-width: var(--page-max) !important; }
  header.nav { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo auth lang" "nav nav nav"; align-items: center; column-gap: 22px;
    padding: 16px max(28px, calc((100% - var(--page-max)) / 2 + 24px)) 0; }
  header.nav .nav-brand-row { display: contents; }
  header.nav .logo { grid-area: logo; }
  header.nav .nav-auth { grid-area: auth; justify-self: end; }
  header.nav .nav-toolbar { grid-area: lang; margin: 0; }
  header.nav > nav { grid-area: nav; justify-content: flex-start; gap: 6px 4px; padding: 12px 0 12px; margin-left: -12px; }
  /* 마이페이지: 넓어진 만큼 교재 · 수업 목록을 2열로 */
  main.mypage .mine-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

/* ===================== 11-16 다크 모드 — 앱에서 여는 다른 화면(예약 · 교재 …) (대표 "예약 · 교재 화면도 다크 모드") ===================== */
html.dark.in-app { color-scheme: dark;
  --cream: #14191E; --card: #1F262D; --ink: #ECEFF2; --ink-soft: #9AA6B0; --line: #2C353D;
  --point-soft: #3A2A24; --success-bg: #1E3328; --success-ink: #8FCFAE; --error-bg: #3A2420; --error-ink: #F0A88A; }
html.dark.in-app body { background: #14191E !important; color: #ECEFF2; }
html.dark.in-app .ax-appbar { background: rgba(20,25,30,.94); border-bottom-color: #2C353D; }
html.dark.in-app .ax-appbar b, html.dark.in-app .ax-back { color: #ECEFF2; }
html.dark.in-app .ax-tabbar { background: rgba(22,27,32,.94); border-top-color: #2C353D; }
html.dark.in-app .ax-tab { color: #6E7A84; }
html.dark.in-app .ax-tab.on { color: #E8EEF2; }
html.dark.in-app .ax-center.on { color: #E29A7E; }
html.dark.in-app main .card { background: #1F262D; box-shadow: none; }
html.dark.in-app input, html.dark.in-app select, html.dark.in-app textarea { background: #161B20; color: #ECEFF2; border-color: #34404A; }
html.dark.in-app h1, html.dark.in-app h2, html.dark.in-app h3, html.dark.in-app h4, html.dark.in-app strong, html.dark.in-app b, html.dark.in-app label { color: #ECEFF2; }
html.dark.in-app main p a, html.dark.in-app main li a, html.dark.in-app .policy-link { color: #9FC1DA; }
html.dark.in-app .mode-tab { background: #1F262D; border-color: #34404A; color: #ECEFF2; }
html.dark.in-app .mode-tab:hover { background: #262E35; border-color: #4C6577; color: #ECEFF2; }
html.dark.in-app .mode-tab.active { background: #26323B; border-color: #6F8BA0; box-shadow: 0 0 0 3px rgba(111,139,160,.25); color: #ECEFF2; }
html.dark.in-app .mode-tab .mt-ico { background: #26323B; }
html.dark.in-app .mode-tab .mt-ico svg { stroke: #B9CCDA; } html.dark.in-app .mode-tab .mt-ico svg .dot { fill: #B9CCDA; }
html.dark.in-app .mode-tab.active .mt-ico { background: #5B7385; }
html.dark.in-app .policy-box { background: #1A2128; border-color: #34404A; }
html.dark.in-app .policy-box p, html.dark.in-app .policy-agree { color: #CBD3DA; }
html.dark.in-app .revision-notice { background: #1E3328; border-color: #2F5A43; }
html.dark.in-app .revision-notice p { color: #CBD3DA; }
html.dark.in-app .revision-notice strong { color: #8FCFAE; }
html.dark.in-app .mat-teacher-tab.selected { background: #3A444D; color: #ECEFF2; box-shadow: none; }
html.dark.in-app .app-promo { background: #1F262D; border-color: #34404A; }
html.dark.in-app .app-promo b { color: #ECEFF2; }
html.dark.in-app .app-promo span { color: #9AA6B0; }
/* ===== 11-16 앱 안 예약 화면 (대표 "예약 탭도 앱처럼") ===== */
.bk-teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-teacher { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; background: var(--ax-card); border: 2px solid transparent; border-radius: 18px; padding: 12px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.bk-teacher img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.bk-teacher b { display: block; font-size: 16px; }
.bk-teacher small { display: block; font-size: 12px; color: var(--ax-soft); }
.bk-teacher.on { border-color: #44586A; }
.bk-langs { display: flex; gap: 8px; margin-top: 10px; }
.bk-langs:empty { display: none; }
.bk-chip { border: 1.5px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; }
.bk-chip.on { background: #44586A; border-color: #44586A; color: #fff; }
.bk-mode { margin-top: 14px; }
.bk-info { display: flex; justify-content: space-between; align-items: center; margin: 16px 4px 4px; font-size: 14px; color: var(--ax-soft); }
.bk-info b { font-size: 17px; color: var(--ax-ink); }
.bk-month { font-weight: 800; font-size: 16px; margin: 14px 4px 8px; }
.bk-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.bk-strip::-webkit-scrollbar { display: none; }
.bk-day { flex: 0 0 54px; border: 0; border-radius: 16px; background: var(--ax-card); color: var(--ax-ink); padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; cursor: pointer; scroll-snap-align: center; box-shadow: 0 2px 8px rgba(31,42,51,.05); }
.bk-day small { font-size: 11.5px; color: var(--ax-soft); font-weight: 700; }
.bk-day b { font-size: 19px; }
.bk-day i { font-style: normal; font-size: 9px; color: #3F9A6B; height: 12px; font-weight: 800; }
.bk-day.off { opacity: .35; cursor: default; }
.bk-day.on { background: #2F4250; color: #fff; }
.bk-day.on small, .bk-day.on i { color: #F3D68A; }
.bk-gh { margin: 16px 4px 8px; font-size: 13px; color: var(--ax-soft); font-weight: 800; }
.bk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-time { border: 1.5px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); border-radius: 14px; padding: 13px 0; font-size: 15.5px; font-weight: 800; font-family: inherit; cursor: pointer; }
.bk-time.on { background: #B95C3A; border-color: #B95C3A; color: #fff; }
.bk-spacer { height: 70px; }
.bk-sk { display: block; height: 70px; border-radius: 16px; margin-top: 18px; }
.bk-sk2 { display: block; height: 180px; border-radius: 16px; margin-top: 12px; }
.bk-sub { padding: 18px; margin-top: 12px; }
.bk-sub p { color: var(--ax-soft); font-size: 14px; line-height: 1.55; margin: 6px 0 10px; }
.bk-plan { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--ax-line); font-size: 15px; }
#bk-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 905; display: flex; align-items: center; gap: 12px; background: #1F2A33; color: #fff; border-radius: 18px; padding: 10px 10px 10px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.25); animation: axIn .2s ease both; }
#bk-bar > div { flex: 1; min-width: 0; }
#bk-bar small { display: block; font-size: 12px; color: #F3D68A; font-weight: 700; }
#bk-bar b { font-size: 16px; }
#bk-bar .ax-btn { width: auto; min-height: 46px; padding: 0 22px; background: #B95C3A; }
.bk-sum { display: flex; gap: 12px; align-items: center; background: var(--ax-bg, #F7F6F2); border-radius: 16px; padding: 14px; margin: 10px 0 12px; }
.bk-sum img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bk-sum div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ax-soft, #707C86); }
.bk-sum div b { font-size: 15.5px; color: var(--ax-ink, #1F2A33); }
.bk-sum em { font-style: normal; font-weight: 800; font-size: 16px; }
.bk-policy { border: 1.5px dashed #D9D3C8; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 13.5px; }
.bk-policy p { margin: 6px 0 8px; color: var(--ax-soft, #707C86); line-height: 1.55; }
.bk-policy label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.bk-policy input { width: 20px; height: 20px; }
.bk-policy a { display: inline-block; margin-top: 6px; color: #B95C3A; font-weight: 700; font-size: 13px; }
.bk-note { font-size: 12.5px; color: var(--ax-soft, #707C86); text-align: center; margin: 8px 0 0; }
.bk-err { color: #C9533F; font-size: 13.5px; text-align: center; margin: 6px 0 0; }
.ax-btn:disabled { opacity: .45; }
.bk-ok { text-align: center; padding: 6px 0 14px; }
.bk-ok span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #E5F0E9; color: #3F9A6B; font-size: 32px; font-weight: 900; align-items: center; justify-content: center; }
.bk-ok h3 { margin: 12px 0 4px; }
.bk-ok p { margin: 4px 0; }
html.dark body.appx .bk-teacher.on { border-color: #9AB3C6; }
html.dark body.appx .bk-chip.on, html.dark body.appx .bk-day.on { background: #4C6577; border-color: #4C6577; }
html.dark body.appx .bk-teacher, html.dark body.appx .bk-day { box-shadow: none; }
html.dark body.appx #bk-bar { background: #2C353D; }
html.dark body.appx .bk-policy { border-color: #3A444D; }
/* 11-16 앱 정기 수업 · 수업 관리 창 */
.bk-sub-intro { color: var(--ax-soft); font-size: 14px; line-height: 1.55; margin: 12px 4px; }
.bk-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-plancard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: var(--ax-card); border: 2px solid transparent; border-radius: 18px; padding: 14px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.bk-plancard.on { border-color: #B95C3A; }
.bk-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bk-pc-top b { font-size: 15px; }
.bk-pc-top em { font-style: normal; font-size: 11px; font-weight: 800; background: #FBE9DF; color: #B95C3A; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.bk-plancard small { font-size: 12px; color: var(--ax-soft); }
.bk-pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.bk-pc-price s { font-size: 12px; color: var(--ax-soft); }
.bk-pc-price b { font-size: 19px; }
.bk-wrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--ax-line); }
.bk-wday { flex: 0 0 64px; font-weight: 800; font-size: 14px; padding-top: 9px; }
.bk-wtimes { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.bk-time.sm { padding: 8px 12px; font-size: 14px; }
.bk-occ { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-occ span { background: var(--ax-card); border-radius: 12px; padding: 8px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.bk-occ em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #44586A; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.bk-gap { margin-top: 14px; }
.bk-mt6 { margin-top: 6px; }
.ax-danger { background: transparent; color: #C9533F; border: 1.5px solid #EBC3B8; }
.ax-linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; }
.ax-sheet .rs-strip { margin: 4px -20px 0; padding: 2px 20px 6px; }
.ax-sheet .bk-time, .ax-sheet .bk-day { background: #F7F6F2; }
.ax-sheet .bk-day.on { background: #2F4250; }
.ax-sheet .bk-time.on { background: #B95C3A; }
html.dark body.appx .bk-plancard { box-shadow: none; }
html.dark body.appx .bk-pc-top em { background: #3A2A24; color: #F0A88A; }
html.dark body.appx .ax-sheet .bk-time, html.dark body.appx .ax-sheet .bk-day { background: #262E35; color: #ECEFF2; }
html.dark body.appx .ax-sheet .bk-day.on { background: #4C6577; }
html.dark body.appx .ax-sheet .bk-time.on { background: #B95C3A; }
html.dark body.appx .ax-danger { border-color: #5A3A32; color: #F0A88A; }
html.dark body.appx .bk-sum { background: #262E35; }
/* 11-16 대표 "예약 버튼 다른 색으로" → 블루그레이 (사이트 · 앱 아이콘과 같은 색) */
.ax-center .ax-ico { background: #44586A; box-shadow: 0 6px 16px rgba(68,88,106,.38); }
.ax-center.on { color: #44586A; }
.bk-time.on, .ax-sheet .bk-time.on { background: #44586A; border-color: #44586A; }
.bk-plancard.on { border-color: #44586A; }
#bk-bar .ax-btn { background: #5B7385; }
.ha-tab em { background: #44586A; }
html.dark body.appx .ax-center .ax-ico, html.dark.in-app .ax-center .ax-ico { background: #5B7385; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
html.dark body.appx .ax-center.on, html.dark.in-app .ax-center.on { color: #B9CCDA; }
html.dark body.appx .bk-time.on, html.dark body.appx .ax-sheet .bk-time.on { background: #5B7385; border-color: #5B7385; }
html.dark body.appx .bk-plancard.on { border-color: #9AB3C6; }
/* 11-16 앱 교재 사기 · 무료 · 공지 · 정기 수업 관리 */
.bs-seg { margin-bottom: 4px; }
.sh-card { display: flex; gap: 14px; background: var(--ax-card); border-radius: 20px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(31,42,51,.05); }
.sh-cover { flex: 0 0 96px; aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; background: #E9E4DA; box-shadow: 0 4px 12px rgba(31,42,51,.14); align-self: flex-start; }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sh-info small { color: var(--ax-soft); font-size: 12px; font-weight: 700; }
.sh-info b { font-size: 16px; line-height: 1.3; }
.sh-items { color: var(--ax-soft); font-size: 12.5px; line-height: 1.4; }
.sh-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sh-price s { color: var(--ax-soft); font-size: 12.5px; }
.sh-price b { font-size: 18px; }
.sh-price em { font-style: normal; font-size: 11px; font-weight: 800; background: #FBE9DF; color: #B95C3A; border-radius: 6px; padding: 2px 6px; }
.sh-buy { min-height: 42px; margin-top: 8px; font-size: 15px; }
.sh-owned { margin-top: 8px; font-size: 13.5px; font-weight: 800; color: #3F9A6B; }
.fr-item { display: flex; flex-direction: column; gap: 6px; }
.fr-get { border: 0; border-radius: 10px; background: #44586A; color: #fff; font-weight: 800; font-size: 13.5px; padding: 8px; font-family: inherit; cursor: pointer; }
.nt-item { padding: 0; margin-bottom: 10px; overflow: hidden; }
.nt-item summary { list-style: none; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.nt-item summary::-webkit-details-marker { display: none; }
.nt-item summary small { color: var(--ax-soft); font-size: 12px; }
.nt-item p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.65; color: var(--ax-ink); }
.ax-backlink { font-size: 30px; line-height: 1; color: var(--ax-ink); text-decoration: none; margin-right: 6px; }
.ax-top .ax-backlink + h1 { flex: 1; }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid #ECE8E0; }
.sb-row small { display: block; color: #707C86; font-size: 12.5px; }
.sb-stop { border: 1.5px solid #EBC3B8; background: transparent; color: #C9533F; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; font-family: inherit; cursor: pointer; flex: none; }
html.dark body.appx .sh-card { box-shadow: none; }
html.dark body.appx .sh-cover { background: #262E35; }
html.dark body.appx .sh-price em { background: #3A2A24; color: #F0A88A; }
html.dark body.appx .fr-get { background: #5B7385; }
html.dark body.appx .sb-row { border-bottom-color: #2C353D; }
html.dark body.appx .sb-row small { color: #9AA6B0; }
.ax-field input, .ax-field select { width: 100%; box-sizing: border-box; border: 1.5px solid #E3DCCF; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
html.dark body.appx .ax-field input, html.dark body.appx .ax-field select { background: #161B20; border-color: #34404A; color: #ECEFF2; }
#ax-books > .ax-grid { margin-top: 16px; }
.fr-get { width: 100%; }
/* 11-16 선생님 앱 시간표 · 관리 */
.sc-hint { color: var(--ax-soft); font-size: 13px; line-height: 1.55; margin: 12px 4px; }
.sc-wds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sc-wd { border: 0; border-radius: 14px; background: var(--ax-card); color: var(--ax-ink); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(31,42,51,.05); }
.sc-wd b { font-size: 16px; }
.sc-wd small { font-size: 10.5px; color: var(--ax-soft); font-weight: 700; }
.sc-wd.we b { color: #C9533F; }
.sc-wd.on { background: #2F4250; color: #fff; }
.sc-wd.on b { color: #fff; } .sc-wd.on small { color: #F3D68A; }
.sc-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 14px; }
.sc-h { border: 1.5px solid var(--ax-line); background: var(--ax-card); color: var(--ax-soft); border-radius: 12px; padding: 11px 0; font-size: 14.5px; font-weight: 800; font-family: inherit; cursor: pointer; }
.sc-h.on { background: #3F9A6B; border-color: #3F9A6B; color: #fff; }
.sc-h.bk { background: #5B7385; border-color: #5B7385; color: #fff; cursor: default; }
.sc-h.busy:not(.bk) { outline: 2px dashed #E29A7E; outline-offset: -4px; }
.sc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 90px; }
.sc-quick button { border: 1.5px solid var(--ax-line); background: var(--ax-card); color: var(--ax-ink); border-radius: 99px; padding: 8px 12px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.sc-strip { margin-top: 4px; }
.bk-day.sc-off { opacity: .55; }
.bk-day.sc-off i { color: #C9533F; }
.sc-legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ax-soft); margin: 12px 4px 90px; }
.sc-legend .lg { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ax-line); background: var(--ax-card); margin-left: 8px; }
.sc-legend .lg.on { background: #3F9A6B; border-color: #3F9A6B; } .sc-legend .lg.bk { background: #5B7385; border-color: #5B7385; }
.sc-form { padding: 16px; display: grid; gap: 10px; margin-bottom: 8px; }
.sc-form input, .sc-form select { width: 100%; box-sizing: border-box; border: 1.5px solid #E3DCCF; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
.sc-row { display: flex; align-items: center; gap: 8px; }
.sc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-row2 .ax-field { margin: 0; }
#sc-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 905; display: flex; align-items: center; gap: 8px; background: #1F2A33; color: #fff; border-radius: 18px; padding: 10px 10px 10px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
#sc-bar > div { flex: 1; min-width: 0; }
#sc-bar small { display: block; font-size: 12px; color: #F3D68A; font-weight: 700; }
#sc-bar b { font-size: 15px; }
#sc-bar .ax-btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
#sc-bar .sc-undo { color: #fff; border-color: rgba(255,255,255,.3); }
#sc-bar .ax-primary { background: #3F9A6B; }
html.dark body.appx .sc-wd { box-shadow: none; }
html.dark body.appx .sc-wd.on { background: #4C6577; }
html.dark body.appx .sc-form input, html.dark body.appx .sc-form select { background: #161B20; border-color: #34404A; color: #ECEFF2; }
html.dark body.appx #sc-bar { background: #2C353D; }
.sc-wd, .sc-h, .bk-time { width: 100%; box-sizing: border-box; }
.sc-form { box-sizing: border-box; min-width: 0; overflow: hidden; }
.sc-row input { flex: 1; min-width: 0; }
.sc-form .ax-btn { box-sizing: border-box; }
[data-screen="schedule"] .ax-card.ax-lessons { margin-bottom: 10px; }
.sc-form { grid-template-columns: minmax(0, 1fr); } .sc-form > * { min-width: 0; } .sc-row input[type="date"] { width: 0; }
/* 11-16 대표 "아직 수업이 없어요 오른쪽 위 물방울 지워 줘" → 카드 장식 동그라미 없앰 */ .ax-hero::after { display: none; }
.ax-red { color: #C9533F; }
.ax-addbtn { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #44586A; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.ax-addbtn[hidden] { display: none; }
/* 앱에서 여는 로그인 · 가입 · 비밀번호 찾기 · 탈퇴 화면: 아래 탭 숨김 (아직 로그인 전이거나 한 번만 쓰는 화면) */
html.in-app body.pg-auth .ax-tabbar { display: none; }
html.in-app body.pg-auth { padding-bottom: env(safe-area-inset-bottom, 0px); }
html.in-app body.pg-auth main button[type="submit"], html.in-app body.pg-auth main .btn-primary { width: 100%; min-height: 50px; border-radius: 14px; font-size: 16px; }
html.in-app body.pg-auth main input { font-size: 16px; min-height: 48px; border-radius: 12px; }

/* ===== 11-17 앱 보완: 교재 보기 · 별점 후기 · 오늘의 한 문장 · 연속 기록 · 선생님 숫자 ===== */
html.bv-on, html.bv-on body { overflow: hidden; }
.bv { position: fixed; inset: 0; z-index: 9000; background: #2B3036; display: flex; flex-direction: column; }
.bv-top { display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 6px; background: #1F2A33; color: #fff; }
.bv-head { flex: 1; min-width: 0; padding: 0 4px; }
.bv-head b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-head small { display: block; font-size: 12px; color: #AFC0CC; font-weight: 700; }
.bv-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.bv-btn:active { background: rgba(255,255,255,.12); }
.bv-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.bv-page { position: relative; margin: 0 auto 8px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.bv-scroll.zoomed .bv-page { margin-left: 0; }
.bv-page span { position: absolute; inset: 0; display: grid; place-items: center; color: #B8BEC4; font-weight: 800; font-size: 18px; }
.bv-page canvas { position: relative; display: block; }
.bv-load { color: #DCE3E8; text-align: center; padding: 30vh 24px 0; }
.bv-load i { display: inline-block; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #F3D68A; border-radius: 50%; animation: bvSpin .8s linear infinite; }
.bv-load .ax-btn { max-width: 260px; margin: 14px auto 0; }
@keyframes bvSpin { to { transform: rotate(360deg); } }
.ax-cover-last { position: absolute; right: 6px; top: 6px; background: rgba(31,42,51,.82); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; font-style: normal; }

.ax-review { padding: 16px 16px 12px; margin-top: 14px; }
.ax-rv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ax-rv-top b { display: block; font-size: 16px; }
.ax-rv-top small { color: var(--ax-soft); font-size: 12.5px; }
.ax-rv-x { border: 0; background: transparent; color: var(--ax-soft); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; }
.ax-stars { display: flex; gap: 6px; margin-top: 8px; }
.ax-stars button { border: 0; background: transparent; font-size: 34px; line-height: 1; color: #DDD6C9; cursor: pointer; padding: 0 2px; transition: transform .12s; }
.ax-stars button.on { color: #E9B949; }
.ax-stars button:active { transform: scale(1.2); }
.ax-rv-big .ax-stars { justify-content: center; margin: 4px 0 14px; }
.ax-rv-big .ax-stars button { font-size: 42px; }
.ax-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ax-ink); margin: 4px 2px 14px; line-height: 1.4; }
.ax-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ax-rv-item { padding: 14px 16px; margin-bottom: 8px; }
.ax-rv-item > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ax-rv-item small { color: var(--ax-soft); font-size: 12px; }
.ax-rv-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.ax-rv-stars { color: #E9B949; letter-spacing: 1px; }
.ax-rv-stars i { color: #DDD6C9; font-style: normal; }

.ax-daily { padding: 16px 18px; margin-top: 18px; }
.ax-daily-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ax-daily-top small { color: var(--ax-accent); font-size: 12.5px; font-weight: 800; }
.ax-say { display: inline-flex; align-items: center; gap: 5px; border: 0; background: #F2EFE8; color: var(--ax-ink); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 99px; cursor: pointer; }
.ax-daily-ko { font-size: 22px; font-weight: 800; margin: 10px 0 2px; line-height: 1.35; }
.ax-daily-rom { color: var(--ax-soft); font-size: 13.5px; margin: 0; }
.ax-daily-en { font-size: 15px; margin: 6px 0 0; }

.ax-streak { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 10px; }
.ax-streak b { display: block; font-size: 15px; }
.ax-streak small { color: var(--ax-soft); font-size: 12.5px; }
.ax-streak > div { flex: 1; min-width: 0; }
.ax-flame { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #FBE7D9; color: #D96B2E; }
.ax-flame.off { background: #F2EFE8; color: var(--ax-soft); }
.ax-badge { flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; color: #8A5A00; background: #FFF1C9; padding: 5px 9px; border-radius: 99px; }

.ax-tstats { padding: 16px; margin-top: 14px; }
.ts-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ts-box small { display: block; color: var(--ax-soft); font-size: 12px; font-weight: 600; }
.ts-box b { display: block; font-size: 26px; font-weight: 800; margin: 2px 0 6px; }
.ts-box b i { font-style: normal; font-size: 14px; color: var(--ax-soft); font-weight: 700; }
.ts-box b.over { color: #C0392B; }
.ts-box .ax-bar { margin-bottom: 5px; }
.ts-box .ax-bar i.full { background: #C0392B; }
.ts-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--ax-line); color: var(--ax-soft); font-size: 12px; }

html.dark body.appx .ax-stars button, html.dark body.appx .ax-rv-stars i { color: #3A444D; }
html.dark body.appx .ax-stars button.on { color: #E9B949; }
html.dark body.appx .ax-say { background: #2A3540; color: #ECEFF2; }
html.dark body.appx .ax-flame { background: #3A2A20; color: #F0A46E; }
html.dark body.appx .ax-flame.off { background: #2A3540; color: #9AA6B0; }
html.dark body.appx .ax-badge { background: #3A3320; color: #F3D68A; }
html.dark body.appx .ts-box b.over { color: #F08A7E; }
body.appx .ax-sec[hidden] { display: none; }   /* 11-17 진도 없는 학생 = '내 진도' 제목도 숨김 */
html body.appx .ts-box .ax-bar i.full { background: #C0392B; }
html.dark body.appx .ts-box .ax-bar i.full { background: #E0705F; }
/* 11-17 사이트 공통 button:hover 색이 앱 버튼에 묻지 않게 (폰은 누른 뒤 hover가 남음) */
.ax-cover:hover, .ax-stars button:hover, .ax-rv-x:hover, .bv-btn:hover { background: transparent; }
.ax-say:hover { background: #F2EFE8; }
html.dark body.appx .ax-say:hover { background: #2A3540; }

/* ===== 11-17 수강생 후기 (reviews.html · 홈 칸) ===== */
#home-reviews[hidden], .rv-summary[hidden], .rv-filter[hidden] { display: none; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rv-card { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07); display: flex; flex-direction: column; gap: 10px; }
.rv-stars { color: #E2A93B; letter-spacing: 1px; font-size: 15px; }
.rv-stars i { font-style: normal; color: var(--line); }
.rv-text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink); flex: 1; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-soft); }
.rv-meta b { color: var(--ink); }
.rv-summary { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 18px; padding: 18px 22px; margin: 8px 0 18px; box-shadow: 0 4px 18px rgba(68, 88, 106, 0.07); }
.rv-big { font-size: 40px; line-height: 1; color: var(--coral-dark); }
.rv-summary .rv-stars { font-size: 20px; display: block; }
.rv-summary small, .rv-home-avg small { color: var(--ink-soft); font-size: 12.5px; }
.rv-home-avg { display: flex; align-items: center; gap: 8px; margin: -6px 0 12px; }
.rv-home-avg:empty { display: none; }
.rv-filter { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.rv-filter button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.rv-filter button.on, .rv-filter button.on:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.rv-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); background: var(--card); border-radius: 18px; padding: 32px 20px; margin: 0; }
.page-reviews .cta-banner { margin-top: 32px; }
.rv-instructors-link { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.rv-instructors-link a { color: var(--coral-dark); font-weight: 700; text-decoration: none; }
html.dark.in-app .rv-card, html.dark.in-app .rv-summary, html.dark.in-app .rv-empty, html.dark.in-app .rv-filter button { background: #1F262D; box-shadow: none; border-color: #34404A; }
html.dark.in-app .rv-text, html.dark.in-app .rv-meta b, html.dark.in-app .rv-filter button { color: #ECEFF2; }
html.dark.in-app .rv-big { color: #CFE0EC; }
html.dark.in-app .rv-stars i { color: #3A444D; }
body.appx .ax-rv-hide, body.appx .ax-rv-hide:hover { margin-top: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
html.dark body.appx .ax-rv-hide { border-color: #3A444D; color: #CBD3DA; }
/* 11-17 서머타임 안내 (정기 수업 · 시계가 바뀐 첫 주) */
body.appx .ax-clock { margin: -4px 0 14px; padding: 8px 12px; border-radius: 12px; background: rgba(243, 214, 138, .22); color: inherit; font-size: 13px; line-height: 1.45; }
body.appx .ax-clock-s { display: block; color: #B95C3A; font-weight: 700; }
html.dark body.appx .ax-clock-s { color: #F0A88A; }
