/* BIGSWARE Main Renewal - index_new.css */
:root {
  --rn-blue: #2f6eff;
  --rn-blue-soft: rgba(35, 46, 255, 0.05);
  --rn-text: #2d2d2d;
  --rn-muted: #7a7a7a;
  --rn-gray: #4b5563;
  --rn-border: #e5e7eb;
  --rn-cream: #fffbf9;
  --rn-cream-border: #f0e9e6;
  --rn-bg-icon: #f7f3f0;
  --rn-store: #0f766e;
  --rn-store-bg: #0d9488;
  --rn-radius: 16px;
  --rn-radius-lg: 24px;
  --rn-container: 1280px;
  --rn-font: "Inter", "Noto Sans KR", "Noto Sans", sans-serif;
  /* 페이지 본문용 — 헤더/푸터 활성색은 common_css/renewal 에서 고정 */
}

.renewal-body {
  margin: 0;
  background: #fff;
  color: var(--rn-text);
  font-family: var(--rn-font);
  -webkit-font-smoothing: antialiased;
}

.renewal-wrap {
  min-height: 100vh;
  padding-bottom: 0;
}

.rn-container {
  width: 100%;
  max-width: var(--rn-container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.rn-m-only { display: none !important; }
.rn-pc-only { /* visibility toggled in media queries */ }

img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }


/* (header/footer styles moved to renewal_header_footer.css) */

/* ===== Welcome ===== */
.rn-welcome { padding: 40px 0 0; }
.rn-welcome__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rn-border);
}
.rn-welcome__greeting {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rn-welcome__greeting strong {
  font-size: 24px;
  color: #111827;
}
.rn-welcome__greeting #greetingName {
  font-size: 24px;
  color: #111827;
}
.rn-welcome__greeting .rn-welcome__hello [data-welcome-guest],
.rn-welcome__greeting .rn-welcome__hello [data-welcome-user] {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}
.rn-welcome__greeting #rnWelcomeMsg {
  font-size: 16px;
  color: var(--rn-gray);
  font-weight: 400;
}
.rn-welcome__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--rn-gray);
  font-size: 15px;
  font-weight: 600;
}
.rn-welcome__date img { width: 16px; height: 16px; }
.rn-welcome__cards {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rn-status-card {
  width: 360px;
  padding: 16px;
  border: 1px solid var(--rn-border);
  border-radius: 14px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.rn-status-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.rn-status-card__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.rn-badge img { width: 14px; height: 14px; }
.rn-badge svg { display: block; flex-shrink: 0; width: 14px; height: 14px; }
.rn-badge--blue { color: var(--rn-blue); }
.rn-badge--teacher {
  color: #232eff;
  background: #f3f4f6;
}
.rn-badge--parent {
  color: #ff7a59;
  background: #fff1ed;
}
.rn-badge--trial {
  color: #76b82a;
  background: #eefff2;
  font-weight: 700;
}
.rn-badge--gray { color: #4b5563; font-weight: 600; padding: 4px 8px; }
.rn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 3px;
}
.rn-status-card__pay-label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}
.rn-status-card__period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.rn-status-card__period [data-rn-ms-period-value] {
  color: #111827;
  text-align: right;
  flex: 1;
  min-width: 0;
}
.rn-muted { color: #9ca3af; }
.rn-status-card__unsubscribed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rn-status-card__cta-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d2d2d;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
a.rn-status-card__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /*width: 100px;*/
  height: 48px;
  border-radius: 14px;
  background: #232eff;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 12px;
  max-width: fit-content;
}
a.rn-status-card__subscribe-btn:hover {
  opacity: 0.92;
  color: #fff;
}
.rn-class-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 84px;
  padding: 20px;
  background: var(--rn-blue-soft);
  border: 1.5px solid var(--rn-blue);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(35,46,255,0.06);
  box-sizing: border-box;
}
.rn-class-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--rn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-class-card__icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.rn-class-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--rn-blue);
  text-align: left;
}
.rn-class-card__text em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
}
.rn-class-card__text strong {
  font-size: 18px;
  font-weight: 800;
}

/* ===== Layout ===== */
.rn-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 60px;
}
.rn-layout__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.rn-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== Hero ===== */
.rn-hero { position: relative; }
.rn-hero__slider,
.rn-hero-swiper {
  height: 290px;
  border-radius: var(--rn-radius-lg);
  overflow: hidden;
  background: transparent;
}
.rn-hero-swiper .swiper-wrapper {
  height: 100%;
}
.rn-hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a1a;
}
.rn-hero-swiper .swiper-slide img,
.rn-hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}
/* PC 기본 / 모바일 mo_ver */
.rn-hero-swiper .swiper-slide img.mo_ver {
  display: none;
}
.rn-hero__controls {
  display: flex !important;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.rn-hero__progress {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}
.rn-hero__progress-bar {
  height: 100%;
  width: 33%;
  background: var(--rn-blue);
  transition: width 0.3s;
}
.rn-hero__pause{display:flex;}

.rn-hero__pause img { width: 10px; height: 10px; }
.rn-hero__pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rn-hero-prev{
  display:flex;
}

.rn-hero-next{
  display:flex;
}
.rn-hero__num {
  font-size: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.rn-hero__num em { font-style: normal; color: var(--rn-muted); }
.rn-hero__num span { color: var(--rn-muted); }

/* ===== Section commons ===== */
.rn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rn-section-head__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rn-section-head__right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.rn-section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--rn-text);
}
.rn-section-title--light { color: #fff; }
.rn-chip {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--rn-cream);
  border: 1px solid var(--rn-cream-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rn-muted);
}
.rn-setting-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 36px;
  background: #fff;
  border: 1.5px solid #ef7d00;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ef7d00;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.rn-setting-btn:hover{
  background: var(--rn-blue);
  border-color: var(--rn-blue);
  color: #fff;
}
.rn-setting-btn:hover svg path {
  fill: #fff;
}
.rn-setting-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.rn-setting-btn__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  color: #ef7d00;
}
.rn-setting-btn:hover .rn-setting-btn__icon {
  color: #fff;
}

