:root {
  --ink: #090909;
  --muted: #737373;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f7f8f5;
  --green: #a9ff46;
  --green-2: #65f15b;
  --blue: #1e3aff;
  --dark: #08090b;
  --orange: #ff7a35;
  --radius: 8px;
  --max: 1180px;
  --lesson-max: 1290px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 75px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  background: #f6fbf1;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 700;
}

.nav-pill {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.home-page {
  background: #fff;
}

.home-hero {
  padding: 42px 20px 24px;
  background: #fbfbfb;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-items: stretch;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(201, 255, 133, 0.38), transparent 44%),
    white;
}

.home-logo-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  padding: 8px 13px 8px 8px;
  border-radius: 999px;
  background: #f7f7f7;
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 800;
}

.home-logo-line img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.home-hero-copy h1 {
  margin-top: 22px;
  max-width: 790px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.05;
  font-weight: 850;
}

.home-hero-copy p {
  max-width: 680px;
  margin-top: 20px;
  color: #4d4d4d;
  font-size: 17px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
  max-width: 560px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 8px;
  background: #f7f7f7;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: #737373;
  font-size: 12px;
  font-weight: 700;
}

.home-member-card {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 560px;
  padding: 18px;
  border-radius: 10px;
  background: #08090b;
  color: white;
}

.home-member-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1d20;
}

.home-member-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.82;
}

.home-member-media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-card-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.member-card-head b {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.home-member-card > strong {
  font-size: 44px;
  line-height: 1;
}

.home-member-card > strong em {
  color: var(--green);
  font-size: 14px;
  font-style: normal;
}

.home-member-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.home-member-card li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-member-card .btn-primary {
  background: var(--green);
  color: #000;
}

.tool-index {
  background: #fff;
  --tool-max: 1197px;
  --tool-side: max(24px, calc((100vw - var(--tool-max)) / 2));
}

.tool-site-header {
  min-height: 88px;
  padding: 15px max(24px, calc((100vw - var(--tool-max)) / 2)) 0;
  align-items: end;
  border-bottom: 1px solid #ededed;
  background: rgba(255, 255, 255, 0.94);
}

.tool-site-header .brand {
  align-self: center;
  padding-bottom: 14px;
}

.tool-site-header .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.tool-site-header .brand strong {
  font-size: 28px;
  font-weight: 650;
}

.tool-site-header .brand small {
  display: none;
}

.tool-site-header .site-nav {
  align-self: end;
  gap: clamp(18px, 2.1vw, 30px);
  font-size: 15px;
  font-weight: 500;
}

.tool-site-header .site-nav a {
  position: relative;
  padding-bottom: 17px;
}

.tool-site-header .site-nav a.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #000;
  content: "";
}

.tool-site-header .nav-pill {
  min-height: 32px;
  padding: 6px 15px;
  background: #c9ff85;
}

.tool-home-page {
  width: min(89.6vw, var(--tool-max));
  margin: 0 auto;
  padding: 26px 0 86px;
}

.tool-top-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid #d9d9d9;
}

.tool-top-panel h1 {
  font-size: clamp(74px, 8.4vw, 120px);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: 0;
}

.tool-announcements {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 12px;
  max-width: 740px;
}

.tool-date,
.tool-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.tool-date {
  border: 1px solid #111;
  background: white;
}

.tool-pill-green {
  background: #c9ff85;
  box-shadow: 0 8px 18px rgba(121, 244, 74, 0.28);
}

.tool-pill-warm {
  background: #fff2ce;
  color: #6f5200;
  box-shadow: 0 8px 18px rgba(255, 207, 104, 0.24);
}

.tool-filter-area {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 22px 0 18px;
}

.tool-mode-switch {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transform: translateY(-50%);
  padding: 4px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.tool-mode-switch button,
.tool-chip-row button {
  border: 0;
  cursor: pointer;
  color: #171717;
}

.tool-mode-switch button {
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 999px;
  background: white;
  font-size: 12px;
}

.tool-mode-switch button + button {
  border-left: 1px solid #e8e8e8;
  border-radius: 0;
}

.tool-mode-switch button.is-active {
  border-left: 0;
  border-radius: 999px;
  background: #c9ff85;
}

.tool-chip-row {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 4px 256px;
  scrollbar-width: none;
}

.tool-chip-row::-webkit-scrollbar {
  display: none;
}

.tool-chip-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 17px;
  border-radius: 999px;
  background: #ededed;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.tool-chip-row button.is-active {
  background: #c9ff85;
}

.tool-chip-row span {
  color: #ffc000;
}

.tool-course-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  margin: 30px 0 0;
  align-items: stretch;
}

.tool-course-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #111;
  border-radius: 20px;
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tool-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
}

.tool-cover {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #f1f1f1;
}

.tool-cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tool-cover span {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 68px;
  padding: 6px 15px 7px 13px;
  border-radius: 0 0 20px 0;
  background: #ff7a35;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.tool-course-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 11px 4px 9px;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-card-meta {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  margin: 0 4px;
  padding: 7px 9px 7px 7px;
  border-radius: 10px;
  background: #faf9fb;
}

.tool-card-meta b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: white;
  font-size: 18px;
  line-height: 1;
}

.tool-card-meta strong,
.tool-card-meta span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-card-meta strong {
  font-size: 13px;
}

.tool-card-meta span {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
}

.tool-card-meta i {
  color: #111;
  font-size: 18px;
  font-style: normal;
}

.tool-course-card .tool-strip {
  min-height: 34px;
  margin: auto 4px 2px;
  padding-top: 11px;
  gap: clamp(10px, 1.2vw, 18px);
}

.tool-course-card .tool-strip a,
.tool-course-card .tool-strip img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.tool-course-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-top: 30px;
}

.tool-course-pagination button {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #dce6dc;
  border-radius: 7px;
  background: #fff;
  color: #657168;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tool-course-pagination button:hover:not(:disabled) {
  border-color: #a9ce9e;
  background: #f1f9ed;
  color: #315036;
}

.tool-course-pagination button.is-active {
  border-color: transparent;
  background: #b6fa68;
  color: #172019;
}

.tool-course-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.tool-course-pagination button[data-course-nav] {
  padding-inline: 13px;
}

.tool-course-pagination-ellipsis {
  display: inline-grid;
  width: 20px;
  height: 36px;
  place-items: center;
  color: #8a958c;
  font-size: 13px;
}

.tool-live-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  margin: 34px auto 0;
  padding: 34px 40px;
  border: 1px solid #111;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 34%, rgba(201, 255, 133, 0.72), transparent 32%),
    rgba(254, 254, 254, 0.88);
}

.tool-live-banner::before {
  position: absolute;
  right: 178px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: #c9ff85;
  content: "";
}

.tool-live-banner > * {
  position: relative;
  z-index: 1;
}

.tool-live-banner span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: #c9ff85;
  font-size: 13px;
  font-weight: 800;
}

.tool-live-banner h2 {
  margin-top: 16px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1;
}

.tool-live-banner p {
  max-width: 560px;
  margin-top: 13px;
  color: #4f4f4f;
  font-size: 16px;
}

.tool-live-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #000;
  color: white;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.tool-float {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #161616;
  color: #ffd748;
  font-size: 22px;
}

@media (max-width: 1180px) {
  .tool-course-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Homepage draft: keep the catalog dense and easy to scan on desktop. */
.tool-filter-area {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 270px);
  gap: 14px 22px;
  align-items: center;
  min-height: 0;
  padding: 20px 0 15px;
  border-bottom: 1px solid #e2e5e1;
}

.tool-mode-switch {
  position: static;
  top: auto;
  transform: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dfe3df;
  border-radius: 8px;
  box-shadow: none;
}

.tool-mode-switch button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 5px;
  background: transparent;
  color: #59625b;
  font-size: 12px;
  white-space: nowrap;
}

.tool-mode-switch button + button {
  border-left: 0;
  border-radius: 5px;
}

.tool-mode-switch button:hover {
  color: #111;
  background: #f2f5f0;
}

.tool-mode-switch button.is-active {
  border-left: 0;
  border-radius: 5px;
  background: #c9ff85;
  color: #111;
  font-weight: 800;
}

.tool-chip-row {
  min-width: 0;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
}

.tool-chip-row button {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f0f2ef;
  color: #5f6861;
  font-size: 12px;
}

.tool-chip-row button:hover {
  border-color: #cfd8cd;
  color: #222;
  background: #fafcfa;
}

.tool-chip-row button.is-active {
  background: #c9ff85;
  color: #111;
}

.tool-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d8ddd8;
  border-radius: 6px;
  background: #fff;
  color: #89928b;
}

.tool-filter-search:focus-within {
  border-color: #8fbc6f;
  box-shadow: 0 0 0 3px rgba(201, 255, 133, 0.28);
}

.tool-filter-search span {
  font-size: 18px;
  line-height: 1;
}

.tool-filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 12px;
}

.tool-filter-search input::placeholder {
  color: #9ca49e;
}

.tool-filter-result {
  grid-column: 2 / -1;
  width: 100%;
  margin: -4px 0 0;
  color: #858d87;
  font-size: 11px;
}

.tool-filter-result strong {
  color: #222;
  font-weight: 800;
}

.tool-course-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border: 1px dashed #cfd8cd;
  border-radius: 10px;
  background: #fbfcfa;
  color: #89938b;
  font-size: 13px;
  text-align: center;
}

.tool-resource-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: start;
  margin-top: 74px;
  padding: 44px 0 18px;
  border-top: 1px solid #d9ddd9;
}

.tool-resource-intro > span {
  color: #669b54;
  font-size: 11px;
  font-weight: 800;
}

.tool-resource-intro h2 {
  max-width: 460px;
  margin-top: 13px;
  color: #1b211d;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  font-weight: 750;
}

.tool-resource-intro p {
  max-width: 420px;
  margin-top: 16px;
  color: #667068;
  font-size: 13px;
  line-height: 1.75;
}

.tool-resource-list {
  display: grid;
  border-top: 1px solid #e2e6e2;
}

.tool-resource-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #e2e6e2;
  color: #202722;
  transition: padding 160ms ease, color 160ms ease;
}

.tool-resource-list a:hover {
  padding-inline: 6px;
  color: #669b54;
}

.tool-resource-list span {
  color: #9aa49b;
  font-size: 10px;
  font-weight: 800;
}

.tool-resource-list strong {
  font-size: 14px;
  font-weight: 750;
}

