:root {
  --ink: #161616;
  --muted: #6f695f;
  --paper: #eee9df;
  --card: #fffdf8;
  --line: rgba(33, 28, 22, 0.1);
  --orange: #d88a0b;
  --orange-dark: #b46f00;
  --green: #75aa88;
  --green-dark: #2d6c56;
  --blue: #2848b8;
  --cream: #f6eedc;
  --shadow: 0 20px 48px rgba(48, 38, 25, 0.13);
  --radius: 26px;
}

/* Theme switcher shared by auth, desktop nav, and profile. */
.auth-brand {
  justify-content: space-between;
  gap: 14px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.theme-switch button {
  min-width: 54px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #615d55;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-skin="prism"] .theme-switch button.active,
body[data-skin="prism"][data-view] .web-nav .theme-switch button.active {
  color: #fff;
  background: #111;
}

body[data-skin="studio"] .theme-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body[data-skin="studio"] .theme-switch button {
  color: #d7d0c5;
}

body[data-skin="studio"] .theme-switch button.active,
body[data-skin="studio"][data-view] .web-nav .theme-switch button.active {
  color: #111;
  background: #dbff4a;
}

.web-nav .theme-switch {
  flex: 0 0 auto;
}

.web-nav .theme-switch button {
  min-height: 34px;
  padding: 0 12px;
}

.profile-theme-row {
  align-items: center;
}

.profile-theme-row .theme-switch {
  box-shadow: none;
}

@media (max-width: 520px) {
  .theme-switch-auth {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .profile-theme-row {
    gap: 14px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 138, 11, 0.14), transparent 32%),
    radial-gradient(circle at 90% 16%, rgba(117, 170, 136, 0.16), transparent 34%),
    linear-gradient(180deg, #f6f3ec 0%, var(--paper) 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img,
video {
  max-width: 100%;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.auth-page {
  width: min(1180px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 52px;
}

.auth-brand {
  display: flex;
  align-items: center;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 16px;
}

.brand.small img {
  width: 46px;
  height: 46px;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 22px;
  line-height: 1;
}

.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding-top: 34px;
}

.welcome-card,
.login-card,
.feature-card,
.video-card,
.filter-panel,
.sentence-card,
.tool-card,
.ai-chat,
.profile-list,
.empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.welcome-card,
.login-card {
  padding: clamp(26px, 5vw, 48px);
}

.welcome-card.compact {
  min-height: 420px;
}

.welcome-card h1,
.login-card h2,
.feature-body h1,
.feature-body h2,
.simple-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.welcome-card h1,
.login-card h2 {
  font-size: clamp(34px, 5vw, 48px);
}

.welcome-card p,
.login-card p,
.feature-body p,
.simple-top p,
.tool-card p {
  color: var(--muted);
  line-height: 1.85;
}

.soft-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.soft-card b,
.login-card label span {
  font-weight: 900;
}

.soft-card span {
  color: var(--muted);
  line-height: 1.7;
}

.login-card {
  display: grid;
  gap: 18px;
}

.login-card label {
  display: grid;
  gap: 9px;
}

.login-card input,
.ai-chat textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.password-wrap {
  position: relative;
}

.password-wrap button {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--muted);
  background: #f3f0ea;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dark-btn,
.gold-btn,
.blue-btn,
.green-btn,
.logout-btn {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  font-weight: 900;
}

.dark-btn {
  min-width: 132px;
  background: #1b1b1a;
}

.gold-btn {
  width: 100%;
  background: var(--orange);
}

.blue-btn {
  width: 100%;
  background: var(--blue);
}

.green-btn {
  width: 100%;
  background: #17be6b;
}

.link-btn {
  color: #1646b6;
  background: transparent;
  font-weight: 900;
}

.register-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.pill-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--blue);
  background: #e9efff;
  font-weight: 900;
}

.mobile-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 92px;
}

.home-top,
.library-top,
.study-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 14px;
}

.round-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(48, 38, 25, 0.08);
  font-weight: 900;
}

.feature-card {
  overflow: hidden;
  margin-bottom: 18px;
}

.mock-video,
.chat-mock {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  color: #fff;
  background: #1f160d;
}

.mock-video img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  opacity: 0.62;
}

.mock-video span,
.chat-mock span {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mock-video b {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.chat-mock {
  min-height: 180px;
  padding: 70px 18px 18px;
  background: linear-gradient(135deg, #12244c, #1c3372);
}

.chat-mock p,
.chat-mock b {
  display: block;
  max-width: 280px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-mock p {
  background: rgba(255, 255, 255, 0.14);
}

.chat-mock b {
  margin-left: auto;
  background: rgba(70, 105, 255, 0.9);
}

.feature-body {
  padding: 22px 18px 18px;
}

.feature-body h1,
.feature-body h2 {
  font-size: 34px;
}

.tags,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tags span,
.meta-tags span,
.meta-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #f2eee5;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.meta-tags b {
  color: var(--orange-dark);
  background: #fff1d8;
}

.meta-tags .locked-tag {
  color: #8a4d12;
  background: #fff0d7;
}

.meta-tags .open-tag {
  color: #236b4c;
  background: #e7f5ec;
}

.feature-body .sub {
  margin-top: 10px;
}

.ai-feature {
  background: #fff;
}

.bottom-nav,
.study-toolbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(430px, 100vw);
  min-height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-nav button,
.study-toolbar button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #8a8377;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav i,
.study-toolbar i {
  font-style: normal;
  font-size: 19px;
}

.bottom-nav button.active,
.study-toolbar button.active {
  color: var(--ink);
}

.library-top {
  margin-bottom: 12px;
}

.library-top > div {
  min-width: 0;
  flex: 1;
}

.library-top h1 {
  margin: 0;
  font-size: 22px;
}

.library-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.quick-tabs button,
.filter-row button {
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.quick-tabs button.active,
.filter-row button.active {
  color: #fff;
  background: var(--ink);
}

.filter-panel {
  display: none;
  margin-bottom: 14px;
  padding: 14px;
  box-shadow: none;
}

.filter-panel.open {
  display: grid;
  gap: 12px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
}

.filter-panel label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-row.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-row.scroll button {
  white-space: nowrap;
}

.course-list {
  display: grid;
  gap: 16px;
}

.video-card {
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(48, 38, 25, 0.1);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}

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

.duration-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 900;
}

.membership-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #1f372b;
  background: rgba(255, 246, 221, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.membership-pill.locked {
  color: #fff;
  background: rgba(24, 24, 24, 0.76);
}

.video-card.locked .thumb img {
  filter: saturate(0.82) brightness(0.72);
}

.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  font-size: 21px;
}

.heart.on {
  color: #ff5e7a;
  background: rgba(255, 255, 255, 0.86);
}

.video-info {
  padding: 15px 16px 17px;
}

.video-info h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.video-info p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #34312e;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.course-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.course-progress i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #67b889, #f0b35f);
}

.course-progress::before {
  content: "";
  display: block;
  height: 7px;
  margin-bottom: -14px;
  border-radius: 999px;
  background: #eee5d6;
}

.course-progress span {
  color: #5b5144;
  font-size: 12px;
  font-weight: 900;
}

.study-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 78px;
  background: #f6f5f2;
}

.study-top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.study-top h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.study-video {
  position: relative;
  background: #111;
}

.study-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.study-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-placeholder img {
  filter: saturate(0.88) brightness(0.66);
}

.study-video span {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  font-weight: 900;
}

.preview-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #2e261a;
  background: rgba(255, 244, 213, 0.94);
  font-size: 12px;
  line-height: 1.4;
}

.locked-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e1e1e;
}

.locked-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.55);
}

.locked-hero span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 900;
}

.sentence-area {
  display: grid;
  gap: 10px;
  padding: 10px 8px 16px;
}

.sentence-card {
  padding: 14px;
  box-shadow: none;
}

.sentence-card.active {
  border-color: rgba(117, 170, 136, 0.78);
  background: #f4fff8;
}

.sentence-card b {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

.sentence-card p {
  margin: 8px 0 0;
  color: #38332d;
  line-height: 1.65;
}

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

.sentence-actions span {
  min-width: 24px;
  color: var(--muted);
  font-weight: 900;
}

.sentence-actions button {
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: transparent;
}

.study-toolbar {
  grid-template-columns: 1fr 72px 1fr 1fr;
}

.play-main {
  place-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff !important;
  background: #19bf6f !important;
  font-size: 20px !important;
}

.tool-card,
.ai-chat,
.profile-list,
.continue-card,
.empty-card {
  padding: 18px;
  box-shadow: none;
}

.tool-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.upgrade-note {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff9ec;
  line-height: 1.6;
}

.upgrade-note span {
  color: var(--muted);
}

.upgrade-actions {
  display: grid;
  gap: 10px;
}

.lookup-source {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4f4639;
  background: #fffaf1;
  font-size: 13px;
  line-height: 1.55;
}

.word-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.word-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f5f0e8;
  text-align: left;
}

.word-card span {
  display: grid;
  gap: 2px;
}

.word-card b {
  font-size: 15px;
}

.word-card small {
  color: var(--muted);
  font-size: 11px;
}

.word-card em {
  max-width: 150px;
  color: #276f51;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.continue-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.continue-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.continue-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.continue-card p {
  margin: 0;
  color: #4a4238;
  font-weight: 900;
}

.plan-list button {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffaf1;
  text-align: left;
}

.plan-list button.active {
  border-color: rgba(117, 170, 136, 0.82);
  background: #eefaf2;
}

.plan-list span {
  color: var(--muted);
  line-height: 1.45;
}

.practice-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.practice-steps span {
  padding: 12px;
  border-radius: 14px;
  background: #f5f0e8;
  font-weight: 900;
}

.simple-top {
  padding: 18px 2px 12px;
}

.simple-top h1 {
  font-size: 36px;
}

.ai-chat {
  display: grid;
  gap: 12px;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.6;
}

.bubble.user {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
}

.bubble.bot {
  background: #f3eee5;
}

.ai-chat textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-head img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

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

.profile-list article {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list article:last-child {
  border-bottom: 0;
}

.logout-btn {
  width: 100%;
  margin-top: 16px;
  background: var(--ink);
}

@media (min-width: 760px) {
  .mobile-shell,
  .study-shell,
  .bottom-nav,
  .study-toolbar {
    width: 430px;
  }

  .mobile-shell,
  .study-shell {
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
  }
}

@media (max-width: 720px) {
  .auth-page {
    width: min(100vw - 20px, 430px);
    padding-top: 16px;
  }

  .auth-brand {
    display: none;
  }

  .auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 0 34px;
  }

  .welcome-card,
  .login-card {
    padding: 23px 22px;
  }

  .welcome-card h1,
  .login-card h2 {
    font-size: 32px;
  }

  .register-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026-06-20 plain learning-site pass: closer to the purchased system layout. */
:root {
  --ink: #111318;
  --muted: #6b7280;
  --paper: #f5f6f8;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.1);
  --green: #1fc070;
  --green-dark: #097a48;
  --blue: #2f5be7;
  --orange: #d98b12;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --radius: 14px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.auth-page,
.mobile-shell,
.study-shell {
  width: min(430px, 100vw);
  margin: 0 auto;
  background: #f5f6f8;
  box-shadow: none;
}

.auth-page {
  min-height: 100vh;
  padding: 16px 14px 28px;
}

.auth-brand {
  height: auto;
  padding: 8px 0 18px;
}

.brand img,
.brand.small img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand b {
  font-size: 19px;
}

.brand small {
  margin-top: 3px;
  font-size: 11px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 0;
}

.welcome-card,
.login-card,
.feature-card,
.video-card,
.filter-panel,
.sentence-card,
.tool-card,
.ai-chat,
.profile-list,
.continue-card,
.empty-card,
.home-entry,
.home-continue,
.home-note {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.welcome-card,
.login-card {
  padding: 20px;
}

.welcome-card h1,
.login-card h2,
.feature-body h1,
.feature-body h2,
.simple-top h1,
.plain-home-top h1 {
  font-family: inherit;
  font-weight: 900;
}

.welcome-card h1,
.login-card h2 {
  font-size: 26px;
}

.welcome-card p,
.login-card p,
.feature-body p,
.simple-top p,
.tool-card p {
  line-height: 1.65;
}

.soft-card {
  border-radius: 12px;
  padding: 13px;
  background: #f8fafc;
}

.login-card {
  gap: 14px;
}

.login-card input,
.ai-chat textarea,
.filter-panel input {
  min-height: 44px;
  border-radius: 10px;
}

.dark-btn,
.gold-btn,
.blue-btn,
.green-btn,
.logout-btn,
.pill-btn {
  min-height: 44px;
  border-radius: 10px;
}

.mobile-shell {
  min-height: 100vh;
  padding: 12px 12px 78px;
}

.plain-home-top,
.home-top,
.library-top,
.simple-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 0 14px;
}

.plain-home-top h1,
.library-top h1,
.simple-top h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.plain-home-top p,
.library-top p,
.simple-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.menu-dot,
.round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 900;
}

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

.home-entry,
.home-continue,
.home-note {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 18px;
  color: var(--ink);
  text-align: left;
}

.home-entry span,
.home-continue span,
.home-note b {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-entry b,
.home-continue h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.home-entry em,
.home-continue p,
.home-note span {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.home-entry.muted span {
  color: #4056bb;
}

.home-note {
  margin-top: 12px;
  padding: 14px 16px;
}

.quick-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}

.quick-tabs button {
  min-height: 38px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 900;
}

.quick-tabs button.active {
  color: #fff;
  background: #111827;
}

.filter-panel {
  display: none;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
}

.filter-panel.open {
  display: grid;
}

.filter-row {
  gap: 7px;
}

.filter-row button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 11px;
  background: #f2f4f7;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-row button.active {
  color: #fff;
  background: #111827;
}

.course-list {
  gap: 12px;
}

.video-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}

.thumb {
  aspect-ratio: 16 / 9;
}

.heart {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.duration-pill,
.membership-pill {
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 12px;
}

.video-info {
  padding: 13px 14px 14px;
}

.video-info h2 {
  font-size: 16px;
  line-height: 1.35;
}

.video-info p {
  margin-top: 8px;
  color: #374151;
  line-height: 1.55;
}

.tags,
.meta-tags {
  gap: 7px;
  margin: 12px 0 0;
}

.tags span,
.meta-tags span,
.meta-tags b {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 12px;
}

.course-progress {
  margin-top: 10px;
}

.study-shell {
  min-height: 100vh;
  padding-bottom: 74px;
}

.study-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 7px 10px;
  background: #fff;
}

.study-top h1 {
  font-size: 17px;
  font-weight: 900;
}

.study-video {
  background: #111;
}

.study-video span {
  top: 9px;
  right: 9px;
  border-radius: 8px;
  font-size: 13px;
}

.sentence-area {
  gap: 9px;
  padding: 9px 8px 18px;
}

.sentence-card {
  padding: 13px;
  border-radius: 12px;
}

