@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.playlist-category-view {
  min-height: calc(100vh - 150px);
  padding: clamp(24px, 4vw, 46px) max(24px, calc((100vw - 1400px) / 2 + 24px)) 72px;
  background: #f7f5f1;
}

.playlist-category-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 42px);
  align-items: start;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.playlist-summary-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  min-height: min(720px, calc(100vh - 120px));
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #285f4f 0%, #234f43 100%);
  color: #fffdf7;
}

.playlist-summary-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

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

.playlist-summary-copy {
  display: grid;
  gap: 8px;
}

.playlist-summary-copy span {
  color: #ffddd4;
  font-family: var(--font-hero-title);
  font-size: 13px;
  font-weight: 800;
}

.playlist-summary-copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-hero-title);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.playlist-summary-copy p,
.playlist-summary-copy small {
  margin: 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.playlist-summary-copy small {
  display: block;
  color: rgba(255, 253, 247, 0.68);
}

.playlist-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.playlist-play-all,
.playlist-small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  font-family: var(--font-hero-title);
  font-weight: 800;
  text-decoration: none;
}

.playlist-play-all {
  flex: 1;
  padding: 10px 18px;
  background: #fff;
  color: #111;
  font-size: 15px;
}

.playlist-small-action {
  width: 40px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
}

.playlist-progress {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.playlist-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 253, 247, 0.84);
  font-size: 12px;
  line-height: 1.4;
}

.playlist-progress strong {
  color: #fff;
}

.playlist-progress > span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.playlist-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f7c948;
}

.playlist-video-panel {
  min-width: 0;
}

.playlist-video-panel .subcategory-pills,
.playlist-video-panel .m-subcategory-pills {
  justify-content: flex-start;
  margin: 0 0 14px;
}

.playlist-video-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.playlist-video-row {
  display: grid;
  grid-template-columns: 34px minmax(170px, 218px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
}

.playlist-video-row:hover {
  background: rgba(35, 79, 67, 0.07);
}

.playlist-video-index {
  color: #6e6963;
  font-family: var(--font-hero-title);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.playlist-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #d8d2ca;
}

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

.playlist-video-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-width: 38px;
  padding: 3px 5px 2px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.playlist-video-info {
  min-width: 0;
}

.playlist-video-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-family: var(--font-hero-title);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-video-info p {
  margin: 7px 0 0;
  color: #77716a;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .playlist-category-view {
    padding: 18px 14px 88px;
  }

  .playlist-category-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .playlist-summary-panel {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .playlist-category-view {
    padding: 0 0 88px;
    background: #fff;
  }

  .playlist-summary-panel {
    gap: 13px;
    padding: 16px;
    border-radius: 0;
  }

  .playlist-summary-copy h1 {
    font-size: 25px;
    line-height: 1.22;
  }

  .playlist-summary-copy p,
  .playlist-summary-copy small {
    font-size: 12px;
  }

  .playlist-video-panel {
    padding: 6px 10px 0;
  }

  .playlist-video-row {
    grid-template-columns: 24px minmax(124px, 42vw) minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
    border-radius: 0;
  }

  .playlist-video-row + .playlist-video-row {
    border-top: 1px solid #eee7df;
  }

  .playlist-video-title {
    font-size: 14px;
    line-height: 1.36;
  }

  .playlist-video-info p {
    margin-top: 5px;
    font-size: 11px;
  }

  .playlist-video-index {
    font-size: 12px;
  }
}

/* Video platform experience */
body[data-page="home"],
body[data-page="shorts"] {
  background: #0f0f0f;
  color: #fff;
}

/* Final platform overrides. Keep these last so legacy page styles cannot win. */
body[data-page="home"] .platform-hero h1 {
  display: grid;
  justify-items: center;
  width: min(100%, 880px);
  max-width: 880px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.14;
}

body[data-page="home"] .platform-hero h1 span {
  display: block;
  text-align: center;
}

body[data-page="home"] .platform-hero p {
  width: min(100%, 720px);
}

body[data-page="video"],
body[data-page="topic"],
body[data-page="search"],
body[data-page="diagnosis"],
body[data-page="faq"],
body[data-page="region"],
body[data-page="consult"],
body[data-page="watchlist"] {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-detail,
body[data-page="video"] .video-hero,
body[data-page="video"] .detail-grid,
body[data-page="video"] .section-band,
body[data-page="topic"] .topic-hero,
body[data-page="search"] .plain-hero,
body[data-page="consult"] .consult-page,
body[data-page="watchlist"] .watchlist-detail {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  border-color: #242424;
}

body[data-page="video"] .video-title-block h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.16;
  text-shadow: none;
}

body[data-page="video"] .video-title-block p,
body[data-page="video"] .detail-grid p,
body[data-page="video"] .info-panel p,
body[data-page="topic"] .topic-hero p,
body[data-page="search"] .plain-hero p {
  color: #b5b5b5;
}

body[data-page="video"] .video-meta span,
body[data-page="video"] .card-meta span,
body[data-page="video"] .card-meta a,
body[data-page="watchlist"] .hero-stats span {
  background: #222;
  color: #d8d8d8;
}

body[data-page="video"] .cta-strip,
body[data-page="topic"] .section-band,
body[data-page="search"] .section-band,
body[data-page="watchlist"] .section-band {
  background: #121212;
  border-color: #252525;
}

body[data-page="video"] .info-panel,
body[data-page="video"] .check-list li,
body[data-page="video"] .chapter-list li,
body[data-page="video"] .video-card,
body[data-page="topic"] .video-card,
body[data-page="search"] .video-card,
body[data-page="watchlist"] .watch-step,
body[data-page="watchlist"] .final-cta {
  background: #1b1b1b;
  border-color: #2c2c2c;
  box-shadow: none;
}

body[data-page="video"] .video-card h3,
body[data-page="topic"] .video-card h3,
body[data-page="search"] .video-card h3,
body[data-page="video"] .detail-grid h2,
body[data-page="video"] .detail-grid h3,
body[data-page="video"] .section-head h2,
body[data-page="watchlist"] h1,
body[data-page="watchlist"] h2 {
  color: #fff;
}

body[data-page="video"] .card-body p,
body[data-page="topic"] .card-body p,
body[data-page="search"] .card-body p,
body[data-page="watchlist"] .watch-step p,
body[data-page="watchlist"] .final-cta p {
  color: #b5b5b5;
}

body[data-page="video"] .video-faq-section .faq-list article,
body[data-page="video"] .content-review-note {
  background: #181818;
  border-color: #2d2d2d;
}

body[data-page="video"] .video-faq-section .faq-list h3,
body[data-page="video"] .content-review-note strong {
  color: #fff;
}

body[data-page="video"] .video-faq-section .faq-list p,
body[data-page="video"] .content-review-note p,
body[data-page="video"] .content-review-note span {
  color: #b5b5b5;
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  body[data-page="video"] .video-title-block h1 {
    font-size: clamp(24px, 7.2vw, 34px);
  }
}

/* Home alignment hard stop: keep the whole landing page on one center axis. */
body[data-page="home"],
body[data-page="home"] * {
  box-sizing: border-box;
}

html:has(body[data-page="home"]),
body[data-page="home"] {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: #fff;
}

body[data-page="home"] main,
body[data-page="home"] .platform-home {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-page="home"] .platform-home {
  display: block;
  background: #fff;
  color: #0f0f0f;
}

body[data-page="home"] .platform-topbar,
body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons,
body[data-page="home"] .platform-row {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
}

body[data-page="home"] .platform-topbar {
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body[data-page="home"] .platform-hero > span,
body[data-page="home"] .platform-hero h1,
body[data-page="home"] .platform-hero p,
body[data-page="home"] .platform-search,
body[data-page="home"] .platform-chip-row,
body[data-page="home"] .home-category-icons-head,
body[data-page="home"] .home-category-icon-grid,
body[data-page="home"] .platform-row-head,
body[data-page="home"] .platform-scroll-row {
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-hero h1 {
  width: min(100%, 780px);
  max-width: 780px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.16;
  text-align: center;
}

body[data-page="home"] .platform-hero h1 span {
  display: block;
  text-align: center;
}

body[data-page="home"] .platform-hero p {
  width: min(100%, 720px);
  text-align: center;
}

body[data-page="home"] .platform-search {
  width: min(100%, 720px);
}

body[data-page="home"] .platform-chip-row {
  width: min(100%, 720px);
  justify-content: center;
}

body[data-page="home"] .home-category-icons-head {
  width: min(100%, 760px);
  text-align: center;
}

body[data-page="home"] .home-category-icon-grid {
  width: min(100%, 960px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .platform-row-head {
  width: min(100%, 1180px);
  justify-content: center;
  gap: 14px;
  text-align: center;
}

body[data-page="home"] .platform-scroll-row {
  width: min(100%, 1180px);
  justify-content: center;
}

@media (max-width: 980px) {
  body[data-page="home"] .home-category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-topbar,
  body[data-page="home"] .platform-hero,
  body[data-page="home"] .home-category-icons,
  body[data-page="home"] .platform-row {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-page="home"] .platform-hero h1 {
    width: min(100%, 420px);
    max-width: 420px;
    font-size: clamp(30px, 8vw, 40px);
  }
}

/* Home alignment hard stop: keep the whole landing page on one center axis. */
body[data-page="home"],
body[data-page="home"] * {
  box-sizing: border-box;
}

html:has(body[data-page="home"]),
body[data-page="home"] {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: #fff;
}

body[data-page="home"] main,
body[data-page="home"] .platform-home {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-page="home"] .platform-home {
  display: block;
  background: #fff;
  color: #0f0f0f;
}

body[data-page="home"] .platform-topbar,
body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons,
body[data-page="home"] .platform-row {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
}

body[data-page="home"] .platform-topbar {
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body[data-page="home"] .platform-hero > span,
body[data-page="home"] .platform-hero h1,
body[data-page="home"] .platform-hero p,
body[data-page="home"] .platform-search,
body[data-page="home"] .platform-chip-row,
body[data-page="home"] .home-category-icons-head,
body[data-page="home"] .home-category-icon-grid,
body[data-page="home"] .platform-row-head,
body[data-page="home"] .platform-scroll-row {
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-hero h1 {
  width: min(100%, 780px);
  max-width: 780px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.16;
  text-align: center;
}

body[data-page="home"] .platform-hero h1 span {
  display: block;
  text-align: center;
}

body[data-page="home"] .platform-hero p {
  width: min(100%, 720px);
  text-align: center;
}

body[data-page="home"] .platform-search {
  width: min(100%, 720px);
}

body[data-page="home"] .platform-chip-row {
  width: min(100%, 720px);
  justify-content: center;
}

body[data-page="home"] .home-category-icons-head {
  width: min(100%, 760px);
  text-align: center;
}

body[data-page="home"] .home-category-icon-grid {
  width: min(100%, 960px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] .platform-row-head {
  width: min(100%, 1180px);
  justify-content: center;
  gap: 14px;
  text-align: center;
}

body[data-page="home"] .platform-scroll-row {
  width: min(100%, 1180px);
  justify-content: center;
}

@media (max-width: 980px) {
  body[data-page="home"] .home-category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-topbar,
  body[data-page="home"] .platform-hero,
  body[data-page="home"] .home-category-icons,
  body[data-page="home"] .platform-row {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-page="home"] .platform-hero h1 {
    width: min(100%, 420px);
    max-width: 420px;
    font-size: clamp(30px, 8vw, 40px);
  }
}

/* Home centering and overflow lock */
html:has(body[data-page="home"]),
body[data-page="home"] {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-page="home"] main,
body[data-page="home"] .platform-home {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-page="home"] .platform-home {
  display: grid;
  justify-items: center;
}

body[data-page="home"] .platform-topbar,
body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons,
body[data-page="home"] .platform-row {
  width: min(100%, 1180px);
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-topbar {
  width: 100%;
}

body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons {
  display: grid;
  justify-items: center;
}

body[data-page="home"] .platform-hero > *,
body[data-page="home"] .home-category-icons-head,
body[data-page="home"] .home-category-icon-grid,
body[data-page="home"] .platform-row-head,
body[data-page="home"] .platform-scroll-row {
  max-width: 100%;
  box-sizing: border-box;
}

body[data-page="home"] .platform-hero h1,
body[data-page="home"] .platform-hero p,
body[data-page="home"] .home-category-icons-head,
body[data-page="home"] .platform-row-head {
  text-align: center;
}

body[data-page="home"] .platform-search {
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-chip-row {
  width: min(100%, 760px);
  justify-content: center;
}

body[data-page="home"] .home-category-icon-grid {
  width: min(100%, 960px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-row-head {
  justify-content: center;
  gap: 14px;
}

body[data-page="home"] .platform-scroll-row {
  width: 100%;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 980px) {
  body[data-page="home"] .home-category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-scroll-row {
    justify-content: start;
  }
}

/* YouTube-like light home */
body[data-page="home"] {
  background: #fff;
  color: #0f0f0f;
}

body[data-page="home"] .platform-home {
  min-height: 100vh;
  background: #fff;
  color: #0f0f0f;
}

body[data-page="home"] .platform-topbar {
  justify-content: center;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e5e5;
  backdrop-filter: none;
}

body[data-page="home"] .platform-logo {
  color: #0f0f0f;
  font-size: clamp(20px, 2.6vw, 26px);
}

body[data-page="home"] .platform-subscribe {
  background: #ff0000;
  color: #fff;
}

body[data-page="home"] .platform-hero {
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 16px 18px;
  text-align: center;
}

body[data-page="home"] .platform-hero > span {
  color: #606060;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 13px;
}

body[data-page="home"] .platform-hero h1 {
  max-width: 760px;
  color: #0f0f0f;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.16;
}

body[data-page="home"] .platform-hero p {
  max-width: 720px;
  color: #606060;
}

body[data-page="home"] .platform-search {
  width: min(720px, 100%);
  min-height: 50px;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 999px;
  box-shadow: none;
}

body[data-page="home"] .platform-search input {
  color: #0f0f0f;
}

body[data-page="home"] .platform-search button {
  min-width: 74px;
  background: #f8f8f8;
  color: #0f0f0f;
  border-left: 1px solid #d9d9d9;
}

body[data-page="home"] .platform-chip-row {
  justify-content: center;
  width: min(980px, 100%);
}

body[data-page="home"] .platform-chip-row a,
body[data-page="home"] .platform-topic-chip {
  background: #f2f2f2;
  color: #0f0f0f;
}

body[data-page="home"] .platform-chip-row a:hover,
body[data-page="home"] .platform-topic-chip:hover {
  background: #e5e5e5;
}

body[data-page="home"] .home-category-icons {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 24px;
  background: #fff;
  color: #0f0f0f;
  border: 0;
}

body[data-page="home"] .home-category-icons-head {
  text-align: center;
}

body[data-page="home"] .home-category-icons-head h2 {
  color: #0f0f0f;
  font-size: clamp(24px, 3.8vw, 36px);
}

body[data-page="home"] .home-category-icons-head p {
  color: #606060;
}

body[data-page="home"] .home-category-icon-card {
  background: #fff;
  border-color: #e5e5e5;
  box-shadow: none;
}

body[data-page="home"] .home-category-icon-card:hover {
  border-color: #c6c6c6;
  background: #fafafa;
}

body[data-page="home"] .category-icon-label {
  color: #0f0f0f;
}

body[data-page="home"] .platform-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px;
}

body[data-page="home"] .platform-row-head {
  align-items: end;
  color: #0f0f0f;
}

body[data-page="home"] .platform-row-head h2 {
  color: #0f0f0f;
  font-size: clamp(20px, 2.6vw, 26px);
}

body[data-page="home"] .platform-row-head p,
body[data-page="home"] .platform-video-meta {
  color: #606060;
}

body[data-page="home"] .platform-row-head > a {
  background: #f2f2f2;
  color: #0f0f0f;
}

body[data-page="home"] .platform-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px 16px;
  overflow: visible;
  padding-bottom: 0;
}

body[data-page="home"] .platform-video-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="home"] .platform-video-thumb {
  background: #f2f2f2;
  border-radius: 12px;
}

body[data-page="home"] .platform-video-body {
  padding: 10px 0 0;
}

body[data-page="home"] .platform-video-title {
  color: #0f0f0f;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

body[data-page="home"] .admin-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.site-footer {
  background: #fff;
  color: #0f0f0f;
  border-top-color: #e5e5e5;
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-topbar {
    justify-content: space-between;
  }

  body[data-page="home"] .platform-hero {
    padding-top: 22px;
  }

  body[data-page="home"] .platform-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  body[data-page="home"] .platform-scroll-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(238px, 76vw);
    grid-template-columns: none;
    overflow-x: auto;
  }
}

body[data-page="home"] .platform-hero {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(22px, 4vw, 48px);
}

body[data-page="home"] .platform-hero h1 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 66px);
}

body[data-page="video"],
body[data-page="topic"],
body[data-page="search"],
body[data-page="consult"],
body[data-page="watchlist"] {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-detail,
body[data-page="topic"] .topic-hero,
body[data-page="search"] .plain-hero,
body[data-page="consult"] .consult-page,
body[data-page="watchlist"] .watchlist-detail {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  background: #0f0f0f;
  border-color: #242424;
}

body[data-page="video"] .video-title-block h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.16;
}

body[data-page="video"] .video-title-block p,
body[data-page="topic"] .topic-hero p,
body[data-page="search"] .plain-hero p {
  color: #b5b5b5;
}

body[data-page="video"] .video-meta span,
body[data-page="video"] .card-meta span,
body[data-page="video"] .card-meta a,
body[data-page="watchlist"] .hero-stats span {
  background: #222;
  color: #d8d8d8;
}

body[data-page="video"] .cta-strip,
body[data-page="topic"] .section-band,
body[data-page="search"] .section-band,
body[data-page="watchlist"] .section-band {
  background: #121212;
  border-color: #252525;
}

body[data-page="video"] .detail-grid,
body[data-page="video"] .section-band,
body[data-page="watchlist"] .watchlist-steps,
body[data-page="watchlist"] .final-cta {
  background: #0f0f0f;
}

body[data-page="video"] .info-panel,
body[data-page="video"] .check-list li,
body[data-page="video"] .chapter-list li,
body[data-page="video"] .video-card,
body[data-page="topic"] .video-card,
body[data-page="search"] .video-card,
body[data-page="watchlist"] .watch-step,
body[data-page="watchlist"] .final-cta {
  background: #1b1b1b;
  border-color: #2c2c2c;
  box-shadow: none;
}

body[data-page="video"] .video-card h3,
body[data-page="topic"] .video-card h3,
body[data-page="search"] .video-card h3,
body[data-page="video"] .detail-grid h2,
body[data-page="video"] .detail-grid h3,
body[data-page="video"] .section-head h2,
body[data-page="watchlist"] h1,
body[data-page="watchlist"] h2 {
  color: #fff;
}

body[data-page="video"] .card-body p,
body[data-page="topic"] .card-body p,
body[data-page="search"] .card-body p,
body[data-page="video"] .detail-grid p,
body[data-page="video"] .info-panel p,
body[data-page="watchlist"] .watch-step p,
body[data-page="watchlist"] .final-cta p {
  color: #b5b5b5;
}

body[data-page="video"] .video-faq-section .faq-list article,
body[data-page="video"] .content-review-note {
  background: #181818;
  border-color: #2d2d2d;
}

body[data-page="video"] .video-faq-section .faq-list h3,
body[data-page="video"] .content-review-note strong {
  color: #fff;
}

body[data-page="video"] .video-faq-section .faq-list p,
body[data-page="video"] .content-review-note p,
body[data-page="video"] .content-review-note span {
  color: #b5b5b5;
}

body[data-page="search"] .search-form,
body[data-page="topic"] .search-form {
  max-width: 760px;
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  body[data-page="video"] .video-hero {
    gap: 18px;
  }

  body[data-page="video"] .video-title-block h1 {
    font-size: clamp(24px, 7.2vw, 34px);
  }

  body[data-page="video"] .video-player {
    border-radius: 0;
    margin-inline: -18px;
    width: calc(100% + 36px);
  }
}

body[data-page="home"] .site-footer,
body[data-page="shorts"] .site-footer {
  background: #121212;
  border-top-color: #2a2a2a;
}

.platform-home,
.shorts-page,
.consult-page {
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
}

.platform-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(15, 15, 15, 0.88);
  border-bottom: 1px solid #242424;
  backdrop-filter: blur(16px);
}

.platform-logo {
  font-family: var(--font-hero-title);
  font-size: 20px;
  font-weight: 700;
}

.platform-subscribe,
.platform-row-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px 7px;
  border-radius: 999px;
  background: #ffcc00;
  color: #171717;
  font-family: var(--font-hero-title);
  font-size: 13px;
  font-weight: 700;
}

.platform-hero {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 72px) 20px;
}

.platform-hero > span,
.platform-row-head p,
.platform-video-meta,
.shorts-hero p {
  color: #b5b5b5;
}

.platform-hero > span {
  color: #ffcc00;
  font-family: var(--font-hero-title);
  font-size: 14px;
  font-weight: 700;
}

.platform-hero h1 {
  max-width: 920px;
  color: #fff;
  font-family: var(--font-hero-title);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.08;
}

.platform-hero p {
  max-width: 720px;
  color: #cfcfcf;
  font-size: clamp(15px, 2vw, 19px);
}

.platform-search {
  display: flex;
  width: min(100%, 720px);
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid #333;
  border-radius: 16px;
  background: #1f1f1f;
  overflow: hidden;
}

.platform-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font: inherit;
}

.platform-search input::placeholder {
  color: #8a8a8a;
}

.platform-search button {
  border: 0;
  background: #ffcc00;
  color: #111;
  padding: 0 20px;
  font-family: var(--font-hero-title);
  font-weight: 700;
}

.platform-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.platform-chip-row::-webkit-scrollbar,
.platform-scroll-row::-webkit-scrollbar {
  display: none;
}

.platform-chip-row a {
  flex: 0 0 auto;
  padding: 8px 12px 7px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="home"] .home-category-icons {
  background: #0f0f0f;
  color: #fff;
  padding-top: 18px;
  padding-bottom: 30px;
}

body[data-page="home"] .home-category-icons-head .eyebrow {
  color: #ffcc00;
}

body[data-page="home"] .home-category-icons-head h2,
body[data-page="home"] .home-category-icon-card,
body[data-page="home"] .category-icon-label {
  color: #fff;
}

body[data-page="home"] .home-category-icons-head p {
  color: #b5b5b5;
}

body[data-page="home"] .home-category-icon-card {
  min-height: 154px;
  border-color: #292929;
  background: #1a1a1a;
  box-shadow: none;
}

body[data-page="home"] .category-icon-shape {
  background: #ffcc00;
  color: #151515;
}

body[data-page="home"] .home-category-icon-card small {
  background: #2a2a2a;
  color: #ffcc00;
}

.platform-row,
.shorts-page {
  padding: 18px clamp(16px, 5vw, 72px) 8px;
}

.platform-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.platform-row-head h2,
.shorts-hero h1,
.consult-card h1 {
  color: #fff;
  font-family: var(--font-hero-title);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
}

.platform-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 280px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.platform-video-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 14px;
  background: #1f1f1f;
}

.platform-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #181818;
  overflow: hidden;
}

.platform-row.is-shorts .platform-scroll-row,
.shorts-grid {
  grid-auto-columns: minmax(160px, 190px);
}

.platform-row.is-shorts .platform-video-thumb,
.shorts-grid .platform-video-thumb {
  aspect-ratio: 9 / 16;
}

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

.platform-video-thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px 3px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.platform-video-body {
  display: grid;
  gap: 7px;
  padding: 11px 12px 13px;
}

.platform-video-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-hero-title);
  font-size: 15px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.platform-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.platform-topic-chip {
  justify-self: start;
  max-width: 100%;
  padding: 5px 8px 4px;
  border-radius: 999px;
  background: #292929;
  color: #ffcc00;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shorts-hero,
.consult-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto 26px;
  padding-top: clamp(28px, 5vw, 60px);
  text-align: center;
}

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