/* Today's Lessons — setting wrap & onboarding tooltip */
.rn-lesson.rn-panel,
.rn-lesson .rn-section-head,
.rn-lesson .rn-section-head__right {
  overflow: visible;
}
.rn-lesson-setting-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  z-index: 40;
}
.rn-lesson-tooltip {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 14px);
  z-index: 50;
  width: 300px;
  padding: 16px 18px;
  background: #ef7d00;
  border-radius: 16px;
  box-shadow: 0 8px 12px rgba(239, 125, 0, 0.25);
  color: #fff;
  transform: translateX(-50%);
  box-sizing: border-box;
  pointer-events: auto;
}
.rn-lesson-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #ef7d00;
  transform: rotate(45deg);
}
.rn-lesson-tooltip[hidden] { display: none !important; }
.rn-lesson-tooltip__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rn-lesson-tooltip__sparkle { flex-shrink: 0; }
.rn-lesson-tooltip__step {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}
.rn-lesson-tooltip__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rn-lesson-tooltip__close img {
  width: 20px;
  height: 20px;
  display: block;
}
.rn-lesson-tooltip__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.33;
}
.rn-lesson-tooltip__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.33;
  color: rgba(255, 255, 255, 0.8);
}
.rn-lesson-tooltip__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.rn-lesson-tooltip__remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.rn-lesson-tooltip__checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.rn-lesson-tooltip__checkbox-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  flex-shrink: 0;
}
.rn-lesson-tooltip__checkbox-input:checked + .rn-lesson-tooltip__checkbox-box {
  background: #fff;
}
.rn-lesson-tooltip__checkbox-input:checked + .rn-lesson-tooltip__checkbox-box::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 3px auto 0;
  border-left: 2px solid #ef7d00;
  border-bottom: 2px solid #ef7d00;
  transform: rotate(-45deg);
}
.rn-lesson-tooltip__remember-text {
  font-size: 11px;
  color: #fff;
}
.rn-lesson-tooltip__gotit {
  padding: 6px 16px;
  border: 0;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Lesson Management Modal */
#rnLessonBackdrop {
  z-index: 10000;
}
.rn-lesson-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.rn-lesson-modal[hidden] { display: none !important; }
.rn-lesson-modal__inner {
  width: 100%;
  max-width: 640px;
  max-height: min(720px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 24px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}
.rn-lesson-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.rn-lesson-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.rn-lesson-modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.rn-lesson-modal__close img {
  width: 24px;
  height: 24px;
}
.rn-lesson-modal__tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  flex-shrink: 0;
}
.rn-lesson-modal__tab {
  flex: 1;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rn-lesson-modal__tab.is-active {
  background: #4b6bfb;
  border-color: #4b6bfb;
  color: #fff;
  font-weight: 400;
}
.rn-lesson-modal__tab:not(.is-active) {
  background: #fff;
  border-color: #e5e7eb;
}
.rn-lesson-modal__panel[hidden] { display: none !important; }
.rn-lesson-modal__desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.4;
  color: #7a7a7a;
  text-align: center;
}
.rn-lesson-modal__label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-modal__chips {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.rn-lesson-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.rn-lesson-chip__code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #4b5563;
}
.rn-lesson-chip__desc {
  font-size: 13px;
  color: #6b7280;
}
.rn-lesson-chip__check {
  fill: #2f6eff;
}
.rn-lesson-chip.is-selected {
  background: #fff;
  border: 2px solid #2f6eff;
}
.rn-lesson-chip.is-selected .rn-lesson-chip__code,
.rn-lesson-chip.is-selected .rn-lesson-chip__desc {
  color: #2f6eff;
}
.rn-lesson-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #4b6bfb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rn-lesson-modal__cta--full {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 40px;
  font-size: 16px;
  border-radius: 8px;
}
.rn-lesson-modal__preview {
  margin-top: 0;
  width: 100%;
}
.rn-lesson-modal__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.rn-lesson-modal__preview-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-modal__preview-count {
  font-size: 14px;
  color: #6b7280;
}
.rn-lesson-modal__info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}
.rn-lesson-modal__info p { margin: 0; }
.rn-lesson-modal__info strong { font-weight: 700; }
.rn-lesson-modal__date {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  color: #4b5563;
}
.rn-lesson-modal__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 18px 16px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 10px;
  background: #4b6bfb;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.rn-lesson-modal__custom-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rn-lesson-modal__custom-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-modal__custom-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff2fe;
  color: #4b6bfb;
  font-size: 14px;
  font-weight: 700;
}
.rn-lesson-modal__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.rn-lesson-modal__search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #111827;
  background: transparent;
}
.rn-lesson-modal__search input::placeholder { color: #9ca3af; }
.rn-lesson-modal__groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.rn-lesson-modal__group {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.rn-lesson-modal__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  text-align: left;
}
.rn-lesson-modal__group-head.is-collapsed { border-bottom: 0; }
.rn-lesson-modal__group-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rn-lesson-modal__group-accent {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #4b6bfb;
  flex-shrink: 0;
}
.rn-lesson-modal__group-date {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-modal__group-count {
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff2fe;
  color: #4b6bfb;
  font-size: 14px;
  white-space: nowrap;
}
.rn-lesson-modal__group-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9ca3af;
}
.rn-lesson-modal__group-body[hidden] { display: none !important; }
.rn-lesson-modal__group-body {
  width: 100%;
}
.rn-lesson-modal__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}
.rn-lesson-modal__row:first-child { border-top: 0; }
.rn-lesson-modal__row.is-hidden { display: none !important; }
.rn-lesson-modal__checkbox {
  width: 22px;
  height: 22px;
  border: 1.5px solid #6b7280;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
}
.rn-lesson-modal__checkbox:checked {
  border-color: #4b6bfb;
  background: #4b6bfb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 11.5 3 8l1.1-1.1 2.4 2.4 4.9-4.9L12.5 5.5z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.rn-lesson-modal__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  object-fit: cover;
  flex-shrink: 0;
}
.rn-lesson-modal__row-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-lesson-modal__row-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.rn-lesson-modal__row-time {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
}
.rn-lesson-modal__status {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.rn-lesson-modal__status--progress {
  border: 1px solid #4b6bfb;
  color: #4b6bfb;
  background: #fff;
}
.rn-lesson-modal__status--standby {
  border: 1px solid #9ca3af;
  color: #6b7280;
  background: #fff;
}
.rn-lesson-modal__status--completed {
  background: #4b6bfb;
  color: #fff;
  border: 1px solid #4b6bfb;
}
.rn-lesson-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.rn-lesson-modal__delete {
  padding: 12px 16px;
  border: 1px solid #ef4444;
  border-radius: 8px;
  background: #fff;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Success Alert */
.rn-lesson-success {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10002;
  width: calc(100% - 40px);
  max-width: 400px;
  padding: 24px;
  background: #fff;
  border: 1px solid #f0e9e6;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(118, 184, 42, 0.1);
  transform: translate(-50%, -50%);
  text-align: center;
  box-sizing: border-box;
}
.rn-lesson-success[hidden] { display: none !important; }
.rn-lesson-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: #e8f7d4;
}
.rn-lesson-success__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #2d2d2d;
}
.rn-lesson-success__desc {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.4;
  color: #7a7a7a;
}
.rn-lesson-success__ok {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #76b82a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.rn-lesson-modal__date-range {
  align-items: flex-start;
}
.rn-lesson-modal__date-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-sizing: border-box;
}
.rn-lesson-modal__date-picker-main {
  flex: 1;
  min-width: 0;
}
.rn-lesson-modal__date-display {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.rn-lesson-modal__date-picker.is-editing .rn-lesson-modal__date-display {
  display: none;
}
.rn-lesson-modal__date-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.rn-lesson-modal__date-edit[hidden] {
  display: none !important;
}
.rn-lesson-modal__date-picker.is-editing .rn-lesson-modal__date-edit {
  display: flex !important;
}
.rn-lesson-modal__date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.rn-lesson-modal__date-sep {
  color: #9ca3af;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.rn-lesson-modal__period-select,
.rn-lesson-modal__date-input,
.rn-lesson-modal__date-native {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
}
.rn-lesson-modal__date-native {
  cursor: text;
  min-height: 24px;
}
.rn-lesson-modal__date-native::-webkit-calendar-picker-indicator,
.rn-lesson-modal__date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.rn-lesson-add-modal {
  position: fixed;
  inset: 0;
  z-index: 12020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.rn-lesson-add-modal[hidden] { display: none !important; }
.rn-lesson-add-modal__inner {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.rn-lesson-add-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.rn-lesson-add-modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-add-modal__close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rn-lesson-add-modal__body {
  overflow: auto;
  flex: 1;
}
.rn-lesson-add-modal__section {
  padding: 24px;
}
.rn-lesson-add-modal__section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.rn-lesson-add-modal__search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  margin-bottom: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8fa;
}
.rn-lesson-add-modal__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #111827;
}
.rn-lesson-add-modal__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}
.rn-lesson-add-modal__tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.rn-lesson-add-modal__tab.is-active {
  background: #232eff;
  color: #fff;
  font-weight: 700;
}
.rn-lesson-add-modal__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rn-lesson-add-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  padding: 24px 16px;
  color: #6b7280;
  font-size: 14px;
}
.rn-lesson-add-modal__spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #232eff;
  border-radius: 50%;
  animation: rn-lesson-add-spin 0.7s linear infinite;
}
@keyframes rn-lesson-add-spin {
  to { transform: rotate(360deg); }
}
.rn-lesson-add-modal__card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.rn-lesson-add-modal__card.is-selected {
  border-color: #232eff;
  box-shadow: 0 4px 6px rgba(35, 46, 255, 0.08);
}
.rn-lesson-add-modal__check {
  width: 24px;
  height: 24px;
  border: 1.5px solid #9ca3af;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.rn-lesson-add-modal__check.is-checked {
  border-color: #232eff;
  background: #232eff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 11.5 3 8l1.1-1.1 2.4 2.4 4.9-4.9L12.5 5.5z'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 1px 2px rgba(35, 46, 255, 0.25);
}
.rn-lesson-add-modal__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f7f8fa;
  flex-shrink: 0;
}
.rn-lesson-add-modal__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rn-lesson-add-modal__card .rn-lesson-add-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-lesson-add-modal__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
}
.rn-lesson-add-modal__badge--primary {
  background: #e2e3ff;
  color: #232eff;
}
.rn-lesson-add-modal__count {
  margin: 12px 0 0;
  text-align: center;
  color: #9999a6;
  font-size: 13px;
}
.rn-lesson-add-modal__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 12px auto 0;
  padding: 8px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.rn-lesson-add-modal__more[hidden] {
  display: none !important;
}
.rn-lesson-add-modal__more:hover {
  background: #f9fafb;
  color: #4b5563;
}
.rn-lesson-add-modal__more svg {
  flex-shrink: 0;
}
.rn-lesson-add-modal__more.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.rn-lesson-add-modal__more.is-loading span {
  opacity: 0.7;
}
.rn-lesson-add-modal__more.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: rn-lesson-add-spin 0.7s linear infinite;
}
.rn-lesson-add-modal__more.is-loading svg {
  display: none;
}
.rn-lesson-add-modal__divider {
  height: 8px;
  background: #f3f4f6;
}
.rn-lesson-add-modal__date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rn-lesson-add-modal__date-row input[type="date"] {
  flex: 1 1 140px;
  min-width: 0;
  height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 12px;
  background: #f7f8fa;
}
.rn-lesson-add-modal__date-sep {
  color: #9ca3af;
  font-size: 24px;
  font-weight: 600;
}
.rn-lesson-add-modal__date-btn {
  flex: 1 1 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: #4b6bfb;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.rn-lesson-add-modal__hint {
  margin: 12px 0 0;
  color: #999;
  font-size: 16px;
}
.rn-lesson-add-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rn-lesson-add-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}
.rn-lesson-add-modal__chip img {
  width: 14px;
  height: 14px;
}
.rn-lesson-add-modal__time-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rn-lesson-add-modal__time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8fa;
}
.rn-lesson-add-modal__time-field span {
  color: #4b5563;
  font-size: 16px;
}
.rn-lesson-add-modal__time-field select {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  appearance: none;
}
.rn-lesson-add-modal__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #e5e7eb;
}
.rn-lesson-add-modal__cta {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 767px) {
  .rn-lesson-add-modal {
    align-items: flex-end;
    padding: 0;
  }
  .rn-lesson-add-modal__inner {
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .rn-lesson-add-modal__title,
  .rn-lesson-add-modal__card .rn-lesson-add-modal__title {
    font-size: 18px;
  }
  .rn-lesson-add-modal__section-title {
    font-size: 18px;
  }
  .rn-lesson-add-modal__chip {
    font-size: 16px;
  }
}

.rn-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--rn-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: 0.4s ease;
}
.rn-link-btn:hover {
  color:#000;
}
.rn-link-btn:hover svg {
  fill:#000;
}
.rn-link-btn svg {
  width: 15px;
  height: 15px;
  fill:#7a7a7a;
  transition: 0.4s ease;
}