.tool-resource-list i {
  color: #7c877e;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.tool-live-banner {
  border-radius: 10px;
  background: #f4f8ef;
}

.tool-live-banner::before {
  display: none;
}

@media (max-width: 1040px) {
  .tool-filter-area {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tool-filter-search {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 270px);
    justify-self: end;
  }

  .tool-filter-result {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 980px) {
  .tool-filter-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 20px;
  }

  .tool-mode-switch,
  .tool-chip-row,
  .tool-filter-search,
  .tool-filter-result {
    grid-column: auto;
    grid-row: auto;
  }

  .tool-filter-search {
    width: min(100%, 320px);
    justify-self: stretch;
  }

  .tool-filter-result {
    margin-top: -7px;
  }

  .tool-resource-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .tool-filter-search {
    width: 100%;
  }

  .tool-resource-list a {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 0;
  }

  .tool-resource-list a:hover {
    padding-inline: 0;
  }

  .tool-resource-list i {
    grid-column: 2;
  }
}

/* Account-bound Native checkout. */
.checkout-card .payment-module {
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.payment-account {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-signed-in[hidden],
.payment-order-result[hidden],
.payment-qr[hidden] {
  display: none !important;
}

.payment-account-head,
.auth-signed-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-account-head > div {
  display: grid;
  gap: 4px;
}

.payment-account-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.payment-account-state {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  line-height: 1.2;
}

.payment-account-state[data-state="ready"] {
  border-color: rgba(201, 255, 133, 0.44);
  color: #c9ff85;
}

.payment-account-state[data-state="member"] {
  border-color: rgba(201, 255, 133, 0.7);
  background: rgba(201, 255, 133, 0.1);
  color: #c9ff85;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-mode-tabs button {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.auth-mode-tabs button.is-active {
  border-bottom-color: #c9ff85;
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.checkout-card .checkout-contact-field {
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 650;
}

.checkout-card .checkout-contact-field input {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.19);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
}

.checkout-card .checkout-contact-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.checkout-card .checkout-contact-field input:focus {
  border-color: rgba(201, 255, 133, 0.78);
  box-shadow: 0 0 0 3px rgba(201, 255, 133, 0.12);
}

.auth-submit {
  min-height: 37px;
  border: 1px solid #c9ff85;
  border-radius: 4px;
  background: #c9ff85;
  color: #172019;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: #ddffae;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.45;
}

.auth-message[data-state="error"] {
  color: #ffb7aa;
}

.auth-signed-in {
  align-items: center;
  padding: 10px 0 0;
}

.auth-signed-in > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.auth-signed-in strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-signed-in small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.auth-signed-in button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #c9ff85;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.checkout-card .payment-module-head strong {
  color: #fff;
  font-size: 14px;
}

.checkout-card .payment-channel-status {
  color: rgba(255, 255, 255, 0.54);
}

.checkout-card .payment-channel-status[data-state="ready"] {
  color: #c9ff85;
}

.checkout-card .payment-order-result,
.checkout-card .payment-qr {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.checkout-card .payment-order-result strong {
  color: #fff;
  letter-spacing: 0;
}

.checkout-card .payment-order-result small,
.checkout-card .payment-qr {
  color: rgba(255, 255, 255, 0.58);
}

.checkout-card .payment-qr img {
  width: min(220px, 100%);
  border: 0;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .payment-account {
    padding-bottom: 16px;
  }
}

/* Native payment checkout states. */
.payment-module {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce6dc;
  background: #fbfdf9;
  border-radius: 8px;
}

.payment-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-module-head > div {
  display: grid;
  gap: 3px;
}

.payment-channel-status {
  color: #7b867c;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.payment-channel-status[data-state="ready"] {
  color: #438238;
}

.payment-channel-status[data-state="pending"] {
  color: #a46d20;
}

.checkout-contact-field {
  display: grid;
  gap: 7px;
  color: #263229;
  font-size: 12px;
  font-weight: 600;
}

.checkout-contact-field small {
  color: #8a928a;
  font-size: 11px;
  font-weight: 400;
}

.checkout-contact-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d6e0d5;
  border-radius: 5px;
  background: #fff;
  color: #1f2a22;
  font: inherit;
  font-weight: 400;
  outline: none;
}

.checkout-contact-field input:focus {
  border-color: #77a36d;
  box-shadow: 0 0 0 3px rgba(119, 163, 109, 0.14);
}

.checkout-pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #26382b;
  border-radius: 5px;
  background: #26382b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.checkout-pay-button:hover:not(:disabled),
.checkout-pay-button:focus-visible:not(:disabled) {
  background: #17271c;
}

.checkout-pay-button:disabled {
  border-color: #d8e0d7;
  background: #e8eee7;
  color: #96a097;
  cursor: not-allowed;
}

.payment-status-message {
  min-height: 17px;
  margin: 0;
  color: #798379;
  font-size: 11px;
  line-height: 1.5;
}

.payment-status-message[data-state="error"] {
  color: #ad594d;
}

.payment-status-message[data-state="success"] {
  color: #438238;
}

.payment-status-message[data-state="pending"] {
  color: #a46d20;
}

.payment-order-result {
  display: grid;
  gap: 4px;
  padding-top: 11px;
  border-top: 1px solid #e5ece4;
  color: #879087;
  font-size: 11px;
}

.payment-order-result strong {
  color: #263229;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.payment-order-result small {
  color: #879087;
  line-height: 1.5;
}

.payment-qr {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px 0 2px;
  border-top: 1px solid #e5ece4;
  color: #59665a;
  font-size: 11px;
}

.payment-qr img {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid #e0e8df;
  background: #fff;
}

/* Membership entry refresh for the homepage draft. */
.tool-live-banner {
  grid-template-columns: minmax(0, 1fr) minmax(275px, 0.55fr);
  gap: 60px;
  min-height: 270px;
  margin-top: 56px;
  padding: 38px 42px 38px 44px;
  border: 1px solid #1d231e;
  border-radius: 12px;
  background: #eef7e7;
}

.tool-live-kicker {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #609653 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.tool-live-kicker::before {
  width: 20px;
  height: 3px;
  background: #75ae62;
  content: "";
}

.tool-live-copy h2 {
  margin-top: 17px;
  color: #172018;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 800;
}

.tool-live-copy p {
  max-width: 550px;
  margin-top: 17px;
  color: #536156;
  font-size: 14px;
  line-height: 1.75;
}

.tool-live-offer {
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid #d0deca;
}

.tool-live-offer-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-live-offer-top > span {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5a7658 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.tool-live-offer-top small,
.tool-live-note {
  color: #829080;
  font-size: 11px;
}

.tool-live-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.tool-live-price strong {
  color: #172018;
  font-size: clamp(54px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 850;
}

.tool-live-price span {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #526253 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.tool-live-cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 16px;
  width: 100%;
  max-width: 245px;
  min-height: 48px !important;
  margin-top: 19px;
  padding: 12px 15px 12px 18px !important;
  border-radius: 6px !important;
  background: #161b17 !important;
  color: #fff !important;
  box-shadow: none;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.tool-live-cta:hover {
  background: #5b9250 !important;
}

.tool-live-cta span {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.tool-live-cta i {
  color: #c9ff85;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.tool-live-note {
  display: block;
  margin-top: 10px;
}

.tool-float {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 46px;
  padding: 4px 14px 4px 6px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #c9ff85;
  color: #111;
  box-shadow: 0 12px 28px rgba(31, 52, 29, 0.2);
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 52, 29, 0.26);
}

.tool-float-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #c9ff85;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.tool-float i {
  color: #496843;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.btn::after {
  margin-left: 9px;
  content: "→";
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-ghost {
  background: white;
  border-color: var(--line);
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p,
.member-copy > p,
.article-copy > p,
.dark-copy > p,
.article-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-head h2,
.member-copy h2,
.article-copy h2,
.dark-copy h2 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.section-head a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.home-update-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 20px auto 0;
}

.home-update-strip div {
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.home-update-strip span {
  display: block;
  color: #777;
  font-size: 12px;
  font-weight: 800;
}

.home-update-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.home-catalog {
  padding-top: 68px;
}

.home-section-head {
  align-items: center;
  margin-bottom: 24px;
}

.home-section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.home-catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-category-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 10px;
  background: #f7f7f7;
}

.home-category-panel strong {
  margin-bottom: 8px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.home-category-panel a {
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 4px;
  color: #626262;
  font-size: 13px;
  font-weight: 700;
}

.home-category-panel a.is-active {
  background: #c9ff85;
  color: #111;
}

.category-note {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: white;
}

.category-note span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-note b {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

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

.home-course-row {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 184px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.home-course-row:hover {
  transform: translateY(-2px);
  border-color: #111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.home-course-row > img {
  height: 100%;
  min-height: 156px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f2f2;
}

.home-course-row > div {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 6px 4px 0;
}

.home-course-row h3 {
  margin-top: 7px;
  font-size: 25px;
  line-height: 1.25;
}

.home-course-row p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.home-course-row .tool-strip {
  min-height: 34px;
  margin-top: 16px;
  gap: 10px;
}

.home-course-row .tool-strip a,
.home-course-row .tool-strip img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.home-tool-section {
  padding-top: 34px;
}

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

.home-tool-grid a {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 128px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.home-tool-grid a:hover {
  transform: translateY(-2px);
  border-color: #111;
  background: white;
}

.home-tool-grid img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.home-feature-band {
  margin-top: 32px;
  padding: 74px max(20px, calc((100vw - var(--max)) / 2));
  background: #08090b;
  color: white;
}

.feature-band-inner {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  gap: 32px;
  align-items: end;
}

.feature-band-inner > div:first-child p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-band-inner h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.08;
}

.feature-band-inner > div:first-child span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
}

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

.feature-card-row article {
  min-height: 188px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-card-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.feature-card-row h3 {
  margin-top: 46px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-card-row p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

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

.mini-course-card,
.catalog-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: white;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.course-link {
  cursor: pointer;
}

.card-main-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.course-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.mini-course-card > img,
.catalog-card > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f2f2f2;
}

.mini-course-card > div,
.catalog-card > div {
  padding: 18px;
}

.course-topic {
  color: #158c28;
  font-size: 12px;
  font-weight: 900;
}

.mini-course-card h3,
.catalog-card h2 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.mini-course-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.tool-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-top: 18px;
}

.tool-strip a {
  position: relative;
  z-index: 2;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: transform 160ms ease;
}

.tool-strip a:hover {
  transform: translateY(-2px);
}

.tool-strip a:focus-visible,
.card-main-link:focus-visible {
  outline: 3px solid rgba(169, 255, 70, 0.82);
  outline-offset: 3px;
}

.tool-strip img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.access-free {
  background: rgba(169, 255, 70, 0.42);
  color: #236500;
}

.access-member {
  background: #111;
  color: white;
}

.member-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.member-copy {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--soft);
}

.muted,
.article-copy p:not(:first-child),
.catalog-card p,
.lesson-article p,
.lesson-side p {
  color: var(--muted);
}

.price-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--dark);
  color: white;
}

.price-card span {
  color: var(--green);
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-top: 12px;
  font-size: 72px;
  line-height: 1;
}

.price-card em {
  font-size: 28px;
  font-style: normal;
}

.price-card p {
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, 0.65);
}

.team-block {
  background: white;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.avatar-grid div {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.avatar-grid span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: white;
  font-weight: 950;
}

.article-preview {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.article-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.article-copy p:not(:first-child) {
  margin-top: 14px;
}

.article-copy .btn {
  margin-top: 24px;
}

.dark-section {
  padding: 76px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--dark);
  color: white;
}

.dark-copy span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.dark-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.dark-card-row article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.dark-card-row span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.dark-card-row h3 {
  margin-top: 50px;
  font-size: 24px;
}

.float-order {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--blue);
  font-weight: 900;
}

.catalog-page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 70px 20px;
}

.catalog-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.catalog-hero h1 {
  font-size: clamp(72px, 13vw, 140px);
  line-height: 0.9;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.catalog-meta span,
.catalog-meta a,
.filter-row button,
.search-box {
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 14px;
  font-weight: 800;
}

.catalog-meta a,
.filter-row button.is-active {
  background: var(--green);
  color: var(--ink);
  border-color: transparent;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1fr 1.5fr 220px;
  gap: 16px;
  align-items: center;
  padding: 34px 0;
}

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

.filter-row button {
  cursor: pointer;
  color: #555;
}

.search-box {
  color: #aaa;
  text-align: left;
}

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

.catalog-card h2 {
  font-size: 18px;
}

.catalog-card p {
  margin-top: 8px;
  font-size: 14px;
}

.lesson-shell {
  width: min(calc(100% - 48px), var(--lesson-max));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.detail-head {
  padding-bottom: 20px;
  text-align: center;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 54px;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.crumbs span {
  color: #777;
}

.crumbs span:last-child {
  color: #111;
}

.detail-head h1 {
  font-size: clamp(30px, 3.25vw, 38px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 13px;
  color: #111;
  font-size: 13px;
}

.detail-meta i {
  width: 1px;
  height: 14px;
  background: #111;
}

.author-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.author-meta b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #fff);
  font-size: 11px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 24px;
}

.detail-tags span {
  min-height: 27px;
  padding: 5px 14px;
  border-radius: 10px;
  background: #f7f7f7;
  color: #696969;
  font-size: 12px;
  font-weight: 500;
}

.lesson-page {
  display: grid;
  grid-template-columns: 263px minmax(0, 562px) 263px;
  column-gap: clamp(42px, 7vw, 102px);
  align-items: start;
  padding-top: 30px;
}

.lesson-toc,
.latest-card,
.side-card,
.side-comment,
.side-qr {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.lesson-left {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 0;
}

.lesson-toc {
  display: grid;
  gap: 2px;
  padding: 14px 12px 24px;
  border: 0;
  border-radius: 10px;
  background: #f7f7f7;
}

.lesson-toc strong {
  margin: 0 0 10px;
  padding-left: 2px;
  color: #111;
  font-size: 16px;
  font-weight: 500;
}

.lesson-toc a {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 2px;
  color: #696969;
  font-size: 12px;
  line-height: 1.35;
}

.lesson-toc a.is-active {
  background: #c9ff85;
  color: var(--ink);
  font-weight: 500;
}

.toc-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
}

.toc-tools a {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 7px;
  transition: transform 160ms ease;
}

.toc-tools a:hover {
  transform: translateY(-2px);
}

.toc-tools img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  background: white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.toc-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: #000;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.toc-lazy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: -8px;
  border-radius: 999px;
  background: #c9ff85;
  color: #000;
  font-size: 12px;
  font-weight: 600;
}

.lesson-article {
  min-width: 0;
  color: #525252;
  font-size: 15px;
  line-height: 1.85;
}

.lesson-article > p {
  margin: 20px 0;
}

.lesson-article h1 {
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
}

.article-lede {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
}

.quote-card {
  margin: 0 auto 26px;
  padding: 26px 0 24px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.quote-card p {
  color: #50c521;
  font-size: 20px;
  line-height: 1.72;
}

.article-note {
  color: #50c521;
  font-size: 16px;
  line-height: 1.85;
}

.video-block {
  position: relative;
  overflow: hidden;
  margin: 20px 0 26px;
  border-radius: 10px;
  background: var(--dark);
}

.video-block img {
  opacity: 0.64;
}

.video-free img {
  opacity: 1;
}

.video-block a {
  position: absolute;
  inset: auto 50% 40px auto;
  transform: translateX(50%);
  width: max-content;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.lesson-article section {
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
}

.lesson-article h2 {
  margin-bottom: 18px;
  color: #070707;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
}

.lesson-article section img {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.locked-inline {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  min-height: 160px;
  padding: 26px;
  border: 1px solid rgba(169, 255, 70, 0.54);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfff8, #fff);
}

.locked-content {
  filter: blur(8px);
  user-select: none;
}

.locked-content p + p {
  margin-top: 12px;
}

.locked-inline a {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.lesson-side {
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 0;
}

.latest-card {
  padding: 18px 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #f7f7f7;
}

.latest-card h2 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.latest-card a {
  display: block;
  overflow: hidden;
  min-height: 39px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 3px;
  background: #ededed;
  color: #5d6470;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-card {
  padding: 15px;
}

.side-card span {
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 900;
}

.side-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.side-card p {
  margin: 8px 0 12px;
  font-size: 12px;
}

.side-comment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.side-comment::after {
  margin-left: 8px;
  content: "→";
  color: var(--green);
}

.access-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.access-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.access-list b {
  font-size: 12px;
}

.access-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.side-qr {
  border-color: #eeeeee;
  padding: 12px;
  text-align: center;
}

.side-qr img {
  border-radius: var(--radius);
}

.side-qr p {
  margin-top: 8px;
  font-size: 12px;
}

.comments-block {
  margin-top: 78px;
  padding-top: 0;
}

.comments-block h2 {
  margin-bottom: 22px;
  color: #333;
  font-size: 24px;
  font-weight: 700;
}

.comments-block p {
  padding: 22px;
  border-radius: 8px;
  background: #f8f8f8;
  color: #777;
}

.pay-body {
  min-height: 100svh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("./assets/claude-code-files.png") center / cover fixed;
}

.pay-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px 20px;
  background: rgba(14, 18, 20, 0.14);
}

.pay-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  width: min(100%, 820px);
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
}

.pay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #747b7d;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease;
}

.pay-close:hover,
.pay-close:focus-visible {
  background: #edf0ef;
  color: var(--dark);
}

.pay-copy h1 {
  margin-top: 8px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.1;
}

.pay-copy p:not(.article-kicker) {
  margin-top: 14px;
  color: var(--muted);
}

.pay-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pay-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--dark);
  color: white;
}

.checkout-price strong {
  display: block;
  font-size: 60px;
  line-height: 1;
}

.checkout-price span {
  color: var(--green);
  font-weight: 900;
}

.qr-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: white;
}

.qr-card img {
  border-radius: var(--radius);
}

.checkout-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  text-align: center;
}