.consult-page {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: clamp(36px, 7vw, 84px) clamp(16px, 5vw, 72px);
}

.consult-card {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid #2a2a2a;
  border-radius: 22px;
  background: #1a1a1a;
}

.consult-card p {
  color: #cfcfcf;
  font-size: 17px;
}

.consult-action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.consult-action-grid a {
  min-height: 46px;
  padding: 12px 16px 10px;
  border-radius: 999px;
  background: #ffcc00;
  color: #111;
  font-family: var(--font-hero-title);
  font-weight: 700;
}

.video-faq-section .faq-list {
  display: grid;
  gap: 12px;
}

.video-faq-section .faq-list article,
.content-review-note {
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 14px;
  background: #fffdf8;
  padding: 18px;
}

.video-faq-section .faq-list h3 {
  color: #312722;
  font-family: var(--font-hero-title);
  font-size: 18px;
  line-height: 1.35;
}

.video-faq-section .faq-list p,
.content-review-note p,
.content-review-note span {
  color: #625650;
  font-size: 14px;
  line-height: 1.7;
}

.content-review-note {
  margin: 0 clamp(18px, 5vw, 98px) clamp(28px, 5vw, 58px);
}

.content-review-note strong {
  display: block;
  margin-bottom: 6px;
  color: #8e5446;
  font-family: var(--font-hero-title);
}

@media (max-width: 680px) {
  body[data-page="home"] {
    padding-bottom: 128px;
  }

  .platform-topbar {
    padding-inline: 14px;
  }

  .platform-hero {
    padding: 22px 16px 14px;
  }

  .platform-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .platform-search {
    min-height: 50px;
    border-radius: 14px;
  }

  .platform-search button {
    padding-inline: 15px;
  }

  .platform-row {
    padding-inline: 16px;
  }

  .platform-row-head {
    align-items: start;
  }

  .platform-scroll-row {
    grid-auto-columns: minmax(226px, 74vw);
  }

  .platform-row.is-shorts .platform-scroll-row {
    grid-auto-columns: minmax(150px, 46vw);
  }

  .platform-video-title {
    font-size: 14px;
  }

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

  .content-review-note {
    margin-inline: 16px;
  }
}