/* ===== Today's Lesson showcase ===== */
.rn-lesson-empty {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  color: var(--rn-muted);
  font-size: 15px;
}
.rn-age {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  background: #fffbf9;
  border: 1px solid #f0e9e6;
  color: #7a7a7a;
  flex-shrink: 0;
  white-space: nowrap;
}
.rn-age-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.rn-age--brand-soft {
  background: #e2e3ff;
  border-color: transparent;
  color: var(--rn-blue);
}

.rn-lesson-showcase__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.rn-lesson-showcase__hero {
  flex: 1 1 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rn-lesson-showcase__list {
  flex: 1 1 396px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.rn-featured-card {
  background: #232eff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 14px rgba(35, 46, 255, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rn-featured-card__media {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.rn-featured-card__thumb {
  width: 150px;
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.rn-featured-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background:  #fff;
}
.rn-featured-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rn-featured-card__body .rn-age {
  background: #e2e3ff;
}
.rn-featured-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}
.rn-featured-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-featured-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  background: #fff;
  border-radius: 10px;
  color: var(--rn-blue) !important;
  font-size: 17px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.rn-featured-card__cta:hover { background: #f3f4ff; }
.rn-featured-card__cta svg { fill: var(--rn-blue); width: 20px; height: auto; }

.rn-featured-mascot {
  display: flex;
  align-items: center;
  gap: 30px;
}
.rn-featured-mascot__img {
  width: 103px;
  flex-shrink: 0;
}
.rn-featured-mascot__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rn-featured-mascot__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #121212;
}
.rn-featured-mascot__desc {
  margin: 0;
  font-size: 12px;
  color: #121212;
}

.rn-suggested-item {
  width: 100%;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 12px;
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.rn-suggested-item.is-selected {
  background: #fff;
  border-color: var(--rn-blue);
}
.rn-suggested-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: none;
  border: 0;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
}
.rn-suggested-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.rn-suggested-card__chevron img { width: 100%; height: 100%; object-fit: contain; }
.rn-suggested-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rn-suggested-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #7a7a7a;
}
.rn-suggested-item.is-selected .rn-suggested-card__title { color: #2d2d2d; }
.rn-suggested-card__thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.rn-suggested-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 반응형(<1024px)에서는 수업을 누르면 아코디언처럼 그 자리에서 펼쳐짐 (데스크톱은 featured-card로 표시) */
.rn-suggested-panel {
  display: none;
}
@media (max-width: 1023px) {
  .rn-suggested-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 14px 14px;
  }
}
.rn-suggested-panel__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rn-muted);
}
.rn-suggested-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: var(--rn-blue);
  color: #fff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
}
.rn-suggested-panel__cta svg { fill: #fff; width: 18px; height: auto; }
.rn-suggested-panel__cta:hover { background: #003ecd; }

.rn-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  border: 1px solid rgba(209,213,219,0.5);
  border-radius: 999px;
  font-size: 20px;
  margin-top: 20px;
}

/* ===== Card grids ===== */
.rn-card-grid {
  display: grid;
  gap: 20px;
}
.rn-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rn-card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(215px ,1fr));}
.rn-watch .rn-card-grid--3 { row-gap: 30px; }