.sentence-card.active {
  border-color: #20b96c;
  background: #f3fff8;
}

.sentence-card b {
  font-size: 16px;
  line-height: 1.45;
}

.sentence-card p {
  margin-top: 7px;
  line-height: 1.55;
}

.sentence-actions {
  margin-top: 9px;
  gap: 13px;
}

.bottom-nav,
.study-toolbar {
  height: 66px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}

.study-toolbar {
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
}

.play-main {
  width: 52px;
  height: 52px;
  background: #20c675 !important;
}

.bottom-nav button,
.study-toolbar button {
  color: #4b5563;
  font-size: 12px;
}

.bottom-nav button.active,
.study-toolbar button.active {
  color: #111827;
}

.tool-card,
.ai-chat,
.profile-list,
.continue-card,
.empty-card {
  padding: 15px;
}

.tool-card h2 {
  font-size: 20px;
}

.word-list button,
.plan-list button {
  border-radius: 12px;
  background: #f8fafc;
}

.profile-head {
  grid-template-columns: auto 1fr;
}

.profile-head img {
  width: 48px;
  height: 48px;
}

@media (min-width: 700px) {
  .auth-page {
    width: min(900px, calc(100vw - 40px));
  }

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

/* 2026-06-20 launch reset: simple user-facing site, aligned with the reference flow. */
:root {
  --ink: #151515;
  --muted: #6b6862;
  --paper: #eeeae2;
  --card: #ffffff;
  --line: rgba(20, 20, 20, 0.1);
  --orange: #d48906;
  --blue: #2547ba;
  --green: #138a55;
  --shadow: 0 12px 30px rgba(35, 31, 25, 0.08);
  --radius: 20px;
}

body {
  background: linear-gradient(180deg, #f3efe7 0%, #ece8df 100%);
  color: var(--ink);
}

.auth-page,
.mobile-shell,
.study-shell {
  width: min(100vw, 430px);
  margin: 0 auto;
  background: transparent;
}

.auth-page {
  min-height: 100vh;
  padding: 16px 10px 34px;
}

.auth-brand {
  padding: 0 8px 14px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0;
}

.welcome-card,
.login-card,
.entry-card,
.video-card,
.ai-chat,
.profile-list,
.continue-card,
.empty-card,
.search-card,
.study-meta,
.tool-card,
.sentence-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.welcome-card,
.login-card {
  padding: 22px;
}

.welcome-card h1,
.login-card h2 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.18;
}

.welcome-card p,
.login-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.soft-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
}

.soft-card span {
  color: #333;
}

.login-card {
  gap: 15px;
}

.login-card input,
.search-card input,
.ai-chat textarea {
  min-height: 50px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 12px;
  background: #fff;
}

.code-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dark-btn,
.gold-btn,
.blue-btn,
.green-btn,
.logout-btn,
.pill-btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.dark-btn {
  background: #171717;
}

.gold-btn {
  color: #fff;
  background: var(--orange);
}

.blue-btn {
  color: #fff;
  background: var(--blue);
}

.green-btn {
  color: #fff;
  background: var(--green);
}

.link-btn {
  color: #184fc6;
  font-weight: 900;
  background: transparent;
}

.mobile-shell {
  min-height: 100vh;
  padding: 16px 16px 86px;
}

.plain-home-top,
.library-top,
.simple-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
}

.library-top {
  grid-template-columns: auto minmax(0, 1fr);
}

.plain-home-top h1,
.library-top h1,
.simple-top h1 {
  margin: 0;
  color: #111;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.18;
}

.plain-home-top p,
.library-top p,
.simple-top p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.menu-dot,
.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.home-continue {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 18px;
  text-align: left;
}

.home-continue span,
.continue-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-continue h2,
.continue-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.home-continue p,
.continue-card p {
  margin: 0;
  color: var(--muted);
}

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

.entry-card {
  overflow: hidden;
}

.entry-cover {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 180px;
  padding: 18px;
  color: #fff;
  background: #1d120b;
}

.entry-cover span {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.entry-cover b {
  align-self: end;
  font-size: 24px;
}

.video-cover {
  background:
    linear-gradient(135deg, rgba(31, 18, 7, 0.96), rgba(70, 38, 17, 0.85)),
    url("assets/brand/suzy-english-academy-logo.png") center / 120px no-repeat;
}

.ai-cover {
  background: linear-gradient(135deg, #0b1d4f, #263eb2);
}

.entry-body {
  padding: 20px 18px 18px;
}

.entry-body h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 29px;
  font-weight: 500;
}

.entry-body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.entry-tags,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.entry-tags span,
.meta-tags span,
.meta-tags b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #55514b;
  background: #f3f0ea;
  font-size: 13px;
  font-weight: 800;
}

.search-card {
  margin-bottom: 12px;
  padding: 10px;
}

.search-card input {
  width: 100%;
  padding: 0 14px;
}

.topic-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -16px 14px;
  padding: 0 16px 2px;
  overflow-x: auto;
}

.topic-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border-radius: 999px;
  color: #4f4a43;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.topic-tabs button.active {
  color: #fff;
  background: #171717;
}

.category-menu {
  position: relative;
  z-index: 25;
  display: flex;
  gap: 10px;
  margin: 0 -16px 16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  overflow-y: visible;
}

.category-menu > button,
.category-item > button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 15px;
  color: #4f4a43;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(50, 42, 32, 0.06);
}

.category-menu > button small,
.category-item > button small {
  color: #8a8174;
  font-size: 11px;
}

.category-menu > button.active,
.category-item > button.active,
.category-item:hover > button,
.category-item:focus-within > button {
  color: #fff;
  background: #171717;
}

.category-menu > button.active small,
.category-item > button.active small,
.category-item:hover > button small,
.category-item:focus-within > button small {
  color: rgba(255, 255, 255, 0.75);
}

.category-item {
  position: relative;
  flex: 0 0 auto;
}

.category-item:hover,
.category-item:focus-within {
  z-index: 80;
}

.category-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 90;
  display: none;
  width: min(420px, calc(100vw - 32px));
  max-height: min(620px, 68vh);
  border: 1px solid rgba(45, 38, 29, 0.12);
  border-radius: 16px;
  padding: 12px;
  overflow-y: auto;
  color: #211d19;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(37, 31, 24, 0.18);
}

.category-item:hover .category-panel,
.category-item:focus-within .category-panel {
  display: block;
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid #eee7dc;
}

.category-panel-head b {
  font-size: 15px;
}

.category-panel-head span,
.menu-node small {
  color: #7a7166;
  font-size: 12px;
  font-weight: 800;
}

.category-submenu {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.menu-node {
  position: relative;
}

.menu-node > button {
  display: grid;
  width: 100%;
  min-height: 44px;
  justify-items: start;
  gap: 2px;
  border-radius: 10px;
  padding: 8px 10px;
  color: #28231e;
  background: transparent;
  text-align: left;
}

.menu-node > button:hover,
.menu-node > button:focus {
  background: #f4efe7;
}

.menu-node > button b {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-node.has-children > button {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.menu-node.has-children > button::after {
  content: ">";
  color: #7a7166;
  font-size: 15px;
}

.menu-node.has-children > button span {
  display: none;
}

.category-submenu .category-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  display: none;
  width: 320px;
  max-height: 56vh;
  border: 1px solid rgba(45, 38, 29, 0.12);
  border-radius: 14px;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 18px 44px rgba(37, 31, 24, 0.16);
}

.menu-node:hover > .category-submenu,
.menu-node:focus-within > .category-submenu {
  display: grid;
}

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

.video-card {
  overflow: hidden;
  text-align: left;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1d1d1d;
}

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

.poster-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: end;
  gap: 8px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(35, 107, 76, 0.92), rgba(28, 37, 51, 0.94)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.08) 14px 16px);
}

.poster-fallback b {
  font-size: 18px;
  line-height: 1.15;
}

.poster-fallback span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.duration-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.video-info {
  padding: 15px 16px 16px;
}

.video-info h2 {
  margin: 0;
  color: #151515;
  font-size: 17px;
  line-height: 1.42;
}

.video-info p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.course-progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.course-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.study-shell {
  min-height: 100vh;
  padding-bottom: 18px;
  background: #f5f3ef;
}

.study-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.study-top h1 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-video {
  position: relative;
  background: #0f0f0f;
}

.study-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #111;
}

.study-video video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.video-subtitle {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 4;
  display: grid;
  width: min(88%, 980px);
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
}

.video-subtitle.off {
  display: none;
}

.subtitle-line {
  justify-self: center;
  max-width: 100%;
  margin: 0;
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--subtitle-color, #fff);
  background: var(--subtitle-bg, rgba(0, 0, 0, 0.44));
  font-family: var(--subtitle-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--subtitle-size, 20px);
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
  overflow-wrap: anywhere;
}

.subtitle-line.zh {
  font-size: calc(var(--subtitle-size, 20px) * 0.92);
}

.cue-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  font-size: 12px;
  font-weight: 900;
}