@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SBAggro";
  src: url("https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/SBAggro/fonts/woff2/SBAggroM.woff2") format("woff2"),
    url("https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/SBAggro/fonts/woff/SBAggroM.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SBAggro";
  src: url("https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/SBAggro/fonts/woff2/SBAggroB.woff2") format("woff2"),
    url("https://cdn.jsdelivr.net/gh/ungveloper/web-fonts/SBAggro/fonts/woff/SBAggroB.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KOHIBaeumOTF";
  src: url("https://cdn.jsdelivr.net/gh/woffz/a1@main/Csp/KOHIBaeumOTF.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GamtanRoad Batang";
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/GamtanRoadBatang/GamtanRoadBatang-Regular.woff2") format("woff2"),
    url("https://cdn.jsdelivr.net/gh/fonts-archive/GamtanRoadBatang/GamtanRoadBatang-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KoPubDotumLight";
  src: url("https://cdn.jsdelivr.net/gh/woffz/b3@main/KoPubDotum/KoPubDotumLight-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f2ed;
  --surface: #fffdf9;
  --surface-muted: #efe3dc;
  --ink: #3d3330;
  --muted: #6f6865;
  --line: #dec9bf;
  --green: #8e5446;
  --green-dark: #5f352d;
  --coral: #9b5749;
  --blue: #6c6968;
  --amber: #c89a84;
  --gold: #8e5446;
  --logo-brown: #8e5446;
  --logo-gray: #696969;
  --cream: #fff7ef;
  --shadow: 0 16px 36px rgba(95, 53, 45, 0.16);
  --font-brand: "KOHIBaeumOTF", "KOHI배움체", "KOHIBaeum", "GmarketSans", "Pretendard", sans-serif;
  --font-hero-title: "GmarketSans", "Pretendard", "Noto Sans KR", sans-serif;
  --font-hero-copy: "GamtanRoad Batang", "감탄로드바탕체", "GamTanRoad Batang", "Noto Serif KR", "GmarketSans", serif;
  --font-search: "KoPubDotumLight", "KoPub돋움체", "KoPub Dotum", "GmarketSans", "Pretendard", sans-serif;
  --font-cta: "SBAggro", "SB 어그로", "SBO어그로", "GmarketSans", "Pretendard", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  text-shadow: none !important;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "GmarketSans", "Pretendard", "Noto Sans KR", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  padding-bottom: 88px;
  max-width: 100%;
  overflow-x: hidden;
}

html.is-large-text body {
  font-size: 18px;
}

html.is-extra-large-text body {
  font-size: 20px;
}

html.is-dark-mode {
  color-scheme: dark;
  --bg: #111312;
  --surface: #1b1e1c;
  --surface-muted: #252a27;
  --ink: #f3eee9;
  --muted: #c9c0ba;
  --line: #3a403b;
  --green: #d1a08f;
  --green-dark: #f1c6b5;
  --coral: #e3a393;
  --blue: #b9c1bb;
  --amber: #d5ae91;
  --gold: #e2b493;
  --cream: #20231f;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: linear-gradient(135deg, #332622, var(--green-dark));
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 132px;
  height: auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.94);
}

.footer-brand strong {
  color: #fff;
}

.site-footer p,
.footer-links a {
  color: #f3e5dc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.footer-branches a {
  display: grid;
  gap: 3px;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.08);
}

.footer-branches strong {
  color: #fffaf0;
  font-size: 13px;
}

.footer-branches span {
  color: #f3e5dc;
  font-family: var(--font-hero-title);
  font-size: 18px;
  font-weight: 700;
}

.bottom-consult-bar {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  bottom: 14px;
  left: clamp(14px, 3vw, 36px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1040px, calc(100% - clamp(28px, 6vw, 72px)));
  margin-inline: auto;
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 18px;
  background: rgba(65, 42, 35, 0.94);
  color: #fffaf0;
  box-shadow: 0 18px 42px rgba(47, 28, 22, 0.22);
  backdrop-filter: blur(14px);
  text-align: center;
}

.bottom-consult-bar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
}

.bottom-consult-bar strong {
  font-family: var(--font-hero-title);
  font-size: 17px;
  line-height: 1.25;
}

.bottom-consult-bar span {
  color: #eadbd3;
  font-size: 13px;
  line-height: 1.45;
}

.bottom-consult-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.bottom-consult-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px 9px;
  border-radius: 999px;
  font-family: var(--font-hero-title);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.bottom-consult-actions .call {
  border: 1px solid rgba(255, 250, 240, 0.32);
  color: #fffaf0;
}

.bottom-consult-actions .apply {
  background: #fffaf0;
  color: #6b3d34;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .video-hero,
  .content-columns,
  .landing-hero-grid,
  .admin-channel-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-hero,
  .content-columns,
  .landing-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-info-banner {
    position: static;
    margin-bottom: 22px;
  }

  .hero-trust-panel {
    justify-self: start;
    width: min(100%, 640px);
  }

  .video-hero {
    align-items: start;
  }

  .site-footer,
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-branches {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    min-height: 70px;
    padding: 16px 24px;
  }

  .brand {
    gap: 7px;
  }

  .brand-title {
    font-size: 28px;
  }

  .landing-brand-lockup {
    width: 100%;
    justify-content: center;
  }

  .landing-brand-mark {
    width: 48px;
    height: 48px;
  }

  .landing-brand-wordmark {
    width: 150px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .search-form {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .card-actions,
  .hero-actions,
  .final-actions,
  .cta-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .watch-step {
    grid-template-columns: 1fr;
  }

  .archive-card,
  .case-category .archive-card {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
  }

  .archive-card h3 {
    font-size: 15px;
  }

  .case-category-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 100%;
  }

  h1 {
    font-size: 32px;
    line-height: 1.18;
  }

  .search-landing {
    min-height: auto;
    padding: 34px 24px 42px;
    background: #fffaf0;
  }

  .landing-hero-grid {
    gap: 28px;
  }

  .search-landing h1 {
    font-size: clamp(36px, 10.5vw, 52px);
    line-height: 1.18;
  }

  .search-landing .eyebrow {
    margin-bottom: 14px;
    font-size: 18px;
  }

  h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  p,
  .landing-copy p,
  .plain-hero p,
  .topic-hero p {
    font-size: 15px;
    line-height: 1.72;
    max-width: 100%;
  }

  .landing-copy p {
    margin-top: 26px;
  }

  .question-list {
    gap: 10px;
    margin-top: 24px;
  }

  .question-list a {
    width: 100%;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px 9px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 16px;
  }

  .search-form {
    margin-top: 24px;
  }

  .hero-trust-panel {
    padding: 20px;
    border-radius: 14px;
  }

  .hero-trust-grid div {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: auto;
  }

  .search-form input,
  .search-form button {
    min-height: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .search-form input {
    padding: 0 18px;
    font-size: 15px;
  }

  .search-form button {
    flex-basis: 86px;
    font-size: 17px;
  }

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

  .admin-channel-grid {
    grid-template-columns: 1fr;
  }

  .admin-info-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-section {
    padding-inline: 12px;
  }

  .admin-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-video-search {
    width: 100%;
  }

  .admin-table-status {
    white-space: normal;
  }

}

/* Mobile-first category home */
body[data-page="home"],
body[data-page="category"] {
  background: #fffaf0;
}

.search-landing.compact-hero {
  min-height: 260px;
  padding: clamp(24px, 4vw, 46px) clamp(22px, 6vw, 108px) clamp(28px, 4vw, 50px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 247, 232, 0.9) 46%, rgba(142, 84, 70, 0.16)),
    #fffaf0;
  color: #2f2622;
}

.search-landing.compact-hero .landing-hero-grid {
  display: block;
  width: min(100%, 1180px);
}

.search-landing.compact-hero .landing-copy {
  max-width: 840px;
}

.search-landing.compact-hero .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #8e5446;
  font-family: var(--font-hero-title);
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 700;
}

.search-landing.compact-hero h1 {
  color: #352721;
  font-family: var(--font-hero-title);
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

.search-landing.compact-hero .hero-line {
  display: block;
  white-space: nowrap;
}

.home-category-icons {
  padding: clamp(24px, 5vw, 54px) clamp(18px, 6vw, 108px) clamp(38px, 6vw, 72px);
  background: #fffaf0;
  text-align: center;
}

.home-category-icons-head {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  margin: 0 auto 24px;
}

.home-category-icons-head .eyebrow,
.home-channel-intro-head .eyebrow {
  color: #8e5446;
  font-family: var(--font-hero-title);
  font-size: 14px;
  font-weight: 700;
}

.home-category-icons-head h2,
.home-channel-intro-head h2 {
  color: #352721;
  font-family: var(--font-hero-title);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
}

.home-category-icons-head p,
.home-channel-intro-head p {
  color: #625650;
  font-size: 17px;
  line-height: 1.68;
}

.home-category-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.home-category-icon-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 172px;
  padding: 26px 16px 22px;
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 22px;
  background: #fffdf8;
  color: #352721;
  box-shadow: 0 14px 34px rgba(81, 45, 35, 0.07);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-category-icon-card:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 84, 70, 0.34);
  box-shadow: 0 20px 44px rgba(81, 45, 35, 0.12);
}

.category-icon-shape {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: #8e5446;
  color: #fffaf0;
}

.category-icon-shape svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.category-icon-label {
  font-family: var(--font-hero-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.home-category-icon-card small {
  min-height: 30px;
  padding: 7px 12px 5px;
  border-radius: 999px;
  background: #fff2df;
  color: #8e5446;
  font-family: var(--font-hero-title);
  font-size: 12px;
  font-weight: 700;
}

.home-channel-intro-section {
  padding: clamp(36px, 5vw, 68px) clamp(18px, 6vw, 108px);
  background: #fff7ef;
  text-align: center;
}

.home-channel-intro-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 820px);
  margin: 0 auto 26px;
}

.home-intro-video-list {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.home-intro-video-list .home-video-card {
  grid-template-columns: 1fr;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
}

.home-intro-video-list .home-video-thumb {
  border-radius: 14px;
}

.home-intro-video-list .archive-meta,
.home-intro-video-list .home-video-actions {
  justify-content: center;
}

.home-category-nav {
  position: sticky;
  top: 0;
  z-index: 19;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(18px, 5vw, 98px);
  background: rgba(255, 250, 240, 0.94);
  border-top: 1px solid rgba(142, 84, 70, 0.12);
  border-bottom: 1px solid rgba(142, 84, 70, 0.18);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.home-category-nav::-webkit-scrollbar {
  display: none;
}

.home-category-nav a,
.subcategory-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px 8px;
  border: 1px solid rgba(142, 84, 70, 0.24);
  border-radius: 999px;
  background: #fffdf8;
  color: #4c362f;
  font-family: var(--font-hero-title);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.home-category-nav a:hover,
.subcategory-pills a:hover,
.subcategory-pills a.is-active {
  background: #8e5446;
  color: #fffaf0;
}

.mobile-category-section,
.catalog-subcategory-list {
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 98px);
}

.mobile-category-section {
  border-bottom: 1px solid rgba(142, 84, 70, 0.14);
  background: #fffaf0;
}

.mobile-category-section:nth-of-type(even) {
  background: #fff7ef;
}

.mobile-category-head {
  display: grid;
  gap: 8px;
  max-width: 940px;
  margin-bottom: 18px;
}

.mobile-category-head.split,
.mobile-subcategory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.mobile-category-head .eyebrow,
.catalog-category-hero .eyebrow {
  color: #8e5446;
  font-family: var(--font-hero-title);
  font-size: 14px;
  font-weight: 700;
}

.mobile-category-head h2,
.catalog-category-hero h1 {
  color: #352721;
  font-family: var(--font-hero-title);
  letter-spacing: 0;
}

.mobile-category-head h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.14;
  text-wrap: balance;
}

.mobile-category-head p,
.mobile-subcategory-head p,
.catalog-category-hero p {
  color: #625650;
  font-size: 16px;
  line-height: 1.72;
}

.mobile-subcategory-list {
  display: grid;
  gap: 18px;
}

.mobile-subcategory-card {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 14px;
  background: #fffdf8;
}

.mobile-subcategory-head {
  margin-bottom: 14px;
  text-align: center;
}

.mobile-subcategory-head h3 {
  color: #352721;
  font-family: var(--font-hero-title);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.18;
  text-wrap: balance;
}

.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #8e5446;
  color: #fffaf0;
  font-family: var(--font-hero-title);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.category-more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.mobile-category-section > .category-more-row {
  margin-top: 20px;
}

.home-video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-video-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-video-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 12px;
  background: #fff;
}

.home-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #eadbd3;
}

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

.home-video-card h3 {
  margin: 0 0 8px;
  color: #2f2622;
  font-family: var(--font-hero-title);
  font-size: 15px;
  line-height: 1.42;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.home-video-card h3 a {
  color: inherit;
}

.home-video-card .archive-meta {
  gap: 7px;
  color: #7b6c65;
  font-size: 12px;
  line-height: 1.35;
}

.home-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.home-video-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 9px 5px;
  border: 1px solid rgba(142, 84, 70, 0.22);
  border-radius: 999px;
  background: #fffaf0;
  color: #5a3a32;
  font-family: var(--font-hero-title);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.home-video-actions a.youtube {
  background: #8e5446;
  color: #fffaf0;
}

.home-proof-section {
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 98px);
  background: #f3e8df;
}

.home-proof-section .hero-trust-panel {
  width: min(100%, 1080px);
  max-width: none;
  justify-self: stretch;
  margin: 0 auto;
  border-color: rgba(142, 84, 70, 0.18);
}

.home-proof-section .hero-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-section {
  background: #fffdf8;
}

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

.trust-grid article,
.video-trust-note {
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 14px;
  background: #fffaf0;
}

.trust-grid article {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
}

.trust-grid strong,
.video-trust-note strong {
  color: #8e5446;
  font-family: var(--font-hero-title);
  font-size: 13px;
  font-weight: 700;
}

.trust-grid h3 {
  color: #312722;
  font-family: var(--font-hero-title);
  font-size: 20px;
  line-height: 1.22;
}

.trust-grid p,
.trust-notice,
.video-trust-note {
  color: #625650;
  font-size: 14px;
  line-height: 1.65;
}

.trust-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(142, 84, 70, 0.18);
  border-radius: 14px;
  background: #f7eee6;
}

.trust-notice strong {
  flex: 0 0 auto;
  color: #3a2c27;
  font-family: var(--font-hero-title);
}

.video-trust-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px clamp(18px, 5vw, 98px) 0;
  padding: 18px;
}

.video-trust-note div {
  display: grid;
  gap: 4px;
}

.video-trust-note a {
  color: #8e5446;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-trust-note p {
  grid-column: 1 / -1;
  margin: 0;
}

.catalog-category-hero {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 98px);
  background: #fff7ef;
  text-align: center;
}

.catalog-category-hero h1 {
  max-width: 920px;
  margin-top: 8px;
  font-size: clamp(34px, 5.5vw, 66px);
  line-height: 1.12;
}

.catalog-category-hero p {
  max-width: 760px;
  margin-top: 14px;
  margin-inline: auto;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.76;
}

.subcategory-pills {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 22px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.subcategory-pills::-webkit-scrollbar {
  display: none;
}

.catalog-subcategory-list {
  padding-top: 0;
  background: #fff7ef;
  justify-items: center;
}

.catalog-subcategory-list .mobile-subcategory-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 260px;
  text-align: center;
}

.catalog-subcategory-list .mobile-subcategory-head {
  justify-content: center;
  min-height: auto;
}