.rn-card { display: block; }
.rn-card__thumb {
  aspect-ratio: 215 / 210;
  border: 1px solid rgba(209,213,219,0.5);
  border-radius: var(--rn-radius);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.rn-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.rn-card__thumb img:hover{
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}


.rn-library .rn-card__title {
  margin: 0;
}
.rn-card__thumb--video { height: 210px; aspect-ratio: auto; }
.rn-card__time {
  position: absolute;
  right: 11px;
  bottom: 11px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.rn-card__title {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rn-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

/* Learning Library (Figma 1:962) */
.rn-library .rn-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rn-library .rn-card__thumb {
  width: 100%;
  aspect-ratio: 260 / 210;
  height: auto;
  overflow: hidden;
}
.rn-library .rn-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.rn-library .rn-card__thumb img:hover{
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

.rn-library .rn-card__title {
  margin: 0;
}

/* ===== Discover (2×2 magazine + tall shorts) ===== */
.rn-discover__layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.rn-discover__mag {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}
.rn-discover__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rn-discover__thumb {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 16px;
  overflow: hidden;
}
.rn-discover__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.rn-discover__thumb img:hover{
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}
.rn-discover__item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--rn-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.rn-discover__shorts {
  position: relative;
  width: 282px;
  height: 456px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.5);
  display: block;
  background: #1e1e1e;
}
.rn-discover__shorts > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}
.rn-discover__shorts > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.rn-discover__shorts.is-video-active > video {
  opacity: 1;
}
.rn-discover__shorts.is-video-active > img {
  opacity: 0;
}
.rn-discover__shorts::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
.rn-discover__shorts .rn-card__time {
  position: absolute;
  right: 8px;
  bottom: 10px;
  z-index: 1;
}
.rn-discover__shorts p {
  position: absolute;
  left: 10px;
  bottom: 16px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  z-index: 1;
}

/* ===== Academy ===== */
.rn-section-head__left--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.rn-section-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--rn-text);
  line-height: 1.4;
}
.rn-academy__grid {
  gap: 20px;
}
.rn-poster {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  height: 286px;
  background: #f3f4f6;
}
.rn-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.rn-poster img:hover{
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

/* ===== Sidebar (A17~A21) ===== */
.rn-side-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
.rn-side-promo[hidden] { display: none !important; }
.rn-side-promo__dots {
  display: flex;
  gap: 10px;
}
.rn-side-promo__dots button {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #7a7a7a;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}
.rn-side-promo__dots button:hover {
  background: #232eff0d;
}
.rn-side-promo__dots button.is-active {
  background: var(--rn-blue);
  border-color: var(--rn-blue);
  color: #fff;
}
.rn-side-promo__img {
  width: 100%;
  aspect-ratio: 560 / 480;
  border-radius: 24px;
  overflow: hidden;
}
.rn-side-promo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rn-bigshome-card {
  width: 100%;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  padding: 0 20px 20px;
  box-sizing: border-box;
}
.rn-bigshome-card__head {
  position: relative;
  margin: 0 -20px;
  height: 83px;
  background: #ff9800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rn-bigshome-card__deco {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  max-width: 300px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}
.rn-bigshome-card__head span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rn-bigshome-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}
.rn-bigshome-card__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px ;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: 0.4s ease;
}
.rn-bigshome-card__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f6f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-bigshome-card__item:hover span.rn-bigshome-card__icon{
  background: #ffd699;
}
/*
.rn-bigshome-card__icon--plain {
  background: transparent;
  padding: 0;
} 사용하지 않음
*/
.rn-bigshome-card__icon svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.rn-bigshome-card__icon--plain img {
  width: 60px;
  height: 60px;
}
.rn-bigshome-card__icon em {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rn-bigshome-card__icon em[hidden] { display: none !important; }


.rn-bigshome-card__item strong {
  font-size: 16px;
  font-weight: 400;
  color: #111827;
}
.rn-bigshome-card__item span {
  font-size: 16px;
  font-weight: 400;

}

.rn-bigshome-card__item span.is-alert { color: #ef4444; }
.rn-bigshome-card__item span.is-ok { color: #4caf50; }
.rn-bigshome-card__item span.is-none { color: #7a7a7a; }

.rn-continue-panel {
  width: 100%;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  padding: 30px 24px;
  box-sizing: border-box;
  background: #fff;
}
.rn-continue-panel__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}
.rn-continue-panel__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rn-continue-item.is-open {
  position: relative;
  min-height: 238px;
}

.rn-continue-item__bar {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--rn-blue);
  border-radius: 16px;
  padding: 16px 12px ;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

.rn-continue-item__bar svg {
  fill: #9ca3af;
  width: 20px;
  height: auto;
}

.rn-continue-item__detail {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  padding: 28px 20px 20px;
  background: #f8f9fb;
  border-radius: 0 0 24px 24px;
  min-height: 180px;
  box-sizing: border-box;
}
.rn-continue-item__detail p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}
.rn-continue-item__detail img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  display: block;

}

.rn-continue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  background: #f9f9f9;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: 0.4s ease;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;

}
.rn-continue-row:hover{
  background: #fff;
  border: 1px solid var(--rn-blue);
}

.rn-continue-row svg{
  fill: #9ca3af;
  width: 20px;
  height: auto;
}

.rn-continue-row span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rn-continue-row > img:first-of-type {
  width: 51px;
  height: 51px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.rn-continue-row__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.rn-news {
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(74, 46, 38, 0.05);
  background: #fff;
  box-sizing: border-box;
}
.rn-news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.rn-news__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #000;
}
.rn-news__list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 21px;
}
.rn-news__list li {
  padding: 12px 0;
  border-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #2d2d2d;
}
.rn-news__list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  transition: 0.4s ease;
}
.rn-news__list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rn-side-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.rn-side-widget[hidden] { display: none !important; }
.rn-side-widget__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rn-side-widget__dots[hidden] {
  display: none !important;
}
.rn-side-widget__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
}
.rn-side-widget__dot.is-active {
  background: #ff7a59;
  border-color: #ff7a59;
  color: #fff;
}
.rn-side-widget__media {
  width: 100%;
  height: 477px;
  border-radius: 24px;
  overflow: hidden;
  background: #f3f4f6;
}
.rn-side-widget img,
.rn-side-widget__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* legacy quick/continue (unused on PC, keep harmless) */
.rn-quick { display: none; }
.rn-continue-card { display: none; }
.rn-side-feature { display: none; }