.floating-actions {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 32;
  display: flex;
  align-items: center;
}

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: #000;
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.ticket-float {
  min-width: 118px;
  border-radius: 999px;
}

.ticket-float span {
  margin-right: 7px;
  color: #ffd74a;
}

.admin-page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 46px 20px 72px;
}

.admin-title {
  max-width: none;
}

.admin-title h1 {
  font-size: 44px;
  line-height: 1.15;
}

.admin-title p:not(.article-kicker) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.upload-panel,
.editor-panel,
.permission-preview {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.editor-workspace {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-head h2,
.permission-preview h2 {
  font-size: 22px;
}

.panel-head span {
  padding: 5px 10px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.upload-panel,
.editor-panel {
  display: grid;
  gap: 16px;
}

.upload-panel label,
.editor-block label {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 900;
}

.upload-panel input,
.upload-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.upload-box {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 138px;
  padding: 18px;
  border: 1px dashed #cfd3c7;
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.upload-box strong {
  color: #232923;
  font-size: 14px;
}

.upload-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.editor-block p,
.preview-lock p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.upload-panel fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.upload-panel legend {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
}

.radio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.radio-card input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #58c932;
}

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

.tool-picker label {
  display: grid;
  grid-template-columns: auto 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.tool-picker input {
  width: 16px;
  min-height: 16px;
  accent-color: #58c932;
}

.tool-picker img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.tool-picker span {
  font-size: 13px;
  font-weight: 900;
}

.custom-icon-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px dashed #cfd3c7;
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.custom-icon-upload input {
  display: none;
}

.custom-icon-upload span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.tool-url-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.tool-url-list label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 13px;
  font-weight: 900;
}

.tool-url-list span {
  white-space: nowrap;
}

.tool-url-list input {
  min-height: 38px;
  font-size: 13px;
}

.editor-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.editor-block label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.editor-block input {
  width: 18px;
  height: 18px;
  accent-color: #58c932;
}

.editor-block.is-locked {
  border-color: rgba(169, 255, 70, 0.7);
  background:
    linear-gradient(90deg, rgba(169, 255, 70, 0.18), transparent 42%),
    white;
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.permission-preview {
  align-self: start;
}

.preview-card {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: white;
}

.preview-card > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-card > div {
  padding: 16px;
}

.preview-card h3 {
  font-size: 18px;
  line-height: 1.25;
}

.preview-lock {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.54)),
    linear-gradient(90deg, rgba(169, 255, 70, 0.45), rgba(169, 255, 70, 0.12));
}

.preview-lock strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.content-editor {
  align-self: start;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.editor-add-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-add-controls select {
  min-height: 34px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: #434846;
  font-size: 12px;
  font-weight: 800;
}

.editor-add-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #1f2822;
  border-radius: 5px;
  background: #1f2822;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.editor-add-button:hover,
.editor-add-button:focus-visible {
  background: #3b4940;
}

.editor-block-list {
  display: grid;
}

.editor-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px 44px;
  gap: 12px;
  align-items: center;
  padding: 17px 7px 17px 12px;
  border: 0;
  border-bottom: 1px solid #e1e5e1;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease;
}

.editor-content-block.is-member {
  border-bottom-color: #d6e8c6;
  border-left: 3px solid #79b63f;
  background: #fbfef8;
}

.block-body {
  min-width: 0;
}

.block-meta {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: #8a918c;
  font-size: 10px;
  font-weight: 800;
}

.block-body [contenteditable="true"] {
  min-height: 20px;
  outline: 0;
}

.block-body [contenteditable="true"]:focus {
  box-shadow: inset 0 -1px 0 #7f9a85;
}

.block-body h3 {
  color: #1c211f;
  font-size: 16px;
  line-height: 1.35;
}

.block-body p {
  color: #4d5651;
  font-size: 14px;
  line-height: 1.65;
}

.block-body img {
  display: block;
  width: min(100%, 260px);
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.block-body .image-caption {
  margin-top: 7px;
  color: #7a817d;
  font-size: 12px;
}

.block-controls {
  display: grid;
  grid-template-columns: repeat(2, 20px);
  gap: 3px;
  justify-content: end;
  padding-top: 1px;
}

.block-controls button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #838b85;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.block-controls button:hover,
.block-controls button:focus-visible {
  border-color: var(--line);
  background: #f1f3f1;
  color: #151916;
}

.block-visibility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  min-height: 30px;
  border: 1px solid #dfe4df;
  border-radius: 5px;
  background: #f4f6f4;
}

.block-visibility button {
  border: 0;
  background: transparent;
  color: #7a817c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.block-visibility button.is-active {
  background: white;
  box-shadow: 0 0 0 1px #c9d0ca;
  color: #242a26;
}

.is-member .block-visibility button[data-set-block-access="member"].is-active {
  background: #29332c;
  box-shadow: 0 0 0 1px #29332c;
  color: white;
}

.permission-preview {
  position: static;
  background: #f7f8f6;
}

.front-preview {
  overflow: hidden;
  width: min(100%, 720px);
  margin: 0 auto;
  border: 1px solid #e1e6e0;
  border-radius: 6px;
  background: white;
}

.front-preview-header {
  padding: 15px 15px 12px;
  border-bottom: 1px solid #edf0ec;
}

.front-preview-header span {
  display: block;
  margin-bottom: 5px;
  color: #829180;
  font-size: 10px;
  font-weight: 800;
}

.front-preview-header h3 {
  color: #202522;
  font-size: 16px;
  line-height: 1.35;
}

.front-preview-content {
  padding: 22px;
}

.preview-public-block {
  margin: 0 0 14px;
}

.preview-public-block:last-child {
  margin-bottom: 0;
}

.preview-public-block h4 {
  color: #242a26;
  font-size: 15px;
  line-height: 1.42;
}

.preview-public-block p {
  color: #59625d;
  font-size: 12px;
  line-height: 1.7;
}

.preview-public-block img {
  width: 100%;
  border-radius: 5px;
}

.preview-member-section {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  margin: 0 0 14px;
  padding: 7px 0;
}

.preview-member-section:last-child {
  margin-bottom: 0;
}

.preview-member-content {
  display: grid;
  gap: 8px;
  padding: 0 2px;
  color: #62a929;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.preview-member-content p {
  color: inherit;
  font-size: 12px;
  line-height: 1.7;
}

.preview-member-content h4 {
  color: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.preview-member-content img {
  width: 100%;
  max-height: 108px;
  object-fit: cover;
  border-radius: 5px;
}

.preview-member-unlock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.46);
  color: #171b18;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 680px) {
  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-add-controls select {
    width: 100%;
  }

  .editor-content-block {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .block-controls {
    grid-column: 2;
    grid-row: 1;
    justify-content: start;
  }

  .block-visibility {
    grid-column: 1;
    width: 106px;
  }
}

@media (max-width: 980px) {
  .tool-index {
    --tool-side: 16px;
  }

  .tool-site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 112px;
    padding: 16px 16px 0;
  }

  .tool-site-header .menu-toggle {
    display: none;
  }

  .tool-site-header .site-nav {
    position: static;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    transform: none;
    scrollbar-width: none;
  }

  .tool-site-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .tool-site-header .site-nav a {
    flex: 0 0 auto;
    padding: 0 0 15px;
    border-top: 0;
    white-space: nowrap;
  }

  .tool-home-page {
    width: min(calc(100% - 32px), var(--tool-max));
    padding-top: 34px;
  }

  .tool-top-panel {
    display: block;
    padding-bottom: 28px;
  }

  .tool-announcements {
    justify-content: flex-start;
    max-width: none;
    margin-top: 22px;
  }

  .tool-filter-area {
    display: grid;
    justify-items: start;
    gap: 18px;
    min-height: 0;
    padding: 24px 0 22px;
  }

  .tool-mode-switch {
    position: static;
    transform: none;
  }

  .tool-chip-row {
    justify-content: flex-start;
    padding: 0 0 4px;
  }

  .tool-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    z-index: 19;
    display: grid;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: white;
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .menu-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .nav-pill {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
  }

  .mini-course-grid,
  .catalog-grid,
  .dark-card-row,
  .home-update-strip,
  .home-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-block,
  .article-preview,
  .catalog-tools,
  .lesson-page,
  .admin-layout,
  .pay-shell,
  .home-hero-inner,
  .home-catalog-layout,
  .feature-band-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-copy,
  .home-member-card {
    min-height: auto;
  }

  .home-category-panel {
    position: static;
    top: auto;
  }

  .home-course-row {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .lesson-shell {
    width: min(100%, var(--max));
    padding: 34px 20px 80px;
  }

  .lesson-page {
    height: auto;
    overflow: visible;
  }

  .lesson-left {
    position: static;
    top: auto;
  }

  .lesson-left,
  .lesson-article,
  .lesson-side {
    overflow: visible;
    padding-right: 0;
  }

  .detail-head {
    text-align: left;
  }

  .detail-tags,
  .detail-meta {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .tool-site-header {
    min-height: 112px;
    padding-inline: 16px;
  }

  .tool-site-header .brand strong {
    font-size: 30px;
  }

  .tool-home-page {
    padding: 40px 14px 76px;
  }

  .tool-top-panel h1 {
    font-size: 56px;
  }

  .tool-announcements {
    gap: 12px;
    margin-top: 22px;
    padding-bottom: 24px;
  }

  .tool-date,
  .tool-pill {
    min-height: 39px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .tool-filter-area {
    gap: 20px;
    padding-top: 26px;
  }

  .tool-mode-switch {
    gap: 4px;
    padding: 6px;
  }

  .tool-mode-switch button {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .tool-chip-row {
    gap: 12px;
    padding-inline: 0;
  }

  .tool-chip-row button {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
  }

  .tool-course-list,
  .tool-live-banner {
    width: 100%;
  }

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

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

  .tool-live-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .tool-live-banner h2 {
    font-size: 31px;
  }

  .tool-float {
    width: 50px;
    height: 50px;
  }

  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .home-hero {
    padding: 18px 14px 10px;
  }

  .home-hero-copy {
    padding: 26px;
  }

  .home-hero-copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .home-member-card > strong {
    font-size: 38px;
  }

  .hero-actions,
  .section-head,
  .catalog-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .section-head a {
    width: 100%;
  }

  .section,
  .catalog-page,
  .lesson-shell {
    padding: 48px 14px;
  }

  .lesson-page {
    padding-top: 28px;
  }

  .mini-course-grid,
  .catalog-grid,
  .dark-card-row,
  .avatar-grid,
  .home-update-strip,
  .home-tool-grid,
  .feature-card-row {
    grid-template-columns: 1fr;
  }

  .home-update-strip {
    width: min(calc(100% - 28px), var(--max));
  }

  .home-course-row {
    grid-template-columns: 1fr;
  }

  .home-course-row > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-feature-band {
    padding: 54px 14px;
  }

  .member-copy,
  .price-card {
    padding: 24px;
  }

  .price-card strong {
    font-size: 58px;
  }

  .float-order {
    right: 16px;
    bottom: 16px;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-actions a {
    min-width: 0;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 12px;
  }

  .ticket-float {
    min-width: 108px;
    border-radius: 999px;
  }

  .pay-page {
    padding: 20px 14px;
  }

  .pay-shell {
    padding: 18px;
  }

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

/* Content publisher */
.publisher-body {
  background: #f4f5f2;
}

.publisher-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 84px;
}

.publisher-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.publisher-kicker,
.editor-eyebrow {
  display: block;
  color: #78827b;
  font-size: 12px;
  font-weight: 800;
}

.publisher-topbar h1 {
  margin-top: 5px;
  color: #171b18;
  font-size: 36px;
  line-height: 1.1;
}

.publisher-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.publisher-save-status {
  color: #8a928d;
  font-size: 12px;
  font-weight: 700;
}

.publisher-save-status[data-state="saved"] {
  color: #50982e;
}

.publisher-save-status[data-state="error"] {
  color: #cf4949;
}

.publisher-reset,
.publisher-save,
.publisher-publish,
.editor-add-block,
.article-block-tools button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.publisher-reset {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dce1db;
  border-radius: 6px;
  background: #fff;
  color: #69726c;
  font-size: 18px;
}

.publisher-save,
.publisher-publish {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.publisher-save {
  border: 1px solid #dce1db;
  background: #fff;
  color: #303732;
}

.publisher-publish {
  background: #202a22;
  color: #fff;
}

.publisher-reset:hover,
.publisher-save:hover {
  border-color: #b7c2b8;
  background: #f9fbf8;
}

.publisher-publish:hover,
.editor-add-block:hover {
  background: #38463a;
}

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

.course-settings,
.publisher-editor {
  border: 1px solid #e0e5df;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(39, 54, 42, 0.035);
}

.course-settings {
  overflow: hidden;
}

.course-section {
  padding: 20px;
  border-bottom: 1px solid #edf0ec;
}

.course-section:last-child {
  border-bottom: 0;
}

.course-section-title {
  margin-bottom: 15px;
}

.course-section-title h2 {
  color: #252c27;
  font-size: 15px;
  line-height: 1.25;
}

.course-field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.course-field:first-of-type {
  margin-top: 0;
}

.course-field > span {
  color: #6d766f;
  font-size: 12px;
  font-weight: 700;
}

.course-field input,
.course-field select,
.tool-link-details input {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  outline: 0;
  background: #fbfcfa;
  color: #2c332e;
  font: inherit;
  font-size: 13px;
}

.course-field input:focus,
.course-field select:focus,
.tool-link-details input:focus {
  border-color: #9db59d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 158, 107, 0.1);
}

.course-cover-picker {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #e9ede8;
  cursor: pointer;
}

.course-cover-picker input,
.video-file-picker input,
.article-image-picker input {
  display: none;
}

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

.course-cover-picker::after {
  position: absolute;
  inset: 0;
  background: rgba(21, 29, 23, 0.18);
  content: "";
  transition: background 160ms ease;
}

.course-cover-picker span,
.article-image-picker span {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 9px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #253127;
  font-size: 11px;
  font-weight: 800;
}

.course-cover-picker:hover::after {
  background: rgba(21, 29, 23, 0.06);
}

.video-file-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px dashed #cfd8cf;
  border-radius: 5px;
  color: #657068;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.video-file-plus {
  color: #487c37;
  font-size: 18px;
  font-weight: 400;
}

.video-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.video-access label {
  position: relative;
  cursor: pointer;
}

.video-access input {
  position: absolute;
  opacity: 0;
}

.video-access span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 7px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  background: #fbfcfa;
  color: #737b75;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.video-access input:checked + span {
  border-color: #304838;
  background: #304838;
  color: #fff;
}

.category-builder {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0ec;
}

.category-builder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.category-builder-head strong {
  color: #59675c;
  font-size: 11px;
}

.category-builder-head span {
  color: #9aa39b;
  font-size: 10px;
}

.category-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.category-builder-row input {
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid #dfe5df;
  border-radius: 4px;
  outline: 0;
  background: #fbfcfa;
  color: #39443c;
  font: inherit;
  font-size: 11px;
}

.category-builder-row input:focus {
  border-color: #9db59d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 158, 107, 0.1);
}

.category-builder-row button {
  min-width: 43px;
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid #cbdac8;
  border-radius: 4px;
  background: #f1f8ef;
  color: #456047;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.category-builder-row button:hover,
.category-builder-row button:focus-visible {
  border-color: #91ae8c;
  background: #e7f3e4;
  color: #263128;
}

.category-builder-message {
  min-height: 15px;
  margin: 6px 0 0;
  color: #718071;
  font-size: 10px;
  line-height: 1.4;
}

.category-builder-message[data-state="error"] {
  color: #b34e48;
}

.category-builder-message[data-state="saved"] {
  color: #5b824f;
}

.course-featured-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid #e0e8de;
  border-radius: 5px;
  background: #f7fbf5;
  cursor: pointer;
}

.course-featured-toggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #5b9650;
}

.course-featured-toggle span {
  display: block;
  min-width: 0;
}

.course-featured-toggle strong,
.course-featured-toggle small {
  display: block;
}

.course-featured-toggle strong {
  color: #4a644b;
  font-size: 11px;
}

.course-featured-toggle small {
  margin-top: 2px;
  color: #8c9b8e;
  font-size: 10px;
}

.course-featured-toggle:has(input:checked) {
  border-color: #b8d5ad;
  background: #edf8e9;
}

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

.tool-choice-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 5px 4px 7px;
}

.custom-tool-select {
  display: grid;
  flex: 1;
  grid-template-columns: 15px 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 29px;
  cursor: pointer;
}

.custom-tool-select input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #5baf35;
}

.custom-tool-select img,
.custom-tool-logo-fallback {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
}

.custom-tool-select img {
  object-fit: cover;
}

.custom-tool-logo-fallback {
  background: #dfeadd;
  color: #456047;
  font-size: 11px;
  font-weight: 800;
}

.custom-tool-select > span:last-child {
  overflow: hidden;
  color: #505953;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-tool-remove {
  display: grid;
  width: 22px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9aa39b;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.custom-tool-remove:hover,
.custom-tool-remove:focus-visible {
  background: #fff0ef;
  color: #bd4c45;
}

.tool-choice {
  display: grid;
  grid-template-columns: 15px 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 39px;
  padding: 7px;
  border: 1px solid #e5e9e4;
  border-radius: 5px;
  cursor: pointer;
}

.tool-choice input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #5baf35;
}

.tool-choice img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.tool-choice span {
  overflow: hidden;
  color: #505953;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-link-details {
  margin-top: 13px;
}

.tool-link-details summary {
  color: #647069;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.tool-link-details[open] summary {
  margin-bottom: 9px;
}

.tool-link-details label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.tool-link-details label span {
  color: #6a736c;
  font-size: 11px;
  font-weight: 700;
}

.tool-link-details input {
  min-height: 33px;
  padding-block: 6px;
  font-size: 11px;
}

.custom-tool-builder {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #edf0ec;
}

.custom-tool-builder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.custom-tool-builder-head strong {
  color: #4e5d52;
  font-size: 11px;
}

.custom-tool-builder-head span {
  color: #9aa39b;
  font-size: 10px;
}

.custom-tool-form {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 9px;
}

.custom-tool-logo-picker {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 70px;
  place-items: center;
  border: 1px dashed #cdd8cc;
  border-radius: 6px;
  background: #f8fbf7;
  cursor: pointer;
}

.custom-tool-logo-picker:hover {
  border-color: #9fb49d;
  background: #f1f8ef;
}

.custom-tool-logo-picker input {
  display: none;
}

.custom-tool-logo-empty {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #e4ece1;
  color: #6c806e;
  font-size: 10px;
  font-weight: 800;
}

.custom-tool-logo-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-tool-logo-picker img[hidden],
.custom-tool-logo-empty[hidden] {
  display: none;
}

.custom-tool-logo-caption {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  padding: 3px 2px;
  background: rgba(255, 255, 255, 0.9);
  color: #607061;
  font-size: 9px;
  text-align: center;
}

.custom-tool-fields {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.custom-tool-fields label {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.custom-tool-fields label > span {
  color: #758078;
  font-size: 10px;
  font-weight: 700;
}

.custom-tool-fields input {
  min-height: 29px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #dfe5df;
  border-radius: 4px;
  outline: 0;
  background: #fbfcfa;
  color: #39443c;
  font: inherit;
  font-size: 11px;
}

.custom-tool-fields input:focus {
  border-color: #9db59d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 158, 107, 0.1);
}

.custom-tool-add {
  min-height: 29px;
  border: 1px solid #cbdac8;
  border-radius: 4px;
  background: #f1f8ef;
  color: #456047;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.custom-tool-add:hover,
.custom-tool-add:focus-visible {
  border-color: #91ae8c;
  background: #e7f3e4;
  color: #263128;
}

.custom-tool-message {
  min-height: 15px;
  margin: 7px 0 0;
  color: #718071;
  font-size: 10px;
  line-height: 1.4;
}

.custom-tool-message[data-state="error"] {
  color: #b34e48;
}

.custom-tool-message[data-state="saved"] {
  color: #5b824f;
}

.publisher-editor {
  min-width: 0;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid #edf0ec;
}

.editor-header h2 {
  margin-top: 3px;
  color: #1e251f;
  font-size: 23px;
  line-height: 1.2;
}

.editor-header p {
  margin-top: 5px;
  color: #89928a;
  font-size: 12px;
}

.editor-view-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 6px;
  background: #f1f3f0;
}

.editor-view-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #778079;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.editor-view-switch button.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(27, 38, 29, 0.12);
  color: #273029;
}

.editor-edit-view {
  padding: 0 26px 26px;
}

.editor-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0ec;
}

.editor-add-row select {
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #dce3dc;
  border-radius: 5px;
  outline: 0;
  background: #fbfcfa;
  color: #5d675f;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.editor-add-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 5px;
  background: #253126;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.editor-add-block span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.editor-quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dce5da;
  border-radius: 5px;
  background: #f8fbf7;
  color: #506354;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.editor-quick-add:hover,
.editor-quick-add:focus-visible {
  border-color: #a8bda5;
  background: #f1f8ef;
  color: #263128;
}

.editor-quick-add span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.editor-block-list {
  display: grid;
  gap: 7px;
  padding-top: 16px;
}

.editor-insert-point {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15px;
  margin: -2px 0;
  opacity: 0.72;
  transition: opacity 160ms ease;
}

.editor-insert-point::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: #e8ece7;
  content: "";
}

.editor-block-list:hover .editor-insert-point,
.editor-insert-point:focus-within {
  opacity: 1;
}

.editor-insert-point button {
  position: relative;
  z-index: 1;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid #e1e7df;
  border-radius: 4px;
  background: #fff;
  color: #778078;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.editor-insert-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border: 1px solid #e6ebe4;
  border-radius: 5px;
  background: #fff;
}

.editor-insert-actions > span {
  padding: 0 3px;
  color: #9aa39b;
  font-size: 10px;
  font-weight: 700;
}

.editor-insert-actions button {
  min-height: 19px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #6b786c;
  font-size: 10px;
}

.editor-insert-actions button:hover,
.editor-insert-actions button:focus-visible {
  border: 0;
  background: #f1f8ef;
  color: #263128;
}

.editor-insert-point button:hover,
.editor-insert-point button:focus-visible {
  border-color: #aebfab;
  background: #f5f9f3;
  color: #263128;
}

.article-block {
  padding: 13px;
  border: 1px solid #e3e8e2;
  border-radius: 7px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.article-block:focus-within {
  border-color: #b8caaf;
  box-shadow: 0 0 0 3px rgba(108, 147, 102, 0.1);
}

.article-block.is-member {
  border-color: #d8e7cb;
  background: #fbfef8;
}

.article-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.article-block-type {
  color: #8a938b;
  font-size: 11px;
  font-weight: 800;
}

.article-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-access {
  display: grid;
  grid-template-columns: repeat(2, 43px);
  overflow: hidden;
  min-height: 28px;
  border: 1px solid #e0e5df;
  border-radius: 5px;
  background: #f5f7f4;
}

.article-access button {
  border: 0;
  background: transparent;
  color: #7d867e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.article-access button.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px #cbd4cb;
  color: #2c342e;
}

.article-block.is-member .article-access button[data-set-block-access="member"].is-active {
  background: #314536;
  box-shadow: 0 0 0 1px #314536;
  color: #fff;
}

.article-block-tools {
  display: flex;
  align-items: center;
  gap: 1px;
}

.article-block-tools button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 27px;
  border-radius: 4px;
  background: transparent;
  color: #879088;
  font-size: 14px;
  line-height: 1;
}

.article-block-tools button:hover,
.article-block-tools button:focus-visible {
  background: #eef2ed;
  color: #263128;
}

.article-block-tools button[data-delete-block]:hover,
.article-block-tools button[data-delete-block]:focus-visible {
  background: #fff0ef;
  color: #bd4c45;
}

.article-block textarea,
.article-heading-input,
.article-paragraph-heading-input,
.article-caption-input {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: 0;
  background: #fbfcfa;
  color: #3d4740;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease;
}

.article-block textarea {
  min-height: 66px;
  padding: 10px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
}

.article-heading-input {
  min-height: 43px;
  padding: 8px 10px;
  color: #1e251f;
  font-size: 17px;
  font-weight: 800;
}

.article-block[data-block-type="large-heading"] .article-heading-input {
  min-height: 48px;
  color: #182019;
  font-size: 20px;
}

.article-paragraph-heading-input {
  min-height: 35px;
  margin-bottom: 7px;
  padding: 7px 10px;
  color: #283229;
  font-size: 13px;
  font-weight: 800;
}

.article-paragraph-heading-input::placeholder {
  color: #a2aba3;
  font-weight: 600;
}

.article-caption-input {
  min-height: 35px;
  margin-top: 8px;
  padding: 7px 9px;
  color: #667068;
  font-size: 12px;
}

.article-block textarea:hover,
.article-heading-input:hover,
.article-paragraph-heading-input:hover,
.article-caption-input:hover,
.article-block textarea:focus,
.article-heading-input:focus,
.article-paragraph-heading-input:focus,
.article-caption-input:focus {
  border-color: #d4ddd4;
  background: #fff;
}

.article-image-picker {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, 340px);
  aspect-ratio: 16 / 6;
  border: 1px solid #e0e6df;
  border-radius: 5px;
  background: #f1f3ef;
  cursor: pointer;
}

.article-image-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image-picker img[hidden] {
  display: none;
}

.article-image-picker span {
  position: absolute;
}

.article-video-media {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
}

.article-video-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px dashed #cdd8cc;
  border-radius: 5px;
  background: #fbfcfa;
  color: #59645b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.article-video-picker:hover {
  border-color: #9fb49d;
  background: #f6faf4;
}