.catalog-subcategory-list .mobile-subcategory-head h3 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.catalog-subcategory-list .mobile-subcategory-head p {
  max-width: 420px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.72;
}

.catalog-list-section {
  padding-top: clamp(26px, 4vw, 48px);
  text-align: center;
}

.catalog-list-section .mobile-category-head {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.catalog-list-section .mobile-category-head.split {
  align-items: center;
  flex-direction: column;
}

.catalog-list-section .home-video-card {
  text-align: center;
}

.catalog-list-section .home-video-actions,
.catalog-list-section .archive-meta {
  justify-content: center;
}

@media (min-width: 981px) {
  body:not([data-page="admin"]) {
    padding-bottom: 74px;
  }

  .search-landing.compact-hero {
    display: flex;
    align-items: center;
    min-height: clamp(300px, 30vw, 380px);
    padding: 54px max(64px, calc((100vw - 1320px) / 2 + 48px)) 52px;
    background:
      linear-gradient(135deg, #6a392d 0%, #7d4a3e 56%, #a67560 100%);
  }

  .search-landing.compact-hero .landing-hero-grid {
    width: min(100%, 1320px);
  }

  .search-landing.compact-hero .landing-copy {
    max-width: 900px;
  }

  .search-landing.compact-hero .eyebrow {
    color: #fff1c8;
    font-size: 24px;
    margin-bottom: 18px;
  }

  .search-landing.compact-hero h1 {
    color: #fffdf8;
    font-size: clamp(58px, 4.8vw, 78px);
    line-height: 1.05;
    max-width: 930px;
  }

  .home-category-icons {
    padding-inline: max(64px, calc((100vw - 1120px) / 2 + 48px));
  }

  .home-category-nav {
    justify-content: center;
    gap: 12px;
    padding: 14px max(64px, calc((100vw - 1320px) / 2 + 48px));
    background: rgba(255, 253, 248, 0.96);
  }

  .home-category-nav a {
    min-width: 128px;
    min-height: 42px;
    padding-inline: 18px;
  }

  .mobile-category-section,
  .catalog-subcategory-list {
    padding: 66px max(64px, calc((100vw - 1320px) / 2 + 48px));
  }

  .mobile-category-head {
    width: min(100%, 1320px);
    max-width: none;
    margin: 0 auto 28px;
  }

  .mobile-category-head h2 {
    font-size: clamp(34px, 3vw, 48px);
  }

  .mobile-category-head p {
    max-width: 760px;
    font-size: 17px;
  }

  .mobile-subcategory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 1320px);
    margin: 0 auto;
    gap: 24px;
  }

  .mobile-subcategory-card {
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(81, 45, 35, 0.07);
  }

  .mobile-subcategory-head {
    align-items: flex-start;
    min-height: 88px;
    margin-bottom: 16px;
  }

  .mobile-subcategory-head h3 {
    font-size: 28px;
  }

  .mobile-subcategory-head p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.62;
  }

  .mobile-subcategory-card .home-video-list,
  .mobile-subcategory-card .home-video-list.compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-subcategory-card .home-video-card {
    grid-template-columns: 168px minmax(0, 1fr);
    min-height: 116px;
    padding: 12px;
  }

  .mobile-subcategory-card .home-video-card h3 {
    font-size: 16px;
    line-height: 1.38;
  }

  .mobile-category-section > .home-video-list,
  .mobile-category-section > .home-video-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1320px);
    margin: 0 auto;
    gap: 18px;
  }

  .mobile-category-section > .home-video-list .home-video-card {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-category-section > .home-video-list .home-video-thumb {
    border-radius: 14px;
  }

  .mobile-category-section > .home-video-list .home-video-card h3 {
    font-size: 17px;
    line-height: 1.42;
  }

  .mobile-category-section > .category-more-row {
    width: min(100%, 1320px);
    margin-inline: auto;
    justify-content: flex-end;
  }

  .home-video-card {
    border-color: rgba(142, 84, 70, 0.16);
    box-shadow: 0 10px 28px rgba(81, 45, 35, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .home-video-card:hover {
    transform: translateY(-2px);
    border-color: rgba(142, 84, 70, 0.34);
    box-shadow: 0 18px 42px rgba(81, 45, 35, 0.11);
  }

  .home-video-card .archive-meta {
    font-size: 13px;
  }

  .home-video-actions a {
    min-height: 32px;
    padding-inline: 11px;
  }

  .trust-section .section-head,
  .trust-grid,
  .trust-notice {
    width: min(100%, 1320px);
    margin-inline: auto;
  }

  .trust-grid {
    gap: 18px;
  }

  .trust-grid article {
    padding: 22px;
    border-radius: 18px;
  }

  .home-proof-section {
    padding-inline: max(64px, calc((100vw - 1320px) / 2 + 48px));
  }

  .home-proof-section .hero-trust-panel {
    width: min(100%, 1320px);
  }

  .bottom-consult-bar {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 10px max(64px, calc((100vw - 1320px) / 2 + 48px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .bottom-consult-bar > div:first-child {
    grid-template-columns: auto;
    align-items: baseline;
    gap: 2px;
  }

  .bottom-consult-bar strong {
    font-size: 16px;
  }

  .bottom-consult-actions a {
    min-height: 38px;
    padding: 8px 16px 7px;
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  .home-video-list,
  .home-video-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .search-landing.compact-hero {
    min-height: 214px;
    padding: 32px 20px 26px;
  }

  .search-landing.compact-hero .eyebrow {
    font-size: 18px;
  }

  .search-landing.compact-hero h1 {
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.14;
  }

  .home-category-nav {
    top: 0;
    padding: 10px 14px;
  }

  .home-category-icons {
    padding: 22px 16px 36px;
  }

  .home-category-icons-head {
    margin-bottom: 18px;
  }

  .home-category-icons-head h2,
  .home-channel-intro-head h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .home-category-icons-head p,
  .home-channel-intro-head p {
    font-size: 15px;
  }

  .home-category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-category-icon-card {
    min-height: 132px;
    gap: 10px;
    padding: 18px 10px 16px;
    border-radius: 16px;
  }

  .category-icon-shape {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .category-icon-shape svg {
    width: 32px;
    height: 32px;
    stroke-width: 3.2;
  }

  .category-icon-label {
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .home-category-icon-card small {
    font-size: 11px;
  }

  .home-channel-intro-section {
    padding: 34px 16px 42px;
  }

  .home-intro-video-list {
    grid-template-columns: 1fr;
  }

  .home-intro-video-list .home-video-card {
    grid-template-columns: 1fr;
  }

  .home-category-nav a,
  .subcategory-pills a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .mobile-category-section,
  .catalog-subcategory-list,
  .home-proof-section,
  .catalog-category-hero {
    padding-inline: 16px;
  }

  .mobile-category-head.split,
  .mobile-subcategory-head {
    align-items: flex-start;
    flex-direction: column;
    text-align: center;
  }

  .mobile-category-head h2 {
    font-size: clamp(24px, 7vw, 28px);
  }

  .mobile-category-head p,
  .mobile-subcategory-head p,
  .catalog-category-hero p {
    font-size: 16px;
    line-height: 1.68;
  }

  .mobile-subcategory-card {
    padding: 16px;
    border-radius: 12px;
  }

  .mobile-subcategory-head h3 {
    font-size: clamp(16px, 4.4vw, 19px);
    white-space: nowrap;
  }

  .catalog-subcategory-list .mobile-subcategory-card {
    min-height: 174px;
  }

  .catalog-subcategory-list .mobile-subcategory-head h3 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .catalog-subcategory-list .mobile-subcategory-head p {
    font-size: 16px;
  }

  .home-video-list,
  .home-video-list.compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-video-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .home-video-card h3 {
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.42;
  }

  .home-video-card .archive-meta {
    font-size: 11px;
  }

  .home-video-actions a {
    min-height: 28px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-proof-section .hero-trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .video-trust-note {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    min-height: auto;
  }

  .trust-notice {
    flex-direction: column;
  }

  .video-trust-note {
    margin-inline: 16px;
  }

  body {
    padding-bottom: 128px;
  }

  .bottom-consult-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 13px;
    border-radius: 16px;
  }

  .bottom-consult-bar span {
    display: none;
  }

  .bottom-consult-actions {
    width: 100%;
  }

  .bottom-consult-actions a {
    flex: 1;
    min-height: 42px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

body[data-page="shorts"] {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="home"],
body[data-page="home"] .platform-home,
body[data-page="home"] .home-category-icons,
body[data-page="home"] .site-footer {
  background: #fff;
  color: #0f0f0f;
}

body[data-page="home"] .platform-topbar {
  justify-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e5e5e5;
  backdrop-filter: none;
}

body[data-page="home"] .platform-logo,
body[data-page="home"] .home-category-icons-head h2,
body[data-page="home"] .category-icon-label,
body[data-page="home"] .platform-row-head h2,
body[data-page="home"] .platform-video-title {
  color: #0f0f0f;
}

body[data-page="home"] .platform-subscribe {
  background: #ff0000;
  color: #fff;
}

body[data-page="home"] .platform-hero,
body[data-page="home"] .home-category-icons,
body[data-page="home"] .platform-row {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

body[data-page="home"] .platform-hero {
  justify-items: center;
  text-align: center;
}

body[data-page="home"] .platform-hero > span,
body[data-page="home"] .platform-hero p,
body[data-page="home"] .home-category-icons-head p,
body[data-page="home"] .platform-row-head p,
body[data-page="home"] .platform-video-meta {
  color: #606060;
}

body[data-page="home"] .platform-search {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 999px;
  box-shadow: none;
}

body[data-page="home"] .platform-search input {
  color: #0f0f0f;
}

body[data-page="home"] .platform-search button {
  background: #f8f8f8;
  color: #0f0f0f;
  border-left: 1px solid #d9d9d9;
}

body[data-page="home"] .platform-chip-row,
body[data-page="home"] .home-category-icons-head {
  justify-content: center;
  text-align: center;
}

body[data-page="home"] .platform-chip-row a,
body[data-page="home"] .platform-topic-chip,
body[data-page="home"] .platform-row-head > a {
  background: #f2f2f2;
  color: #0f0f0f;
}

body[data-page="home"] .home-category-icon-card {
  background: #fff;
  border-color: #e5e5e5;
  box-shadow: none;
}

body[data-page="home"] .platform-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px 16px;
  overflow: visible;
}

body[data-page="home"] .platform-video-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="home"] .platform-video-thumb {
  background: #f2f2f2;
  border-radius: 12px;
}

body[data-page="home"] .platform-video-body {
  padding: 10px 0 0;
}

/* Last-mile platform overrides. This block intentionally stays at EOF. */
body[data-page="home"] .platform-hero h1 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 66px);
}

body[data-page="video"],
body[data-page="topic"],
body[data-page="search"],
body[data-page="consult"],
body[data-page="watchlist"] {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-detail,
body[data-page="video"] .video-hero,
body[data-page="video"] .detail-grid,
body[data-page="video"] .section-band,
body[data-page="topic"] .topic-hero,
body[data-page="search"] .plain-hero,
body[data-page="consult"] .consult-page,
body[data-page="watchlist"] .watchlist-detail {
  background: #0f0f0f;
  color: #fff;
}

body[data-page="video"] .video-hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  border-color: #242424;
}

body[data-page="video"] .video-title-block h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.16;
  text-shadow: none;
}

body[data-page="video"] .video-title-block p,
body[data-page="video"] .detail-grid p,
body[data-page="video"] .info-panel p,
body[data-page="topic"] .topic-hero p,
body[data-page="search"] .plain-hero p {
  color: #b5b5b5;
}

body[data-page="video"] .video-meta span,
body[data-page="video"] .card-meta span,
body[data-page="video"] .card-meta a,
body[data-page="watchlist"] .hero-stats span {
  background: #222;
  color: #d8d8d8;
}

body[data-page="video"] .cta-strip,
body[data-page="topic"] .section-band,
body[data-page="search"] .section-band,
body[data-page="watchlist"] .section-band {
  background: #121212;
  border-color: #252525;
}

body[data-page="video"] .info-panel,
body[data-page="video"] .check-list li,
body[data-page="video"] .chapter-list li,
body[data-page="video"] .video-card,
body[data-page="topic"] .video-card,
body[data-page="search"] .video-card,
body[data-page="watchlist"] .watch-step,
body[data-page="watchlist"] .final-cta {
  background: #1b1b1b;
  border-color: #2c2c2c;
  box-shadow: none;
}

body[data-page="video"] .video-card h3,
body[data-page="topic"] .video-card h3,
body[data-page="search"] .video-card h3,
body[data-page="video"] .detail-grid h2,
body[data-page="video"] .detail-grid h3,
body[data-page="video"] .section-head h2,
body[data-page="watchlist"] h1,
body[data-page="watchlist"] h2 {
  color: #fff;
}

body[data-page="video"] .card-body p,
body[data-page="topic"] .card-body p,
body[data-page="search"] .card-body p,
body[data-page="watchlist"] .watch-step p,
body[data-page="watchlist"] .final-cta p {
  color: #b5b5b5;
}

body[data-page="video"] .video-faq-section .faq-list article,
body[data-page="video"] .content-review-note {
  background: #181818;
  border-color: #2d2d2d;
}

body[data-page="video"] .video-faq-section .faq-list h3,
body[data-page="video"] .content-review-note strong {
  color: #fff;
}

body[data-page="video"] .video-faq-section .faq-list p,
body[data-page="video"] .content-review-note p,
body[data-page="video"] .content-review-note span {
  color: #b5b5b5;
}

@media (max-width: 760px) {
  body[data-page="home"] .platform-hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  body[data-page="video"] .video-title-block h1 {
    font-size: clamp(24px, 7.2vw, 34px);
  }
}

body[data-page="video"] .video-insight-section {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

body[data-page="video"] .video-summary-panel,
body[data-page="video"] .video-chapter-panel,
body[data-page="video"] .video-page-faq,
body[data-page="video"] .video-transcript-section {
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  background: #181818;
  padding: clamp(18px, 3vw, 26px);
}

body[data-page="video"] .video-summary-panel h2,
body[data-page="video"] .video-chapter-panel h2,
body[data-page="video"] .video-page-faq h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
}

body[data-page="video"] .video-summary-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="video"] .video-summary-panel li {
  position: relative;
  padding-left: 18px;
  color: #d8d8d8;
  line-height: 1.7;
}

body[data-page="video"] .video-summary-panel li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffcc00;
  content: "";
}

body[data-page="video"] .section-head.compact {
  margin-bottom: 14px;
}

body[data-page="video"] .video-chapter-list {
  display: grid;
  gap: 10px;
}

body[data-page="video"] .video-chapter-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #202020;
  color: #fff;
}

body[data-page="video"] .video-chapter-link:hover {
  border-color: #ffcc00;
}

body[data-page="video"] .video-chapter-link time {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: #ffcc00;
  color: #151515;
  font-weight: 900;
}

body[data-page="video"] .video-chapter-link strong {
  display: block;
  color: #fff;
  line-height: 1.35;
}

body[data-page="video"] .video-chapter-link small {
  display: block;
  margin-top: 5px;
  color: #ababab;
  line-height: 1.55;
}

body[data-page="video"] .video-page-faq .faq-list {
  display: grid;
  gap: 12px;
}

body[data-page="video"] .video-page-faq .faq-list article {
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #202020;
  padding: 16px;
}

body[data-page="video"] .video-page-faq .faq-list h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}

body[data-page="video"] .video-page-faq .faq-list p {
  margin: 8px 0 0;
  color: #bdbdbd;
  line-height: 1.7;
}

body[data-page="video"] .video-transcript-section summary {
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

body[data-page="video"] .video-transcript-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: 640px;
  overflow: auto;
  padding-right: 6px;
}

body[data-page="video"] .video-transcript-list p {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: #cfcfcf;
  line-height: 1.65;
}

body[data-page="video"] .video-transcript-list a {
  color: #ffcc00;
  font-weight: 900;
}

@media (max-width: 640px) {
  body[data-page="video"] .video-chapter-link,
  body[data-page="video"] .video-transcript-list p {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-login-page {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 72px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(160, 84, 68, 0.12), transparent 42%),
    #fbf8f3;
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(83, 53, 43, 0.18);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(83, 53, 43, 0.12);
  color: #30211d;
}

.admin-login-card h1 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  text-align: left;
}

.admin-login-card p {
  margin: 0;
  color: #725f58;
  line-height: 1.6;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-login-card input[type="text"],
.admin-login-card input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(83, 53, 43, 0.24);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #251916;
  font: inherit;
}

.admin-login-card input:focus {
  outline: 3px solid rgba(160, 84, 68, 0.18);
  border-color: #9f5649;
}

.admin-password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-password-field button {
  min-width: 62px;
  border: 1px solid rgba(83, 53, 43, 0.24);
  border-radius: 12px;
  background: #f5eee8;
  color: #51372f;
  font-weight: 900;
  cursor: pointer;
}

.admin-login-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: #604940;
}

.admin-login-check input {
  width: 18px;
  height: 18px;
}

.admin-login-error {
  padding: 12px 14px;
  border: 1px solid rgba(188, 52, 40, 0.28);
  border-radius: 12px;
  background: #fff2f0;
  color: #9e2e24;
  font-weight: 800;
}

.admin-login-submit {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 900;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

.admin-login-submit:hover {
  background: #2d241f;
}

@media (max-width: 560px) {
  .admin-login-page {
    padding: 36px 16px;
  }

  .admin-login-card {
    padding: 24px;
    border-radius: 14px;
  }
}

/* Event test page */
body[data-page="event"] {
  background: #fffdf9;
  color: #211815;
}

body[data-page="event"] main {
  min-height: 100vh;
}

.event-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 20px 120px;
}

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(18px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid #ecd7cf;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 202, 38, 0.32), transparent 26%),
    linear-gradient(135deg, #fff8ec 0%, #fff 52%, #f7ece6 100%);
  box-shadow: 0 20px 60px rgba(91, 48, 36, 0.12);
}

.event-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0cd;
  color: #9a4f3e;
  font-size: 13px;
  font-weight: 900;
}

.event-hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.event-hero p,
.event-section-head p,
.event-guide p,
.event-progress-card p,
.event-note {
  color: #675a56;
  line-height: 1.65;
}

.event-hero-copy > p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 20px);
}