/* ===== Store (BigsMom Products) ===== */
.rn-store {
  position: relative;
  background: #fff;
  padding: 0 0 20px;
  margin-top: 0;
  width: 100%;
}
.rn-store__banner {
  background: #3cc796;
  border-radius: 24px 24px 0 0;
  min-height: 153px;
  padding: 20px 20px 60px;
  box-sizing: border-box;
}
.rn-store__banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.rn-store__titles {
  color: #fff;
  max-width: 640px;
  flex: 1;
  min-width: 0;
}
.rn-store__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.rn-store__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}
.rn-store__shop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 0 28px;
  background: #ffffff43;
  border: 1px solid #ffffff23;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.rn-store__shop:hover {
  border-color: #fff;
}


.rn-store__shop--block {
  display: none !important;
  width: 100%;
  height: 70px;
  font-size: 20px;
  margin-top: 44px;
}
.rn-store__body {
  margin: -45px 20px 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.rn-store__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.rn-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc((100% - 60px) / 4);
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  box-sizing: border-box;
}
.rn-product__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);

}


.rn-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.rn-product__img img:hover {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

.rn-product__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  word-break: break-word;
}
.rn-product__price {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #7a7a7a;
  line-height: 1.3;
}

/* ===== Mobile-only blocks ===== */
.rn-m-search { display: none; }
.rn-m-news { display: none; }
.rn-hero__pager-m { display: none; }
.rn-continue-m { display: none; }