.player-fullscreen {
  position: absolute;
  right: 12px;
  bottom: 58px;
  z-index: 10;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.player-fullscreen:hover {
  background: rgba(0, 0, 0, 0.74);
}

.study-meta {
  display: grid;
  gap: 4px;
  width: calc(100% - 20px);
  margin: 10px;
  padding: 12px 14px;
}

.study-meta b {
  font-size: 15px;
}

.study-meta span {
  color: var(--muted);
  font-size: 13px;
}

.study-summary {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.study-summary strong {
  color: #151515;
  font-size: 13px;
  font-weight: 900;
}

.study-summary p {
  margin: 0;
  color: #5f5a52;
  font-size: 13px;
  line-height: 1.7;
}

.sentence-area {
  display: grid;
  gap: 10px;
  padding: 0 10px 16px;
}

.subtitle-settings {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 18px;
  background: #fff;
}

.subtitle-settings-head,
.subtitle-setting-row {
  display: grid;
  gap: 10px;
}

.subtitle-settings-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.subtitle-settings-head b {
  font-size: 16px;
}

.subtitle-settings-head button {
  width: auto;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  color: #5d574f;
  background: #f2eee5;
  font-size: 12px;
  font-weight: 900;
}

.subtitle-setting-row > span {
  color: #676057;
  font-size: 12px;
  font-weight: 900;
}

.segmented,
.font-options,
.size-options,
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented button,
.font-options button,
.size-options button,
.color-options button {
  width: auto;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: #514b43;
  background: #f4f0e8;
  font-size: 12px;
  font-weight: 900;
}

.segmented button.active,
.font-options button.active,
.size-options button.active,
.color-options button.active {
  color: #fff;
  background: #171717;
}

.color-options button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.color-options i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
}

.sentence-card {
  padding: 14px;
}

.sentence-card.active {
  border-color: rgba(19, 138, 85, 0.45);
  background: #f2fff8;
}

.sentence-card b {
  display: block;
  color: #111;
  font-size: 16px;
  line-height: 1.55;
}

.sentence-card p {
  margin: 8px 0 0;
  color: #4d4a45;
  line-height: 1.65;
}

.sentence-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.sentence-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sentence-actions button {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: #171717;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.study-toolbar {
  position: relative;
  z-index: 12;
  width: calc(100% - 20px);
  margin: 10px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 66px;
}

.study-toolbar {
  display: grid;
  grid-template-columns: 1fr 78px 1fr 1fr;
  align-items: center;
  height: 70px;
}

.bottom-nav button,
.study-toolbar button {
  color: #9b968e;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav button.active,
.study-toolbar button.active {
  color: #151515;
}

.play-main {
  width: 62px;
  height: 48px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--green) !important;
}

.speed-picker {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #7f786f;
  font-size: 11px;
  font-weight: 900;
}

.speed-current {
  width: 68px;
  min-height: 34px;
  border-radius: 999px;
  color: #171717;
  background: #f7f3ec;
  font-size: 12px;
  font-weight: 900;
}

.speed-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 45;
  display: none;
  width: 112px;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(30, 25, 20, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(28, 24, 18, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.speed-picker:hover .speed-menu,
.speed-picker:focus-within .speed-menu {
  display: grid;
}

.speed-menu button {
  min-height: 30px;
  border-radius: 10px;
  color: #514b43;
  background: rgba(244, 240, 232, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.speed-menu button.active,
.speed-menu button:hover,
.speed-menu button:focus {
  color: #fff;
  background: rgba(23, 23, 23, 0.92);
}

.tool-card,
.ai-chat,
.profile-list,
.continue-card,
.empty-card {
  padding: 16px;
}

.word-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.word-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  color: #151515;
  background: #f6f4ef;
  text-align: left;
}

.word-card b,
.word-card small,
.word-card em {
  display: block;
}

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

.ai-chat {
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
}

.bubble.user {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

.bubble.bot {
  justify-self: start;
  background: #f3f0ea;
}

.ai-chat textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.profile-head {
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.profile-list {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  padding: 0 16px;
}

.profile-list article {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.profile-list article:last-child {
  border-bottom: 0;
}

.continue-card {
  margin-bottom: 14px;
}

.logout-btn {
  width: 100%;
  color: #fff;
  background: #171717;
}

.form-error {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(190, 24, 24, 0.18);
  border-radius: 12px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 13px;
  line-height: 1.45;
}

.web-nav {
  display: none;
}

@media (min-width: 760px) {
  .auth-page {
    width: min(900px, calc(100vw - 48px));
    padding-top: 26px;
  }

  .auth-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  body {
    background: #f3f0e8;
  }

  .mobile-shell {
    width: min(1160px, calc(100vw - 48px));
    min-height: 100vh;
    padding: 24px 0 48px;
  }

  .web-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
  }

  .web-nav > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .web-nav button:not(.brand) {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: #5d5850;
    background: transparent;
    font-weight: 900;
  }

  .web-nav button.active {
    color: #fff;
    background: #171717;
  }

  .bottom-nav {
    display: none;
  }

  .plain-home-top,
  .library-top,
  .simple-top {
    padding-bottom: 24px;
  }

  .plain-home-top h1,
  .library-top h1,
  .simple-top h1 {
    font-size: 40px;
  }

  .plain-home-top p,
  .library-top p,
  .simple-top p {
    font-size: 16px;
  }

  .home-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .entry-card {
    display: grid;
    grid-template-rows: 220px 1fr;
    min-height: 560px;
  }

  .entry-cover {
    min-height: 220px;
  }

  .entry-body {
    display: grid;
    align-content: start;
    padding: 28px;
  }

  .entry-body h2 {
    font-size: 36px;
  }

  .entry-body p {
    font-size: 16px;
  }

  .entry-body .gold-btn,
  .entry-body .blue-btn {
    align-self: end;
    width: 100%;
    margin-top: 18px;
  }

  .search-card {
    width: min(620px, 100%);
    margin-bottom: 16px;
  }

  .topic-tabs {
    margin: 0 0 18px;
    padding: 0;
    overflow: visible;
    flex-wrap: wrap;
  }

  .category-menu {
    margin: 0 0 20px;
    padding: 0 0 4px;
    overflow-x: visible;
    flex-wrap: wrap;
  }

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

  .video-card {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .video-info {
    display: grid;
    align-content: start;
  }

  .study-shell {
    width: min(1180px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 20px;
    align-items: start;
    min-height: 100vh;
    padding: 24px 0 40px;
    background: transparent;
  }

  .study-top {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
  }

  .study-top h1 {
    font-size: 18px;
  }

  .study-video {
    grid-column: 1;
    overflow: hidden;
    border-radius: 18px;
  }

  .study-meta {
    grid-column: 1;
    width: 100%;
    margin: 14px 0 14px;
  }

  .sentence-area {
    grid-column: 2;
    grid-row: 2 / span 4;
    max-height: calc(100vh - 128px);
    padding: 0 2px 8px;
    overflow: auto;
  }

  .sentence-card {
    border-radius: 18px;
  }

  .study-toolbar {
    position: static;
    grid-column: 1;
    width: 100%;
    margin: 0;
    height: 70px;
    transform: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
  }

  .ai-chat,
  .profile-list,
  .continue-card {
    width: min(760px, 100%);
  }
}

/* 2026-06-26 mobile H5 fit pass. Desktop rules above 900px stay unchanged. */
@media (max-width: 899px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 0;
    background: #eeeae2;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .auth-page,
  .mobile-shell,
  .study-shell {
    width: 100%;
    max-width: 430px;
  }

  .auth-page {
    padding: max(10px, env(safe-area-inset-top)) 10px 28px;
  }

  .auth-brand {
    display: none;
  }

  .auth-grid {
    gap: 14px;
  }

  .login-card {
    order: 1;
  }

  .welcome-card {
    order: 2;
  }

  .welcome-card,
  .login-card {
    border-radius: 20px;
    padding: 20px 22px;
  }

  .welcome-card h1,
  .login-card h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .welcome-card p,
  .login-card p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
  }

  .soft-card {
    margin-top: 12px;
    padding: 14px 16px;
  }

  .login-card label {
    min-width: 0;
  }

  .login-card input {
    min-width: 0;
    min-height: 48px;
  }

  .auth-actions {
    display: grid;
    grid-template-columns: minmax(132px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .auth-actions .dark-btn {
    width: 100%;
    min-width: 0;
  }

  .auth-actions .link-btn {
    min-height: 44px;
    text-align: left;
  }

  .register-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .register-line .pill-btn {
    justify-self: start;
  }

  .code-wrap {
    grid-template-columns: 1fr;
  }

  .mobile-shell {
    padding: max(12px, env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom));
  }

  .plain-home-top,
  .library-top,
  .simple-top {
    gap: 10px;
    padding-bottom: 12px;
  }

  .plain-home-top h1,
  .library-top h1,
  .simple-top h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .plain-home-top p,
  .library-top p,
  .simple-top p {
    font-size: 13px;
    line-height: 1.45;
  }

  .home-card-list {
    gap: 14px;
  }

  .entry-card {
    border-radius: 18px;
  }

  .entry-cover {
    min-height: 142px;
    padding: 16px;
  }

  .entry-cover b {
    font-size: 24px;
  }

  .entry-body {
    padding: 18px 16px 16px;
  }

  .entry-body h2 {
    font-size: 27px;
  }

  .entry-body p {
    line-height: 1.68;
  }

  .search-card {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 16px;
  }

  .topic-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .topic-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-menu {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .category-menu::-webkit-scrollbar {
    display: none;
  }

  .category-panel,
  .category-item:hover .category-panel,
  .category-item:focus-within .category-panel {
    display: none;
  }

  .course-list {
    gap: 10px;
  }

  .video-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 92px;
    border-radius: 16px;
  }

  .video-card .thumb {
    height: 100%;
    min-height: 92px;
    aspect-ratio: auto;
  }

  .video-info {
    min-width: 0;
    padding: 11px 12px;
  }

  .video-info h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .video-info p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .meta-tags {
    gap: 5px;
    margin: 9px 0 0;
  }

  .meta-tags span,
  .meta-tags b {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .course-progress {
    margin-top: 8px;
  }

  .duration-pill {
    right: 6px;
    bottom: 6px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .study-shell {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .study-top {
    min-height: 54px;
    padding: 7px 10px;
  }

  .study-video video {
    max-height: 42vh;
    object-fit: contain;
  }

  .video-subtitle {
    bottom: 52px;
    width: 92%;
    gap: 4px;
  }

  .subtitle-line {
    padding: 3px 8px;
    font-size: var(--subtitle-size, 20px);
    line-height: 1.32;
  }

  .subtitle-line.zh {
    font-size: calc(var(--subtitle-size, 20px) * 0.92);
  }

  .study-meta {
    width: calc(100% - 20px);
    margin: 10px 10px 8px;
    border-radius: 16px;
  }

  .sentence-area {
    padding: 0 10px calc(18px + env(safe-area-inset-bottom));
  }

  .sentence-card {
    border-radius: 16px;
  }

  .subtitle-settings {
    border-radius: 16px;
    padding: 12px;
  }

  .segmented,
  .font-options,
  .size-options,
  .color-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .segmented::-webkit-scrollbar,
  .font-options::-webkit-scrollbar,
  .size-options::-webkit-scrollbar,
  .color-options::-webkit-scrollbar {
    display: none;
  }

  .sentence-actions {
    gap: 10px;
  }

  .sentence-actions button {
    min-width: 78px;
  }

  .bottom-nav {
    width: 100%;
    max-width: 430px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav {
    height: calc(66px + env(safe-area-inset-bottom));
  }

  .study-toolbar {
    width: calc(100% - 20px);
    max-width: none;
    height: 70px;
    padding-bottom: 0;
  }

  .bottom-nav button,
  .study-toolbar button {
    min-width: 0;
    white-space: nowrap;
  }

  .profile-list article {
    gap: 14px;
  }

  .profile-list article span,
  .profile-list article b {
    min-width: 0;
  }

  .profile-list article b {
    text-align: right;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .auth-page,
  .mobile-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .welcome-card,
  .login-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .auth-actions .link-btn {
    text-align: center;
  }

  .video-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .video-card .thumb {
    min-height: 88px;
  }

  .study-toolbar {
    grid-template-columns: 0.95fr 0.8fr 60px 0.95fr 0.95fr;
  }

  .play-main {
    width: 56px;
  }
}

/* Admin first pass */
.admin-app {
  min-height: 100vh;
  color: #111827;
  background: #eef0f3;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: #fff;
}

.admin-login-card img {
  width: 56px;
  height: 56px;
}

.admin-login-card h1,
.admin-login-card p {
  margin: 0;
}

.admin-login-card p {
  color: #6b7280;
  line-height: 1.6;
}

.admin-login-card label,
.admin-form label,
.admin-wide {
  display: grid;
  gap: 7px;
}

.admin-login-card span,
.admin-form span,
.admin-wide span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.admin-login-card input,
.admin-form input,
.admin-form select,
.admin-wide input,
.admin-wide textarea,
.admin-panel-head input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
  outline: 0;
}

.admin-wide textarea {
  padding: 10px 12px;
  resize: vertical;
}

.admin-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-side {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid rgba(17, 24, 39, 0.1);
  background: #111827;
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.admin-brand b,
.admin-brand span {
  display: block;
}

.admin-brand span {
  margin-top: 2px;
  color: #a7b0c0;
  font-size: 12px;
  font-weight: 800;
}

.admin-side nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-side nav button,
.admin-logout {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  color: #d1d5db;
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.admin-side nav button.active,
.admin-side nav button:hover {
  color: #111827;
  background: #fff;
}

.admin-logout {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-top h1,
.admin-top p,
.admin-panel h2 {
  margin: 0;
}

.admin-top p {
  margin-top: 5px;
  color: #6b7280;
}

.admin-top a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: #111827;
  text-decoration: none;
  font-weight: 900;
}

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

.admin-stats article,
.admin-panel {
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 10px;
  background: #fff;
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-stats span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.admin-stats b {
  font-size: 26px;
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-panel h2 {
  font-size: 18px;
}

.admin-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 14px;
  align-items: center;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-form.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-note,
.admin-help {
  border-radius: 8px;
  padding: 12px;
  color: #4b5563;
  background: #f8fafc;
  line-height: 1.6;
}

.admin-note {
  display: grid;
  gap: 4px;
}

.admin-note b {
  color: #111827;
}

.admin-note.ok {
  color: #065f46;
  background: #d1fae5;
}

.admin-note.bad {
  color: #991b1b;
  background: #fee2e2;
}

.admin-help {
  margin: 0;
  font-size: 13px;
}

.category-admin-tree {
  display: grid;
  gap: 12px;
}

.category-admin-tree article {
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 10px;
  overflow: hidden;
}

.category-admin-tree header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
}

.category-admin-tree header span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.category-admin-tree header button,
.category-admin-tree div button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 10px;
  color: #111827;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.category-admin-tree div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  padding: 12px;
}

.category-admin-tree div button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.category-admin-tree div button span {
  color: #6b7280;
  font-size: 12px;
}

.admin-table {
  overflow: auto;
}

.admin-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: #4b5563;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.admin-table td b,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-table td button {
  min-height: 30px;
  margin: 0 6px 6px 0;
  border-radius: 7px;
  padding: 0 10px;
  color: #111827;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-badge.ok {
  color: #065f46;
  background: #d1fae5;
}

.admin-badge.off {
  color: #991b1b;
  background: #fee2e2;
}

.course-picker {
  gap: 16px;
}

.course-picker-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.course-picker-row label {
  display: grid;
  gap: 7px;
}

.course-picker-row span,
.cover-upload span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.course-picker-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
  outline: 0;
}

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

.course-path-bar span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 900;
}

.course-visual-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.course-visual-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.course-card-main {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0;
  color: #111827;
  background: transparent;
  text-align: left;
}

.course-visual-cover,
.cover-preview {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #f3f4f6;
}

.course-visual-cover {
  width: 104px;
  aspect-ratio: 16 / 9;
}

.course-visual-cover img,
.cover-preview img,
.asset-library img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-visual-cover div,
.cover-preview div {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
}

.course-visual-cover b,
.course-visual-cover span,
.cover-preview b,
.cover-preview span {
  display: block;
}

.course-visual-info {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.course-visual-info b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.course-visual-info small {
  color: #6b7280;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.course-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-card-actions button,
.asset-library button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 10px;
  color: #111827;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.course-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cover-manager,
.cover-manager-v2,
.course-meta-form {
  display: grid;
  gap: 12px;
}

.cover-manager-v2 + .cover-manager {
  display: none;
}

.cover-preview {
  aspect-ratio: 16 / 9;
}

.cover-spec {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #365314;
  background: #ecfccb;
  font-size: 12px;
  line-height: 1.45;
}

.cover-spec b {
  color: #1f2937;
}

.cover-upload {
  display: grid;
  gap: 7px;
}

.cover-upload input {
  width: 100%;
  min-height: 42px;
  border: 1px dashed rgba(17, 24, 39, 0.25);
  border-radius: 8px;
  padding: 9px 12px;
  background: #f8fafc;
}

.asset-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.cover-library-panel {
  display: grid;
  gap: 8px;
}

.cover-library-panel h3 {
  margin: 0;
  font-size: 15px;
}

.asset-card {
  display: grid;
  gap: 5px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
}

.asset-card.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.asset-card-main {
  display: grid;
  gap: 5px;
  padding: 0;
  color: #111827;
  background: transparent;
  text-align: left;
}

.asset-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.asset-card-actions button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 8px;
  color: #111827;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.asset-card-actions button:last-child {
  color: #991b1b;
  background: #fee2e2;
}

.asset-library img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #f3f4f6;
}

.asset-library span,
.asset-library small {
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    height: auto;
  }

  .admin-stats,
  .admin-form.grid-5,
  .admin-form.grid-3,
  .admin-form.grid-2,
  .admin-panel-head,
  .course-picker-row,
  .course-editor-layout {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-07 visual direction trials for login and home only. */
body[data-skin="prism"][data-view="login"],
body[data-skin="prism"][data-view="register"],
body[data-skin="prism"][data-view="forgot"],
body[data-skin="prism"][data-view="home"] {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(135deg, #08090d 0%, #15110d 48%, #070b10 100%);
  color: #f7f2e7;
}

body[data-skin="prism"] .auth-page {
  width: min(1180px, calc(100vw - 48px));
  padding: 28px 0 44px;
}

body[data-skin="prism"] .auth-brand {
  display: flex;
  padding: 0 0 24px;
}

body[data-skin="prism"] .brand {
  color: #f7f2e7;
}

body[data-skin="prism"] .brand img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

body[data-skin="prism"] .auth-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 22px;
  align-items: stretch;
}

body[data-skin="prism"] .welcome-card,
body[data-skin="prism"] .login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

body[data-skin="prism"] .welcome-card {
  min-height: 580px;
  padding: 42px;
  color: #f9f4e8;
  background:
    linear-gradient(112deg, rgba(18, 232, 150, 0.2), transparent 36%),
    linear-gradient(150deg, #101012 0%, #1a1d18 52%, #0a1119 100%);
}

body[data-skin="prism"] .welcome-card::before {
  content: "";
  position: absolute;
  inset: auto -8% 10% 42%;
  height: 34%;
  border: 1px solid rgba(238, 255, 0, 0.34);
  background: repeating-linear-gradient(135deg, rgba(238, 255, 0, 0.18) 0 8px, transparent 8px 18px);
  transform: skewY(-9deg);
}

body[data-skin="prism"] .welcome-card h1 {
  max-width: 8em;
  color: #fffdf4;
  font-family: inherit;
  font-size: clamp(46px, 8vw, 102px);
  font-weight: 950;
  line-height: 0.92;
}

body[data-skin="prism"] .welcome-card p {
  position: relative;
  max-width: 620px;
  color: #cfd8d4;
  font-size: 18px;
  line-height: 1.8;
}

body[data-skin="prism"] .soft-card {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #f9f4e8;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px);
}

body[data-skin="prism"] .soft-card b {
  display: block;
  margin-bottom: 8px;
  color: #eaff4f;
}

body[data-skin="prism"] .soft-card span {
  color: #d7ded9;
}

body[data-skin="prism"] .login-card {
  align-self: center;
  padding: 34px;
  color: #111;
  background: #f7f2e7;
}

body[data-skin="prism"] .login-card h2 {
  color: #111;
  font-family: inherit;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
}

body[data-skin="prism"] .login-card p {
  color: #52504a;
}

body[data-skin="prism"] .login-card input {
  border: 2px solid #111;
  border-radius: 4px;
  background: #fffdf6;
}

body[data-skin="prism"] .dark-btn,
body[data-skin="prism"] .pill-btn {
  border-radius: 4px;
}

body[data-skin="prism"] .dark-btn {
  color: #111;
  background: #eaff4f;
}

body[data-skin="prism"] .link-btn {
  color: #075aeb;
}

body[data-skin="prism"][data-view="home"] .mobile-shell {
  width: min(1180px, calc(100vw - 48px));
  padding: 28px 0 56px;
}

body[data-skin="prism"][data-view="home"] .web-nav,
body[data-skin="prism"][data-view="home"] .plain-home-top,
body[data-skin="prism"][data-view="home"] .home-continue,
body[data-skin="prism"][data-view="home"] .entry-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(12, 13, 17, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

body[data-skin="prism"][data-view="home"] .web-nav {
  display: flex;
}

body[data-skin="prism"][data-view="home"] .web-nav button:not(.brand) {
  color: #e6e1d7;
}

body[data-skin="prism"][data-view="home"] .web-nav button.active {
  color: #111;
  background: #eaff4f;
}

body[data-skin="prism"][data-view="home"] .plain-home-top {
  min-height: 250px;
  margin-bottom: 18px;
  padding: 30px;
  align-items: end;
  background:
    linear-gradient(115deg, rgba(234, 255, 79, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(21, 202, 255, 0.18), rgba(12, 13, 17, 0.86));
}

body[data-skin="prism"][data-view="home"] .plain-home-top h1 {
  color: #fffdf4;
  font-family: inherit;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 950;
  line-height: 0.9;
}

body[data-skin="prism"][data-view="home"] .plain-home-top p {
  color: #cfd8d4;
  font-size: 18px;
}

body[data-skin="prism"][data-view="home"] .menu-dot {
  width: auto;
  min-width: 86px;
  border-radius: 4px;
  color: #111;
  background: #eaff4f;
}

body[data-skin="prism"][data-view="home"] .home-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-skin="prism"][data-view="home"] .entry-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-height: 560px;
}

body[data-skin="prism"][data-view="home"] .entry-cover {
  min-height: 260px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    linear-gradient(135deg, rgba(6, 11, 18, 0.34), rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(135deg, rgba(234, 255, 79, 0.2) 0 12px, transparent 12px 28px),
    url("assets/brand/suzy-english-academy-logo.png") center / 150px no-repeat,
    #111;
}

body[data-skin="prism"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(6, 11, 18, 0.24), rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(90deg, rgba(21, 202, 255, 0.22) 0 10px, transparent 10px 26px),
    #0a1020;
}

body[data-skin="prism"][data-view="home"] .entry-cover span {
  border-radius: 4px;
  color: #111;
  background: #eaff4f;
}

body[data-skin="prism"][data-view="home"] .entry-cover b {
  color: #fffdf4;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

body[data-skin="prism"][data-view="home"] .entry-body {
  padding: 28px;
  color: #f7f2e7;
}

body[data-skin="prism"][data-view="home"] .entry-body h2 {
  color: #fffdf4;
  font-family: inherit;
  font-size: 42px;
  font-weight: 950;
}

body[data-skin="prism"][data-view="home"] .entry-body p {
  color: #cfd8d4;
}

body[data-skin="prism"][data-view="home"] .entry-tags span {
  border-radius: 4px;
  color: #e7efe9;
  background: rgba(255, 255, 255, 0.1);
}

body[data-skin="prism"][data-view="home"] .gold-btn,
body[data-skin="prism"][data-view="home"] .blue-btn {
  border-radius: 4px;
  color: #111;
  background: #eaff4f;
}

body[data-skin="studio"][data-view="login"],
body[data-skin="studio"][data-view="register"],
body[data-skin="studio"][data-view="forgot"],
body[data-skin="studio"][data-view="home"] {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    #f6f1e6;
  color: #111;
}

body[data-skin="studio"] .auth-page {
  width: min(1120px, calc(100vw - 48px));
  padding: 30px 0 46px;
}

body[data-skin="studio"] .auth-brand {
  display: flex;
  padding: 0 0 22px;
}

body[data-skin="studio"] .auth-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

body[data-skin="studio"] .welcome-card,
body[data-skin="studio"] .login-card {
  border: 2px solid #111;
  border-radius: 0;
  box-shadow: 10px 10px 0 #111;
}

body[data-skin="studio"] .welcome-card {
  min-height: 560px;
  padding: 38px;
  color: #111;
  background:
    linear-gradient(135deg, transparent 0 58%, #ff5b2e 58% 64%, transparent 64%),
    #fdf9ef;
}

body[data-skin="studio"] .welcome-card h1 {
  max-width: 8em;
  color: #111;
  font-family: inherit;
  font-size: clamp(44px, 7vw, 94px);
  font-weight: 950;
  line-height: 0.94;
}

body[data-skin="studio"] .welcome-card p {
  max-width: 610px;
  color: #2e2c28;
  font-size: 18px;
}

body[data-skin="studio"] .soft-card {
  border: 2px solid #111;
  border-radius: 0;
  background: #d8ff4f;
}

body[data-skin="studio"] .soft-card:nth-of-type(2) {
  background: #bfe5ff;
}

body[data-skin="studio"] .login-card {
  align-self: center;
  padding: 34px;
  background: #fffef8;
}

body[data-skin="studio"] .login-card h2 {
  font-family: inherit;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 950;
}

body[data-skin="studio"] .login-card input {
  border: 2px solid #111;
  border-radius: 0;
  background: #fdf9ef;
}

body[data-skin="studio"] .dark-btn,
body[data-skin="studio"] .pill-btn {
  border: 2px solid #111;
  border-radius: 0;
  box-shadow: 5px 5px 0 #111;
}

body[data-skin="studio"] .dark-btn {
  color: #fff;
  background: #154cff;
}

body[data-skin="studio"] .pill-btn {
  color: #111;
  background: #d8ff4f;
}

body[data-skin="studio"][data-view="home"] .mobile-shell {
  width: min(1120px, calc(100vw - 48px));
  padding: 30px 0 56px;
}

body[data-skin="studio"][data-view="home"] .web-nav,
body[data-skin="studio"][data-view="home"] .plain-home-top,
body[data-skin="studio"][data-view="home"] .home-continue,
body[data-skin="studio"][data-view="home"] .entry-card {
  border: 2px solid #111;
  border-radius: 0;
  background: #fffef8;
  box-shadow: 8px 8px 0 #111;
}

body[data-skin="studio"][data-view="home"] .web-nav {
  display: flex;
}

body[data-skin="studio"][data-view="home"] .web-nav button:not(.brand) {
  color: #111;
}

body[data-skin="studio"][data-view="home"] .web-nav button.active {
  color: #fff;
  background: #154cff;
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  min-height: 230px;
  margin-bottom: 18px;
  padding: 30px;
  align-items: end;
  background:
    linear-gradient(120deg, #fffef8 0 54%, #d8ff4f 54% 72%, #ff5b2e 72% 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
  font-family: inherit;
  font-size: clamp(50px, 8vw, 102px);
  font-weight: 950;
  line-height: 0.92;
}

body[data-skin="studio"][data-view="home"] .plain-home-top p {
  color: #25231f;
  font-size: 18px;
}

body[data-skin="studio"][data-view="home"] .menu-dot {
  width: auto;
  min-width: 86px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fffef8;
  box-shadow: 5px 5px 0 #111;
}

body[data-skin="studio"][data-view="home"] .home-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-skin="studio"][data-view="home"] .entry-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  min-height: 540px;
}

body[data-skin="studio"][data-view="home"] .entry-cover {
  min-height: 250px;
  border-bottom: 2px solid #111;
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2)),
    url("assets/brand/suzy-english-academy-logo.png") center / 150px no-repeat,
    #154cff;
}

body[data-skin="studio"][data-view="home"] .ai-cover {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 12px, transparent 12px 28px),
    #111;
}

body[data-skin="studio"][data-view="home"] .entry-cover span {
  border: 2px solid #111;
  border-radius: 0;
  color: #111;
  background: #d8ff4f;
}

body[data-skin="studio"][data-view="home"] .entry-cover b {
  font-size: clamp(28px, 4vw, 48px);
}

body[data-skin="studio"][data-view="home"] .entry-body {
  padding: 28px;
}

body[data-skin="studio"][data-view="home"] .entry-body h2 {
  font-family: inherit;
  font-size: 40px;
  font-weight: 950;
}

body[data-skin="studio"][data-view="home"] .entry-tags span {
  border: 1px solid #111;
  border-radius: 0;
  color: #111;
  background: #f6f1e6;
}

body[data-skin="studio"][data-view="home"] .gold-btn,
body[data-skin="studio"][data-view="home"] .blue-btn {
  border: 2px solid #111;
  border-radius: 0;
  box-shadow: 5px 5px 0 #111;
}

body[data-skin="studio"][data-view="home"] .gold-btn {
  color: #111;
  background: #d8ff4f;
}

body[data-skin="studio"][data-view="home"] .blue-btn {
  color: #fff;
  background: #154cff;
}

@media (max-width: 899px) {
  body[data-skin="prism"] .auth-page,
  body[data-skin="studio"] .auth-page,
  body[data-skin="prism"][data-view="home"] .mobile-shell,
  body[data-skin="studio"][data-view="home"] .mobile-shell {
    width: 100%;
    max-width: 430px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-skin="prism"] .auth-brand,
  body[data-skin="studio"] .auth-brand {
    display: flex;
    padding: 0 0 12px;
  }

  body[data-skin="prism"] .auth-grid,
  body[data-skin="studio"] .auth-grid {
    grid-template-columns: 1fr;
  }

  body[data-skin="prism"] .welcome-card,
  body[data-skin="studio"] .welcome-card {
    min-height: auto;
  }

  body[data-skin="prism"] .welcome-card h1,
  body[data-skin="studio"] .welcome-card h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 0.98;
  }

  body[data-skin="prism"] .login-card h2,
  body[data-skin="studio"] .login-card h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  body[data-skin="prism"][data-view="home"] .web-nav,
  body[data-skin="studio"][data-view="home"] .web-nav {
    display: none;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top,
  body[data-skin="studio"][data-view="home"] .plain-home-top {
    min-height: 190px;
    padding: 20px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1,
  body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  body[data-skin="prism"][data-view="home"] .home-card-list,
  body[data-skin="studio"][data-view="home"] .home-card-list {
    grid-template-columns: 1fr;
  }

  body[data-skin="prism"][data-view="home"] .entry-card,
  body[data-skin="studio"][data-view="home"] .entry-card {
    grid-template-rows: 170px 1fr;
    min-height: auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover,
  body[data-skin="studio"][data-view="home"] .entry-cover {
    min-height: 170px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2,
  body[data-skin="studio"][data-view="home"] .entry-body h2 {
    font-size: 30px;
  }
}

/* 2026-07-07 refined direction: quieter backgrounds, stronger readable type, better scale. */
body[data-skin="prism"][data-view="login"],
body[data-skin="prism"][data-view="register"],
body[data-skin="prism"][data-view="forgot"],
body[data-skin="prism"][data-view="home"] {
  background: #f7f2e8;
  color: #111;
}

body[data-skin="prism"] .auth-page {
  width: min(1080px, calc(100vw - 40px));
  padding: 22px 0 38px;
}

body[data-skin="prism"] .auth-brand {
  padding-bottom: 18px;
}

body[data-skin="prism"] .brand {
  color: #111;
}

body[data-skin="prism"] .auth-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

body[data-skin="prism"] .welcome-card,
body[data-skin="prism"] .login-card {
  border: 0;
  border-radius: 28px;
  box-shadow: none;
}

body[data-skin="prism"] .welcome-card {
  min-height: 520px;
  padding: 34px;
  color: #111;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(184, 210, 237, 0.72) 58% 82%, transparent 82%),
    linear-gradient(115deg, rgba(222, 255, 62, 0.72) 0 28%, transparent 28%),
    #fffaf0;
}

body[data-skin="prism"] .welcome-card::before {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 170px;
  height: 118px;
  border-radius: 26px;
  background: #f2b8d7;
  transform: rotate(-7deg);
}

body[data-skin="prism"] .welcome-card h1 {
  position: relative;
  max-width: 7.6em;
  color: #111;
  font-family: inherit;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 950;
  line-height: 0.98;
}

body[data-skin="prism"] .welcome-card p {
  position: relative;
  max-width: 600px;
  color: #24231f;
  font-size: 16px;
  line-height: 1.75;
}

body[data-skin="prism"] .soft-card {
  position: relative;
  width: min(420px, 100%);
  border: 0;
  border-radius: 22px;
  padding: 16px 18px;
  color: #111;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

body[data-skin="prism"] .soft-card b {
  color: #111;
}

body[data-skin="prism"] .soft-card span {
  color: #3f3d38;
}

body[data-skin="prism"] .login-card {
  align-self: center;
  padding: 32px;
  color: #111;
  background: #fffdf8;
}

body[data-skin="prism"] .login-card h2 {
  color: #111;
  font-family: inherit;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 950;
  line-height: 1.02;
}

body[data-skin="prism"] .login-card p {
  color: #5a574f;
  font-size: 14px;
}

body[data-skin="prism"] .login-card input {
  min-height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  background: #f8f4eb;
}

body[data-skin="prism"] .dark-btn,
body[data-skin="prism"] .pill-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

body[data-skin="prism"] .dark-btn {
  color: #fff;
  background: #111;
}

body[data-skin="prism"] .pill-btn {
  color: #111;
  background: #e8ff38;
}

body[data-skin="prism"][data-view="home"] .mobile-shell {
  width: min(1080px, calc(100vw - 40px));
  padding: 22px 0 46px;
}

body[data-skin="prism"][data-view="home"] .web-nav,
body[data-skin="prism"][data-view="home"] .plain-home-top,
body[data-skin="prism"][data-view="home"] .home-continue,
body[data-skin="prism"][data-view="home"] .entry-card {
  border: 0;
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: none;
}

body[data-skin="prism"][data-view="home"] .web-nav {
  display: flex;
  padding: 12px 16px;
  margin-bottom: 16px;
}

body[data-skin="prism"][data-view="home"] .web-nav button:not(.brand) {
  color: #26231f;
}

body[data-skin="prism"][data-view="home"] .web-nav button.active {
  color: #fff;
  background: #111;
}

body[data-skin="prism"][data-view="home"] .plain-home-top {
  min-height: 210px;
  margin-bottom: 16px;
  padding: 26px;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #fffdf8;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  bottom: 22px;
  width: min(42%, 460px);
  border-radius: 24px;
  background:
    linear-gradient(120deg, transparent 0 20%, rgba(232, 255, 56, 0.82) 20% 58%, rgba(242, 184, 215, 0.76) 58% 100%);
  pointer-events: none;
}

body[data-skin="prism"][data-view="home"] .plain-home-top h1 {
  color: #111;
  font-family: inherit;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 950;
  line-height: 0.95;
}

body[data-skin="prism"][data-view="home"] .plain-home-top p {
  color: #2e2c27;
  font-size: 16px;
}

body[data-skin="prism"][data-view="home"] .menu-dot {
  width: auto;
  min-width: 76px;
  min-height: 44px;
  border-radius: 999px;
  color: #fff;
  background: #111;
}

body[data-skin="prism"][data-view="home"] .home-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-skin="prism"][data-view="home"] .entry-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 460px;
}

body[data-skin="prism"][data-view="home"] .entry-cover {
  min-height: 210px;
  border-bottom: 0;
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 118px no-repeat,
    linear-gradient(135deg, #e8ff38 0 40%, #b8d2ed 40% 72%, #fffdf8 72%);
}

body[data-skin="prism"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.1), transparent),
    #f2b8d7;
}

body[data-skin="prism"][data-view="home"] .entry-cover span {
  border: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.86);
}

body[data-skin="prism"][data-view="home"] .entry-cover b {
  color: #111;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.02;
}

body[data-skin="prism"][data-view="home"] .entry-body {
  padding: 24px;
  color: #111;
}

body[data-skin="prism"][data-view="home"] .entry-body h2 {
  color: #111;
  font-family: inherit;
  font-size: 32px;
  font-weight: 950;
}

body[data-skin="prism"][data-view="home"] .entry-body p {
  color: #4a4740;
}

body[data-skin="prism"][data-view="home"] .entry-tags span {
  border-radius: 999px;
  color: #111;
  background: #f1ede4;
}

body[data-skin="prism"][data-view="home"] .gold-btn,
body[data-skin="prism"][data-view="home"] .blue-btn {
  border-radius: 999px;
  color: #fff;
  background: #111;
}

body[data-skin="studio"][data-view="login"],
body[data-skin="studio"][data-view="register"],
body[data-skin="studio"][data-view="forgot"],
body[data-skin="studio"][data-view="home"] {
  background: #101114;
  color: #f7f2e8;
}

body[data-skin="studio"] .auth-page {
  width: min(1040px, calc(100vw - 40px));
  padding: 22px 0 38px;
}

body[data-skin="studio"] .auth-brand {
  padding-bottom: 18px;
}

body[data-skin="studio"] .brand {
  color: #f7f2e8;
}

body[data-skin="studio"] .auth-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 18px;
}

body[data-skin="studio"] .welcome-card,
body[data-skin="studio"] .login-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: none;
}

body[data-skin="studio"] .welcome-card {
  min-height: 520px;
  padding: 34px;
  color: #f7f2e8;
  background:
    linear-gradient(135deg, transparent 0 56%, rgba(142, 119, 255, 0.34) 56% 78%, transparent 78%),
    linear-gradient(115deg, rgba(219, 255, 74, 0.2), transparent 42%),
    #17181d;
}

body[data-skin="studio"] .welcome-card::before {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 34px;
  width: 180px;
  height: 104px;
  border-radius: 28px;
  background: rgba(219, 255, 74, 0.82);
  transform: rotate(-6deg);
}

body[data-skin="studio"] .welcome-card h1 {
  position: relative;
  max-width: 7.5em;
  color: #fff;
  font-family: inherit;
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 950;
  line-height: 0.98;
}

body[data-skin="studio"] .welcome-card p {
  position: relative;
  max-width: 600px;
  color: #d7d0c5;
  font-size: 16px;
  line-height: 1.75;
}

body[data-skin="studio"] .soft-card {
  position: relative;
  width: min(420px, 100%);
  border: 0;
  border-radius: 22px;
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.08);
}

body[data-skin="studio"] .soft-card:nth-of-type(2) {
  background: rgba(142, 119, 255, 0.16);
}

body[data-skin="studio"] .soft-card b {
  color: #dbff4a;
}

body[data-skin="studio"] .soft-card span {
  color: #d7d0c5;
}

body[data-skin="studio"] .login-card {
  align-self: center;
  padding: 32px;
  color: #f7f2e8;
  background: #1a1b20;
}

body[data-skin="studio"] .login-card h2 {
  color: #fff;
  font-family: inherit;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 950;
  line-height: 1.02;
}

body[data-skin="studio"] .login-card p {
  color: #b9b1a6;
  font-size: 14px;
}

body[data-skin="studio"] .login-card input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #fff;
  background: #111216;
}

body[data-skin="studio"] .dark-btn,
body[data-skin="studio"] .pill-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

body[data-skin="studio"] .dark-btn {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .pill-btn {
  color: #111;
  background: #f2b8d7;
}

body[data-skin="studio"][data-view="home"] .mobile-shell {
  width: min(1040px, calc(100vw - 40px));
  padding: 22px 0 46px;
}

body[data-skin="studio"][data-view="home"] .web-nav,
body[data-skin="studio"][data-view="home"] .plain-home-top,
body[data-skin="studio"][data-view="home"] .home-continue,
body[data-skin="studio"][data-view="home"] .entry-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #1a1b20;
  box-shadow: none;
}

body[data-skin="studio"][data-view="home"] .web-nav {
  display: flex;
  padding: 12px 16px;
  margin-bottom: 16px;
}

body[data-skin="studio"][data-view="home"] .web-nav button:not(.brand) {
  color: #d7d0c5;
}

body[data-skin="studio"][data-view="home"] .web-nav button.active {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  min-height: 210px;
  margin-bottom: 16px;
  padding: 26px;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #17181d;
}

body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 55%, rgba(219, 255, 74, 0.72) 55% 70%, rgba(242, 184, 215, 0.72) 70% 100%);
  pointer-events: none;
}

body[data-skin="studio"][data-view="home"] .plain-home-top > * {
  position: relative;
  z-index: 1;
}

body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
  color: #fff;
  font-family: inherit;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 950;
  line-height: 0.95;
}

body[data-skin="studio"][data-view="home"] .plain-home-top p {
  color: #d7d0c5;
  font-size: 16px;
}

body[data-skin="studio"][data-view="home"] .menu-dot {
  width: auto;
  min-width: 86px;
  min-height: 48px;
  border-radius: 999px;
  color: #111;
  border: 3px solid #111;
  background: #dbff4a;
  box-shadow: 8px 8px 0 #111;
}

body[data-skin="studio"][data-view="home"] .home-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-skin="studio"][data-view="home"] .entry-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 460px;
}

body[data-skin="studio"][data-view="home"] .entry-cover {
  min-height: 210px;
  border-bottom: 0;
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 118px no-repeat,
    linear-gradient(135deg, #dbff4a 0 38%, #8e77ff 38% 72%, #17181d 72%);
}

body[data-skin="studio"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(142, 119, 255, 0.46), transparent),
    #111216;
}

body[data-skin="studio"][data-view="home"] .entry-cover span {
  border: 0;
  border-radius: 999px;
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"][data-view="home"] .entry-cover b {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.02;
}

body[data-skin="studio"][data-view="home"] .entry-body {
  padding: 24px;
  color: #f7f2e8;
}

body[data-skin="studio"][data-view="home"] .entry-body h2 {
  color: #fff;
  font-family: inherit;
  font-size: 32px;
  font-weight: 950;
}

body[data-skin="studio"][data-view="home"] .entry-body p {
  color: #d7d0c5;
}

body[data-skin="studio"][data-view="home"] .entry-tags span {
  border: 0;
  border-radius: 999px;
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.08);
}

body[data-skin="studio"][data-view="home"] .gold-btn,
body[data-skin="studio"][data-view="home"] .blue-btn {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

body[data-skin="studio"][data-view="home"] .gold-btn {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"][data-view="home"] .blue-btn {
  color: #111;
  background: #f2b8d7;
}

@media (max-width: 899px) {
  body[data-skin="prism"] .auth-page,
  body[data-skin="studio"] .auth-page,
  body[data-skin="prism"][data-view="home"] .mobile-shell,
  body[data-skin="studio"][data-view="home"] .mobile-shell {
    width: 100%;
    max-width: 430px;
    padding: 12px 12px calc(80px + env(safe-area-inset-bottom));
  }

  body[data-skin="prism"] .auth-brand,
  body[data-skin="studio"] .auth-brand {
    display: flex;
    padding: 0 0 10px;
  }

  body[data-skin="prism"] .auth-grid,
  body[data-skin="studio"] .auth-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-skin="prism"] .welcome-card,
  body[data-skin="studio"] .welcome-card {
    min-height: 280px;
    padding: 22px;
  }

  body[data-skin="prism"] .welcome-card h1,
  body[data-skin="studio"] .welcome-card h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  body[data-skin="prism"] .login-card,
  body[data-skin="studio"] .login-card {
    padding: 22px;
  }

  body[data-skin="prism"] .login-card h2,
  body[data-skin="studio"] .login-card h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  body[data-skin="prism"][data-view="home"] .web-nav,
  body[data-skin="studio"][data-view="home"] .web-nav {
    display: none;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top,
  body[data-skin="studio"][data-view="home"] .plain-home-top {
    min-height: 156px;
    padding: 18px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1,
  body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top p,
  body[data-skin="studio"][data-view="home"] .plain-home-top p {
    font-size: 14px;
  }

  body[data-skin="prism"][data-view="home"] .home-card-list,
  body[data-skin="studio"][data-view="home"] .home-card-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-skin="prism"][data-view="home"] .entry-card,
  body[data-skin="studio"][data-view="home"] .entry-card {
    grid-template-rows: 140px 1fr;
    min-height: auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover,
  body[data-skin="studio"][data-view="home"] .entry-cover {
    min-height: 140px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body,
  body[data-skin="studio"][data-view="home"] .entry-body {
    padding: 18px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2,
  body[data-skin="studio"][data-view="home"] .entry-body h2 {
    font-size: 26px;
  }
}

/* Full-site skin coverage for library, study, AI, and profile pages. */
body[data-skin="prism"][data-view="library"],
body[data-skin="prism"][data-view="learn"],
body[data-skin="prism"][data-view="ai"],
body[data-skin="prism"][data-view="profile"] {
  background: #f3f0e8;
}

body[data-skin="studio"][data-view="library"],
body[data-skin="studio"][data-view="learn"],
body[data-skin="studio"][data-view="ai"],
body[data-skin="studio"][data-view="profile"] {
  color: #fffef8;
  background: #101115;
}

body[data-skin="prism"] .library-top,
body[data-skin="prism"] .simple-top,
body[data-skin="prism"] .study-top {
  color: #111;
}

body[data-skin="prism"] .library-top h1,
body[data-skin="prism"] .simple-top h1,
body[data-skin="prism"] .profile-head h1 {
  color: #111;
}

body[data-skin="studio"] .library-top,
body[data-skin="studio"] .simple-top,
body[data-skin="studio"] .study-top {
  color: #fffef8;
}

body[data-skin="studio"] .library-top h1,
body[data-skin="studio"] .simple-top h1,
body[data-skin="studio"] .profile-head h1 {
  color: #fffef8;
}

body[data-skin="studio"] .library-top p,
body[data-skin="studio"] .simple-top p,
body[data-skin="studio"] .study-meta span,
body[data-skin="studio"] .profile-head p {
  color: #d7d0c5;
}

body[data-skin="prism"] .web-nav,
body[data-skin="prism"] .search-card,
body[data-skin="prism"] .video-card,
body[data-skin="prism"] .study-meta,
body[data-skin="prism"] .subtitle-settings,
body[data-skin="prism"] .sentence-card,
body[data-skin="prism"] .tool-card,
body[data-skin="prism"] .ai-chat,
body[data-skin="prism"] .profile-list,
body[data-skin="prism"] .continue-card,
body[data-skin="prism"] .empty-card {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 253, 248, 0.94);
}

body[data-skin="studio"] .web-nav,
body[data-skin="studio"] .search-card,
body[data-skin="studio"] .video-card,
body[data-skin="studio"] .study-meta,
body[data-skin="studio"] .subtitle-settings,
body[data-skin="studio"] .sentence-card,
body[data-skin="studio"] .tool-card,
body[data-skin="studio"] .ai-chat,
body[data-skin="studio"] .profile-list,
body[data-skin="studio"] .continue-card,
body[data-skin="studio"] .empty-card {
  border-color: rgba(255, 255, 255, 0.1);
  color: #fffef8;
  background: #1a1b20;
  box-shadow: none;
}

body[data-skin="studio"] .search-card input,
body[data-skin="studio"] .ai-chat textarea,
body[data-skin="studio"] .login-card input {
  border-color: rgba(255, 255, 255, 0.1);
  color: #fffef8;
  background: #111217;
}

body[data-skin="studio"] .search-card input::placeholder,
body[data-skin="studio"] .ai-chat textarea::placeholder,
body[data-skin="studio"] .login-card input::placeholder {
  color: #8f8b84;
}

body[data-skin="studio"] .category-menu > button,
body[data-skin="studio"] .category-item > button,
body[data-skin="studio"] .meta-tags span,
body[data-skin="studio"] .meta-tags b,
body[data-skin="studio"] .entry-tags span,
body[data-skin="studio"] .word-card,
body[data-skin="studio"] .speed-current,
body[data-skin="studio"] .segmented button,
body[data-skin="studio"] .font-options button,
body[data-skin="studio"] .size-options button,
body[data-skin="studio"] .color-options button {
  color: #f5f1ea;
  background: rgba(255, 255, 255, 0.08);
}

body[data-skin="studio"] .category-menu > button.active,
body[data-skin="studio"] .category-item > button.active,
body[data-skin="studio"] .category-item:hover > button,
body[data-skin="studio"] .category-item:focus-within > button,
body[data-skin="studio"] .segmented button.active,
body[data-skin="studio"] .font-options button.active,
body[data-skin="studio"] .size-options button.active,
body[data-skin="studio"] .color-options button.active,
body[data-skin="studio"] .speed-menu button.active {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .category-panel,
body[data-skin="studio"] .category-submenu,
body[data-skin="studio"] .speed-menu {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(26, 27, 32, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

body[data-skin="studio"] .category-panel-head b,
body[data-skin="studio"] .menu-node button,
body[data-skin="studio"] .video-info h2,
body[data-skin="studio"] .study-meta b,
body[data-skin="studio"] .study-summary strong,
body[data-skin="studio"] .sentence-card b,
body[data-skin="studio"] .tool-card h2,
body[data-skin="studio"] .profile-list b {
  color: #fffef8;
}

body[data-skin="studio"] .category-panel-head span,
body[data-skin="studio"] .video-info p,
body[data-skin="studio"] .study-summary p,
body[data-skin="studio"] .sentence-card p,
body[data-skin="studio"] .sentence-actions span,
body[data-skin="studio"] .word-card small,
body[data-skin="studio"] .word-card em,
body[data-skin="studio"] .profile-list span {
  color: #d7d0c5;
}

body[data-skin="studio"] .poster-fallback {
  color: #111;
  background:
    linear-gradient(135deg, rgba(219, 255, 74, 0.95), rgba(142, 119, 255, 0.9));
}

body[data-skin="studio"] .course-progress,
body[data-skin="studio"] .bottom-nav,
body[data-skin="studio"] .study-toolbar {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(26, 27, 32, 0.96);
}

body[data-skin="studio"] .bottom-nav button,
body[data-skin="studio"] .study-toolbar button,
body[data-skin="studio"] .speed-picker {
  color: #d7d0c5;
}

body[data-skin="studio"] .bottom-nav button.active,
body[data-skin="studio"] .study-toolbar button.active {
  color: #dbff4a;
}

body[data-skin="studio"] .play-main,
body[data-skin="studio"] .green-btn,
body[data-skin="studio"] .gold-btn {
  color: #111 !important;
  background: #dbff4a !important;
}

body[data-skin="studio"] .blue-btn {
  color: #111;
  background: #f2b8d7;
}

body[data-skin="studio"] .logout-btn {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .bubble.user {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .bubble.bot {
  color: #fffef8;
  background: rgba(255, 255, 255, 0.08);
}

body[data-skin="studio"] .study-shell {
  color: #fffef8;
}

body[data-skin="studio"] .study-top {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fffef8;
  background: #1a1b20;
}

body[data-skin="studio"] .study-top h1 {
  color: #fffef8;
}

body[data-skin="studio"] .study-video {
  border-color: rgba(255, 255, 255, 0.1);
  background: #050608;
}

body[data-skin="studio"] .round-btn {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .sentence-card.active {
  border-color: rgba(219, 255, 74, 0.7);
  background: rgba(219, 255, 74, 0.08);
}

body[data-skin="prism"] .video-cover b,
body[data-skin="prism"] .ai-cover b,
body[data-skin="studio"] .video-cover b,
body[data-skin="studio"] .ai-cover b {
  letter-spacing: 0;
}

/* Final pass: restore the confirmed light skin and normalize logged-in scale. */
body[data-skin="prism"] {
  color: #151515;
  background: #f3f0e8;
}

body[data-skin="prism"][data-view="home"],
body[data-skin="prism"][data-view="library"],
body[data-skin="prism"][data-view="learn"],
body[data-skin="prism"][data-view="ai"],
body[data-skin="prism"][data-view="profile"] {
  background: #f3f0e8;
}

body[data-skin="prism"][data-view="home"] .mobile-shell,
body[data-skin="prism"][data-view="library"] .mobile-shell,
body[data-skin="prism"][data-view="ai"] .mobile-shell,
body[data-skin="prism"][data-view="profile"] .mobile-shell,
body[data-skin="studio"][data-view="home"] .mobile-shell,
body[data-skin="studio"][data-view="library"] .mobile-shell,
body[data-skin="studio"][data-view="ai"] .mobile-shell,
body[data-skin="studio"][data-view="profile"] .mobile-shell {
  width: min(1040px, calc(100vw - 40px));
  padding: 18px 0 42px;
}

body[data-skin="prism"] .web-nav,
body[data-skin="studio"] .web-nav {
  min-height: 64px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 22px;
}

body[data-skin="prism"] .brand img,
body[data-skin="studio"] .brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

body[data-skin="prism"] .brand b,
body[data-skin="studio"] .brand b {
  font-size: 18px;
}

body[data-skin="prism"] .brand small,
body[data-skin="studio"] .brand small {
  margin-top: 4px;
  font-size: 11px;
}

body[data-skin="prism"] .web-nav button:not(.brand),
body[data-skin="studio"] .web-nav button:not(.brand) {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

body[data-skin="prism"] .theme-switch,
body[data-skin="studio"] .theme-switch {
  padding: 3px;
}

body[data-skin="prism"] .theme-switch button,
body[data-skin="studio"] .theme-switch button {
  min-width: 48px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-skin="prism"][data-view="home"] .plain-home-top,
body[data-skin="studio"][data-view="home"] .plain-home-top {
  min-height: 176px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 24px;
}

body[data-skin="prism"][data-view="home"] .plain-home-top {
  background: #fffdf8;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  inset: 0;
  width: auto;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 56%, rgba(232, 255, 56, 0.68) 56% 72%, rgba(242, 184, 215, 0.58) 72% 100%);
}

body[data-skin="prism"][data-view="home"] .plain-home-top h1,
body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 0.98;
}

body[data-skin="prism"][data-view="home"] .plain-home-top p,
body[data-skin="studio"][data-view="home"] .plain-home-top p {
  font-size: 14px;
}

body[data-skin="prism"][data-view="home"] .menu-dot,
body[data-skin="studio"][data-view="home"] .menu-dot {
  min-width: 70px;
  min-height: 40px;
  font-size: 14px;
}

body[data-skin="prism"][data-view="home"] .home-card-list,
body[data-skin="studio"][data-view="home"] .home-card-list {
  gap: 14px;
}

body[data-skin="prism"][data-view="home"] .entry-card,
body[data-skin="studio"][data-view="home"] .entry-card {
  grid-template-rows: 156px 1fr;
  min-height: 372px;
  border-radius: 24px;
}

body[data-skin="prism"][data-view="home"] .entry-cover,
body[data-skin="studio"][data-view="home"] .entry-cover {
  min-height: 156px;
  padding: 16px;
  gap: 12px;
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #e8ff38 0 38%, #b8d2ed 38% 72%, #fffdf8 72%);
}

body[data-skin="prism"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    #f2b8d7;
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #dbff4a 0 38%, #8e77ff 38% 72%, #17181d 72%);
}

body[data-skin="prism"][data-view="home"] .entry-cover b,
body[data-skin="studio"][data-view="home"] .entry-cover b {
  font-size: clamp(22px, 2.4vw, 30px);
}

body[data-skin="prism"][data-view="home"] .entry-cover span,
body[data-skin="studio"][data-view="home"] .entry-cover span {
  padding: 6px 11px;
  font-size: 11px;
}

body[data-skin="prism"][data-view="home"] .entry-body,
body[data-skin="studio"][data-view="home"] .entry-body {
  padding: 18px;
}

body[data-skin="prism"][data-view="home"] .entry-body h2,
body[data-skin="studio"][data-view="home"] .entry-body h2,
body[data-skin="prism"] .library-top h1,
body[data-skin="studio"] .library-top h1,
body[data-skin="prism"] .simple-top h1,
body[data-skin="studio"] .simple-top h1,
body[data-skin="prism"] .profile-head h1,
body[data-skin="studio"] .profile-head h1 {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 950;
  line-height: 1.08;
}

body[data-skin="prism"][data-view="home"] .entry-body p,
body[data-skin="studio"][data-view="home"] .entry-body p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.6;
}

body[data-skin="prism"] .entry-tags,
body[data-skin="studio"] .entry-tags,
body[data-skin="prism"] .meta-tags,
body[data-skin="studio"] .meta-tags {
  gap: 6px;
  margin: 12px 0;
}

body[data-skin="prism"] .entry-tags span,
body[data-skin="prism"] .meta-tags span,
body[data-skin="prism"] .meta-tags b,
body[data-skin="studio"] .entry-tags span,
body[data-skin="studio"] .meta-tags span,
body[data-skin="studio"] .meta-tags b {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-skin="prism"] .library-top,
body[data-skin="studio"] .library-top,
body[data-skin="prism"] .simple-top,
body[data-skin="studio"] .simple-top {
  padding: 10px 0 16px;
}

body[data-skin="prism"] .library-top p,
body[data-skin="studio"] .library-top p,
body[data-skin="prism"] .simple-top p,
body[data-skin="studio"] .simple-top p {
  font-size: 14px;
}

body[data-skin="prism"] .search-card,
body[data-skin="studio"] .search-card {
  width: min(560px, 100%);
  padding: 8px;
  border-radius: 18px;
}

body[data-skin="prism"] .search-card input,
body[data-skin="studio"] .search-card input {
  min-height: 44px;
  border-radius: 13px;
  font-size: 14px;
}

body[data-skin="prism"] .category-menu,
body[data-skin="studio"] .category-menu {
  gap: 8px;
  margin: 14px 0 16px;
}

body[data-skin="prism"] .category-menu > button,
body[data-skin="prism"] .category-item > button,
body[data-skin="studio"] .category-menu > button,
body[data-skin="studio"] .category-item > button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

body[data-skin="prism"] .course-list,
body[data-skin="studio"] .course-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-skin="prism"] .video-card,
body[data-skin="studio"] .video-card {
  border-radius: 20px;
}

body[data-skin="prism"] .thumb,
body[data-skin="studio"] .thumb {
  aspect-ratio: 16 / 8.5;
}

body[data-skin="prism"] .poster-fallback {
  color: #111;
  background:
    linear-gradient(135deg, rgba(232, 255, 56, 0.78), rgba(184, 210, 237, 0.78) 56%, rgba(242, 184, 215, 0.58));
}

body[data-skin="prism"] .poster-fallback span {
  color: rgba(17, 17, 17, 0.62);
}

body[data-skin="prism"] .poster-fallback b,
body[data-skin="studio"] .poster-fallback b {
  font-size: 16px;
}

body[data-skin="prism"] .video-info,
body[data-skin="studio"] .video-info {
  padding: 13px 14px 14px;
}

body[data-skin="prism"] .video-info h2,
body[data-skin="studio"] .video-info h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-skin="prism"] .video-info p,
body[data-skin="studio"] .video-info p {
  margin-top: 7px;
  font-size: 12px;
}

body[data-skin="prism"] .duration-pill,
body[data-skin="studio"] .duration-pill {
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  font-size: 11px;
}

body[data-skin="prism"] .ai-chat,
body[data-skin="studio"] .ai-chat,
body[data-skin="prism"] .profile-list,
body[data-skin="studio"] .profile-list,
body[data-skin="prism"] .continue-card,
body[data-skin="studio"] .continue-card {
  width: min(700px, 100%);
  padding: 16px;
  border-radius: 20px;
}

body[data-skin="prism"] .profile-head img,
body[data-skin="studio"] .profile-head img {
  width: 58px;
  height: 58px;
}

body[data-skin="prism"] .profile-list article,
body[data-skin="studio"] .profile-list article {
  padding: 12px 0;
  font-size: 14px;
}

body[data-skin="prism"] .logout-btn,
body[data-skin="studio"] .logout-btn {
  width: min(700px, 100%);
}

body[data-skin="prism"] .study-shell,
body[data-skin="studio"] .study-shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

body[data-skin="prism"] .study-top,
body[data-skin="studio"] .study-top {
  top: 12px;
  min-height: 54px;
  margin: 18px 0 12px;
  border-radius: 18px;
}

body[data-skin="prism"] .study-top h1,
body[data-skin="studio"] .study-top h1 {
  font-size: 16px;
}

@media (min-width: 900px) {
  body[data-skin="prism"] .bottom-nav,
  body[data-skin="studio"] .bottom-nav {
    display: none;
  }
}

@media (max-width: 899px) {
  body[data-skin="prism"][data-view="home"] .mobile-shell,
  body[data-skin="prism"][data-view="library"] .mobile-shell,
  body[data-skin="prism"][data-view="ai"] .mobile-shell,
  body[data-skin="prism"][data-view="profile"] .mobile-shell,
  body[data-skin="studio"][data-view="home"] .mobile-shell,
  body[data-skin="studio"][data-view="library"] .mobile-shell,
  body[data-skin="studio"][data-view="ai"] .mobile-shell,
  body[data-skin="studio"][data-view="profile"] .mobile-shell {
    width: 100%;
    max-width: 430px;
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top,
  body[data-skin="studio"][data-view="home"] .plain-home-top {
    min-height: 146px;
    padding: 16px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1,
  body[data-skin="studio"][data-view="home"] .plain-home-top h1,
  body[data-skin="prism"] .library-top h1,
  body[data-skin="studio"] .library-top h1,
  body[data-skin="prism"] .simple-top h1,
  body[data-skin="studio"] .simple-top h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  body[data-skin="prism"][data-view="home"] .entry-card,
  body[data-skin="studio"][data-view="home"] .entry-card {
    grid-template-rows: 126px 1fr;
    min-height: auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover,
  body[data-skin="studio"][data-view="home"] .entry-cover {
    min-height: 126px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2,
  body[data-skin="studio"][data-view="home"] .entry-body h2 {
    font-size: 24px;
  }

  body[data-skin="prism"] .course-list,
  body[data-skin="studio"] .course-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-skin="prism"] .video-card,
  body[data-skin="studio"] .video-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 92px;
  }

  body[data-skin="prism"] .thumb,
  body[data-skin="studio"] .thumb {
    height: 100%;
    min-height: 92px;
    aspect-ratio: auto;
  }

  body[data-skin="prism"] .video-info,
  body[data-skin="studio"] .video-info {
    padding: 10px 11px;
  }

  body[data-skin="prism"] .video-info h2,
  body[data-skin="studio"] .video-info h2 {
    font-size: 14px;
  }

  body[data-skin="prism"] .meta-tags span,
  body[data-skin="prism"] .meta-tags b,
  body[data-skin="studio"] .meta-tags span,
  body[data-skin="studio"] .meta-tags b {
    min-height: 23px;
    padding: 0 8px;
    font-size: 11px;
  }

  body[data-skin="prism"] .web-nav,
  body[data-skin="studio"] .web-nav {
    display: none;
  }

  body[data-skin="prism"] .bottom-nav,
  body[data-skin="studio"] .bottom-nav {
    display: grid;
  }
}

/* Final scale tuning after visual QA. */
@media (min-width: 900px) {
  body[data-skin="prism"][data-view="home"] .mobile-shell,
  body[data-skin="prism"][data-view="library"] .mobile-shell,
  body[data-skin="prism"][data-view="ai"] .mobile-shell,
  body[data-skin="prism"][data-view="profile"] .mobile-shell,
  body[data-skin="studio"][data-view="home"] .mobile-shell,
  body[data-skin="studio"][data-view="library"] .mobile-shell,
  body[data-skin="studio"][data-view="ai"] .mobile-shell,
  body[data-skin="studio"][data-view="profile"] .mobile-shell {
    width: min(980px, calc(100vw - 48px));
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top,
  body[data-skin="studio"][data-view="home"] .plain-home-top {
    min-height: 150px;
    padding: 20px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1,
  body[data-skin="studio"][data-view="home"] .plain-home-top h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  body[data-skin="prism"][data-view="home"] .home-continue,
  body[data-skin="studio"][data-view="home"] .home-continue {
    padding: 14px 16px;
  }

  body[data-skin="prism"][data-view="home"] .home-continue h2,
  body[data-skin="studio"][data-view="home"] .home-continue h2 {
    font-size: 16px;
  }

  body[data-skin="prism"][data-view="home"] .entry-card,
  body[data-skin="studio"][data-view="home"] .entry-card {
    grid-template-rows: 132px 1fr;
    min-height: 322px;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover,
  body[data-skin="studio"][data-view="home"] .entry-cover {
    min-height: 132px;
  }

  body[data-skin="prism"][data-view="home"] .video-cover,
  body[data-skin="studio"][data-view="home"] .video-cover {
    background-size: 76px, auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover b,
  body[data-skin="studio"][data-view="home"] .entry-cover b {
    font-size: 24px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2,
  body[data-skin="studio"][data-view="home"] .entry-body h2 {
    font-size: 26px;
  }

  body[data-skin="prism"] .library-top h1,
  body[data-skin="studio"] .library-top h1,
  body[data-skin="prism"] .simple-top h1,
  body[data-skin="studio"] .simple-top h1,
  body[data-skin="prism"] .profile-head h1,
  body[data-skin="studio"] .profile-head h1 {
    font-size: 30px;
  }

  body[data-skin="prism"] .thumb,
  body[data-skin="studio"] .thumb {
    aspect-ratio: 16 / 7.6;
  }

  body[data-skin="prism"] .video-info h2,
  body[data-skin="studio"] .video-info h2 {
    font-size: 14px;
  }

  body[data-skin="prism"] .video-info,
  body[data-skin="studio"] .video-info {
    padding: 12px 13px 13px;
  }
}

body[data-skin="studio"] .home-continue h2,
body[data-skin="studio"] .continue-card h2 {
  color: #fffef8;
}

body[data-skin="studio"] .home-continue p,
body[data-skin="studio"] .continue-card p {
  color: #d7d0c5;
}

body[data-skin="studio"] .home-continue span,
body[data-skin="studio"] .continue-card span {
  color: #22c777;
}

/* Restore Scheme A as a distinct light-forward visual direction. */
body[data-skin="prism"][data-view="home"] {
  background: #f3efe7;
}

body[data-skin="prism"][data-view="home"] .mobile-shell {
  width: min(1120px, calc(100vw - 48px));
  padding-top: 18px;
}

body[data-skin="prism"][data-view="home"] .web-nav {
  min-height: 66px;
  border: 0;
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: none;
}

body[data-skin="prism"][data-view="home"] .web-nav button.active {
  color: #fff;
  background: #111;
}

body[data-skin="prism"][data-view="home"] .plain-home-top {
  min-height: 226px;
  margin-bottom: 18px;
  padding: 30px;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: #fffdf8;
  box-shadow: none;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::before {
  content: "";
  position: absolute;
  left: -8%;
  top: -20%;
  z-index: 0;
  width: 34%;
  height: 145%;
  border-radius: 34px;
  background: #e8ff38;
  transform: skewX(-24deg);
}

body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -18%;
  top: auto;
  left: auto;
  z-index: 0;
  width: 44%;
  height: 132%;
  border-radius: 34px;
  background: #b8d2ed;
  transform: skewX(-24deg);
}

body[data-skin="prism"][data-view="home"] .plain-home-top > * {
  position: relative;
  z-index: 1;
}

body[data-skin="prism"][data-view="home"] .plain-home-top h1 {
  color: #111;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 950;
  line-height: 0.92;
}

body[data-skin="prism"][data-view="home"] .plain-home-top p {
  color: #25231f;
  font-size: 15px;
}

body[data-skin="prism"][data-view="home"] .menu-dot {
  min-width: 76px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111;
  box-shadow: none;
}

body[data-skin="prism"][data-view="home"] .home-continue,
body[data-skin="prism"][data-view="home"] .entry-card {
  border: 0;
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: none;
}

body[data-skin="prism"][data-view="home"] .home-continue {
  padding: 18px 22px;
}

body[data-skin="prism"][data-view="home"] .home-card-list {
  gap: 18px;
}

body[data-skin="prism"][data-view="home"] .entry-card {
  grid-template-rows: 190px 1fr;
  min-height: 430px;
}

body[data-skin="prism"][data-view="home"] .entry-cover {
  min-height: 190px;
  padding: 20px;
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 108px no-repeat,
    linear-gradient(135deg, #e8ff38 0 36%, #b8d2ed 36% 70%, #fffdf8 70%);
}

body[data-skin="prism"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #f2b8d7;
}

body[data-skin="prism"][data-view="home"] .entry-cover span {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
}

body[data-skin="prism"][data-view="home"] .entry-cover b {
  color: #111;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1;
}

body[data-skin="prism"][data-view="home"] .entry-body {
  padding: 22px;
}

body[data-skin="prism"][data-view="home"] .entry-body h2 {
  color: #111;
  font-size: 34px;
}

body[data-skin="prism"][data-view="home"] .entry-body p {
  color: #4b4740;
  font-size: 14px;
}

body[data-skin="prism"][data-view="home"] .gold-btn,
body[data-skin="prism"][data-view="home"] .blue-btn {
  min-height: 48px;
  border-radius: 999px;
  color: #fff;
  background: #111;
}

body[data-skin="prism"][data-view="library"] .poster-fallback,
body[data-skin="prism"][data-view="profile"] .poster-fallback {
  background:
    linear-gradient(135deg, #e8ff38 0 26%, #b8d2ed 26% 72%, #f2b8d7 72% 100%);
}

@media (max-width: 899px) {
  body[data-skin="prism"][data-view="home"] .mobile-shell {
    width: 100%;
    max-width: 430px;
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top {
    min-height: 176px;
    padding: 18px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  body[data-skin="prism"][data-view="home"] .entry-card {
    grid-template-rows: 146px 1fr;
    min-height: auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover {
    min-height: 146px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2 {
    font-size: 28px;
  }
}

/* Match Scheme A page scale to Scheme B while keeping Scheme A colors. */
@media (min-width: 900px) {
  body[data-skin="prism"][data-view="home"] .mobile-shell {
    width: min(980px, calc(100vw - 48px));
    padding-top: 18px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top {
    min-height: 150px;
    padding: 20px;
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  body[data-skin="prism"][data-view="home"] .plain-home-top p {
    font-size: 14px;
  }

  body[data-skin="prism"][data-view="home"] .home-continue {
    padding: 14px 16px;
  }

  body[data-skin="prism"][data-view="home"] .entry-card {
    grid-template-rows: 132px 1fr;
    min-height: 322px;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover {
    min-height: 132px;
    padding: 16px;
  }

  body[data-skin="prism"][data-view="home"] .video-cover {
    background-size: 76px, auto;
  }

  body[data-skin="prism"][data-view="home"] .entry-cover b {
    font-size: 24px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body {
    padding: 18px;
  }

  body[data-skin="prism"][data-view="home"] .entry-body h2 {
    font-size: 26px;
  }
}

/* Edge sealing: avoid 1px background leaks around rounded color panels. */
body[data-skin="prism"][data-view="home"] .plain-home-top {
  background:
    linear-gradient(110deg, #e8ff38 0 24%, transparent 24.2%),
    linear-gradient(110deg, transparent 0 64%, #b8d2ed 64.2% 100%),
    #fffdf8;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::before,
body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  display: none;
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  background:
    linear-gradient(120deg, #17181d 0 52%, #9dbb35 52.2% 70%, #b68fa5 70.2% 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  display: none;
}

body[data-skin="prism"][data-view="home"] .entry-card,
body[data-skin="studio"][data-view="home"] .entry-card,
body[data-skin="prism"] .video-card,
body[data-skin="studio"] .video-card {
  overflow: hidden;
  background-clip: padding-box;
}

body[data-skin="prism"][data-view="home"] .entry-cover,
body[data-skin="studio"][data-view="home"] .entry-cover,
body[data-skin="prism"] .thumb,
body[data-skin="studio"] .thumb {
  margin: -1px -1px 0;
  width: calc(100% + 2px);
}

body[data-skin="prism"] .poster-fallback,
body[data-skin="studio"] .poster-fallback,
body[data-skin="prism"][data-view="home"] .video-cover,
body[data-skin="studio"][data-view="home"] .video-cover,
body[data-skin="prism"][data-view="home"] .ai-cover,
body[data-skin="studio"][data-view="home"] .ai-cover {
  background-origin: border-box;
  background-clip: border-box;
}

/* Final skin edge lock: all decorative color panels must fill their masks cleanly. */
body[data-skin="prism"][data-view="home"] .plain-home-top,
body[data-skin="studio"][data-view="home"] .plain-home-top,
body[data-skin="prism"][data-view="home"] .entry-cover,
body[data-skin="studio"][data-view="home"] .entry-cover,
body[data-skin="prism"] .thumb,
body[data-skin="studio"] .thumb {
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #dbff4a 0 36%, #8e77ff 36.2% 74%, #b68fa5 74.2% 100%);
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #e8ff38 0 36%, #b8d2ed 36.2% 74%, #f2b8d7 74.2% 100%);
}

body[data-skin="prism"][data-view="home"] .plain-home-top,
body[data-skin="studio"][data-view="home"] .plain-home-top {
  outline: 1px solid transparent;
  background-clip: border-box;
}

/* Clean clipped hero panels: no gradient edge can skim the rounded frame. */
body[data-skin="prism"][data-view="home"] .plain-home-top {
  background: #fffdf8;
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  background: #17181d;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::before,
body[data-skin="prism"][data-view="home"] .plain-home-top::after,
body[data-skin="studio"][data-view="home"] .plain-home-top::before,
body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  content: "";
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::before {
  inset: -1px auto -1px -1px;
  width: 28%;
  background: #e8ff38;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  inset: -1px -1px -1px auto;
  width: 33%;
  background: #b8d2ed;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top::before {
  inset: -1px auto -1px 48%;
  width: 26%;
  background: #9dbb35;
  clip-path: polygon(22% 0, 100% 0, 76% 100%, 0 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  inset: -1px -1px -1px auto;
  width: 34%;
  background: #b68fa5;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="prism"][data-view="home"] .plain-home-top > *,
body[data-skin="studio"][data-view="home"] .plain-home-top > * {
  position: relative;
  z-index: 1;
}

/* Login welcome cards use clipped panels too, so no accent color peeks through edges. */
body[data-skin="prism"] .welcome-card,
body[data-skin="studio"] .welcome-card {
  position: relative;
  overflow: hidden;
  background-clip: border-box;
}

body[data-skin="prism"] .welcome-card {
  background:
    linear-gradient(104deg, #e8ff38 0 22%, transparent 22.2%),
    #fffaf0;
}

body[data-skin="studio"] .welcome-card {
  background: #17181d;
}

body[data-skin="prism"] .welcome-card::before,
body[data-skin="studio"] .welcome-card::before,
body[data-skin="prism"] .welcome-card::after,
body[data-skin="studio"] .welcome-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transform: none;
}

body[data-skin="prism"] .welcome-card::before {
  inset: -1px -1px -1px 38%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(184, 210, 237, 0.76);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="studio"] .welcome-card::before {
  inset: -1px -1px -1px 36%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(142, 119, 255, 0.44);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="prism"] .welcome-card::after {
  right: 12%;
  bottom: 7%;
  width: 168px;
  height: 104px;
  border-radius: 24px;
  background: #f2b8d7;
  transform: rotate(-7deg);
}

body[data-skin="studio"] .welcome-card::after {
  right: 9%;
  bottom: 8%;
  width: 178px;
  height: 108px;
  border-radius: 26px;
  background: rgba(219, 255, 74, 0.78);
  transform: rotate(-6deg);
}

body[data-skin="prism"] .welcome-card > *,
body[data-skin="studio"] .welcome-card > * {
  position: relative;
  z-index: 1;
}

/* Keep Scheme B visually independent from Scheme A after the edge fixes. */
body[data-skin="studio"] .welcome-card {
  color: #f7f2e8;
  background:
    radial-gradient(circle at 18% 16%, rgba(219, 255, 74, 0.14), transparent 34%),
    linear-gradient(150deg, #17181d 0%, #17181d 56%, #231f35 56.2% 100%);
}

body[data-skin="studio"] .welcome-card::before {
  inset: -1px -1px -1px auto;
  width: 32%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #4b427d;
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="studio"] .welcome-card::after {
  right: 9%;
  bottom: 7%;
  width: 178px;
  height: 102px;
  border-radius: 24px;
  background: #b9da3d;
  transform: rotate(-6deg);
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  color: #f7f2e8;
  background:
    radial-gradient(circle at 78% 40%, rgba(219, 255, 74, 0.08), transparent 24%),
    #17181d;
}

body[data-skin="studio"][data-view="home"] .plain-home-top::before {
  inset: auto -1px -1px 48%;
  width: auto;
  height: 44%;
  background: #9fbc36;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  inset: -1px -1px -1px auto;
  width: 27%;
  background: #b68fa5;
  clip-path: none;
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #dbff4a 0 30%, #8e77ff 30.2% 64%, #17181d 64.2% 100%);
}

body[data-skin="studio"][data-view="home"] .ai-cover {
  background:
    linear-gradient(90deg, rgba(219, 255, 74, 0.08), transparent 34%),
    #2b2548;
}

/* Restore the agreed two visual schemes: A light-forward, B dark-premium. */
body[data-skin="prism"][data-view="login"],
body[data-skin="prism"][data-view="register"],
body[data-skin="prism"][data-view="forgot"],
body[data-skin="prism"][data-view="home"] {
  background: #f3eee5;
}

body[data-skin="prism"] .welcome-card {
  background:
    linear-gradient(104deg, #e8ff38 0 22%, transparent 22.2%),
    #fffaf0;
}

body[data-skin="prism"] .welcome-card::before {
  inset: -1px -1px -1px 38%;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(184, 210, 237, 0.76);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  transform: none;
}

body[data-skin="prism"] .welcome-card::after {
  right: 12%;
  bottom: 7%;
  width: 168px;
  height: 104px;
  border-radius: 24px;
  background: #f2b8d7;
  transform: rotate(-7deg);
}

body[data-skin="prism"][data-view="home"] .plain-home-top {
  color: #111;
  background: #fffdf8;
}

body[data-skin="prism"][data-view="home"] .plain-home-top::before {
  inset: -1px auto -1px -1px;
  width: 28%;
  background: #e8ff38;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

body[data-skin="prism"][data-view="home"] .plain-home-top::after {
  inset: -1px -1px -1px auto;
  width: 33%;
  background: #b8d2ed;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="prism"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #e8ff38 0 36%, #b8d2ed 36.2% 74%, #f2b8d7 74.2% 100%);
}

body[data-skin="prism"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    #f2b8d7;
}

body[data-skin="studio"][data-view="login"],
body[data-skin="studio"][data-view="register"],
body[data-skin="studio"][data-view="forgot"],
body[data-skin="studio"][data-view="home"] {
  background: #101114;
  color: #f7f2e8;
}

body[data-skin="studio"] .welcome-card {
  color: #f7f2e8;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(142, 119, 255, 0.42) 48.2% 76%, transparent 76.2%),
    linear-gradient(115deg, rgba(219, 255, 74, 0.18), transparent 38%),
    #17181d;
}

body[data-skin="studio"] .welcome-card::before {
  display: none;
}

body[data-skin="studio"] .welcome-card::after {
  right: 9%;
  bottom: 8%;
  width: 178px;
  height: 108px;
  border-radius: 26px;
  background: rgba(219, 255, 74, 0.78);
  transform: rotate(-6deg);
}

body[data-skin="studio"][data-view="home"] .plain-home-top {
  color: #f7f2e8;
  background: #17181d;
}

body[data-skin="studio"][data-view="home"] .plain-home-top::before {
  inset: -1px auto -1px 50%;
  width: 26%;
  height: auto;
  background: #9dbb35;
  clip-path: polygon(22% 0, 100% 0, 76% 100%, 0 100%);
}

body[data-skin="studio"][data-view="home"] .plain-home-top::after {
  inset: -1px -1px -1px auto;
  width: 34%;
  height: auto;
  background: #b68fa5;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-skin="studio"][data-view="home"] .video-cover {
  background:
    url("assets/brand/suzy-english-academy-logo.png") center / 92px no-repeat,
    linear-gradient(135deg, #dbff4a 0 34%, #8e77ff 34.2% 72%, #17181d 72.2% 100%);
}

body[data-skin="studio"][data-view="home"] .ai-cover {
  background:
    linear-gradient(135deg, rgba(219, 255, 74, 0.08), transparent 34%),
    #2b2548;
}

/* Subtitle menu opens over the paused video frame. */
.study-video.settings-open .video-subtitle {
  opacity: 0.22;
}

.study-video .subtitle-settings {
  position: absolute;
  top: 14px;
  left: 50%;
  right: auto;
  z-index: 90;
  display: grid;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow: auto;
  transform: translateX(-50%);
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #f7f2e8;
  background: rgba(18, 19, 24, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.study-video .subtitle-settings span {
  position: static;
  inset: auto;
  display: inline;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
}

.study-video .subtitle-settings-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.study-video .subtitle-settings-head b {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.study-video .subtitle-settings-head button {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 253, 248, 0.88);
  font-size: 11px;
  font-weight: 900;
}

.study-video .subtitle-setting-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.study-video .subtitle-setting-row > span {
  padding-top: 7px;
  color: rgba(247, 242, 232, 0.7);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.study-video .segmented,
.study-video .font-options,
.study-video .size-options,
.study-video .color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.study-video .segmented button,
.study-video .font-options button,
.study-video .size-options button,
.study-video .color-options button {
  width: auto;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 999px;
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.13);
  font-size: 10px;
  font-weight: 900;
}

.study-video .segmented button.active,
.study-video .font-options button.active,
.study-video .size-options button.active,
.study-video .color-options button.active {
  color: #111;
  background: #dbff4a;
}

.study-video .color-options button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.study-video .color-options i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

body[data-skin="prism"] .study-video .subtitle-settings {
  color: #111;
  border-color: rgba(24, 22, 18, 0.12);
  background: rgba(255, 253, 248, 0.78);
}

body[data-skin="prism"] .study-video .subtitle-settings-head b,
body[data-skin="prism"] .study-video .subtitle-setting-row > span {
  color: #171717;
}

body[data-skin="prism"] .study-video .segmented button,
body[data-skin="prism"] .study-video .font-options button,
body[data-skin="prism"] .study-video .size-options button,
body[data-skin="prism"] .study-video .color-options button {
  color: #171717;
  background: rgba(244, 240, 232, 0.82);
}

body[data-skin="prism"] .study-video .segmented button.active,
body[data-skin="prism"] .study-video .font-options button.active,
body[data-skin="prism"] .study-video .size-options button.active,
body[data-skin="prism"] .study-video .color-options button.active {
  color: #111;
  background: #e8ff38;
}

/* Place subtitle settings just above the native playback bar, not in the center. */
.study-video .subtitle-settings {
  top: auto;
  bottom: 78px;
  width: min(900px, calc(100% - 72px));
  max-height: min(44%, 190px);
  padding: 8px 10px;
  gap: 5px;
  border-radius: 16px;
  background: rgba(18, 19, 24, 0.52);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.study-video .subtitle-settings-head {
  margin-bottom: 2px;
}

.study-video .subtitle-settings-head b {
  font-size: 13px;
}

.study-video .subtitle-settings-head button {
  min-height: 24px;
  padding: 0 9px;
}

.study-video .subtitle-setting-row {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 5px;
}

.study-video .subtitle-setting-row > span {
  padding-top: 6px;
}

.study-video .segmented,
.study-video .font-options,
.study-video .size-options,
.study-video .color-options {
  gap: 5px;
}

.study-video .segmented button,
.study-video .font-options button,
.study-video .size-options button,
.study-video .color-options button {
  min-height: 24px;
  padding: 0 7px;
}

body[data-skin="prism"] .study-video .subtitle-settings {
  background: rgba(255, 253, 248, 0.56);
}

@media (max-width: 520px) {
  .study-video .subtitle-settings {
    top: auto;
    bottom: 56px;
    width: calc(100% - 20px);
    max-height: min(48%, 150px);
    padding: 7px;
    border-radius: 16px;
  }

  .study-video .subtitle-setting-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 5px;
  }

  .study-video .segmented button,
  .study-video .font-options button,
  .study-video .size-options button,
  .study-video .color-options button {
    min-height: 24px;
    padding: 0 7px;
    font-size: 10px;
  }
}

/* Subtitle settings now live in the video info card. */
.study-meta .subtitle-settings {
  position: static;
  display: grid;
  gap: 8px;
  width: 100%;
  max-height: 156px;
  margin: 14px 0 4px;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 18px;
  color: #171717;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: none;
  transform: none;
  backdrop-filter: blur(14px);
}

.study-meta .subtitle-settings span {
  position: static;
  inset: auto;
  display: inline;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
}

.study-meta .subtitle-settings-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.study-meta .subtitle-settings-head b {
  font-size: 12px;
  line-height: 1.2;
}

.study-meta .subtitle-settings-head button,
.study-meta .segmented button,
.study-meta .font-options button,
.study-meta .size-options button,
.study-meta .color-options button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.study-meta .subtitle-setting-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.study-meta .subtitle-setting-row > span {
  padding-top: 8px;
  color: #69645d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.study-meta .subtitle-settings,
.study-meta .subtitle-settings * {
  font-size: 12px;
}

.study-meta .segmented,
.study-meta .font-options,
.study-meta .size-options,
.study-meta .color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.study-meta .color-options button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.study-meta .color-options i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.study-meta .segmented button.active,
.study-meta .font-options button.active,
.study-meta .size-options button.active,
.study-meta .color-options button.active {
  color: #111;
  background: #dbff4a;
}

body[data-skin="studio"] .study-meta .subtitle-settings {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7f2e8;
  background: rgba(23, 24, 29, 0.72);
}

body[data-skin="studio"] .study-meta .subtitle-setting-row > span {
  color: rgba(247, 242, 232, 0.76);
}

body[data-skin="studio"] .study-meta .subtitle-settings-head button,
body[data-skin="studio"] .study-meta .segmented button,
body[data-skin="studio"] .study-meta .font-options button,
body[data-skin="studio"] .study-meta .size-options button,
body[data-skin="studio"] .study-meta .color-options button {
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.12);
}

body[data-skin="studio"] .study-meta .subtitle-settings-head button {
  color: #111;
  background: rgba(255, 253, 248, 0.88);
}

body[data-skin="studio"] .study-meta .segmented button.active,
body[data-skin="studio"] .study-meta .font-options button.active,
body[data-skin="studio"] .study-meta .size-options button.active,
body[data-skin="studio"] .study-meta .color-options button.active {
  color: #111;
  background: #dbff4a;
}

@media (max-width: 520px) {
  .study-meta .subtitle-settings {
    padding: 10px;
    border-radius: 16px;
  }

  .study-meta .subtitle-setting-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px;
  }

  .study-meta .subtitle-settings-head button,
  .study-meta .segmented button,
  .study-meta .font-options button,
  .study-meta .size-options button,
  .study-meta .color-options button,
  .study-meta .subtitle-setting-row > span {
    font-size: 12px;
  }

  .study-meta .subtitle-settings,
  .study-meta .subtitle-settings * {
    font-size: 12px;
  }
}

/* Floating subtitle settings in the upper half of the info card. */
.study-meta {
  position: relative;
  overflow: visible;
}

.study-meta .subtitle-settings {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 40;
  max-height: none;
  overflow: visible;
  margin: 0;
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 16px 36px rgba(20, 18, 14, 0.12);
}

body[data-skin="studio"] .study-meta .subtitle-settings {
  background: rgba(23, 24, 29, 0.58);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

@media (max-width: 520px) {
  .study-meta .subtitle-settings {
    left: 10px;
    right: 10px;
    top: 10px;
    max-height: none;
  }
}

.study-toolbar {
  position: relative;
  z-index: 10;
}

/* Compact floating subtitle menu in the study toolbar. */
.study-toolbar {
  overflow: visible;
}

.study-toolbar .subtitle-settings {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: min(46vh, 330px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(30, 25, 20, 0.1);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 42px rgba(23, 19, 14, 0.16);
  backdrop-filter: blur(18px);
}

.study-toolbar .subtitle-settings-head {
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.study-toolbar .subtitle-settings-head b {
  font-size: 14px;
  line-height: 1;
}

.study-toolbar .subtitle-settings-head button {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.study-toolbar .subtitle-setting-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.study-toolbar .subtitle-setting-row > span {
  padding-top: 7px;
  font-size: 10px;
  line-height: 1.2;
}

.study-toolbar .segmented,
.study-toolbar .font-options,
.study-toolbar .size-options,
.study-toolbar .color-options {
  gap: 6px;
}

.study-toolbar .segmented button,
.study-toolbar .font-options button,
.study-toolbar .size-options button,
.study-toolbar .color-options button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
  line-height: 1;
}

.study-toolbar .color-options button {
  gap: 5px;
}

.study-toolbar .color-options i {
  width: 13px;
  height: 13px;
}

body[data-skin="studio"] .study-toolbar .subtitle-settings {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(23, 24, 29, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body[data-skin="studio"] .study-toolbar .subtitle-settings-head b {
  color: #f7f2e8;
}

body[data-skin="studio"] .study-toolbar .subtitle-settings-head button,
body[data-skin="studio"] .study-toolbar .segmented button,
body[data-skin="studio"] .study-toolbar .font-options button,
body[data-skin="studio"] .study-toolbar .size-options button,
body[data-skin="studio"] .study-toolbar .color-options button {
  color: #f7f2e8;
  background: rgba(255, 255, 255, 0.1);
}

body[data-skin="studio"] .study-toolbar .segmented button.active,
body[data-skin="studio"] .study-toolbar .font-options button.active,
body[data-skin="studio"] .study-toolbar .size-options button.active,
body[data-skin="studio"] .study-toolbar .color-options button.active {
  color: #111;
  background: #dbff4a;
}

@media (max-width: 520px) {
  .study-toolbar .subtitle-settings {
    left: 4px;
    right: 4px;
    max-height: min(42vh, 218px);
    padding: 9px;
    border-radius: 18px;
  }

  .study-toolbar .subtitle-setting-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px;
  }

  .study-toolbar .segmented button,
  .study-toolbar .font-options button,
  .study-toolbar .size-options button,
  .study-toolbar .color-options button {
    min-height: 26px;
    padding: 0 7px;
    font-size: 10px;
  }
}

/* Final study-page repair: keep subtitles readable and the playback bar in place. */
.study-video.settings-open .video-subtitle,
.study-video .video-subtitle {
  opacity: 1 !important;
}

.video-subtitle {
  bottom: 34px !important;
  z-index: 8 !important;
  pointer-events: none !important;
}

.subtitle-line {
  opacity: 1 !important;
  color: var(--subtitle-color, #fff) !important;
  background: var(--subtitle-bg, rgba(0, 0, 0, 0.68)) !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.82) !important;
}

.study-meta {
  position: relative;
  overflow: visible;
}

.study-meta .subtitle-settings {
  position: static !important;
  z-index: auto !important;
  display: grid !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 14px 0 4px !important;
  transform: none !important;
  padding: 14px !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 248, 0.86) !important;
  box-shadow: 0 18px 42px rgba(20, 18, 14, 0.16) !important;
  backdrop-filter: blur(16px);
}

body[data-skin="studio"] .study-meta .subtitle-settings {
  background: rgba(23, 24, 29, 0.86) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

.study-meta .subtitle-settings,
.study-meta .subtitle-settings *,
.study-meta .subtitle-settings button,
.study-meta .subtitle-settings span,
.study-meta .subtitle-settings b {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.study-meta .subtitle-setting-row {
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.study-meta .subtitle-settings-head button,
.study-meta .segmented button,
.study-meta .font-options button,
.study-meta .size-options button,
.study-meta .color-options button {
  min-height: 34px !important;
  padding: 0 13px !important;
}

.study-toolbar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 12 !important;
  grid-column: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  height: 70px !important;
  min-height: 70px !important;
  margin: 0 0 14px !important;
  transform: none !important;
}

.study-toolbar .subtitle-settings {
  display: none !important;
}

@media (max-width: 899px) {
  .study-toolbar {
    width: calc(100% - 20px) !important;
    margin: 10px !important;
  }
}

@media (max-width: 520px) {
  .study-meta .subtitle-settings {
    margin: 10px 0 4px !important;
    padding: 11px !important;
  }

  .study-meta .subtitle-settings,
  .study-meta .subtitle-settings *,
  .study-meta .subtitle-settings button,
  .study-meta .subtitle-settings span,
  .study-meta .subtitle-settings b {
    font-size: 12px !important;
  }

  .study-meta .subtitle-setting-row {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 6px !important;
  }
}

/* Mobile learning flow: hide the intro card while the video is playing. */
@media (max-width: 899px) {
  .study-shell.video-is-playing .study-meta {
    display: none !important;
  }
}

/* Fullscreen subtitles: fullscreen the whole player, not only the video element. */
.study-video:fullscreen,
.study-video.is-fullscreen,
.study-video:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.study-video:fullscreen video,
.study-video.is-fullscreen video,
.study-video:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.study-video:fullscreen .video-subtitle,
.study-video.is-fullscreen .video-subtitle,
.study-video:-webkit-full-screen .video-subtitle {
  bottom: max(68px, env(safe-area-inset-bottom)) !important;
  z-index: 2147483647 !important;
  width: min(92%, 1200px) !important;
}

.study-video:fullscreen .cue-progress,
.study-video.is-fullscreen .cue-progress,
.study-video:-webkit-full-screen .cue-progress,
.study-video:fullscreen .player-fullscreen,
.study-video.is-fullscreen .player-fullscreen,
.study-video:-webkit-full-screen .player-fullscreen {
  z-index: 2147483647 !important;
}

.study-video:fullscreen .player-fullscreen,
.study-video.is-fullscreen .player-fullscreen,
.study-video:-webkit-full-screen .player-fullscreen {
  right: 18px !important;
  bottom: 78px !important;
}

@media (max-width: 520px) {
  .video-subtitle {
    bottom: 30px !important;
  }

  .player-fullscreen {
    right: 8px;
    bottom: 52px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .study-video:fullscreen .video-subtitle,
  .study-video.is-fullscreen .video-subtitle,
  .study-video:-webkit-full-screen .video-subtitle {
    bottom: max(62px, env(safe-area-inset-bottom)) !important;
    width: 94% !important;
  }
}