.event-hero-actions,
.event-complete-actions,
.event-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.event-primary,
.event-secondary,
.event-complete-actions a,
.event-complete-actions button,
.event-video-actions a,
.event-video-actions button,
.event-progress-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #e2c9bf;
  border-radius: 999px;
  background: #fff;
  color: #432d26;
  font-weight: 900;
  cursor: pointer;
}

.event-primary,
.event-complete-actions button[type="submit"] {
  border-color: #ff1f1f;
  background: #ff1f1f;
  color: #fff;
}

.event-progress-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
  background: #2f211d;
  color: #fff;
}

.event-progress-card strong {
  font-size: 18px;
}

.event-progress-number {
  margin: 18px 0 10px;
  font-size: 48px;
  font-weight: 1000;
  line-height: 1;
}

.event-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.event-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ffca26;
  transition: width 0.25s ease;
}

.event-progress-card p {
  color: rgba(255, 255, 255, 0.72);
}

.event-progress-card button {
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.event-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.event-guide article,
.event-complete-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #edd8cf;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(91, 48, 36, 0.06);
}

.event-guide span {
  color: #a15747;
  font-weight: 1000;
}

.event-guide strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.event-video-section {
  margin-top: 44px;
}

.event-player-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin: 28px 0 38px;
  padding: 18px;
  border: 1px solid #ecd7cf;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(91, 48, 36, 0.08);
}

.event-player-wrap {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.event-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.event-now-playing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff8ec;
}

.event-now-playing span {
  color: #a15747;
  font-weight: 1000;
}

.event-now-playing h2 {
  margin: 10px 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.event-now-playing p {
  margin: 0 0 18px;
  color: #675a56;
  line-height: 1.6;
}

.event-now-playing button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #ff1f1f;
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.event-now-playing button:disabled,
.event-complete-actions button:disabled,
.event-video-actions button:disabled {
  background: #eee7e2;
  color: #958782;
  cursor: not-allowed;
}

.event-section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.event-section-head h2,
.event-complete-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

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

.event-video-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 214px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #ecd7cf;
  border-radius: 18px;
  background: #fff;
}

.event-video-card.is-complete {
  border-color: #ffca26;
  background: #fffaf0;
}

.event-video-card.is-active {
  border-color: #ff1f1f;
  box-shadow: 0 0 0 2px rgba(255, 31, 31, 0.08);
}

.event-video-card.is-locked {
  opacity: 0.58;
}

.event-video-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a2823;
  color: #fff;
  font-weight: 1000;
}

.event-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

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

.event-video-thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.event-video-copy {
  min-width: 0;
}

.event-video-title {
  display: -webkit-box;
  overflow: hidden;
  color: #211815;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-video-copy p {
  margin: 8px 0 0;
  color: #7d706c;
  font-size: 14px;
}

.event-video-actions {
  margin-top: 12px;
}

.event-video-actions a,
.event-video-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.event-video-state {
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1ece8;
  color: #6f5d56;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.event-video-card.is-complete .event-video-state {
  background: #ffca26;
  color: #231815;
}

.event-complete-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  opacity: 0.55;
}

.event-complete-card.is-ready {
  opacity: 1;
  border-color: #ffca26;
}

.event-application-form {
  display: grid;
  gap: 12px;
  min-width: min(100%, 420px);
}

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

.event-application-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #4a3a34;
  font-size: 14px;
  font-weight: 900;
}

.event-address-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #4a3a34;
  font-size: 14px;
  font-weight: 900;
}

.event-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.event-application-form input,
.event-application-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #e2c9bf;
  border-radius: 10px;
  background: #fffdf9;
  color: #211815;
  font: inherit;
  font-weight: 700;
}

.event-address-row button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3a2823;
  border-radius: 10px;
  background: #3a2823;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.event-address-layer {
  overflow: hidden;
  border: 1px solid #e2c9bf;
  border-radius: 12px;
  background: #fff;
}

.event-address-layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #f0ded7;
  background: #fff8ec;
}

.event-address-layer-head strong {
  color: #3a2823;
  font-size: 14px;
}

.event-address-layer-head button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e2c9bf;
  border-radius: 8px;
  background: #fff;
  color: #432d26;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.event-address-layer-body {
  height: min(520px, 70vh);
  min-height: 420px;
}

.event-application-form input {
  min-height: 44px;
  padding: 0 12px;
}

.event-application-form textarea {
  resize: vertical;
  padding: 12px;
}

.event-application-form input:focus,
.event-application-form textarea:focus {
  outline: 2px solid rgba(255, 31, 31, 0.18);
  border-color: #ff1f1f;
}

.event-privacy {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  color: #675a56;
  font-size: 13px;
  line-height: 1.45;
}

.event-privacy input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.event-application-message {
  min-height: 20px;
  margin: 0;
  color: #675a56;
  font-size: 13px;
  font-weight: 900;
}

.event-application-message.is-success {
  color: #1f7a3c;
}

.event-application-message.is-error {
  color: #c62828;
}

.event-note {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .event-page {
    padding-inline: 14px;
  }

  .event-hero,
  .event-player-section,
  .event-guide,
  .event-complete-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-video-card {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .event-video-thumb,
  .event-video-copy,
  .event-video-state {
    grid-column: 2;
  }

  .event-video-state {
    justify-self: start;
  }

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

  .event-address-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  body[data-page="event"] .site-header {
    justify-content: center;
    min-height: 78px;
    padding: 18px 20px;
  }

  body[data-page="event"] .nav-links {
    display: none;
  }

  body[data-page="event"] .brand {
    font-size: 28px;
  }

  .event-hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .event-hero h1 {
    font-size: 40px;
  }

  .event-hero-actions,
  .event-complete-actions,
  .event-video-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .event-video-card {
    padding: 12px;
  }
}

/* Public readability controls */
.a11y-toolbar {
  position: fixed;
  left: clamp(10px, 2vw, 20px);
  bottom: 104px;
  z-index: 62;
  display: grid;
  gap: 6px;
}

.a11y-toolbar button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.a11y-toolbar button:hover,
.a11y-toolbar button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

html.is-dark-mode .a11y-toolbar button {
  background: #20231f;
  color: #f8f1eb;
}

@media (max-width: 720px) {
  .a11y-toolbar {
    left: 10px;
    bottom: 92px;
  }

  .a11y-toolbar button {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}

/* Site content chatbot */
.site-chatbot {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  bottom: 94px;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: calc(100vw - 28px);
}

.site-chatbot-toggle {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 202, 38, 0.48);
  border-radius: 999px;
  background: #ffca26;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.site-chatbot-panel {
  width: min(420px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 150px));
  overflow: auto;
  border: 1px solid #333;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.site-chatbot-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #303030;
  background: #151515;
}

.site-chatbot-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-chatbot-head strong {
  color: #fff;
  font-size: 18px;
}

.site-chatbot-head span {
  color: #b8b8b8;
  font-size: 13px;
}

.site-chatbot-head button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #343434;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.site-chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px 10px;
}

.site-chatbot-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0f0f0f;
  color: #fff;
  font: inherit;
  line-height: 1.45;
}

.site-chatbot-form textarea:focus {
  outline: 2px solid rgba(255, 202, 38, 0.25);
  border-color: #ffca26;
}

.site-chatbot-form button {
  min-width: 70px;
  min-height: 44px;
  align-self: end;
  border: 0;
  border-radius: 8px;
  background: #ffca26;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-chatbot-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.site-chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.site-chatbot-prompts button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #353535;
  border-radius: 999px;
  background: #222;
  color: #e8e8e8;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-chatbot-output {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.site-chatbot-answer,
.site-chatbot-recommendations {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1b1b1b;
}

.site-chatbot-answer strong,
.site-chatbot-recommendations strong {
  color: #fff;
  font-size: 15px;
}

.site-chatbot-answer p {
  color: #e2e2e2;
  line-height: 1.65;
}

.site-chatbot-recommendations > div {
  display: grid;
  gap: 9px;
}

.site-chatbot-video {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.site-chatbot-video img {
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

.site-chatbot-video span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-chatbot-video strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-chatbot-video small {
  color: #ffdd7c;
  font-size: 12px;
  line-height: 1.35;
}

.site-chatbot-video em {
  color: #aaa;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.site-chatbot-disclaimer,
.site-chatbot-loading,
.site-chatbot-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #222;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.55;
}

.site-chatbot-error {
  color: #ff9c9c;
}

@media (max-width: 760px) {
  .site-chatbot {
    right: 14px;
    bottom: 112px;
  }

  .site-chatbot-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 176px);
  }

  .site-chatbot-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-chatbot-form button {
    width: 100%;
  }

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

  .site-chatbot-video img {
    width: 104px;
  }
}

/* PWA install and push prompt */
.pwa-prompt {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  bottom: 154px;
  z-index: 58;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  width: min(520px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #181818;
  color: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

.pwa-prompt[hidden] {
  display: none !important;
}

.pwa-prompt > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pwa-prompt strong {
  color: #fff;
  font-size: 16px;
}

.pwa-prompt span,
.pwa-prompt p {
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.45;
}

.pwa-prompt p {
  grid-column: 1 / -1;
  margin: 0;
}

.pwa-prompt-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pwa-prompt-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #373737;
  border-radius: 8px;
  background: #242424;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-prompt-actions [data-pwa-install],
.pwa-prompt-actions [data-pwa-enable-push] {
  background: #ffca26;
  color: #111;
  border-color: #ffca26;
}

.pwa-prompt-actions [data-pwa-dismiss] {
  width: 38px;
  padding: 0;
  border-radius: 999px;
}

@media (min-width: 761px) {
  .pwa-prompt {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .pwa-prompt {
    right: 14px;
    bottom: 180px;
    grid-template-columns: minmax(0, 1fr);
  }

  .pwa-prompt-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
  }
}

/* FAQ and regional SEO pages */
body[data-page="faq"] .site-header,
body[data-page="region"] .site-header {
  background: #0f0f0f;
  border-color: #242424;
}

.seo-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 44px 20px 128px;
}

.seo-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #151515;
}

.seo-hero h1 {
  max-width: 880px;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
}

.seo-hero p {
  max-width: 760px;
  color: #b8b8b8;
  font-size: 17px;
  line-height: 1.68;
}

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

.faq-category-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px 0;
  background: #0f0f0f;
}