.article-video-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.article-video-picker-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 3px;
  background: #334536;
  color: #fff;
  font-size: 10px;
}

.article-video-preview {
  display: block;
  width: 100%;
  max-height: 290px;
  border: 1px solid #e1e7e0;
  border-radius: 5px;
  background: #202622;
}

.article-video-preview[hidden] {
  display: none;
}

.preview-video-block {
  display: grid;
  gap: 7px;
}

.preview-video-block video,
.preview-video-placeholder {
  display: block;
  width: 100%;
  min-height: 170px;
  border-radius: 5px;
  background: #202622;
}

.preview-video-placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  color: #d7dfd5;
  font-size: 12px;
  text-align: center;
}

.preview-video-caption {
  color: #6b756d;
  font-size: 12px;
  line-height: 1.65;
}

.preview-image-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #d6dfd4;
  border-radius: 5px;
  background: #f7faf6;
  color: #8b978d;
  font-size: 12px;
}

.preview-member-content .preview-video-placeholder {
  color: inherit;
}

.editor-preview-view {
  padding: 26px;
  background: #fafbf9;
}

.publisher-editor .front-preview {
  width: min(100%, 760px);
  min-height: 480px;
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(37, 51, 40, 0.06);
}

.publisher-editor .front-preview-header {
  padding: 25px 28px 20px;
}