.rn-bigshome__banner {
  position: relative;
  background: #ff9800;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px 16px 0 0;
  margin: 0;
  overflow: hidden;
}
.rn-bigshome__deco {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  max-width: 300px;
  opacity: 0.9;
  pointer-events: none;
}
.rn-bigshome__banner span { position: relative; z-index: 1; }
.rn-bigshome {
  display: none;
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 12px;
}
.rn-bigshome__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  text-align: center;
  padding: 16px 8px 8px;
}
.rn-bigshome__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #111827;
  padding: 4px;
  text-decoration: none;
}
.rn-bigshome__item strong { font-size: 12px; font-weight: 700; }
.rn-bigshome__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f6f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-bigshome__icon svg {
  width:30px;
  height:auto;

}

/* .rn-bigshome__icon--plain { background: transparent; }사용하지 않음 */
.rn-bigshome__icon img { width: 24px; height: 24px; object-fit: contain; }
.rn-bigshome__icon--plain img { width: 48px; height: 48px; }
.rn-bigshome__icon em {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rn-bigshome__icon em[hidden] { display: none !important; }
.rn-bigshome__sub {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.rn-bigshome__sub.is-alert { color: #ef4444; }
.rn-bigshome__sub.is-ok { color: #4caf50; }
.rn-bigshome__sub.is-none { color: #7a7a7a; }

.rn-continue-m__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.rn-continue-m__selected { position: relative; min-height: 200px; }
.rn-continue-m__bar {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid #ef4444;
  border-radius: 20px;
  padding: 18px 20px;
  font-size: 16px;
  box-sizing: border-box;
}
.rn-continue-m__detail {
  position: relative;
  z-index: 1;
  margin-top: -12px;
  padding: 28px 16px 20px;
  background: #fff4d6;
  border-radius: 0 0 24px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
}
.rn-continue-m__detail p {
  flex: 1;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.rn-continue-m__detail img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 8px;
}
.rn-continue-m__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: #f9f9f9;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
}
.rn-continue-m__row span {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rn-continue-m__row > img:first-of-type {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== Responsive ===== */

/*
 * Breakpoints
 * - Mobile:  max-width 767px
 * - Tablet:  768px – 1023px  (mobile UI)
 * - Desktop: min-width 1024px
 */

/* Mobile + Tablet shared (mobile UI) */
@media (max-width: 1023px) {


  .rn-pc-only { display: none !important; }
  .rn-m-only { display: block !important; }
  .rn-m-news { display: flex !important; }
  .rn-m-news[hidden] { display: none !important; }
  .rn-hero__pager-m { display: flex !important; }
  .rn-bigshome { display: block !important; }
  .rn-continue-m { display: block !important; }
  .rn-continue-m[hidden] { display: none !important; }

  body.renewal-body {
    background: #f9fafb;
  }
  body.renewal-body .renewal-wrap {
    --rn-m-gutter: 20px;
    padding-bottom: 180px;
    background: #f9fafb;
  }

  .rn-welcome,
  .rn-sidebar { display: none !important; }

  body.renewal-body .rn-main {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 12px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  body.renewal-body .rn-container,
  body.renewal-body .rn-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rn-layout {
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 40px !important;
  }
  .rn-layout__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Card-like sections */
  .rn-panel {
    background: #fff;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 24px;
    padding: 24px 16px;
    box-sizing: border-box;
  }
  .rn-bigshome.rn-panel { padding: 0 0 12px; overflow: hidden; }
  .rn-btn-outline {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-top: 20px;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 999px;
    font-size: 16px;
    color: #000 !important;
    text-decoration: none;
    background: #fff;
    box-sizing: border-box;
  }

  /* Hero */
  .rn-hero {
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  .rn-hero__slider,
  .rn-hero-swiper {
    height: 220px;
    border-radius: 24px !important;
    overflow: hidden;
    width: 100% !important;
    background: transparent;
  }
  .rn-hero-swiper .swiper-slide {
    width: 100% !important;
    height: 220px;
  }
  .rn-hero-swiper .swiper-slide img,
  .rn-hero__fallback {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .rn-hero-swiper .swiper-slide img {
    display: none;
  }
  .rn-hero-swiper .swiper-slide img.mo_ver {
    display: block !important;
  }
  .rn-hero__pager-m {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
  }
  .rn-hero__pager-m em {
    font-style: normal;
    color: #9ca3af;
    font-size: 9px;
  }
  .rn-hero__pager-m span { color: #9ca3af; font-weight: 400; }

  /* News ticker */
  .rn-m-news {
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #f3f8ff;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
  }
  .rn-m-news__badge {
    flex-shrink: 0;
    background: #fff;
    color:  var(--rn-blue);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
  }
  .rn-m-news__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rn-section-title {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #000;
    white-space: normal;
    overflow: visible;
  }
  .rn-section-head {
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
    align-items: center;
  }
  .rn-section-head__left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .rn-section-head__right {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 12px;
  }
  .rn-section-head__right .rn-link-btn,
  .rn-section-head__right .rn-setting-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .rn-chip { font-size: 13px; padding: 5px 10px; flex-shrink: 0; }
  .rn-setting-btn img {
    width: 18px;
    height: 18px;
  }

  .rn-card-grid--4,
  .rn-card-grid--3,
  .rn-watch__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .rn-card__thumb { height: 140px; }
  .rn-card__thumb--video { height: auto;   aspect-ratio: 260 / 210; }
  .rn-card__title { font-size: 15px; white-space: normal; }

  .rn-discover.rn-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }

  /* Learning Library — Figma 1:962 */
  .rn-link-btn svg{
    width: 20px;
    fill: #7a7a7a;
  }
  .rn-library.rn-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  .rn-library .rn-section-head {
    margin-bottom: 0;
  }
  .rn-library .rn-card-grid--4 {
    gap: 30px 20px;
    width: 100%;
  }
  .rn-library .rn-card__thumb {
    width: 100%;
    height: auto !important;
    aspect-ratio: 260 / 210;
    border-radius: 16px;
    overflow: hidden;
  }

  .rn-library .rn-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
    display: block;
  }

  .rn-library .rn-card__title {
    font-size: 15px;
    line-height: 1.5;
    color: #2d2d2d;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  .rn-library .rn-btn-outline {
    display: flex !important;
    height: 56px;
    margin-top: 0;
    font-size: 16px;
    border-radius: 999px;
  }

  .rn-lesson.rn-panel {
    padding: 28px 18px;
  }
  .rn-age {
    font-size: 13px;
    padding: 4px 7px;
  }
  .rn-lesson-showcase__row {
    flex-direction: column;
    gap: 30px;
  }
  .rn-lesson-showcase__hero,
  .rn-lesson-showcase__list {
    flex-basis: auto;
    width: 100%;
  }
  .rn-lesson-showcase__list {
    gap: 12px;
    max-height: 420px;
  }
  .rn-featured-card__thumb {
    border-radius: 12px;
  }
  .rn-featured-card__cta {
    border-radius: 12px;
  }
  .rn-suggested-card {
    padding: 16px;
    gap: 12px;
  }
  .rn-suggested-card__chevron {
    display: none;
  }
  .rn-suggested-card__title {
    font-size: 16px;
  }

  /* Discover mobile: stack — mag 2x2 then shorts full width, or staggered */
  .rn-discover__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .rn-discover__mag {
    display: contents;
  }
  .rn-discover__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rn-discover__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .rn-discover__item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .rn-discover__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .rn-discover__shorts {
    grid-column: 2;
    grid-row: 2 / span 2;
    width: 100%;
    height: auto;
    min-height: 280px;
    align-self: stretch;
  }
  .rn-discover__item p { font-size: 15px; }
  .rn-discover__shorts p {
    font-size: 14px;
    bottom: 12px;
  }
  .rn-discover__thumb {
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 16px;
    overflow: hidden;
  }
  .rn-academy.rn-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  .rn-academy .rn-section-head {
    margin-bottom: 0;
  }
  .rn-academy .rn-section-head__left--stack {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .rn-academy__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }
  .rn-academy .rn-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 268 / 358;
    border-radius: 12px;
    overflow: hidden;
  }
  .rn-academy .rn-poster img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    display: block;
  }
  .rn-academy .rn-btn-outline {
    display: flex !important;
    height: 56px;
    margin-top: 0;
    font-size: 16px;
    border-radius: 999px;
  }

  /* Originals */
  body.renewal-body .rn-store {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    padding: 0 0 24px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: #fff;
  }
  body.renewal-body .rn-store__banner {
    border-radius: 0 !important;
    min-height: 153px;
    padding: 20px 20px 70px !important;
  }
  body.renewal-body .rn-store__banner-inner {
    max-width: none;
    display: block;
  }
  body.renewal-body .rn-store__title {
    font-size: 28px;
    font-weight: 900;
  }
  body.renewal-body .rn-store__desc {
    font-size: 15px;
    font-weight: 400;
  }
  body.renewal-body .rn-store__body {
    margin-top: -45px;
    margin-left: 20px !important;
    margin-right: 20px !important;
    padding: 0 !important;
    max-width: none;
  }
  body.renewal-body .rn-store__grid {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  body.renewal-body .rn-product {
    width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
    scroll-snap-align: start;
  }
  body.renewal-body .rn-product__name,
  body.renewal-body .rn-product__price {
    font-size: 16px;
  }
  body.renewal-body .rn-product__price { color: #7a7a7a; }
  body.renewal-body .rn-store__shop--block {
    display: flex !important;
    width: 100%;
    height: 56px;
    font-size: 16px;
    margin-top: 28px;
    box-sizing: border-box;
    border-radius: 999px;
    color : #000;
    border: 1px solid rgba(209, 213, 219, 0.5);
    margin-bottom: 60px;
  }

}

/* Mobile */
@media (max-width: 767px) {
    .rn-discover__shorts { min-height: 240px; }
  .rn-lesson-tooltip {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 40px));
    transform: none;
  }
  .rn-lesson-tooltip::after {
    left: auto;
    right: 28px;
    margin-left: 0;
  }
  .rn-lesson.rn-panel,
  .rn-lesson .rn-section-head {
    overflow: visible;
  }
  .rn-lesson-modal {
    align-items: flex-end;
    padding: 0;
  }
  .rn-lesson-modal__inner {
    max-width: none;
    max-height: min(78vh, 640px);
    border-radius: 16px 16px 0 0;
    padding: 16px 16px 12px;
  }
  .rn-lesson-modal__title {
    font-size: 20px;
  }
  .rn-lesson-modal__tab {
    font-size: 13px;
    min-height: 44px;
  }
  .rn-lesson-modal__chips {
    flex-direction: column;
  }
  .rn-lesson-modal__row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .rn-lesson-modal__row-right {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 8px;
  }
  .rn-lesson-modal__footer {
    flex-direction: column;
  }
  .rn-lesson-modal__delete,
  .rn-lesson-modal__footer .rn-lesson-modal__cta {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet — same mobile UI as above; tablet-only tweaks here */
@media (min-width: 768px) and (max-width: 1023px) {
  /* inherits mobile UI from max-width: 1023px */
  .rn-hero__slider,
  .rn-hero-swiper {
    height: 260px;
  }
  .rn-hero-swiper .swiper-slide,
  .rn-hero-swiper .swiper-slide img,
  .rn-hero__fallback {
    height: 260px;
  }
  .rn-discover__shorts {
    min-height: 320px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .rn-m-only { display: none !important; }
}

/* Desktop narrow */
@media (min-width: 1024px) and (max-width: 1440px) {


  .rn-welcome__inner,
  .rn-layout {
    max-width: 1100px;
  }
  .rn-status-card { width: 300px; }


}

@media (min-width: 1024px) and (max-width: 1200px) {


  .rn-layout { gap: 24px; }
  .rn-sidebar { width: 300px; }
  .rn-discover__shorts { width: 220px; height: 380px; }
  .rn-layout__main { gap: 48px; }
  .rn-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .rn-welcome__cards { flex-direction: column; align-items: stretch; }
  .rn-status-card { width: 100%; }
}

/* Discover: parent layout (BIGSMALL 동일) — has-shorts / no-shorts */
.rn-discover--parent .rn-discover__layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.rn-discover--parent .rn-discover__mag {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}
.rn-discover--parent .rn-discover__shorts[hidden] {
  display: none !important;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__layout {
  display: block;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__mag {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__mag .rn-discover__item:nth-child(n + 4) {
  display: none;
}
.rn-discover--parent:not(.has-shorts) .rn-discover__shorts {
  display: none !important;
}

@media (max-width: 1023px) {
  .rn-discover--parent:not(.has-shorts) .rn-discover__layout {
    display: block !important;
  }
  .rn-discover--parent:not(.has-shorts) .rn-discover__mag {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 20px !important;
  }
  .rn-discover--parent:not(.has-shorts) .rn-discover__mag .rn-discover__item:nth-child(n + 4) {
    display: flex !important;
  }
  .rn-discover--parent.has-shorts .rn-discover__layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 20px !important;
  }
  .rn-discover--parent.has-shorts .rn-discover__mag {
    display: contents !important;
  }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .rn-discover--parent.has-shorts .rn-discover__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .rn-discover--parent.has-shorts .rn-discover__shorts {
    display: block !important;
    grid-column: 2;
    grid-row: 2 / span 2;
    width: 100%;
    height: auto;
    min-height: 280px;
    align-self: stretch;
  }
  .rn-discover--parent .rn-discover__item p {
    font-size: 15px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .rn-discover--parent .rn-discover__shorts p {
    font-size: 15px;
    bottom: 12px;
  }
  .rn-discover--parent .rn-btn-outline {
    display: flex !important;
    margin-top: 0;
  }
}

/* 하단 탭바 "오늘의 수업 시작하기" CTA로 스크롤 이동 시 sticky 모바일 헤더에 타이틀이 가려지지 않도록 */
@media (max-width: 1023px) {
  #rnTodaysLessons {
    scroll-margin-top: 72px;
  }
}