.faq-category-nav a,
.region-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #1d1d1d;
  color: #e8e8e8;
  font-weight: 800;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 24px;
}

.faq-category {
  display: grid;
  gap: 14px;
}

.faq-category h2,
.region-video-section h2,
.region-links h2,
.region-info-grid h2 {
  color: #fff;
}

.faq-category > div {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #303030;
  border-radius: 8px;
  background: #181818;
}

.faq-item summary {
  min-height: 58px;
  padding: 16px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  padding: 0 18px 14px;
  color: #c7c7c7;
  line-height: 1.72;
}

.faq-video-link {
  display: inline-flex;
  margin: 0 18px 18px;
  color: #ffdd7c;
  font-weight: 900;
  text-decoration: none;
}

.region-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
}

.region-call-card {
  display: grid;
  gap: 8px;
  justify-self: end;
  width: min(100%, 320px);
  padding: 20px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #202020;
}

.region-call-card span {
  color: #bdbdbd;
  font-weight: 800;
}

.region-call-card a {
  color: #ffca26;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.region-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.region-info-grid article,
.region-links {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #181818;
}

.region-info-grid p,
.region-info-grid li,
.region-video-section p {
  color: #c2c2c2;
  line-height: 1.72;
}

.region-info-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.region-info-grid a {
  color: #ffdd7c;
  font-weight: 900;
}

.region-video-section {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.seo-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-video-card {
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #181818;
}

.seo-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.seo-video-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.seo-video-card span {
  color: #ffdd7c;
  font-size: 13px;
  font-weight: 900;
}

.seo-video-card h3 {
  font-size: 16px;
  line-height: 1.42;
}

.seo-video-card a {
  color: #fff;
  text-decoration: none;
}

.seo-video-card p {
  color: #aaa;
  font-size: 13px;
}

.region-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .region-hero,
  .region-info-grid,
  .seo-video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .region-call-card {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .seo-page {
    padding: 28px 14px 122px;
  }

  .seo-hero {
    padding: 20px;
  }

  .seo-hero h1 {
    font-size: clamp(30px, 8.4vw, 42px);
  }

  .faq-category-nav {
    position: static;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .region-call-card a {
    font-size: 28px;
  }
}

/* Self diagnosis */
body[data-page="diagnosis"] .site-header {
  background: #0f0f0f;
  border-color: #242424;
}

.diagnosis-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 44px 20px 128px;
}

.diagnosis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.diagnosis-hero h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

.diagnosis-hero p {
  max-width: 680px;
  margin: 0;
  color: #b8b8b8;
  font-size: 18px;
  line-height: 1.65;
}

.diagnosis-hero-panel {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  background: #181818;
}

.diagnosis-hero-panel strong {
  color: #fff;
  font-size: 20px;
}

.diagnosis-hero-panel span {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #242424;
  color: #e4e4e4;
  font-weight: 800;
}

.diagnosis-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.diagnosis-form,
.diagnosis-result {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #151515;
}

.diagnosis-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.diagnosis-question {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #1c1c1c;
}

.diagnosis-question legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.diagnosis-question legend span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffca26;
  color: #151515;
  font-size: 13px;
}

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

.diagnosis-option {
  position: relative;
  display: grid;
  min-height: 82px;
  cursor: pointer;
}

.diagnosis-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.diagnosis-option span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #121212;
  color: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.diagnosis-option strong {
  font-size: 16px;
  line-height: 1.35;
}

.diagnosis-option small {
  color: #a9a9a9;
  font-size: 13px;
  line-height: 1.4;
}

.diagnosis-option:hover span,
.diagnosis-option:has(input:focus-visible) span {
  border-color: #777;
}

.diagnosis-option:has(input:checked) span {
  border-color: #ffca26;
  background: #2a2210;
  transform: translateY(-1px);
}

.diagnosis-submit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.diagnosis-submit {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #ffca26;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.diagnosis-submit-row p {
  margin: 0;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.45;
}

.diagnosis-submit-row p.is-error {
  color: #ff8f8f;
}

.diagnosis-result {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.diagnosis-result-head h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.22;
}

.diagnosis-result-head p {
  margin: 0;
  color: #b9b9b9;
  line-height: 1.65;
}

.diagnosis-score-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #101010;
}

.diagnosis-score-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #ffca26;
}

.diagnosis-score-number strong {
  font-size: 42px;
  line-height: 1;
}

.diagnosis-score-number span {
  color: #b6b6b6;
  font-weight: 800;
}

.diagnosis-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #2a2a2a;
}

.diagnosis-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #62c370, #ffca26, #ff624d);
  transition: width 0.28s ease;
}

.diagnosis-reasons {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnosis-reasons li {
  padding: 10px 12px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1b1b1b;
  color: #e3e3e3;
  font-size: 14px;
  line-height: 1.55;
}

.diagnosis-video-section h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.diagnosis-video-grid {
  display: grid;
  gap: 10px;
}

.diagnosis-video-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
  text-decoration: none;
}

.diagnosis-video-card img {
  width: 116px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

.diagnosis-video-card span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.diagnosis-video-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.diagnosis-video-card small {
  color: #ffdd7c;
  line-height: 1.35;
}

.diagnosis-video-card em {
  color: #aaa;
  font-size: 12px;
  font-style: normal;
}

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

.diagnosis-result-actions .button {
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .diagnosis-hero,
  .diagnosis-tool {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagnosis-result {
    position: static;
  }
}

@media (max-width: 640px) {
  .diagnosis-page {
    padding: 28px 14px 122px;
  }

  .diagnosis-hero h1 {
    font-size: clamp(30px, 8.4vw, 42px);
  }

  .diagnosis-hero p {
    font-size: 15px;
  }

  .diagnosis-options,
  .diagnosis-submit-row,
  .diagnosis-result-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagnosis-question {
    padding: 14px;
  }

  .diagnosis-question legend {
    align-items: flex-start;
    font-size: 16px;
  }

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

  .diagnosis-video-card img {
    width: 104px;
  }
}
/* Analytics dashboard */
body[data-page="analytics-dashboard"] {
  background: #f7f8f6;
}

.analytics-dashboard-hero {
  background: linear-gradient(135deg, #fffdfa, #f4f7f2);
}

.analytics-summary-grid strong {
  color: #243126;
}

.analytics-dashboard {
  display: grid;
  gap: 16px;
}

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

.analytics-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(72, 89, 75, 0.16);
  border-radius: 8px;
  background: #fff;
}

.analytics-panel.wide {
  grid-column: 1 / -1;
}

.analytics-panel h3 {
  margin: 0;
  color: #243126;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.video-health-alert-panel {
  border-color: rgba(122, 45, 30, 0.2);
}

.video-health-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-health-alert-head p {
  margin: 5px 0 0;
  color: #647067;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.video-health-list {
  display: grid;
  gap: 8px;
}

.video-health-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(122, 45, 30, 0.14);
  border-radius: 8px;
  background: #fff8f5;
}

.video-health-item strong,
.video-health-item span,
.video-health-item small {
  display: block;
}

.video-health-item strong {
  color: #2d241f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.video-health-item span {
  margin-top: 4px;
  color: #7a2d1e;
  font-size: 12px;
  font-weight: 900;
}

.video-health-item small {
  margin-top: 3px;
  color: #7d897f;
  font-size: 11px;
  font-weight: 800;
}

.analytics-funnel {
  display: grid;
  gap: 10px;
}

.analytics-funnel-row {
  display: grid;
  gap: 7px;
}

.analytics-funnel-row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.analytics-funnel-row strong {
  color: #243126;
  font-size: 13px;
  font-weight: 900;
}

.analytics-funnel-row span {
  color: #647067;
  font-size: 12px;
  font-weight: 800;
}

.analytics-funnel-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #4f7158;
}

.analytics-table-wrap {
  overflow: auto;
}

.analytics-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #243126;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(72, 89, 75, 0.12);
  text-align: left;
  vertical-align: top;
}

.analytics-table th {
  color: #647067;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.analytics-table td {
  font-weight: 800;
}

.analytics-table small {
  color: #7d897f;
  font-size: 11px;
  font-weight: 800;
}

.analytics-video-table td:first-child {
  min-width: 280px;
}

.analytics-video-table td:first-child strong {
  display: block;
  max-width: 520px;
  color: #243126;
  font-size: 13px;
  line-height: 1.35;
}

.analytics-video-table td:first-child a {
  display: inline-block;
  margin-top: 4px;
  color: #4f7158;
  font-size: 12px;
  font-weight: 900;
}

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

  .analytics-range-actions {
    width: 100%;
  }

  .video-health-alert-head,
  .video-health-item {
    grid-template-columns: 1fr;
  }

  .video-health-alert-head {
    flex-direction: column;
  }
}

/* Admin pages */
body[data-page="admin"],
body[data-page="analytics-dashboard"],
body[data-page="playlist-admin"] {
  background: #f7f4ef;
  color: #1f1814;
  padding-bottom: 64px;
}

body[data-page="admin"] main,
body[data-page="analytics-dashboard"] main,
body[data-page="playlist-admin"] main {
  width: min(100% - 32px, 1180px);
  margin: 24px auto 70px;
}

.admin-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(83, 53, 43, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(83, 53, 43, 0.07);
}

.admin-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17120f;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.admin-page-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.admin-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-page-nav a,
body[data-page="admin"] .button,
body[data-page="analytics-dashboard"] .button,
body[data-page="playlist-admin"] .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #1a1512;
  background: #f2efeb;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.admin-page-nav a.is-active,
body[data-page="admin"] .button.primary,
body[data-page="analytics-dashboard"] .button.primary,
body[data-page="playlist-admin"] .button.primary,
body[data-page="admin"] .button.secondary,
body[data-page="analytics-dashboard"] .button.secondary,
body[data-page="playlist-admin"] .button.secondary {
  background: #111;
  color: #fff;
}

.admin-page-nav a:hover,
body[data-page="admin"] .button:hover,
body[data-page="analytics-dashboard"] .button:hover,
body[data-page="playlist-admin"] .button:hover {
  transform: translateY(-1px);
}

body[data-page="admin"] .button.ghost,
body[data-page="analytics-dashboard"] .button.ghost,
body[data-page="playlist-admin"] .button.ghost {
  border-color: rgba(83, 53, 43, 0.14);
  background: #fff;
  color: #2f2622;
}

body[data-page="admin"] .compact-button,
body[data-page="analytics-dashboard"] .compact-button,
body[data-page="playlist-admin"] .compact-button {
  min-height: 34px;
  padding: 8px 11px 7px;
  font-size: 12px;
}

.admin-hero,
.admin-table-section,
.analytics-panel {
  border: 1px solid rgba(83, 53, 43, 0.12);
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: 0 14px 36px rgba(83, 53, 43, 0.06);
}

.admin-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.admin-hero > .eyebrow,
.admin-table-section .eyebrow {
  color: #8e5446;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.admin-hero h1,
.admin-table-section h2,
.analytics-panel h3 {
  margin: 0;
  color: #18120f;
  letter-spacing: 0;
}

.admin-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.admin-hero p,
.admin-table-section p,
.analytics-panel p,
.admin-info-banner span {
  margin: 0;
  color: #6f625d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.62;
}

.admin-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(142, 84, 70, 0.14);
  border-radius: 12px;
  background: #fff7ef;
}

.admin-info-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #211815;
  font-size: 18px;
  font-weight: 900;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.admin-summary-grid > div {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(83, 53, 43, 0.1);
  border-radius: 12px;
  background: #fff;
}

.admin-summary-grid strong {
  color: #17120f;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.05;
}

.admin-summary-grid span {
  color: #766964;
  font-size: 13px;
  font-weight: 800;
}

.admin-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-topic-strip span,
.admin-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 9px 5px;
  border-radius: 999px;
  background: #f1ece7;
  color: #4d403a;
  font-size: 12px;
  font-weight: 900;
}

.admin-table-section {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: clamp(18px, 2.5vw, 28px);
}

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

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.section-head h3 {
  margin: 0;
  color: #1f1814;
  font-size: 20px;
  font-weight: 900;
}

.admin-status,
.empty-state {
  padding: 12px 14px;
  border: 1px solid rgba(83, 53, 43, 0.1);
  border-radius: 10px;
  background: #f8f4ef;
  color: #665852;
  font-size: 13px;
  font-weight: 800;
}

.admin-table-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.admin-video-search {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
  color: #332a27;
  font-size: 13px;
  font-weight: 900;
}

.admin-video-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(83, 53, 43, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #211815;
  font: inherit;
  font-weight: 800;
}

.admin-table-status {
  color: #766964;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-table-wrap,
.analytics-table-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(83, 53, 43, 0.1);
  border-radius: 12px;
  background: #fff;
}

.admin-table,
.analytics-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  color: #211815;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(83, 53, 43, 0.1);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #766964;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-table td {
  font-size: 13px;
  font-weight: 800;
}

.admin-sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-sort-button.is-active {
  color: #8e5446;
}

.admin-thumb {
  display: block;
  width: 96px;
}