.publisher-editor .front-preview-header h3 {
  font-size: 21px;
}

.publisher-editor .front-preview-content {
  padding: 28px;
}

.publisher-editor .preview-public-block {
  margin-bottom: 19px;
}

.publisher-editor .preview-public-block h4 {
  font-size: 18px;
}

.publisher-editor .preview-public-block .preview-large-heading {
  margin: 0 0 8px;
  color: #182019;
  font-size: 22px;
  line-height: 1.35;
}

.publisher-editor .preview-paragraph-block h4 {
  margin-bottom: 6px;
  color: #29342b;
  font-size: 15px;
  line-height: 1.45;
}

.publisher-editor .preview-public-block p,
.publisher-editor .preview-member-content p {
  font-size: 14px;
}

.publisher-editor .preview-member-section {
  min-height: 100px;
  margin-bottom: 19px;
}

@media (max-width: 980px) {
  .publisher-page {
    width: min(100% - 32px, 760px);
  }

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

  .course-settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-section {
    border-right: 1px solid #edf0ec;
    border-bottom: 0;
  }

  .course-section:last-child {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .publisher-page {
    width: min(100% - 28px, 560px);
    padding-top: 28px;
  }

  .publisher-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .publisher-topbar h1 {
    font-size: 31px;
  }

  .publisher-top-actions {
    width: 100%;
  }

  .publisher-save-status {
    flex: 1;
  }

  .course-settings {
    display: block;
  }

  .course-section {
    border-right: 0;
    border-bottom: 1px solid #edf0ec;
  }

  .editor-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }

  .editor-edit-view,
  .editor-preview-view {
    padding-inline: 15px;
  }

  .article-block-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-block-actions {
    width: 100%;
    justify-content: space-between;
  }

  .publisher-editor .front-preview-header,
  .publisher-editor .front-preview-content {
    padding-inline: 18px;
  }
}