.admin-thumb img {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.admin-title-cell strong {
  display: block;
  max-width: 540px;
  color: #211815;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.analytics-dashboard {
  gap: 18px;
  overflow: hidden;
}

.analytics-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.analytics-panel {
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
  box-shadow: none;
}

.analytics-panel > div {
  min-width: 0;
  max-width: 100%;
}

.analytics-panel h3 {
  font-size: 18px;
  font-weight: 900;
}

.analytics-table-wrap {
  margin-top: 4px;
}

.analytics-table th,
.analytics-table td {
  padding: 11px 10px;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.analytics-table td:first-child,
.analytics-source-table td:nth-child(7),
.analytics-source-table td:nth-child(8),
.analytics-video-table td:first-child {
  white-space: normal;
}

.analytics-compact-table {
  min-width: 720px;
}

.analytics-source-table {
  min-width: 980px;
}

.analytics-source-table small,
.analytics-table small {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: #766964;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-import-card {
  min-width: 0;
}

.video-import-main {
  min-width: 0;
}

.video-import-actions {
  min-width: 0;
}

.video-health-item {
  background: #fff7ef;
}

@media (max-width: 900px) {
  body[data-page="admin"] main,
  body[data-page="analytics-dashboard"] main,
  body[data-page="playlist-admin"] main {
    width: min(100% - 24px, 1180px);
    margin-top: 14px;
  }

  .admin-page-topbar,
  .admin-info-banner,
  .section-head,
  .admin-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-nav {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .admin-page-brand {
    font-size: 16px;
  }

  .admin-page-nav a {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .admin-summary-grid,
  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-table-section,
  .analytics-panel {
    border-radius: 12px;
  }
}

/* Home/video cleanup overrides */
body[data-page="home"] .yt-channel-meta h1 {
  max-width: 920px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.18;
}

body[data-page="home"] .platform-row {
  padding-top: 26px;
}

body[data-page="home"] .platform-row-head {
  margin-bottom: 18px;
}

body[data-page="home"] .platform-scroll-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}

body[data-page="home"] .platform-video-thumb {
  border-radius: 8px;
}

body[data-page="home"] .platform-video-title {
  display: block;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 900;
  line-height: 1.36;
}

body[data-page="home"] .platform-video-meta {
  font-size: 13px;
}

.platform-video-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 5px 8px 4px;
  border-radius: 999px;
  background: #ff2d2d;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

body[data-page="home"] .platform-topic-chip {
  display: none;
}

.card-actions,
.home-video-actions {
  display: none !important;
}

.home-video-card {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
}

.home-video-thumb {
  border-radius: 8px;
}

.home-video-card h3 {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.38;
}

body[data-page="video"] {
  padding-bottom: 0;
}

body[data-page="video"] .site-footer,
body[data-page="video"] .bottom-consult-bar,
body[data-page="video"] .watch-cta-strip {
  display: none !important;
}

/* Compact public pages */
.site-chatbot,
.a11y-toolbar,
.bottom-consult-bar {
  display: none !important;
}

body[data-page="category"],
body[data-page="video"] {
  background: #fff;
  color: #111;
}

body[data-page="category"] .catalog-category-hero.compact-page-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 20px 20px;
  background: #fff;
  color: #111;
  text-align: left;
}

body[data-page="category"] .catalog-category-hero.compact-page-hero h1 {
  margin: 0 0 10px;
  color: #111;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

body[data-page="category"] .catalog-category-hero.compact-page-hero p {
  max-width: 680px;
  margin: 0 0 18px;
  color: #666;
  font-size: 16px;
  line-height: 1.55;
}

body[data-page="category"] .subcategory-pills {
  justify-content: flex-start;
  overflow-x: auto;
  padding: 0 0 4px;
}

body[data-page="category"] .catalog-list-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px 96px;
}

body[data-page="category"] .mobile-category-head.split {
  margin-bottom: 14px;
}

body[data-page="category"] .mobile-category-head h2 {
  color: #111;
  font-size: 24px;
}

body[data-page="video"] .video-detail,
body[data-page="video"] .watch-layout,
body[data-page="video"] .watch-main,
body[data-page="video"] .watch-next-section {
  background: #fff;
  color: #111;
}

body[data-page="video"] .compact-video-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

body[data-page="video"] .compact-watch-layout {
  display: block;
  padding: 0;
}

body[data-page="video"] .watch-main {
  width: 100%;
}

body[data-page="video"] .compact-watch-info {
  padding: 22px 0 18px;
}

body[data-page="video"] .compact-watch-info h1 {
  max-width: 920px;
  margin: 12px 0 12px;
  color: #111;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

body[data-page="video"] .video-meta span {
  background: #f3f3f3;
  color: #666;
}

body[data-page="video"] .compact-watch-next {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

body[data-page="video"] .compact-watch-next .section-head {
  margin-bottom: 12px;
}

body[data-page="video"] .compact-watch-next h2 {
  color: #111;
  font-size: 22px;
}

body[data-page="video"] .watch-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="video"] .watch-queue-card {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="video"] .watch-queue-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

body[data-page="video"] .watch-queue-body {
  padding: 9px 0 0;
}

body[data-page="video"] .watch-queue-title {
  color: #111;
  font-size: 15px;
  line-height: 1.35;
}

body[data-page="video"] .watch-queue-body p {
  color: #777;
  font-size: 12px;
}

body[data-page="video"] .watch-queue-body span {
  display: none;
}

@media (max-width: 720px) {
  body[data-page="category"] .catalog-category-hero.compact-page-hero {
    padding: 26px 16px 16px;
  }

  body[data-page="category"] .catalog-category-hero.compact-page-hero h1 {
    font-size: 34px;
  }

  body[data-page="category"] .catalog-category-hero.compact-page-hero p {
    font-size: 15px;
  }

  body[data-page="category"] .catalog-list-section {
    padding: 8px 14px 84px;
  }

  body[data-page="video"] .compact-video-page {
    padding: 0 0 84px;
  }

  body[data-page="video"] .compact-watch-info {
    padding: 18px 14px 14px;
  }

  body[data-page="video"] .compact-watch-info h1 {
    font-size: 27px;
  }

  body[data-page="video"] .compact-watch-next {
    padding: 18px 14px 0;
  }

  body[data-page="video"] .watch-queue-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="video"] .watch-queue-card {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="video"] .watch-queue-body {
    padding: 0;
  }

  body[data-page="video"] .watch-queue-title {
    font-size: 14px;
  }
}

body[data-page="video"] .watch-video-info {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

/* Video page hard override: keep the watch screen compact even if the secondary CSS is cached. */
body[data-page="video"],
body[data-page="video"] main,
body[data-page="video"] .video-detail,
body[data-page="video"] .watch-layout,
body[data-page="video"] .watch-main {
  background: #fff;
  color: #111;
}

body[data-page="video"] .skip-link,
body[data-page="video"] .site-header,
body[data-page="video"] .guide-topbar,
body[data-page="video"] .watch-side-rail,
body[data-page="video"] .watch-next-section,
body[data-page="video"] .video-insight-section,
body[data-page="video"] .site-footer,
body[data-page="video"] .bottom-consult-bar,
body[data-page="video"] .watch-cta-strip {
  display: none !important;
}

body[data-page="video"] .compact-video-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 18px 20px 58px;
}

body[data-page="video"] .compact-watch-layout {
  display: block;
  padding: 0;
}

body[data-page="video"] .watch-main {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

body[data-page="video"] .video-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

body[data-page="video"] .video-top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="video"] .video-top-actions a:nth-child(2) {
  background: #111;
  color: #fff;
}

body[data-page="video"] .video-player {
  position: relative;
  width: 100%;
  max-height: min(72vh, 620px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: none;
}

body[data-page="video"] .video-player iframe,
body[data-page="video"] .video-player .youtube-lite-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

body[data-page="video"] .video-player .youtube-lite-poster {
  padding: 0;
  cursor: pointer;
}

body[data-page="video"] .video-player .youtube-lite-poster picture {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-page="video"] .video-player .youtube-lite-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

body[data-page="video"] .youtube-lite-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.86);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

body[data-page="video"] .video-landscape-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="video"] .video-player:fullscreen,
body[data-page="video"] .video-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  aspect-ratio: auto;
}

body[data-page="video"] .compact-watch-info {
  display: grid;
  gap: 10px;
  padding: 4px 0 0;
}

body[data-page="video"] .compact-watch-info .topic-pill {
  justify-self: start;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #333;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

body[data-page="video"] .compact-watch-info h1 {
  max-width: 100%;
  margin: 0;
  color: #111;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body[data-page="video"] .compact-watch-info .video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #6d6d6d;
  font-size: 14px;
  line-height: 1.4;
}

body[data-page="video"] .watch-previous-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

body[data-page="video"] .watch-nav-link {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fafafa;
  color: #111;
  text-decoration: none;
  min-width: 0;
}

body[data-page="video"] .watch-nav-link small {
  color: #777;
  font-size: 12px;
  font-weight: 900;
}

body[data-page="video"] .watch-nav-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="video"] .watch-nav-link.is-disabled {
  opacity: 0.56;
}

body[data-page="video"] .video-related-section {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

body[data-page="video"] .video-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="video"] .video-related-grid .platform-video-card {
  min-width: 0;
}

body[data-page="video"] .video-related-section {
  margin-top: 20px;
  padding-top: 28px;
}

body[data-page="video"] .video-related-section .simple-section-head {
  align-items: center;
  margin-bottom: 2px;
}