/* Final homepage breakpoint corrections after the shared page rules. */
@media (max-width: 980px) {
  .tool-filter-area {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 20px;
  }

  .tool-mode-switch,
  .tool-chip-row,
  .tool-filter-search,
  .tool-filter-result {
    grid-column: auto;
    grid-row: auto;
  }

  .tool-chip-row {
    padding: 0;
  }

  .tool-filter-search {
    width: min(100%, 320px);
    justify-self: stretch;
  }

  .tool-filter-result {
    margin-top: -7px;
  }

  .tool-resource-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .tool-filter-search {
    width: 100%;
  }

  .tool-resource-list a {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 0;
  }

  .tool-resource-list a:hover {
    padding-inline: 0;
  }

  .tool-resource-list i {
    grid-column: 2;
  }
}

/* Final membership breakpoint correction. */
@media (max-width: 760px) {
  .tool-live-banner {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 30px 28px;
  }

  .tool-live-copy h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .tool-live-offer {
    padding: 24px 0 0;
    border-top: 1px solid #d0deca;
    border-left: 0;
  }

  .tool-live-cta {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tool-float {
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 44px;
    padding: 4px 13px 4px 6px;
  }
}

/* Public team section is fed by the manager's saved team list. */
.tool-team-section {
  margin-top: 76px;
  padding: 44px 0 6px;
  border-top: 1px solid #d9ddd9;
}

.tool-team-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.tool-team-head > div > span {
  color: #6a9d58;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.tool-team-head h2 {
  margin-top: 11px;
  color: #1c241e;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  font-weight: 800;
}

.tool-team-head p {
  max-width: 350px;
  color: #768178;
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.tool-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.tool-team-member {
  display: grid;
  justify-items: center;
  min-height: 224px;
  padding: 28px 18px 23px;
  border: 1px solid #e0e6df;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.tool-team-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #f3f7f1;
  border-radius: 50%;
  background: #dcebd8;
  color: #568154;
  font-size: 30px;
  font-weight: 800;
}

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

.tool-team-member h3 {
  margin-top: 15px;
  color: #29322b;
  font-size: 16px;
  font-weight: 800;
}

.tool-team-member p,
.tool-team-member span {
  color: #728076;
  font-size: 12px;
}

.tool-team-member p {
  margin-top: 4px;
}

.tool-team-member span {
  margin-top: 2px;
  color: #a1aaa2;
  font-size: 11px;
}

/* Homepage membership and team: one calm offer followed by the people behind it. */
.tool-live-banner {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 54px;
  min-height: 0;
  margin-top: 56px;
  padding: 38px 44px;
  border: 1px solid #d8e1d5;
  border-radius: 12px;
  background: #f7faf5;
  box-shadow: 0 18px 45px rgba(35, 57, 36, 0.06);
}

.tool-live-copy {
  min-width: 0;
}

.tool-live-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-live-logo {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 0 !important;
  padding: 0 !important;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d6e4d0;
  border-radius: 9px !important;
  background: #fff !important;
}

.tool-live-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-live-brand .tool-live-kicker {
  margin: 0;
}

.tool-live-copy h2 {
  max-width: 610px;
  margin-top: 20px;
  color: #192119;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
}

.tool-live-copy p {
  max-width: 500px;
  margin-top: 16px;
  color: #617062;
  font-size: 14px;
  line-height: 1.75;
}

.tool-live-offer {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 0 4px 36px;
  border-left: 1px solid #d8e4d4;
}

.tool-live-offer-top {
  align-items: baseline;
  justify-content: space-between;
}

.tool-live-offer-top > span {
  color: #233227 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.tool-live-offer-top small {
  color: #829080;
  font-size: 11px;
}

.tool-live-price {
  gap: 9px;
  margin-top: 14px;
}

.tool-live-price strong {
  color: #182019;
  font-size: clamp(56px, 6vw, 78px);
}

.tool-live-price span {
  color: #607060 !important;
  font-size: 14px !important;
}

.tool-live-cta {
  max-width: none;
  min-height: 48px !important;
  margin-top: 18px;
  border-radius: 6px !important;
  background: #182019 !important;
}

.tool-live-cta:hover {
  background: #557f4d !important;
}

.tool-team-section {
  margin-top: 68px;
  padding: 52px 0 16px;
  border-top: 1px solid #e1e6e0;
}

.tool-team-head {
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

.tool-team-head h2 {
  margin-top: 9px;
  color: #1d251f;
  font-size: clamp(30px, 4vw, 46px);
}

.tool-team-head p {
  max-width: 440px;
  color: #778278;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.tool-team-grid {
  max-width: 900px;
  margin: 38px auto 0;
  gap: 42px 22px;
}

.tool-team-member {
  min-height: 0;
  padding: 0 14px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-team-avatar {
  width: 88px;
  height: 88px;
  border: 3px solid #f1f5ef;
  box-shadow: 0 7px 18px rgba(35, 52, 37, 0.1);
}

.tool-team-member h3 {
  margin-top: 14px;
  color: #28312b;
  font-size: 15px;
}

.tool-team-member p,
.tool-team-member span {
  font-size: 11px;
}

.course-reading-gate-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-reading-gate-control input {
  width: 96px;
}

.course-reading-gate-control b {
  color: #59675d;
  font-size: 12px;
}

.course-reading-gate-field > small {
  color: #8a958c;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.course-global-gate-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid #dfe9dc;
  border-radius: 7px;
  background: #f7fbf5;
}

.course-global-gate-toggle {
  margin-top: 0;
}

.course-global-reveal-field {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid #e1e9df;
}

.course-global-reveal-field input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.article-page .lesson-article .article-global-gate {
  position: relative;
  display: block;
  min-height: 360px;
  margin: 54px 0 8px;
  padding: 32px 28px;
  border: 1px solid #85847d;
  border-radius: 10px;
  background: #111214;
  color: #fff;
  isolation: isolate;
}

.article-page .lesson-article .article-global-gate::before {
  display: none;
}

.article-progress-gate-inner {
  display: grid;
  min-height: 294px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.article-progress-gate-kicker {
  color: #6a765f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.article-page .lesson-article .article-global-gate h2 {
  padding-left: 0;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
}

.article-page .lesson-article .article-global-gate h2::before {
  display: none;
}

.article-page .lesson-article .article-global-gate p {
  max-width: 430px;
  margin-top: 12px;
  color: #a9aaa5;
  font-size: 13px;
  line-height: 1.75;
}

.article-page .lesson-article .article-global-gate a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 16px 10px 19px;
  border-radius: 5px;
  background: #f4f1ea;
  color: #161718;
  font-size: 13px;
  font-weight: 800;
}

.article-page .lesson-article .article-global-gate a span {
  color: #161718;
  font-size: 18px;
  line-height: 1;
}

.checkout-brand-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border: 2px solid rgba(201, 255, 133, 0.35);
  border-radius: 9px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .tool-live-banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 26px;
  }

  .tool-live-offer {
    padding: 26px 0 0;
    border-top: 1px solid #d8e4d4;
    border-left: 0;
  }

  .tool-team-section {
    margin-top: 54px;
    padding-top: 42px;
  }

  .article-global-gate {
    min-height: 330px;
    padding: 24px 18px;
  }
}

@media (max-width: 760px) {
  .tool-team-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .tool-team-head p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .tool-team-grid {
    grid-template-columns: 1fr;
  }
}

/* Course metadata: tags are maintained once for the whole article. */
.course-tags-editor {
  min-width: 0;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 5px 8px 5px 10px;
  border: 1px solid #d5e4d1;
  border-radius: 5px;
  background: #f3faef;
  color: #4b664c;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.course-tag:hover,
.course-tag:focus-visible {
  border-color: #9dbc93;
  background: #e8f6e3;
  color: #263b2a;
}

.course-tag i {
  color: #799376;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 0.7;
}

.course-tags-empty {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  color: #9aa49b;
  font-size: 11px;
}

.course-tags-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.course-tags-input-row input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  outline: 0;
  background: #fbfcfa;
  color: #2c332e;
  font: inherit;
  font-size: 12px;
}

.course-tags-input-row input:focus {
  border-color: #9db59d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 158, 107, 0.1);
}

.course-tags-input-row button {
  min-width: 45px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #cbdac8;
  border-radius: 5px;
  background: #f1f8ef;
  color: #456843;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.course-tags-input-row button:hover,
.course-tags-input-row button:focus-visible {
  border-color: #91ae8c;
  background: #e7f3e4;
  color: #263128;
}

.course-tags-hint {
  min-height: 15px;
  margin: 6px 0 0;
  color: #8b968d;
  font-size: 10px;
  line-height: 1.4;
}

.course-tags-hint[data-state="error"] {
  color: #b34e48;
}

.course-tags-hint[data-state="saved"] {
  color: #5b824f;
}

.front-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.front-preview-header .front-preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #e0e8de;
  border-radius: 4px;
  background: #f6faf4;
  color: #607460;
  font-size: 10px;
  font-weight: 700;
}

/* Payment page refresh: a clear offer panel with a focused checkout area. */
.pay-body {
  min-height: 100svh;
  background: #eef2ed;
}

.pay-page {
  min-height: 100svh;
  padding: clamp(18px, 5vw, 64px) 20px;
  background: #eef2ed;
}

.pay-shell {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr);
  gap: 0;
  width: min(100%, 980px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #172019;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 48, 28, 0.16);
}

.pay-close {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #dce2dc;
  background: rgba(255, 255, 255, 0.92);
  color: #637066;
  font-size: 23px;
}

.pay-copy {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: 42px 54px 48px;
  background: #fff;
}

.pay-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 34px;
}

.pay-copy .brand {
  gap: 10px;
}

.pay-copy .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.pay-copy .brand strong {
  font-size: 23px;
  font-weight: 750;
}

.pay-copy .brand small {
  display: block;
  margin-top: 3px;
  color: #849087;
  font-size: 11px;
}

.pay-entry-tag {
  color: #6b786e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pay-content {
  margin-top: auto;
  padding-top: 76px;
}

.pay-eyebrow {
  color: #3b56ee;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pay-copy h1 {
  max-width: 100%;
  margin-top: 13px;
  color: #111;
  font-size: clamp(42px, 5.5vw, 64px);
  line-height: 1.08;
  font-weight: 850;
  white-space: nowrap;
}

.pay-copy .pay-intro {
  max-width: 480px;
  margin-top: 18px;
  color: #68736b;
  font-size: 14px;
  line-height: 1.75;
}

.pay-list {
  gap: 0;
  max-width: 480px;
  margin-top: 30px;
}

.pay-benefit {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #e2e7e2;
}

.pay-benefit:last-child {
  border-bottom: 1px solid #e2e7e2;
}

.pay-benefit > b {
  color: #6ba45a;
  font-size: 11px;
  font-weight: 850;
}

.pay-benefit > span {
  display: grid;
  gap: 3px;
}

.pay-benefit strong {
  color: #202821;
  font-size: 14px;
  font-weight: 800;
}

.pay-benefit small {
  color: #7d8880;
  font-size: 12px;
}

.checkout-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 42px 32px 34px;
  border-radius: 0;
  background: #172019;
  color: #fff;
}

.checkout-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-label {
  display: block;
  color: #c9ff85;
  font-size: 12px;
  font-weight: 850;
}

.checkout-card-head strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
  font-weight: 750;
}

.checkout-badge {
  padding: 5px 8px;
  border: 1px solid rgba(201, 255, 133, 0.48);
  border-radius: 4px;
  color: #c9ff85;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-price {
  margin-top: 58px;
}

.checkout-price > small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.checkout-price-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.checkout-price-value strong {
  color: #fff;
  font-size: clamp(58px, 7vw, 80px);
  line-height: 0.95;
  font-weight: 850;
}

.checkout-price-value span {
  color: #c9ff85;
  font-size: 14px;
  font-weight: 750;
}

.checkout-divider {
  margin: 24px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.qr-card {
  margin-top: 0;
  padding: 12px;
  border-radius: 9px;
  background: #fff;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.qr-copy {
  display: grid;
  gap: 3px;
  padding: 11px 2px 2px;
}

.qr-copy strong {
  color: #202821;
  font-size: 13px;
  font-weight: 850;
}

.qr-copy span {
  color: #7d8880;
  font-size: 11px;
}

.checkout-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  text-align: left;
}

@media (max-width: 760px) {
  .pay-page {
    place-items: start center;
    padding: 14px;
  }

  .pay-shell {
    grid-template-columns: 1fr;
  }

  .pay-copy {
    min-height: 0;
    padding: 30px 25px 34px;
  }

  .pay-copy-top {
    padding-right: 34px;
  }

  .pay-content {
    margin-top: 0;
    padding-top: 52px;
  }

  .pay-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
    white-space: normal;
  }

  .checkout-card {
    padding: 28px 25px 30px;
  }

  .checkout-price {
    margin-top: 32px;
  }

  .qr-card {
    display: grid;
    grid-template-columns: minmax(140px, 0.76fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .qr-copy {
    padding: 0;
  }
}

@media (max-width: 420px) {
  .pay-copy-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pay-copy .brand small {
    display: none;
  }

  .pay-content {
    padding-top: 42px;
  }

  .qr-card {
    display: block;
  }

  .qr-copy {
    padding-top: 11px;
  }
}

/* Public page polish: keep the catalog and article pages in one visual system. */
.site-header:not(.tool-site-header) .site-nav a {
  position: relative;
  color: #3c443e;
}

.site-header:not(.tool-site-header) .site-nav a:not(.nav-pill)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #8bdc4d;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header:not(.tool-site-header) .site-nav a:hover::after,
.site-header:not(.tool-site-header) .site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header:not(.tool-site-header) .site-nav .nav-pill {
  background: #b6fa68;
  box-shadow: 0 8px 18px rgba(112, 173, 65, 0.16);
}

.catalog-body {
  background: #f4f7f3;
}

.catalog-body .site-header,
.article-page .site-header {
  border-bottom-color: #dfe7df;
  background: rgba(255, 255, 255, 0.94);
}

.catalog-page {
  width: min(100%, 1220px);
  padding: 48px 20px 96px;
}

.catalog-hero {
  padding: 20px 0 34px;
  border-bottom-color: #dce5dc;
}

.catalog-kicker {
  color: #6d9c60;
  font-size: 12px;
  font-weight: 850;
}

.catalog-hero h1 {
  margin-top: 12px;
  color: #111612;
  font-size: clamp(70px, 10vw, 116px);
  font-weight: 850;
  line-height: 0.88;
}

.catalog-lede {
  max-width: 630px;
  margin-top: 24px;
  color: #68736b;
  font-size: 16px;
  line-height: 1.75;
}

.catalog-meta {
  margin-top: 24px;
}

.catalog-meta span,
.catalog-meta a {
  border-color: #dce5dc;
  background: rgba(255, 255, 255, 0.72);
  color: #5d685f;
  font-size: 13px;
}

.catalog-meta a {
  border-color: transparent;
  background: #b6fa68;
  color: #172019;
}

.catalog-tools {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 190px;
  gap: 22px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #dfe8df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(52, 77, 52, 0.05);
}

.catalog-filter-group {
  display: grid;
  gap: 9px;
}

.catalog-filter-group > span {
  color: #8a958c;
  font-size: 11px;
  font-weight: 850;
}

.catalog-filter-group .filter-row {
  gap: 7px;
}

.catalog-filter-group .filter-row button {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #e1e9e1;
  background: #f8faf8;
  color: #677168;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.catalog-filter-group .filter-row button:hover {
  border-color: #b9d4b2;
  background: #f0f8ed;
  color: #263328;
}

.catalog-filter-group .filter-row button.is-active {
  border-color: transparent;
  background: #b6fa68;
  color: #172019;
}

.catalog-tools .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  min-height: 34px;
  padding: 7px 13px;
  border-color: #e1e9e1;
  background: #f8faf8;
  color: #9aa39b;
  font-size: 12px;
}