body[data-page="video"] .video-related-section .simple-section-head h2 {
  margin: 0;
  color: #111;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

body[data-page="video"] .video-related-section .simple-section-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #f6f6f6;
  color: #111;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="video"] .video-related-grid .platform-video-card {
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

body[data-page="video"] .video-related-grid .platform-video-thumb {
  background: #f4f4f4;
}

body[data-page="video"] .video-related-grid .platform-video-body {
  gap: 8px;
  padding: 12px 13px 14px;
  background: #fff;
}

body[data-page="video"] .video-related-grid .platform-video-title {
  min-height: 0 !important;
  color: #111 !important;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  line-height: 1.36 !important;
  letter-spacing: 0 !important;
  -webkit-line-clamp: 2;
}

body[data-page="video"] .video-related-grid .platform-video-meta {
  color: #555 !important;
  font-size: 12.5px !important;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 720px) {
  body[data-page="video"] .compact-video-page {
    width: 100%;
    padding: 0 0 44px;
  }

  body[data-page="video"] .video-top-actions {
    justify-content: center;
    padding: 10px 14px;
    margin: 0;
    border-bottom: 1px solid #eee;
  }

  body[data-page="video"] .video-top-actions a {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }

  body[data-page="video"] .video-player {
    width: calc(100% - 28px);
    margin: 0 auto;
    max-height: none;
    border-radius: 10px;
  }

  body[data-page="video"] .video-player .youtube-lite-poster {
    background: #000;
  }

  body[data-page="video"] .video-player .youtube-lite-poster img {
    object-fit: contain;
    background: #000;
  }

  body[data-page="video"] .compact-watch-info {
    padding: 0 14px;
  }

  body[data-page="video"] .compact-watch-info h1 {
    font-size: 21px;
    line-height: 1.28;
  }

  body[data-page="video"] .watch-previous-next {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="video"] .video-related-section {
    padding: 18px 14px 0;
  }

  body[data-page="video"] .video-related-section .simple-section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  body[data-page="video"] .video-related-section .simple-section-head h2 {
    font-size: 20px;
  }

  body[data-page="video"] .video-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="video"] .video-related-grid .platform-video-body {
    padding: 10px 10px 12px;
  }

  body[data-page="video"] .video-related-grid .platform-video-title {
    font-size: 13.5px !important;
    line-height: 1.32 !important;
  }

  body[data-page="video"] .video-related-grid .platform-video-meta {
    font-size: 11.5px !important;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .yt-channel-meta h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  body[data-page="home"] .platform-scroll-row {
    grid-template-columns: 1fr;
  }

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

/* Public light theme hard override */
body[data-page="search"],
body[data-page="diagnosis"],
body[data-page="faq"],
body[data-page="region"],
body[data-page="consult"],
body[data-page="not-found"],
body[data-page="topic"],
body[data-page="watchlist"] {
  background: #fff !important;
  color: #111 !important;
}

body[data-page="search"] main,
body[data-page="diagnosis"] main,
body[data-page="faq"] main,
body[data-page="region"] main,
body[data-page="consult"] main,
body[data-page="not-found"] main,
body[data-page="topic"] main,
body[data-page="watchlist"] main,
.diagnosis-page,
.seo-page,
.consult-page,
body[data-page="not-found"] .plain-hero,
body[data-page="topic"] .topic-hero,
body[data-page="watchlist"] .watchlist-detail,
body[data-page="search"] .plain-hero,
body[data-page="search"] .section-band {
  background: #fff !important;
  color: #111 !important;
}

body[data-page="search"] .skip-link,
body[data-page="diagnosis"] .skip-link,
body[data-page="faq"] .skip-link,
body[data-page="region"] .skip-link,
body[data-page="consult"] .skip-link,
body[data-page="not-found"] .skip-link,
body[data-page="topic"] .skip-link,
body[data-page="watchlist"] .skip-link {
  display: none !important;
}

body[data-page="search"] .guide-topbar,
body[data-page="diagnosis"] .guide-topbar,
body[data-page="faq"] .guide-topbar,
body[data-page="region"] .guide-topbar,
body[data-page="consult"] .guide-topbar,
body[data-page="not-found"] .guide-topbar {
  width: min(1040px, calc(100% - 32px));
  margin: 18px auto 0;
  border: 1px solid #ededed;
  border-radius: 8px;
  background: #fff;
}

.diagnosis-hero h1,
.diagnosis-result-head h2,
.diagnosis-question legend,
.diagnosis-video-section h3,
.seo-hero h1,
.faq-category h2,
.region-video-section h2,
.region-links h2,
.region-info-grid h2,
body[data-page="search"] .plain-hero h1,
body[data-page="not-found"] .plain-hero h1,
body[data-page="search"] .section-head h2,
body[data-page="topic"] .topic-hero h1,
body[data-page="watchlist"] h1,
body[data-page="watchlist"] h2,
.consult-card h1 {
  color: #111 !important;
}

.diagnosis-hero p,
.diagnosis-result-head p,
.diagnosis-option small,
.diagnosis-submit-row p,
.seo-hero p,
.faq-item p,
.region-info-grid p,
.region-info-grid li,
.region-video-section p,
body[data-page="search"] .plain-hero p,
body[data-page="not-found"] .plain-hero p,
body[data-page="search"] .card-body p,
body[data-page="topic"] .topic-hero p,
body[data-page="topic"] .card-body p,
body[data-page="watchlist"] .watch-step p,
body[data-page="watchlist"] .final-cta p,
.consult-card p,
.content-review-note p {
  color: #666 !important;
}

.diagnosis-hero-panel,
.diagnosis-form,
.diagnosis-result,
.diagnosis-question,
.diagnosis-option span,
.diagnosis-score-card,
.diagnosis-reasons li,
.diagnosis-video-card,
.seo-hero,
.faq-item,
.region-call-card,
.region-info-grid article,
.region-links,
body[data-page="search"] .video-card,
body[data-page="topic"] .video-card,
body[data-page="watchlist"] .watch-step,
body[data-page="watchlist"] .final-cta,
.consult-card,
.content-review-note {
  border-color: #e6e6e6 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

.diagnosis-hero-panel span,
.diagnosis-reasons li,
.diagnosis-score-card,
.faq-category-nav,
.faq-category-nav a,
.region-links a,
body[data-page="search"] .video-meta span,
body[data-page="search"] .card-meta span,
body[data-page="search"] .card-meta a,
body[data-page="topic"] .card-meta span,
body[data-page="topic"] .card-meta a,
body[data-page="watchlist"] .hero-stats span {
  border-color: #e8e8e8 !important;
  background: #f5f5f5 !important;
  color: #333 !important;
}

body[data-page="not-found"] a {
  color: #111;
  text-decoration: none;
}

body[data-page="not-found"] .plain-hero {
  width: min(100% - 28px, 840px);
  margin: 28px auto 40px;
  padding: 28px 0;
}

.diagnosis-option:has(input:checked) span {
  border-color: #111 !important;
  background: #f0f0f0 !important;
}

.diagnosis-score-number,
.faq-video-link,
.region-call-card a,
.region-info-grid a {
  color: #9b2f24 !important;
}

.diagnosis-meter {
  background: #ececec !important;
}

.diagnosis-video-card strong,
body[data-page="search"] .video-card h3,
body[data-page="topic"] .video-card h3 {
  color: #111 !important;
}

.faq-category-nav {
  top: 0;
}

.diagnosis-submit,
.diagnosis-result-actions .button.primary,
.consult-action-grid a:first-child {
  background: #111 !important;
  color: #fff !important;
}

.diagnosis-result-actions .button.secondary,
.consult-action-grid a:last-child,
.seo-hero-actions .button.secondary {
  background: #f2f2f2 !important;
  color: #111 !important;
}

@media (max-width: 720px) {
  body[data-page="search"] .guide-topbar,
  body[data-page="diagnosis"] .guide-topbar,
  body[data-page="faq"] .guide-topbar,
  body[data-page="region"] .guide-topbar,
  body[data-page="consult"] .guide-topbar {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* Readability and action button refinement */
body[data-page="home"],
body[data-page="category"],
body[data-page="video"],
body[data-page="search"],
body[data-page="diagnosis"],
body[data-page="faq"],
body[data-page="region"],
body[data-page="consult"],
body[data-page="topic"],
body[data-page="watchlist"] {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.diagnosis-page {
  font-size: 16px;
}

.diagnosis-hero h1,
.diagnosis-question legend,
.diagnosis-result-head h2,
.diagnosis-video-section h3 {
  font-weight: 900 !important;
  letter-spacing: 0;
}

.diagnosis-option strong,
.diagnosis-video-card strong,
.diagnosis-result-head p,
.diagnosis-reasons li,
.diagnosis-submit-row p {
  font-weight: 800;
}

.diagnosis-option small,
.diagnosis-video-card em,
.diagnosis-video-card small {
  color: #5f6368 !important;
  font-weight: 700;
}

.diagnosis-result-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diagnosis-result-actions .diagnosis-action-button {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: start !important;
  min-height: 58px;
  padding: 10px 14px !important;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
}

.diagnosis-action-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.diagnosis-result-actions .button.secondary .diagnosis-action-icon {
  background: #fff;
  color: #111;
}

.diagnosis-action-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.diagnosis-action-text strong {
  color: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.diagnosis-action-text small {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.78;
}

.site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  padding: 34px 20px 30px !important;
  border-top: 1px solid #e6e0da;
  background: #f8f4ef !important;
  color: #111 !important;
  text-align: center;
}

.site-footer > div {
  width: min(100%, 1040px);
}

.footer-brand {
  justify-content: center;
  margin-bottom: 14px;
}

.footer-brand strong {
  color: #111 !important;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  max-width: 720px;
  margin: 0 auto;
  color: #2b2b2b !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.65;
}

.footer-branches {
  justify-content: center;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  width: min(100%, 720px);
  margin: 20px auto 0;
}

.footer-branches a {
  min-width: 0;
  border: 1px solid #ded6cf !important;
  background: #fff !important;
  color: #111 !important;
  text-align: left;
}

.footer-branches strong {
  color: #111 !important;
  font-size: 13px;
  font-weight: 900;
}

.footer-branches span {
  color: #9b2f24 !important;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  justify-content: center;
  gap: 8px 10px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.footer-links a,
.footer-reset-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff !important;
  color: #111 !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.footer-reset-watch {
  border: 1px solid #ded6cf;
  cursor: pointer;
}

@media (max-width: 720px) {
  .diagnosis-result-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagnosis-result-actions .diagnosis-action-button {
    min-height: 56px;
  }

  .footer-branches {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
  }

  .site-footer {
    padding: 28px 14px 28px !important;
  }
}

/* Internal consult intake form */
body[data-page="consult"] .consult-page {
  width: min(100% - 32px, 1040px);
  margin: 34px auto 52px;
  padding: 0;
}

.consult-form-card {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 28px !important;
  border: 1px solid #e1ddd8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 18px 45px rgba(15, 15, 15, 0.06);
}

.consult-copy h1 {
  margin: 12px 0 14px;
  color: #111 !important;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.consult-copy p {
  margin: 0;
  color: #333 !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.75;
}

.consult-form {
  display: grid;
  gap: 14px;
}

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

.consult-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #111;
  font-weight: 900;
}

.consult-form label > span {
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.consult-form input,
.consult-form textarea,
.consult-form select {
  width: 100%;
  border: 1px solid #d9d5cf;
  border-radius: 8px;
  background: #fbfaf8;
  color: #111;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.consult-form input,
.consult-form select {
  min-height: 48px;
  padding: 0 14px;
}

.consult-form textarea {
  min-height: 128px;
  padding: 13px 14px;
  resize: vertical;
}

.consult-form input:focus,
.consult-form textarea:focus {
  outline: 3px solid rgba(255, 199, 39, 0.32);
  border-color: #111;
  background: #fff;
}

.consult-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  padding: 12px 14px;
  border: 1px solid #e6e0da;
  border-radius: 8px;
  background: #f7f5f2;
}

.consult-consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #111;
}

.consult-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.consult-submit-row button,
.consult-submit-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.consult-submit-row a {
  background: #f0eee9;
  color: #111 !important;
}

.consult-submit-row button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.consult-message {
  min-height: 22px;
  margin: 0;
  color: #5f6368 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.consult-note {
  margin-top: 16px;
  background: #f8f4ef !important;
  color: #111 !important;
}

/* Consult page final layout */
body[data-page="consult"] {
  background: #fff !important;
}

body[data-page="consult"] .consult-page {
  width: min(100% - 32px, 840px);
  margin: 34px auto 64px;
}

body[data-page="consult"] .consult-form-card {
  grid-template-columns: minmax(260px, 0.95fr) minmax(390px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 30px 28px !important;
  border: 1px solid #e2ddd6 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body[data-page="consult"] .consult-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

body[data-page="consult"] .consult-copy .eyebrow {
  color: #111 !important;
  font-size: 15px;
  font-weight: 900;
}

body[data-page="consult"] .consult-copy h1 {
  margin: 12px 0 22px;
  font-size: clamp(44px, 4.2vw, 58px);
  line-height: 1.06;
}

body[data-page="consult"] .consult-copy p {
  max-width: 310px;
  color: #111 !important;
  font-size: 17px;
  line-height: 1.7;
}

body[data-page="consult"] .consult-form {
  gap: 13px;
}

body[data-page="consult"] .consult-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="consult"] .consult-field-grid label:nth-child(3) {
  width: min(100%, 202px);
}

body[data-page="consult"] .consult-form label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #111;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

body[data-page="consult"] .consult-form input,
body[data-page="consult"] .consult-form select {
  min-height: 48px;
  border-radius: 7px;
  background: #fbfaf8;
  font-size: 15px;
}

body[data-page="consult"] .consult-form input:focus,
body[data-page="consult"] .consult-form select:focus {
  outline: 3px solid rgba(255, 199, 39, 0.28);
  border-color: #111;
  background: #fff;
}

body[data-page="consult"] .consult-consent {
  min-height: 50px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  padding: 11px 18px;
  background: #fbfaf8;
}

body[data-page="consult"] .consult-consent span {
  font-size: 14px;
  line-height: 1.35;
}

body[data-page="consult"] .consult-submit-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

body[data-page="consult"] .consult-submit-row button,
body[data-page="consult"] .consult-submit-row a {
  min-height: 50px;
  border-radius: 7px;
}

body[data-page="consult"] .consult-message {
  margin-top: 2px;
  color: #5d5d5d !important;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

body[data-page="consult"] .consult-note {
  width: min(100%, 848px);
  margin: 64px auto 0;
  padding: 20px 18px !important;
  border: 1px solid #e3ddd6 !important;
  border-radius: 10px !important;
  background: #fbf7f2 !important;
}

.consult-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff1f1;
  color: #d82323;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 860px) {
  .consult-form-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px !important;
  }

  .consult-field-grid,
  .consult-submit-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body[data-page="consult"] .consult-page {
    width: min(100% - 24px, 1040px);
    margin: 22px auto 38px;
  }

  .consult-copy h1 {
    font-size: 30px;
  }
}

/* Mobile compact polish */
@media (max-width: 640px) {
  body[data-page="diagnosis"] .diagnosis-page {
    width: min(100% - 20px, 1180px);
    padding: 14px 0 52px !important;
  }

  body[data-page="diagnosis"] .diagnosis-hero {
    gap: 8px;
    margin-bottom: 12px;
  }

  body[data-page="diagnosis"] .diagnosis-hero h1 {
    margin: 5px 0 6px;
    font-size: 25px !important;
    line-height: 1.16;
  }

  body[data-page="diagnosis"] .diagnosis-hero p {
    font-size: 13px !important;
    line-height: 1.45;
  }

  body[data-page="diagnosis"] .diagnosis-hero-panel {
    display: none;
  }

  body[data-page="diagnosis"] .diagnosis-tool {
    gap: 12px;
  }

  body[data-page="diagnosis"] .diagnosis-form {
    gap: 8px;
    padding: 10px;
  }

  body[data-page="diagnosis"] .diagnosis-question {
    padding: 10px;
  }

  body[data-page="diagnosis"] .diagnosis-question legend {
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 14px !important;
    line-height: 1.25;
  }

  body[data-page="diagnosis"] .diagnosis-question legend span {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  body[data-page="diagnosis"] .diagnosis-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
  }

  body[data-page="diagnosis"] .diagnosis-option {
    min-height: 44px;
  }

  body[data-page="diagnosis"] .diagnosis-option span {
    align-content: center;
    gap: 2px;
    padding: 9px 10px;
  }

  body[data-page="diagnosis"] .diagnosis-option strong {
    font-size: 13px;
    line-height: 1.2;
  }

  body[data-page="diagnosis"] .diagnosis-option small {
    display: none;
  }

  body[data-page="diagnosis"] .diagnosis-submit-row {
    gap: 8px;
  }

  body[data-page="diagnosis"] .diagnosis-submit {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  body[data-page="diagnosis"] .diagnosis-submit-row p {
    font-size: 12px;
  }

  .platform-video-title,
  .m-video-title,
  .home-video-card h3,
  body[data-page="home"] .simple-video-grid .platform-video-title,
  body[data-page="category"] .platform-video-title,
  body[data-page="video"] .video-related-grid .platform-video-title {
    min-height: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    -webkit-line-clamp: 2;
  }

  body[data-page="home"] .simple-video-grid .platform-video-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  body[data-page="home"] .simple-video-grid .platform-video-meta,
  .platform-video-meta {
    font-size: 11.5px !important;
    line-height: 1.25;
  }

  .footer-branches {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    width: min(100%, 420px) !important;
    margin-top: 12px !important;
  }

  .footer-branches a,
  .footer-phone-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    color: #111 !important;
    text-decoration: none !important;
  }

  .footer-phone-card span {
    flex: 0 0 auto;
    font-size: 15px !important;
    line-height: 1;
  }

  .footer-phone-card strong {
    flex: 0 0 auto;
    color: #111 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .footer-phone-card em {
    flex: 1 1 auto;
    margin-left: auto;
    color: #9b2f24 !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 900;
    line-height: 1 !important;
    text-align: right;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .footer-links a,
  .footer-reset-watch,
  .guide-topbar a,
  body[data-page="not-found"] a {
    color: #111 !important;
    text-decoration: none !important;
  }

  body[data-page="not-found"] .plain-hero {
    width: min(100% - 24px, 840px);
    margin: 18px auto 28px;
    padding: 16px 0;
  }

  body[data-page="not-found"] .plain-hero h1 {
    font-size: 29px !important;
    line-height: 1.18;
  }

  body[data-page="not-found"] .plain-hero p {
    font-size: 15px !important;
    line-height: 1.5;
  }
}