.catalog-tools .search-box span {
  color: #647469;
  font-size: 18px;
  line-height: 1;
}

.catalog-tools .search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #49544c;
  font: inherit;
  font-size: 12px;
}

.catalog-tools .search-box input::placeholder {
  color: #9aa39b;
}

.catalog-grid-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 18px;
}

.catalog-grid-head > div > span {
  color: #6d9c60;
  font-size: 11px;
  font-weight: 850;
}

.catalog-grid-head h2 {
  margin-top: 7px;
  color: #1a211b;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.catalog-grid-head p {
  color: #8a958c;
  font-size: 12px;
}

.catalog-grid {
  gap: 16px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-color: #dce6dc;
  border-radius: 9px;
  box-shadow: 0 9px 24px rgba(47, 75, 46, 0.05);
}

.catalog-card:hover {
  border-color: #afd39f;
  box-shadow: 0 18px 34px rgba(47, 75, 46, 0.11);
}

.catalog-card > img {
  aspect-ratio: 16 / 10;
}

.catalog-card > div {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  padding: 16px;
}

.catalog-card-label {
  color: #6c9d60;
  font-size: 11px;
  font-weight: 850;
}

.catalog-card h2 {
  min-height: 48px;
  margin-top: 9px;
  color: #1c241e;
  font-size: 17px;
  line-height: 1.4;
}

.catalog-card p {
  min-height: 44px;
  margin-top: 8px;
  color: #778178;
  font-size: 12px;
  line-height: 1.65;
}

.catalog-card .tool-strip {
  min-height: 42px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf1ed;
}

.catalog-card .tool-strip a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.catalog-card .tool-strip img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.catalog-empty {
  padding: 54px 20px;
  border: 1px dashed #cddbcf;
  border-radius: 9px;
  color: #7d8a80;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: center;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin-top: 34px;
}

.catalog-pagination button {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #dce6dc;
  border-radius: 7px;
  background: #fff;
  color: #657168;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.catalog-pagination button:hover:not(:disabled) {
  border-color: #a9ce9e;
  background: #f1f9ed;
  color: #315036;
}

.catalog-pagination button.is-active {
  border-color: transparent;
  background: #b6fa68;
  color: #172019;
}

.catalog-pagination-ellipsis {
  display: inline-grid;
  width: 20px;
  height: 36px;
  place-items: center;
  color: #8a958c;
  font-size: 13px;
}

.catalog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.catalog-pagination button[aria-label="上一页"],
.catalog-pagination button[aria-label="下一页"] {
  padding-inline: 13px;
}

.article-page {
  background: #f4f7f3;
}

.article-page .lesson-shell {
  width: min(calc(100% - 48px), 1280px);
  padding-top: 28px;
}

.article-page .detail-head {
  padding: 12px 0 30px;
  border-bottom: 1px solid #dce5dc;
  text-align: left;
}

.article-page .crumbs {
  margin-bottom: 28px;
  color: #6d786f;
}

.article-page .crumbs a:hover {
  color: #4b8c40;
}

.article-page .detail-head h1 {
  max-width: 920px;
  color: #151b16;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 850;
  line-height: 1.16;
}

.article-page .detail-meta {
  justify-content: flex-start;
  margin-top: 17px;
  color: #6b756d;
}

.article-page .detail-meta i {
  background: #bdc9be;
}

.article-page .detail-tags {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}

.article-page .detail-tags span {
  border: 1px solid #dfe8df;
  border-radius: 999px;
  background: #fff;
  color: #6d786f;
}

.article-page .lesson-page {
  grid-template-columns: 238px minmax(0, 1fr) 238px;
  gap: 34px;
  padding-top: 34px;
}

.article-page .lesson-left {
  top: 94px;
  gap: 14px;
}

.article-page .lesson-toc {
  gap: 3px;
  padding: 17px 13px 20px;
  border: 1px solid #dfe8df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(47, 75, 46, 0.05);
}

.article-page .lesson-toc strong {
  margin-bottom: 8px;
  padding: 0 7px 12px;
  border-bottom: 1px solid #edf1ed;
  color: #29332c;
  font-size: 14px;
  font-weight: 800;
}

.article-page .lesson-toc a {
  min-height: 31px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #748077;
  font-size: 11px;
}

.article-page .lesson-toc a:hover {
  background: #f2f8ef;
  color: #355136;
}

.article-page .lesson-toc a.is-active {
  background: #b6fa68;
  color: #172019;
  font-weight: 800;
}

.article-page .toc-tools {
  padding: 14px 7px 0;
  border-top: 1px solid #edf1ed;
}

.article-page .toc-unlock,
.article-page .toc-lazy {
  min-height: 44px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.article-page .toc-unlock {
  background: #172019;
}

.article-page .toc-lazy {
  margin-top: -4px;
  background: #b6fa68;
}

.article-page .lesson-article {
  padding: 34px 42px 60px;
  border: 1px solid #dfe8df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(47, 75, 46, 0.05);
  color: #59635b;
  font-size: 15px;
  line-height: 1.9;
}

.article-page .lesson-article > p {
  margin: 18px 0;
}

.article-page .quote-card {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #dbead5;
  border-left: 4px solid #94dc52;
  border-radius: 0 8px 8px 0;
  background: #f5faef;
}

.article-page .quote-card p {
  color: #4a9242;
  font-size: 17px;
  line-height: 1.72;
}

.article-page .article-note {
  color: #589b49;
  font-size: 14px;
}

.article-page .video-block {
  margin: 24px 0 30px;
  border: 1px solid #27332a;
  border-radius: 9px;
  box-shadow: 0 12px 25px rgba(19, 32, 21, 0.12);
}

.article-page .lesson-article section {
  margin-top: 46px;
  padding-top: 12px;
  border-top: 1px solid #edf1ed;
}

.article-page .lesson-article h2 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 15px;
  color: #1c241e;
  font-size: 21px;
  font-weight: 850;
}

.article-page .lesson-article h2::before {
  position: absolute;
  top: 0.25em;
  bottom: 0.25em;
  left: 0;
  width: 4px;
  border-radius: 3px;
  background: #a6ec63;
  content: "";
}

.article-page .lesson-article section img {
  border-color: #dfe8df;
  box-shadow: 0 8px 20px rgba(47, 75, 46, 0.07);
}

.article-page .locked-inline {
  border-color: #cfe5c7;
  background: #f7fcf4;
  box-shadow: 0 8px 20px rgba(75, 121, 66, 0.06);
}

.article-page .locked-inline a {
  background: rgba(247, 252, 244, 0.7);
  color: #2a382c;
  font-size: 17px;
}

.article-page .lesson-side {
  gap: 14px;
}

.article-page .latest-card,
.article-page .side-qr {
  border: 1px solid #dfe8df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(47, 75, 46, 0.05);
}

.article-page .latest-card {
  padding: 16px 13px 18px;
}

.article-page .latest-card h2 {
  margin-bottom: 14px;
  padding: 0 4px 12px;
  border-bottom: 1px solid #edf1ed;
  color: #29332c;
  font-size: 14px;
  text-align: left;
}

.article-page .latest-card a {
  margin-top: 8px;
  border: 1px solid transparent;
  background: #f5f8f4;
  color: #68736b;
  font-size: 11px;
}

.article-page .latest-card a:hover {
  border-color: #d8ead2;
  background: #f0f8ed;
  color: #38563a;
}

.article-page .side-comment {
  min-height: 44px;
  border: 1px solid #172019;
  border-radius: 8px;
  background: #172019;
  font-size: 12px;
}

.article-page .side-qr {
  padding: 15px;
}

.article-page .side-qr p {
  color: #6c786f;
}

.article-page .comments-block {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid #edf1ed;
}

.article-page .comments-block h2 {
  padding-left: 0;
  border: 0;
}

.article-page .comments-block h2::before {
  display: none;
}

.article-page .comments-block p {
  border: 1px solid #e6eee5;
  background: #f7faf6;
}

@media (max-width: 980px) {
  .catalog-tools {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-filter-group:nth-child(2) {
    grid-column: 1 / -1;
  }

  .catalog-tools .search-box {
    width: min(100%, 230px);
  }

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

  .article-page .lesson-page {
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 20px;
  }

  .article-page .lesson-article {
    padding-inline: 28px;
  }
}

@media (max-width: 760px) {
  .catalog-page {
    padding: 34px 16px 76px;
  }

  .catalog-hero h1 {
    font-size: clamp(68px, 20vw, 96px);
  }

  .catalog-lede {
    font-size: 14px;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .catalog-filter-group:nth-child(2) {
    grid-column: auto;
  }

  .catalog-tools .search-box {
    width: 100%;
  }

  .catalog-grid-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
  }

  .catalog-pagination {
    margin-top: 28px;
  }

  .article-page .lesson-shell {
    width: min(100%, 680px);
    padding: 24px 16px 70px;
  }

  .article-page .detail-head {
    padding-bottom: 24px;
  }

  .article-page .detail-head h1 {
    font-size: clamp(30px, 8vw, 46px);
  }

  .article-page .detail-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .article-page .lesson-page {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }

  .article-page .lesson-left {
    position: static;
  }

  .article-page .lesson-article {
    padding: 25px 20px 44px;
  }

  .article-page .quote-card p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-group {
    gap: 8px;
  }

  .catalog-filter-group .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .catalog-filter-group .filter-row::-webkit-scrollbar {
    display: none;
  }

  .catalog-filter-group .filter-row button {
    flex: 0 0 auto;
  }

  .article-page .crumbs {
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12px;
  }

  .article-page .detail-tags span {
    font-size: 11px;
  }

}
