:root {
  --forest: #174432;
  --deep: #102d22;
  --moss: #507761;
  --leaf: #87aa75;
  --sun: #e9bf77;
  --water: #6c9baa;
  --berry: #a4616c;
  --ink: #1d2922;
  --muted: #69766f;
  --line: rgba(47, 76, 61, 0.13);
  --surface: #ffffff;
  --soft: #f3f6f1;
  --panel: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px rgba(22, 58, 41, 0.15);
  --shadow-soft: 0 12px 32px rgba(22, 58, 41, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 3%, rgba(202, 224, 191, 0.68), transparent 27rem),
    radial-gradient(circle at 88% 19%, rgba(194, 223, 228, 0.48), transparent 28rem),
    linear-gradient(180deg, #f8fbf6 0, var(--soft) 42%, #fff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 251, 246, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(39, 74, 53, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.footer-admin-link {
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-toggle {
  min-width: 48px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(16, 56, 37, 0.06);
  backdrop-filter: blur(18px) saturate(160%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(16, 56, 37, 0.09);
}

.brand,
.nav a,
.hero-actions a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 68, 50, 0.16);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--forest);
  font-size: 16px;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--moss);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 11px;
  background: linear-gradient(145deg, #376f55, var(--forest));
  color: #fff;
  box-shadow: 0 7px 16px rgba(23, 68, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

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

.hero {
  min-height: 660px;
  display: flex;
  align-items: end;
  padding: 134px clamp(20px, 6vw, 96px) 82px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 34, 25, 0.84), rgba(13, 43, 32, 0.54), rgba(13, 43, 32, 0.08)),
    linear-gradient(0deg, rgba(9, 34, 25, 0.46), transparent 56%),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-content {
  width: min(720px, 100%);
  animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 26px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(135%);
}

.hero-actions,
.filters,
.card-actions,
.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.filter,
.glass-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 720;
  box-shadow: 0 10px 24px rgba(18, 50, 36, 0.08);
  backdrop-filter: blur(22px) saturate(135%);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.secondary-button,
.ghost-button,
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 82, 59, 0.76);
  color: #fff;
  border-color: rgba(219, 239, 210, 0.22);
  box-shadow: 0 10px 24px rgba(15, 57, 39, 0.12);
}

.primary-button:hover:not(:disabled) {
  background: rgba(30, 82, 59, 0.86);
  box-shadow: 0 12px 26px rgba(18, 50, 36, 0.1);
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.glass-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(18, 50, 36, 0.08);
}

.filter:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 26px rgba(18, 50, 36, 0.08);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.filter:active:not(:disabled),
.glass-button:active:not(:disabled) {
  box-shadow: 0 8px 18px rgba(18, 50, 36, 0.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 250, 243, 0.54);
  color: var(--forest);
  border-color: rgba(255, 255, 255, 0.72);
}

.ghost-button,
.filter {
  background: rgba(255, 255, 255, 0.28);
  color: var(--forest);
  border-color: rgba(255, 255, 255, 0.62);
}

.filter.active {
  background: rgba(23, 68, 50, 0.74);
  color: #fff;
  border-color: var(--forest);
}

.full {
  width: 100%;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.glass-button:focus-visible,
.filter:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(76, 137, 94, 0.32);
  outline-offset: 3px;
}

.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
}

.subpage-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.subpage-nav a:hover,
.subpage-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.42);
  color: var(--forest);
}

.local-preview-hint {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(390px, calc(100vw - 36px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(245, 250, 243, 0.88);
  box-shadow: 0 18px 45px rgba(21, 62, 42, 0.16);
  backdrop-filter: blur(24px) saturate(125%);
}

.local-preview-hint strong {
  display: block;
  color: var(--forest);
  font-size: 15px;
}

.local-preview-hint p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.local-preview-hint button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(38, 88, 60, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.quiet-admin-link {
  display: none;
  margin-top: 18px;
  color: rgba(65, 96, 78, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.quiet-admin-link:hover {
  color: var(--forest);
}

.quiet-admin-link.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.quiet-admin-link span {
  transition: transform 0.2s ease;
}

.quiet-admin-link:hover span {
  transform: translateX(3px);
}

.admin-section[hidden] {
  display: none;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: -30px clamp(18px, 5vw, 72px) 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(135%);
}

.stats-band div {
  padding: 28px clamp(18px, 3vw, 56px);
  background: transparent;
  border-right: 1px solid var(--line);
}

.stats-band strong {
  display: block;
  color: var(--forest);
  font-size: 34px;
}

.stats-band span {
  color: var(--muted);
}

.section,
.learn-band {
  padding: 100px clamp(18px, 5vw, 72px);
}

.learn-band {
  background: rgba(255, 255, 255, 0.52);
}

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

.section-subtitle {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.case-library {
  padding: 100px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 26%, rgba(197, 224, 230, 0.58), transparent 25rem),
    rgba(241, 247, 239, 0.7);
}

.case-count {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: var(--glass);
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.case-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 150px auto auto;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(135%);
}

.case-search .primary-button,
.case-search .secondary-button {
  min-height: 46px;
}

.case-result-info {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.search-field input {
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-field input:focus {
  box-shadow: none;
}

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

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 24px;
  align-items: start;
}

.case-results {
  display: grid;
  gap: 16px;
}

.case-card,
.case-empty,
.case-publish-panel {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(135%);
}

.case-card,
.case-empty {
  padding: 24px;
}

.case-card-topline,
.case-card footer,
.case-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.case-card-topline {
  justify-content: space-between;
}

.case-card h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.case-summary {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.case-date,
.case-card footer {
  color: var(--muted);
  font-size: 13px;
}

.case-tags {
  margin-bottom: 16px;
}

.case-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(226, 238, 226, 0.76);
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}

.case-detail {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-detail summary {
  color: var(--forest);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.case-detail p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

.case-card footer {
  justify-content: space-between;
  margin-top: 18px;
}

.case-card-actions { display: flex; align-items: center; gap: 10px; }
.case-cite-button,
.case-delete-button { border: 0; background: transparent; cursor: pointer; font: inherit; }
.case-cite-button { color: var(--moss); }
.case-cite-button:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

.case-publish-panel {
  position: sticky;
  top: 84px;
  padding: 24px;
}

.case-publish-panel h3 {
  margin-bottom: 8px;
}

.case-publish-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.case-draft-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 13px; padding: 9px 10px; border: 1px solid rgba(80, 117, 84, .12); border-radius: 10px; background: rgba(245, 249, 243, .72); }
.case-draft-row span { color: #728176; font-size: 11px; line-height: 1.5; }
.case-draft-row button { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #7b6955; font: 11px inherit; cursor: pointer; }
.case-draft-row button:hover { color: #5a4738; text-decoration: underline; text-underline-offset: 3px; }

.course-card,
.admin-card,
.login-panel,
.lesson-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
}

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  box-shadow: 0 18px 36px rgba(22, 58, 41, 0.1);
}

.course-card img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  display: block;
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.course-body h3 {
  margin-top: 16px;
}

.meta-row,
.price-row,
.account-chip,
.permission-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.permission-pill,
.account-chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(230, 240, 230, 0.74);
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.tag:nth-child(2) {
  background: rgba(231, 242, 245, 0.8);
  color: #245d69;
}

.tag:nth-child(3) {
  background: rgba(255, 243, 218, 0.82);
  color: #7d5420;
}

.course-body p,
.login-panel p,
.admin-card p,
.lesson-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-row {
  margin-top: auto;
  justify-content: space-between;
  padding-top: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--forest);
  font-size: 24px;
  font-weight: 850;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 22px;
  align-items: start;
}

.login-panel,
.admin-card,
.lesson-card {
  padding: 24px;
}

.login-panel {
  position: sticky;
  top: 84px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--forest);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 1px rgba(42, 74, 57, 0.04);
  backdrop-filter: blur(12px);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--water);
  box-shadow: 0 0 0 4px rgba(94, 151, 166, 0.15);
}

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

.lesson-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eee9;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--leaf);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-section {
  background: linear-gradient(180deg, rgba(227, 239, 226, 0.62) 0, rgba(255, 255, 255, 0.84) 100%);
}

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

.hint {
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--forest);
  background: #f7faf6;
}

.mini-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: var(--glass);
  color: var(--forest);
  cursor: pointer;
  font-weight: 750;
  margin: 2px;
  padding: 0 10px;
}

dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

dialog::backdrop {
  background: rgba(9, 24, 18, 0.55);
}

.checkout {
  position: relative;
  padding: 28px;
}

dialog {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(247, 251, 246, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: var(--glass);
  cursor: pointer;
}

.pay-box {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(229, 239, 228, 0.62);
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin: 20px 0 10px;
}

.payment-method {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(74, 105, 81, 0.18);
  border-radius: 16px;
  background: rgba(240, 247, 240, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.payment-method small,
.payment-notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.payment-method.is-selected {
  border-color: rgba(43, 111, 72, 0.58);
  background: rgba(218, 235, 217, 0.72);
}

.payment-method:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.payment-notice {
  min-height: 18px;
  margin: 0 0 18px;
}

.landing-page,
.portal-page,
.function-page,
.access-page {
  min-height: 100vh;
  background: #f5f7f2;
}

.landing-main {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 42px 22px;
  background: linear-gradient(135deg, #eff5e9 0%, #f8faf6 55%, #e8f0e4 100%);
}

.landing-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(58px, 11vh, 120px);
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.landing-brand img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.landing-brand small { color: var(--moss); font-weight: 500; }

.landing-content h1 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(52px, 8vw, 104px);
  letter-spacing: -.075em;
  line-height: .97;
}

.landing-description {
  max-width: 520px;
  margin: 28px auto 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.landing-enter {
  min-width: 196px;
  justify-content: center;
  padding: 16px 24px;
}

.landing-footnote {
  position: absolute;
  right: 30px;
  bottom: 23px;
  color: rgba(57, 93, 64, .54);
  font-size: 11px;
  letter-spacing: .09em;
}

.landing-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .72; }
.landing-orb-one { top: -15vw; left: -12vw; width: 43vw; height: 43vw; background: radial-gradient(circle at 65% 65%, rgba(151, 190, 105, .55), transparent 68%); }
.landing-orb-two { right: -15vw; bottom: -18vw; width: 52vw; height: 52vw; background: radial-gradient(circle at 35% 35%, rgba(198, 218, 176, .85), transparent 66%); }

.portal-topbar { background: rgba(245, 247, 242, .76); }

.portal-hero,
.function-hero {
  padding: clamp(88px, 12vw, 150px) max(22px, calc((100vw - 1140px) / 2)) 65px;
  background: radial-gradient(circle at 80% 0%, rgba(188, 219, 157, .45), transparent 28%), linear-gradient(145deg, #eaf2e4, #f7faf5 65%);
}

.portal-hero h1,
.function-hero h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  color: var(--forest);
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -.07em;
  line-height: .98;
}

.portal-hero > p:not(.eyebrow),
.function-hero > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.portal-continuity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  width: min(1140px, calc(100% - 40px));
  margin: -32px auto 14px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  background: rgba(249, 251, 248, .72);
  box-shadow: 0 16px 34px rgba(41, 68, 47, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
}

.portal-continuity .eyebrow { margin: 0; }
.portal-continuity h2 { margin: 6px 0 7px; color: var(--forest); font-size: clamp(23px, 3vw, 31px); letter-spacing: -.045em; }
.portal-continuity p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.portal-continuity-action { display: grid; justify-items: end; gap: 10px; text-align: right; }
.portal-continuity-action span { color: var(--moss); font-size: 11px; font-weight: 700; }
.portal-continuity-action .primary-button { min-width: 156px; justify-content: center; text-decoration: none; }
.portal-continuity-action i { margin-left: 5px; font-size: 17px; font-style: normal; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(1140px, calc(100% - 40px));
  margin: 14px auto 60px;
}

.portal-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 25px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 18px 42px rgba(42, 70, 46, .08);
  color: var(--ink);
  text-decoration: none;
  transition: transform .24s ease, background .24s ease;
}

.portal-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .86); }
.portal-card span { color: var(--moss); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.portal-card h2 { margin: auto 0 9px; color: var(--forest); font-size: 29px; letter-spacing: -.045em; }
.portal-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.portal-card strong { margin-top: 24px; color: var(--forest); font-size: 14px; }
.portal-card i { padding-left: 6px; font-size: 18px; font-style: normal; }
.portal-card-large { grid-column: span 2; min-height: 340px; background: linear-gradient(135deg, rgba(219, 235, 210, .85), rgba(255, 255, 255, .64)); }
.portal-card-feature { background: linear-gradient(145deg, rgba(230, 239, 220, .82), rgba(255,255,255,.7)); }
.portal-card-quiet { background: rgba(247, 249, 245, .7); }

.portal-footer { display: flex; justify-content: space-between; width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 28px; color: var(--muted); font-size: 12px; }
.portal-footer a { color: rgba(78, 97, 76, .45); text-decoration: none; }
.portal-footer a:hover { color: var(--moss); }

.function-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0; }
.function-page .topbar { background: rgba(245, 247, 242, .78); }
.function-page .learn-band { border-radius: 28px; }

.access-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 82% 8%, rgba(192, 219, 171, .5), transparent 26%), #f5f7f2; }
.access-shell { display: grid; width: min(900px, 100%); grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.access-form { padding: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.66); box-shadow: 0 20px 60px rgba(32, 62, 40, .1); }
.access-form h1 { margin: 9px 0 10px; color: var(--forest); font-size: 34px; letter-spacing: -.045em; }
.access-form > p:not(.eyebrow):not(.admin-auth-error) { color: var(--muted); line-height: 1.7; }
.access-password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(62, 93, 67, .16); border-radius: 10px; background: rgba(255, 255, 255, .72); }
.access-password-field input { min-width: 0; border: 0; box-shadow: none; }
.access-password-field:focus-within { border-color: rgba(64, 111, 76, .5); box-shadow: 0 0 0 3px rgba(103, 144, 95, .12); }
.access-password-field button { margin: 7px; padding: 0 9px; border: 0; border-radius: 7px; background: rgba(230, 240, 225, .75); color: #41644b; font: 11px inherit; font-weight: 750; cursor: pointer; }
.access-caps-hint { margin: -10px 0 -4px; color: #986d2c; font-size: 12px; }
.access-security-note { margin: -9px 0 0; color: #7a897d; font-size: 11px; line-height: 1.6; }

@media (max-width: 760px) {
  .landing-content h1 { font-size: clamp(48px, 14vw, 76px); }
  .landing-footnote { right: auto; left: 22px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card-large { grid-column: auto; min-height: 280px; }
  .portal-hero, .function-hero { padding-top: 92px; }
  .portal-continuity { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .portal-continuity-action { justify-items: start; text-align: left; }
  .function-section { padding-block: 48px; }
  .access-shell { grid-template-columns: 1fr; gap: 28px; }
  .access-shell .landing-brand { margin: 0; }
}

.reader-page {
  min-width: 1120px;
  min-height: 100vh;
  overflow-x: auto;
  background: #eff2ed;
  color: #243a2e;
}

.reader-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(46, 79, 56, .13);
  background: rgba(248, 250, 247, .92);
  backdrop-filter: blur(16px);
}

.reader-brand,
.reader-pdf-link,
.reader-back-link {
  color: #315c43;
  font-size: 13px;
  text-decoration: none;
}

.reader-title { display: grid; justify-items: center; gap: 2px; }
.reader-title span { color: #839086; font-size: 11px; }
.reader-title strong { color: #244b37; font-size: 15px; font-weight: 700; }
.reader-topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.reader-save-status { color: #708076; font-size: 12px; }
.reader-pdf-link { padding: 7px 11px; border: 1px solid rgba(59, 90, 65, .18); border-radius: 9px; background: rgba(255,255,255,.7); }

.reader-layout {
  display: grid;
  grid-template-columns: 228px minmax(580px, 1fr) 268px;
  min-height: calc(100vh - 64px);
}

.reader-outline,
.reader-notes {
  padding: 28px 20px;
  background: rgba(247, 249, 246, .78);
}

.reader-outline { border-right: 1px solid rgba(45, 78, 56, .11); }
.reader-notes { border-left: 1px solid rgba(45, 78, 56, .11); }
.reader-outline h2,
.reader-notes h2 { margin: 5px 0 18px; color: #244b37; font-size: 18px; letter-spacing: -.03em; }
.reader-outline-list { display: grid; gap: 4px; }

.reader-outline-item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #53685b;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.reader-outline-item span { color: #99a89e; font-size: 10px; }
.reader-outline-item b { overflow: hidden; font-weight: inherit; text-overflow: ellipsis; white-space: nowrap; }
.reader-outline-item em { min-width: 18px; padding: 2px 5px; border-radius: 99px; background: rgba(94, 132, 74, .14); color: #567c49; font-size: 10px; font-style: normal; text-align: center; }
.reader-outline-item i { color: #b78934; font-size: 12px; font-style: normal; }
.reader-outline-item:hover { background: rgba(221, 235, 215, .48); }
.reader-outline-item.is-active { background: #dbead5; color: #214c35; font-weight: 700; }
.reader-outline-item.is-active span { color: #557c43; }
.reader-back-link { display: inline-block; margin-top: 26px; }

.reader-workspace { min-width: 0; padding: 24px clamp(26px, 4vw, 68px) 52px; }
.reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto 18px; }
.reader-page-controls,
.reader-tool-controls,
.reader-colors,
.reader-toolbar-end,
.reader-zoom-controls { display: flex; align-items: center; gap: 6px; }

.reader-page-controls button,
.reader-tool,
.reader-color {
  border: 1px solid rgba(48, 82, 59, .14);
  background: rgba(255, 255, 255, .76);
  color: #405747;
  font-family: inherit;
  cursor: pointer;
}

.reader-page-controls button { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
.reader-page-controls button:disabled { cursor: not-allowed; opacity: .35; }
.reader-page-controls span { min-width: 47px; color: #617268; font-size: 12px; text-align: center; }
.reader-reading-progress { min-width: 124px !important; color: #547346 !important; font-weight: 700; white-space: nowrap; }
.reader-tool { padding: 7px 9px; border-radius: 8px; font-size: 12px; }
.reader-tool:hover { background: #f6faf4; }
.reader-tool.is-active { border-color: #759a58; background: #dbead4; color: #315b3d; font-weight: 700; }
.reader-tool-danger { color: #986050; }
.reader-color { width: 19px; height: 19px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 3px rgba(255,255,255,.68); }
.reader-color.is-active { outline: 2px solid #466f50; outline-offset: 2px; }
.reader-zoom-controls { padding: 3px; border: 1px solid rgba(48, 82, 59, .14); border-radius: 8px; background: rgba(255,255,255,.68); }
.reader-zoom-controls button { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: #355945; font: 18px/1 inherit; cursor: pointer; }
.reader-zoom-controls button:disabled { cursor: not-allowed; opacity: .35; }
.reader-zoom-controls span { min-width: 39px; color: #627468; font-size: 11px; text-align: center; }

.reader-canvas-wrap { display: flex; min-height: 680px; justify-content: center; overflow: auto; padding: 4px; }
.reader-page-surface { position: relative; display: inline-block; max-width: none; box-shadow: 0 22px 46px rgba(39, 64, 46, .16); line-height: 0; }
.reader-page-surface img { display: block; width: var(--reader-page-width, 830px); max-width: none; height: auto; user-select: none; }
.reader-page-surface canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.reader-page-surface canvas.is-erasing { cursor: cell; }

.reader-note-popover {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 220px;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(89, 111, 74, .36);
  border-radius: 12px;
  background: #fffdf0;
  box-shadow: 0 12px 25px rgba(43, 61, 39, .2);
  line-height: normal;
}

.reader-note-popover textarea { width: 100%; min-height: 92px; resize: vertical; border: 0; background: transparent; color: #405343; font: 13px/1.55 inherit; outline: none; }
.reader-note-popover div { display: flex; justify-content: flex-end; gap: 6px; }
.reader-note-popover button { padding: 5px 8px; border: 0; border-radius: 6px; background: #e2eadb; color: #31553c; font: 12px inherit; cursor: pointer; }
.reader-note-popover button[type="submit"] { background: #5f804b; color: #fff; }

.reader-notes-description { margin: 0 0 18px; color: #687b6e; font-size: 12px; line-height: 1.7; }
.reader-note-search { display: grid; gap: 5px; margin: 0 0 14px; color: #718276; font-size: 10px; }
.reader-note-search input { width: 100%; padding: 8px 9px; border: 1px solid rgba(72, 105, 76, .16); border-radius: 8px; background: rgba(255, 255, 255, .68); color: #3d5142; font: 12px inherit; outline: none; }
.reader-note-search input:focus { border-color: #789667; box-shadow: 0 0 0 3px rgba(120, 150, 103, .12); }
.reader-notes-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-notes-heading h2 { margin-bottom: 18px; }
.reader-notes-heading > div { display: flex; align-items: center; gap: 5px; }
.reader-notes-heading button { margin-bottom: 18px; padding: 5px 8px; border: 1px solid rgba(61, 93, 69, .18); border-radius: 7px; background: rgba(255,255,255,.65); color: #45684c; font: 11px inherit; cursor: pointer; }
.reader-notes-list { display: grid; gap: 10px; }
.reader-notes-empty { color: #91a096; font-size: 12px; line-height: 1.8; }
.reader-annotation-summary { margin: -8px 0 14px; color: #738477; font-size: 11px; }
.reader-note-card { position: relative; padding: 12px 12px 10px 17px; border: 1px solid rgba(105, 134, 91, .18); border-radius: 10px; background: rgba(255, 255, 255, .68); }
.reader-note-card > span { position: absolute; top: 13px; left: 7px; width: 4px; height: calc(100% - 26px); border-radius: 8px; background: var(--note-color); }
.reader-note-card small { display: block; margin: 0 0 5px; color: #77897a; font-size: 10px; }
.reader-note-card p { margin: 0 0 8px; color: #3a4d40; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.reader-note-card div { display: flex; align-items: center; gap: 10px; }
.reader-note-card button { padding: 0; border: 0; background: transparent; color: #547b58; font: 11px inherit; cursor: pointer; }
.reader-note-card [data-delete-note] { color: #a06c5d; }
.reader-tip { margin-top: 26px; padding: 14px; border-radius: 12px; background: #e7efe3; }
.reader-tip strong { color: #315c42; font-size: 12px; }
.reader-tip p { margin: 7px 0 0; color: #607567; font-size: 12px; line-height: 1.6; }
.reader-toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 320px; padding: 11px 14px; border-radius: 10px; background: rgba(35, 67, 47, .92); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.reader-toast.is-visible { opacity: 1; transform: translateY(0); }
.reader-access-notice { align-self: start; grid-column: 2; margin: 86px auto; padding: 42px; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(43, 62, 44, .11); text-align: center; }
.reader-access-notice h1 { margin: 8px 0; color: #244b37; }
.reader-access-notice p { margin-bottom: 22px; color: #617267; }
.reader-note-editor { width: min(460px, calc(100vw - 42px)); padding: 0; border: 1px solid rgba(72, 99, 75, .18); border-radius: 18px; background: rgba(249, 252, 247, .98); box-shadow: 0 24px 60px rgba(32, 52, 39, .26); }
.reader-note-editor::backdrop { background: rgba(25, 47, 34, .32); backdrop-filter: blur(3px); }
.reader-note-editor form { display: grid; gap: 12px; padding: 24px; }
.reader-note-editor .eyebrow { margin: 0; }
.reader-note-editor h2 { margin: 0; color: #244b37; font-size: 22px; }
.reader-note-editor textarea { min-height: 150px; width: 100%; padding: 12px; border: 1px solid rgba(73, 104, 76, .2); border-radius: 10px; background: #fff; color: #38503e; font: 14px/1.65 inherit; outline: none; resize: vertical; }
.reader-note-editor textarea:focus { border-color: #6d965e; box-shadow: 0 0 0 3px rgba(109, 150, 94, .14); }
.reader-note-editor form > div { display: flex; justify-content: flex-end; gap: 8px; }
.reader-note-editor button { padding: 8px 12px; border: 1px solid rgba(67, 98, 70, .16); border-radius: 8px; background: #edf3ea; color: #3b6044; font: 12px inherit; cursor: pointer; }
.reader-note-editor button[type="submit"] { border-color: #5e814e; background: #5f804b; color: #fff; }
.is-reader-focus .reader-outline,
.is-reader-focus .reader-notes { display: none; }
.is-reader-focus .reader-layout { grid-template-columns: minmax(760px, 1fr); }
.is-reader-focus .reader-workspace { padding-inline: clamp(44px, 10vw, 180px); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(23, 68, 50, 0.88);
  color: #fff;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  transform: translateY(120px);
  opacity: 0;
  transition: 0.24s ease;
  z-index: 20;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .course-grid,
  .admin-grid,
  .learning-layout,
  .my-courses,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .login-panel {
    position: static;
  }

  .case-publish-panel {
    position: static;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: 18px;
  }

  .stats-band div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .ghost-button {
    width: 100%;
  }

  .subpage-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .subpage-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 42px;
  }

  .hero-actions,
  .hero-actions a,
  .filters,
  .filter,
  .card-actions,
  .card-actions button {
    width: 100%;
  }

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

  .case-search .primary-button,
  .case-search .secondary-button {
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .section,
  .learn-band {
    padding: 54px 18px;
  }

  .course-body,
  .login-panel,
  .admin-card,
  .lesson-card,
  .checkout {
    padding: 18px;
  }

  .card-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .card-title-row .secondary-button {
    width: 100%;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* Product-level refinements */
.admin-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

.admin-metrics div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--forest);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.admin-metrics .revenue-total {
  border-color: rgba(43, 105, 70, 0.24);
  background: linear-gradient(135deg, rgba(229, 244, 221, 0.94), rgba(255, 255, 255, 0.7));
}

.admin-metrics .revenue-total strong {
  color: #286146;
}

.admin-report-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -4px 0 24px; padding: 13px 15px; border: 1px solid rgba(76, 108, 78, .12); border-radius: 14px; background: rgba(248, 251, 247, .58); }
.admin-report-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-report-actions .secondary-button { flex: 0 0 auto; }
.admin-operation-alerts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: -7px 0 26px; }
.admin-operation-alerts article { padding: 16px 18px; border: 1px solid rgba(66, 105, 72, .12); border-radius: 16px; background: rgba(251, 253, 250, .64); }
.admin-operation-alerts span { display: block; color: var(--muted); font-size: 12px; }
.admin-operation-alerts strong { display: block; margin: 6px 0 4px; color: var(--forest); font-size: 24px; letter-spacing: -.03em; }
.admin-operation-alerts p { min-height: 19px; margin: 0; color: #6c7d70; font-size: 11px; line-height: 1.55; }

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

.course-upload-field input[type="file"] {
  padding: 8px;
  border: 1px dashed rgba(58, 103, 67, .25);
  border-radius: 10px;
  background: rgba(246, 250, 244, .72);
  color: var(--forest);
  font: inherit;
}

.course-upload-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.course-url-field {
  grid-column: span 2;
}

.course-description-field {
  grid-column: 1 / -1;
}

.table-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.danger-button {
  color: #8b3841;
  background: rgba(255, 245, 246, 0.72);
}
.nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.nav a {
  padding: 7px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  align-items: stretch;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
  width: 100%;
  max-width: 1240px;
  gap: 52px;
  align-items: end;
  margin: auto;
}

.hero-note {
  display: grid;
  gap: 12px;
  padding: 22px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 44px rgba(6, 31, 21, 0.18);
  backdrop-filter: blur(20px) saturate(135%);
  animation: rise-in 0.7s 0.13s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-note p,
.hero-note strong,
.hero-note span,
.hero-note a {
  margin: 0;
}

.hero-note p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.hero-note strong {
  color: #fff;
  font-size: 21px;
  line-height: 1.35;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-note a {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hero-note a span {
  font-size: 17px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #ecf3ea;
  color: var(--forest);
}

.intro-strip p {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: -0.02em;
}

.intro-strip strong {
  font-weight: 800;
}

.intro-strip a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.stats-band {
  margin: 0 clamp(18px, 5vw, 72px);
}

.section-heading {
  align-items: flex-end;
}

.case-heading {
  margin-bottom: 22px;
}

.case-card {
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.case-card:hover {
  box-shadow: 0 18px 34px rgba(22, 58, 41, 0.08);
}

.case-publish-panel form {
  margin-top: 20px;
}

.course-card img {
  transition: filter 0.3s ease;
}

.course-card:hover img {
  filter: saturate(0.94);
}

.course-body > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .course-form-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-note {
    max-width: 400px;
  }
}

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

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

  .admin-heading-actions {
    justify-content: flex-start;
  }

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

  .course-form-fields {
    grid-template-columns: 1fr;
  }

  .course-url-field,
  .course-description-field {
    grid-column: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    align-items: end;
  }

  .hero-note {
    display: none;
  }

  .intro-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Learning experience refinements */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(108, 155, 170, 0.72);
  outline-offset: 3px;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hero-text-link span {
  transition: transform 0.2s ease;
}

.hero-text-link:hover span {
  transform: translateY(3px);
}

.learning-path {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.7fr);
  gap: clamp(32px, 6vw, 88px);
  padding: 96px clamp(18px, 8vw, 130px);
  background: #fbfdf9;
}

.path-intro h2 {
  margin-bottom: 16px;
}

.path-intro > p:not(.eyebrow) {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.path-steps li {
  min-height: 218px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f2f7ef);
  box-shadow: 0 12px 32px rgba(22, 58, 41, 0.055);
}

.path-steps span {
  display: block;
  margin-bottom: 40px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.path-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 18px;
}

.path-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(135%);
}

.course-search-field input {
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.course-search-field input:focus {
  box-shadow: none;
}

.course-toolbar select {
  min-height: 46px;
}

.course-reset-button {
  min-height: 46px;
  white-space: nowrap;
}

.course-result-info {
  padding-right: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.course-detail-button {
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.course-detail-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-empty {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed rgba(79, 119, 97, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.course-empty h3 {
  margin: 14px 0 8px;
}

.course-empty p {
  max-width: 420px;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.7;
}

.learning-overview {
  display: grid;
  grid-template-columns: 140px 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(234, 244, 232, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.learning-overview div {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.learning-overview span,
.learning-overview p {
  color: var(--muted);
  font-size: 13px;
}

.learning-overview strong {
  display: block;
  margin-top: 4px;
  color: var(--forest);
  font-size: 25px;
}

.learning-overview p {
  margin: 0;
  line-height: 1.65;
}

.lesson-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
}

.case-delete-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8b3841;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.case-delete-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-dialog {
  position: relative;
  padding: 30px;
}

.course-dialog h3 {
  max-width: 390px;
  padding-right: 38px;
  margin-bottom: 14px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.dialog-course-meta,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dialog-course-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4eb;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.dialog-description {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.8;
}

.course-material-action span {
  margin-left: 3px;
  font-size: 13px;
}

.dialog-note,
.learning-session-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(231, 241, 229, 0.68);
  color: var(--forest);
  font-size: 14px;
  line-height: 1.65;
}

.learning-session-card {
  display: grid;
  gap: 9px;
}

.learning-session-card strong {
  font-size: 17px;
}

.learning-session-card p {
  margin: 0;
  color: var(--muted);
}

.dialog-actions {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
}

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

.site-footer .brand-copy strong,
.site-footer .brand-copy small {
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer > div {
  display: flex;
  gap: 18px;
}

.site-footer a:not(.brand) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: #fff;
}

.footer-admin-link {
  align-self: end;
  margin-top: 16px;
  padding: 7px 12px;
  border-color: rgba(69, 108, 80, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(45, 82, 58, 0.48);
  font-size: 11px;
  opacity: 0.74;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.footer-admin-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--forest);
  opacity: 1;
}

.admin-auth {
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  padding: 34px;
}

.admin-auth h3 {
  margin: 0;
  color: var(--forest);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.admin-auth > p:not(.eyebrow):not(.admin-auth-error) {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.admin-auth label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 760;
}

.admin-auth-error {
  min-height: 18px;
  margin: -8px 0 0;
  color: #b23b36;
  font-size: 13px;
}

.admin-page {
  min-height: 100vh;
  background: #f6f8f4;
}

.admin-main {
  padding-bottom: 96px;
}

.admin-hero {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 8vw, 130px) clamp(62px, 8vw, 100px);
  background:
    radial-gradient(circle at 76% 18%, rgba(177, 219, 124, 0.35), transparent 23%),
    linear-gradient(145deg, #0b2d20, #154d36 62%, #123a2b);
  color: #fff;
}

.admin-hero .eyebrow {
  color: rgba(221, 240, 198, 0.72);
}

.admin-hero h1 {
  max-width: 760px;
  margin: 16px 0 20px;
  color: #fff;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.07em;
}

.admin-hero > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgba(244, 251, 242, 0.74);
  font-size: 16px;
  line-height: 1.85;
}

.admin-page .admin-section {
  width: min(1360px, calc(100% - 36px));
  margin: -34px auto 0;
}

.booking-page {
  min-height: 100vh;
  background: #f7faf5;
}

.booking-hero {
  padding: clamp(76px, 11vw, 148px) clamp(18px, 10vw, 160px) clamp(64px, 8vw, 104px);
  background: radial-gradient(circle at 78% 15%, rgba(185, 222, 130, 0.48), transparent 24%), linear-gradient(142deg, #e2efda, #f9fcf7 64%);
}

.booking-hero h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  color: var(--forest);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.08em;
}

.booking-hero > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.therapist-showcase {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 108px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 10vw, 160px);
  background: #fff;
}

.therapist-jump-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 8vw, 130px);
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  background: radial-gradient(circle at 87% 18%, rgba(194, 228, 147, 0.24), transparent 25%), linear-gradient(130deg, #0d3123, #174d37 62%, #113c2b);
  box-shadow: 0 25px 56px rgba(13, 53, 35, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
}

.therapist-jump-card .eyebrow {
  color: rgba(229, 246, 210, 0.72);
}

.therapist-jump-card h2 {
  margin: 14px 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.therapist-jump-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: rgba(243, 250, 239, 0.72);
  line-height: 1.8;
}

.therapist-jump-card .glass-button {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.therapists-page {
  min-height: 100vh;
  background: #f7faf5;
}

.therapists-hero {
  padding: clamp(78px, 12vw, 158px) clamp(18px, 10vw, 160px) clamp(60px, 8vw, 105px);
  background: radial-gradient(circle at 78% 15%, rgba(182, 222, 130, 0.46), transparent 25%), linear-gradient(142deg, #e3efda, #f9fcf7 65%);
}

.therapists-hero h1 {
  max-width: 830px;
  margin: 14px 0 21px;
  color: var(--forest);
  font-size: clamp(46px, 7vw, 90px);
  line-height: 1.03;
  letter-spacing: -0.085em;
}

.therapists-hero > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.therapist-book-button {
  margin-top: 24px;
}

.therapist-photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 30px;
  background: var(--forest);
  box-shadow: 0 24px 46px rgba(20, 59, 40, 0.17);
}

.therapist-photo-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 37, 25, 0.48));
  content: "";
}

.therapist-photo-wrap img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.therapist-photo-wrap span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.therapist-profile-copy h2 {
  margin: 14px 0 18px;
  color: var(--forest);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.therapist-note {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.therapist-profile-card {
  padding: 26px;
  border: 1px solid rgba(50, 105, 72, 0.13);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(246, 251, 243, 0.98), rgba(232, 243, 228, 0.76));
  box-shadow: 0 15px 32px rgba(22, 58, 41, 0.06);
}

.therapist-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(50, 105, 72, 0.14);
}

.therapist-name span,
.therapist-name em {
  color: var(--moss);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.therapist-name strong {
  color: var(--forest);
  font-size: 31px;
  letter-spacing: -0.05em;
}

.therapist-profile-card dl {
  display: grid;
  gap: 17px;
  margin: 20px 0 0;
}

.therapist-profile-card dl div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
}

.therapist-profile-card dt {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
}

.therapist-profile-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: 46px clamp(18px, 6vw, 96px) 92px;
}

.booking-heading {
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(22, 58, 41, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover,
.service-card.selected {
  border-color: rgba(51, 110, 74, 0.34);
  box-shadow: 0 16px 32px rgba(22, 58, 41, 0.09);
}

.service-card > img {
  width: 100%;
  height: 100%;
  min-height: 255px;
  object-fit: cover;
}

.service-card > div {
  padding: 24px;
}

.service-card span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-card h3 {
  margin: 10px 0;
  color: var(--forest);
  font-size: 23px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.service-card dl div {
  min-width: 0;
}

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

.service-card dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

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

.service-card footer strong {
  color: var(--forest);
  font-size: 18px;
}

.booking-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 246, 232, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.booking-panel h2 {
  margin: -8px 0 0;
  color: var(--forest);
  font-size: 28px;
}

.booking-account {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.booking-account-link {
  width: fit-content;
  margin-top: -7px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.booking-account-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-panel form {
  display: grid;
  gap: 13px;
}

.booking-panel label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.booking-selection {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(77, 118, 78, .16);
  border-radius: 14px;
  background: rgba(232, 241, 227, .6);
}

.booking-selection span { color: var(--moss); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.booking-selection strong { color: var(--forest); font-size: 12px; line-height: 1.5; }
.booking-selection p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.booking-total {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.booking-total span,
.booking-total small {
  color: var(--muted);
  font-size: 12px;
}

.booking-total strong {
  color: var(--forest);
  font-size: 30px;
}

.booking-message {
  min-height: 20px;
  margin: 0;
  color: var(--moss);
  font-size: 13px;
  line-height: 1.55;
}

.booking-message.is-error {
  color: #a63f3a;
}

.booking-availability { margin: -4px 0 0; color: #5d7d5b; font-size: 12px; line-height: 1.6; }
.booking-availability.is-limited { color: #9b6a28; }
.booking-availability.is-full { color: #a64c47; font-weight: 750; }
.booking-notice { margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.my-bookings {
  padding-top: 70px;
}

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

.my-booking-list article,
.booking-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.my-booking-list span,
.my-booking-list strong {
  display: block;
}

.my-booking-card > div { display: flex; align-items: center; gap: 9px; }
.my-booking-card > div strong { margin-top: 0; font-size: 16px; }
.my-booking-card time { display: block; margin-top: 16px; color: var(--forest); font-size: 17px; font-weight: 750; }
.my-booking-card .booking-status { width: fit-content; padding: 4px 8px; border-radius: 99px; background: #e6f0e2; color: #52784e; font-size: 10px; }
.my-booking-card .booking-status-pending_payment { background: #f8eedc; color: #9a6a28; }
.my-booking-card .booking-status-expired { background: #f4e7e5; color: #9a5149; }
.booking-calendar-button { margin-top: 15px; padding: 7px 10px; border: 1px solid rgba(68, 108, 76, .18); border-radius: 8px; background: rgba(236, 244, 232, .78); color: #41694a; font: 12px inherit; font-weight: 750; cursor: pointer; }
.booking-calendar-button:hover { border-color: rgba(68, 108, 76, .35); background: rgba(224, 238, 216, .94); }

.my-booking-list span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
}

.my-booking-list strong {
  margin-top: 18px;
  color: var(--forest);
  font-size: 18px;
}

.my-booking-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reveal-ready .approach-section,
.reveal-ready .application-section,
.reveal-ready .product-stage,
.reveal-ready .learning-path,
.reveal-ready .section,
.reveal-ready .learn-band,
.reveal-ready .stats-band {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.8,.2,1);
}

.reveal-ready .is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .approach-section,
  .reveal-ready .application-section,
  .reveal-ready .product-stage,
  .reveal-ready .learning-path,
  .reveal-ready .section,
  .reveal-ready .learn-band,
  .reveal-ready .stats-band {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 920px) {
  .learning-path,
  .course-toolbar {
    grid-template-columns: 1fr;
  }

  .course-result-info {
    padding: 0 10px 6px;
  }

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

  .learning-overview p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .therapist-showcase {
    grid-template-columns: 1fr;
  }

  .therapist-jump-card {
    align-items: start;
    flex-direction: column;
  }

  .therapist-photo-wrap,
  .therapist-photo-wrap img {
    min-height: 360px;
  }

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

  .booking-panel {
    position: static;
  }

  .my-booking-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card > img {
    height: 190px;
    min-height: 0;
  }

  .service-card dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .learning-path {
    padding: 58px 18px;
  }

  .path-steps,
  .learning-overview {
    grid-template-columns: 1fr;
  }

  .path-steps li {
    min-height: 0;
  }

  .path-steps span {
    margin-bottom: 28px;
  }

  .learning-overview {
    gap: 0;
    padding: 6px 18px;
  }

  .learning-overview div,
  .learning-overview p {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-overview p {
    border-bottom: 0;
  }

  .hero-text-link {
    width: 100%;
  }

  .course-toolbar {
    padding: 8px;
  }

  .course-detail-button {
    min-height: 42px;
  }

  .course-dialog {
    padding: 22px;
  }

  .dialog-actions > * {
    width: 100%;
  }

  .site-footer,
  .site-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Association framework sections */
.approach-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(32px, 7vw, 92px);
  padding: 110px clamp(18px, 8vw, 130px);
  background:
    radial-gradient(circle at 78% 15%, rgba(203, 225, 190, 0.54), transparent 24rem),
    #f7fbf5;
}

.approach-intro {
  align-self: start;
}

.approach-intro h2 {
  margin-bottom: 16px;
}

.approach-intro > p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.85;
}

.approach-definition {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 3px solid var(--leaf);
  background: rgba(255, 255, 255, 0.56);
  color: var(--forest);
}

.approach-definition span,
.process-label {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.approach-definition strong {
  font-size: 17px;
  line-height: 1.5;
}

.approach-content {
  display: grid;
  gap: 20px;
}

.method-principles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.method-principles article {
  min-height: 188px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.method-principles article:last-child {
  border-right: 0;
}

.method-principles article:nth-child(2n) {
  background: rgba(237, 246, 234, 0.66);
}

.method-principles span {
  display: block;
  margin-bottom: 32px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.method-principles strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 18px;
}

.method-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.therapy-process {
  display: grid;
  grid-template-columns: 110px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--forest), #2d684a);
  color: #fff;
  box-shadow: 0 18px 34px rgba(23, 68, 50, 0.2);
}

.therapy-process .process-label {
  align-self: center;
  color: rgba(255, 255, 255, 0.7);
}

.therapy-process > div {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.therapy-process b {
  display: block;
  margin-bottom: 12px;
  color: var(--sun);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.therapy-process strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.therapy-process p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.application-section {
  padding: 100px clamp(18px, 5vw, 72px);
  background: #fff;
}

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

.application-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff, #f3f8f0);
  box-shadow: 0 10px 26px rgba(23, 68, 50, 0.045);
}

.application-grid span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.application-grid h3 {
  margin: 58px 0 10px;
  color: var(--forest);
}

.application-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: end;
  overflow: hidden;
  padding: clamp(76px, 11vw, 152px) clamp(18px, 8vw, 130px);
  background:
    radial-gradient(circle at 82% 18%, rgba(181, 216, 126, 0.24), transparent 29%),
    radial-gradient(circle at 66% 100%, rgba(47, 129, 86, 0.34), transparent 37%),
    linear-gradient(135deg, #09251b 0%, #0e3e2c 51%, #123829 100%);
  color: #fff;
}

.product-stage-copy {
  position: relative;
  z-index: 1;
}

.product-stage .eyebrow {
  color: rgba(229, 245, 215, 0.7);
}

.product-stage h2 {
  max-width: 660px;
  margin: 16px 0 24px;
  color: #fff;
  font-size: clamp(43px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.product-stage-copy > p:not(.eyebrow) {
  max-width: 490px;
  margin: 0;
  color: rgba(241, 249, 237, 0.74);
  font-size: 16px;
  line-height: 1.9;
}

.stage-link {
  margin-top: 30px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.stage-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.stage-link span {
  font-size: 18px;
}

.product-stage-cards {
  display: grid;
  gap: 12px;
}

.product-stage-cards article {
  display: grid;
  grid-template-columns: 54px 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.055));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.product-stage-cards span {
  color: #b8de7a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.product-stage-cards strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.product-stage-cards p {
  margin: 0;
  color: rgba(245, 251, 242, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.case-file-field {
  align-items: start;
}

.case-file-field input[type="file"] {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed rgba(44, 104, 74, 0.34);
  border-radius: 13px;
  background: rgba(246, 250, 244, 0.76);
  color: var(--forest);
  font: inherit;
}

.case-file-field > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.attachment-preview {
  display: grid;
  gap: 7px;
  margin: -4px 0 3px;
}

.attachment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid rgba(44, 104, 74, 0.12);
  border-radius: 11px;
  background: rgba(237, 246, 234, 0.8);
  color: var(--forest);
  font-size: 12px;
}

.attachment-index {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: rgba(46, 106, 75, 0.12);
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
}

.attachment-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

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

.case-upload-status {
  min-height: 18px;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.case-attachments {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-attachments > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.case-attachments a {
  color: var(--moss);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  text-decoration: none;
  word-break: break-word;
}

.case-attachments a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.case-attachments small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.reserve-page {
  min-height: 100vh;
  background: #f6f8f4;
  color: var(--ink);
}

.reserve-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 6vw, 96px);
  border-bottom: 1px solid rgba(25, 67, 48, 0.09);
  background: rgba(251, 253, 249, 0.82);
  backdrop-filter: blur(18px);
}

.reserve-nav .brand {
  color: var(--forest);
  text-decoration: none;
}

.reserve-back {
  color: var(--moss);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.reserve-hero {
  padding: clamp(86px, 13vw, 170px) clamp(18px, 10vw, 160px) 72px;
  background: radial-gradient(circle at 75% 12%, rgba(176, 215, 124, 0.42), transparent 25%), linear-gradient(135deg, #e7f0df, #fafcf8 65%);
}

.reserve-hero h1 {
  max-width: 780px;
  margin: 14px 0 22px;
  color: var(--forest);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.08em;
}

.reserve-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.reserve-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 96px) 104px;
}

.reserve-content article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 68, 50, 0.05);
}

.reserve-content span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.reserve-content h2 {
  margin: 54px 0 10px;
  color: var(--forest);
  font-size: 22px;
}

.reserve-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.certification-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 34px;
  align-items: center;
  width: min(1140px, calc(100% - 40px));
  margin: -26px auto 0;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 24px;
  background: rgba(251, 253, 249, .76);
  box-shadow: 0 18px 42px rgba(27, 62, 46, .08);
  backdrop-filter: blur(20px);
}

.certification-overview .eyebrow { margin: 0; }
.certification-overview h2 { margin: 7px 0; color: var(--forest); font-size: clamp(23px, 3vw, 31px); letter-spacing: -.045em; }
.certification-overview p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.certification-metrics { display: grid; grid-template-columns: repeat(3, minmax(82px, 1fr)); gap: 16px; }
.certification-metrics div { display: grid; gap: 5px; text-align: center; }
.certification-metrics span { color: var(--muted); font-size: 11px; }
.certification-metrics strong { color: var(--forest); font-size: 18px; }
.certification-overview .primary-button { min-width: 144px; justify-content: center; text-decoration: none; }
.certification-overview .primary-button i { margin-left: 5px; font-size: 17px; font-style: normal; }
.certification-steps article { position: relative; overflow: hidden; }
.certification-steps article strong { display: inline-block; margin-top: 20px; color: #7b8a80; font-size: 12px; }
.certification-steps article.is-complete { border-color: rgba(76, 126, 72, .34); background: linear-gradient(145deg, #f8fcf6, #e8f2e3); }
.certification-steps article.is-complete::after { position: absolute; top: 18px; right: 19px; content: "✓"; color: #5d844e; font-size: 19px; font-weight: 800; }
.certification-steps article.is-complete strong { color: #527c49; }

@media (max-width: 1100px) {
  .topbar {
    gap: 12px;
  }

  .topbar .nav {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    white-space: nowrap;
  }

  .topbar .nav a {
    padding-inline: 9px;
  }

  .topbar .brand-copy strong {
    font-size: 14px;
  }

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

  .method-principles article:nth-child(3) {
    border-right: 0;
  }

  .method-principles article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

  .product-stage {
    grid-template-columns: 1fr;
  }

  .reserve-content {
    grid-template-columns: 1fr;
  }

  .certification-overview { grid-template-columns: 1fr; gap: 22px; }
  .certification-metrics { max-width: 360px; }
}

@media (max-width: 920px) {
  .approach-section {
    grid-template-columns: 1fr;
    padding: 76px clamp(18px, 5vw, 72px);
  }

  .therapy-process {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .therapy-process .process-label {
    grid-column: 1 / -1;
  }

  .product-stage-cards article {
    grid-template-columns: 45px 88px 1fr;
  }
}

@media (max-width: 620px) {
  .product-stage {
    padding-block: 78px;
  }

  .product-stage h2,
  .reserve-hero h1 {
    letter-spacing: -0.065em;
  }

  .product-stage-cards article {
    grid-template-columns: 44px 1fr;
  }

  .product-stage-cards p {
    grid-column: 2;
  }

  .reserve-nav {
    padding-block: 10px;
  }

  .reserve-nav .brand-copy {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar .brand-copy strong {
    font-size: 15px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .method-principles,
  .application-grid,
  .therapy-process {
    grid-template-columns: 1fr;
  }

  .method-principles article,
  .method-principles article:nth-child(3) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-principles article:last-child {
    border-bottom: 0;
  }

  .therapy-process > div {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .application-grid article {
    min-height: 0;
  }

  .application-grid h3 {
    margin-top: 38px;
  }
}

/* Visual system refresh */
:root {
  --forest: #183f30;
  --deep: #102a20;
  --moss: #5f7d6a;
  --leaf: #98af7a;
  --sun: #d5af73;
  --ink: #1e2c25;
  --muted: #6a766f;
  --line: rgba(33, 69, 51, 0.12);
  --soft: #f4f6f1;
  --glass: rgba(255, 255, 252, 0.68);
  --glass-strong: rgba(255, 255, 252, 0.84);
  --shadow: 0 28px 70px rgba(23, 56, 41, 0.12);
  --shadow-soft: 0 14px 36px rgba(23, 56, 41, 0.075);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(208, 225, 190, 0.5), transparent 30rem),
    radial-gradient(circle at 94% 18%, rgba(207, 228, 224, 0.42), transparent 31rem),
    linear-gradient(180deg, #fbfcf9 0%, #f3f6f1 47%, #fafbf8 100%);
  letter-spacing: 0.006em;
}

.topbar {
  min-height: 74px;
  padding-block: 12px;
  background: rgba(250, 252, 247, 0.78);
  border-bottom-color: rgba(27, 62, 46, 0.08);
  box-shadow: 0 9px 28px rgba(29, 63, 47, 0.045);
  backdrop-filter: blur(26px) saturate(125%);
}

.brand-logo {
  width: 42px;
  height: 42px;
  box-shadow: 0 7px 18px rgba(23, 68, 50, 0.12);
}

.brand-copy strong {
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: #748877;
  letter-spacing: 0.1em;
}

.nav {
  gap: 2px;
  padding: 4px;
  border-color: rgba(32, 72, 52, 0.07);
  background: rgba(255, 255, 253, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav a {
  color: #607168;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(228, 238, 224, 0.76);
  color: var(--forest);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  padding-top: 150px;
  padding-bottom: 92px;
  background:
    linear-gradient(90deg, rgba(9, 35, 25, 0.93) 0%, rgba(12, 44, 32, 0.76) 38%, rgba(13, 43, 32, 0.19) 76%, rgba(13, 43, 32, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 32, 23, 0.54), transparent 62%),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=2200&q=88") center / cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 76% 21%, rgba(214, 237, 172, 0.2), transparent 18rem),
    linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.06) 48.1%, transparent 48.4%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
}

.hero-content {
  max-width: 750px;
}

.hero .eyebrow {
  color: #d9eabf;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(247, 251, 245, 0.84);
  font-size: 17px;
  line-height: 1.9;
}

.hero-proof {
  gap: 8px;
  margin-block: 28px;
}

.hero-proof span {
  padding: 8px 13px;
  border-color: rgba(232, 247, 217, 0.19);
  background: rgba(236, 247, 229, 0.09);
  box-shadow: none;
  font-size: 13px;
}

.hero-note {
  gap: 14px;
  padding: 25px;
  border-color: rgba(232, 247, 217, 0.2);
  border-radius: 26px;
  background: rgba(238, 248, 230, 0.1);
  box-shadow: 0 24px 60px rgba(4, 28, 18, 0.17);
  backdrop-filter: blur(24px) saturate(115%);
}

.hero-note strong {
  font-size: 23px;
  letter-spacing: -0.035em;
}

.primary-button,
.secondary-button,
.ghost-button,
.glass-button,
.filter {
  min-height: 44px;
  border-color: rgba(255, 255, 252, 0.55);
  box-shadow: 0 9px 24px rgba(23, 56, 41, 0.07);
  font-size: 14px;
}

.primary-button {
  background: rgba(23, 63, 48, 0.86);
  box-shadow: 0 12px 26px rgba(13, 49, 35, 0.13);
}

.primary-button:hover:not(:disabled) {
  background: rgba(25, 70, 52, 0.91);
  box-shadow: 0 14px 28px rgba(13, 49, 35, 0.15);
}

.secondary-button,
.ghost-button,
.glass-button,
.filter {
  background: rgba(255, 255, 252, 0.4);
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.glass-button:hover:not(:disabled),
.filter:hover:not(:disabled) {
  background: rgba(255, 255, 252, 0.66);
  box-shadow: 0 10px 24px rgba(23, 56, 41, 0.08);
}

.intro-strip {
  position: relative;
  padding-block: 32px;
  border-block: 1px solid rgba(46, 86, 64, 0.08);
  background: rgba(238, 244, 234, 0.74);
}

.intro-strip p {
  max-width: 820px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.intro-strip a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 63, 48, 0.28);
}

.stats-band {
  max-width: 1176px;
  margin: 0 auto;
  border-color: rgba(255, 255, 252, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 252, 0.64);
  box-shadow: 0 18px 48px rgba(23, 56, 41, 0.075);
  backdrop-filter: blur(22px) saturate(108%);
}

.stats-band div {
  padding-block: 30px;
}

.stats-band strong {
  font-size: 36px;
  letter-spacing: -0.045em;
}

.stats-band span {
  font-size: 13px;
}

.section,
.learn-band,
.application-section,
.case-library {
  padding-block: clamp(78px, 10vw, 132px);
}

.section-heading h2,
.approach-intro h2,
.path-intro h2 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 15px;
  line-height: 1.82;
}

.approach-section {
  background:
    radial-gradient(circle at 77% 14%, rgba(208, 225, 190, 0.46), transparent 24rem),
    #f8faf6;
}

.approach-definition {
  padding: 20px;
  border-radius: 0 18px 18px 0;
  border-left-width: 2px;
  background: rgba(255, 255, 252, 0.72);
}

.method-principles {
  border-color: rgba(255, 255, 252, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 252, 0.67);
  box-shadow: 0 18px 48px rgba(23, 56, 41, 0.065);
}

.method-principles article,
.method-principles article:nth-child(2n) {
  background: transparent;
}

.method-principles article:hover {
  background: rgba(233, 242, 228, 0.56);
}

.therapy-process {
  border: 1px solid rgba(205, 227, 190, 0.13);
  border-radius: 26px;
  background: linear-gradient(130deg, #123528, #215942);
  box-shadow: 0 20px 44px rgba(15, 55, 38, 0.14);
}

.application-section {
  background: rgba(255, 255, 252, 0.72);
}

.application-grid {
  gap: 18px;
}

.application-grid article,
.path-steps li {
  border-color: rgba(30, 69, 50, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 252, 0.78);
  box-shadow: 0 13px 32px rgba(23, 56, 41, 0.05);
}

.application-grid article {
  min-height: 260px;
}

.application-grid article:nth-child(2n) {
  background: rgba(244, 248, 240, 0.86);
}

.product-stage {
  background:
    radial-gradient(circle at 82% 16%, rgba(188, 220, 128, 0.2), transparent 25%),
    radial-gradient(circle at 73% 94%, rgba(51, 124, 83, 0.38), transparent 33%),
    linear-gradient(130deg, #0c2b20, #123c2c 54%, #17422f);
}

.product-stage-cards article {
  border-color: rgba(233, 247, 221, 0.15);
  background: rgba(235, 248, 226, 0.09);
  box-shadow: none;
}

.learning-path {
  background: #f9fbf7;
}

.path-steps li {
  min-height: 228px;
}

.course-toolbar,
.case-search {
  border-color: rgba(255, 255, 252, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 252, 0.7);
  box-shadow: 0 12px 32px rgba(23, 56, 41, 0.055);
  backdrop-filter: blur(20px) saturate(108%);
}

.course-grid {
  gap: 22px;
}

.course-card {
  border-color: rgba(255, 255, 252, 0.85);
  border-radius: 26px;
  background: rgba(255, 255, 252, 0.76);
  box-shadow: 0 14px 34px rgba(23, 56, 41, 0.065);
}

.course-card:hover {
  border-color: rgba(102, 138, 103, 0.22);
  box-shadow: 0 18px 42px rgba(23, 56, 41, 0.1);
}

.course-card img {
  aspect-ratio: 1.52 / 1;
  filter: saturate(0.86) contrast(1.02);
}

.course-body {
  padding: 24px;
}

.course-body h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.tag,
.permission-pill,
.account-chip,
.case-tags span {
  background: rgba(228, 239, 223, 0.78);
}

.price-row {
  padding-top: 20px;
}

.case-library {
  background:
    radial-gradient(circle at 91% 18%, rgba(205, 228, 225, 0.44), transparent 25rem),
    rgba(242, 247, 239, 0.78);
}

.case-card,
.case-empty,
.case-publish-panel {
  border-color: rgba(255, 255, 252, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 252, 0.7);
  box-shadow: 0 14px 34px rgba(23, 56, 41, 0.06);
}

.case-card:hover {
  border-color: rgba(102, 138, 103, 0.2);
  box-shadow: 0 18px 38px rgba(23, 56, 41, 0.08);
}

.learn-band {
  background: rgba(255, 255, 252, 0.62);
}

.site-footer {
  padding-block: 42px;
  background: #102d22;
}

@media (max-width: 1220px) {
  .stats-band {
    margin-inline: clamp(18px, 5vw, 72px);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 650px;
    padding-top: 126px;
  }

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

@media (max-width: 640px) {
  .topbar {
    min-height: 0;
  }

  .hero {
    min-height: 590px;
    padding-top: 88px;
    padding-bottom: 50px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.78;
  }

  .stats-band {
    margin-inline: 18px;
    border-radius: 22px;
  }

  .stats-band div {
    padding: 22px 18px;
  }

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

  .application-grid article {
    min-height: 0;
  }

  .course-card,
  .case-card,
  .case-empty,
  .case-publish-panel {
    border-radius: 22px;
  }
}

.landing-main { background: #f6f8f4; }
.landing-brand { margin-bottom: clamp(44px, 8vh, 76px); }
.landing-content h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -.055em; line-height: 1.08; }
.landing-description { margin: 22px auto 30px; font-size: 15px; line-height: 1.7; }
.landing-enter { min-width: 148px; padding: 12px 18px; }
.landing-page .primary-button,
.portal-page .primary-button { border-radius: 10px; box-shadow: none; }
.portal-page .ghost-button { border-radius: 10px; background: #fff; box-shadow: none; }
.portal-topbar { border-bottom: 1px solid var(--line); background: #fff; backdrop-filter: none; }
.portal-hero { padding: 58px max(22px, calc((100vw - 1140px) / 2)) 36px; border-bottom: 1px solid var(--line); background: #f3f6f1; }
.portal-hero h1 { margin: 8px 0 12px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.1; }
.portal-hero > p:not(.eyebrow) { font-size: 15px; line-height: 1.65; }
.portal-continuity { gap: 24px; margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; backdrop-filter: none; }
.portal-continuity h2 { font-size: 24px; }
.portal-grid { margin: 18px auto 48px; }
.portal-card { min-height: 180px; justify-content: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; transition: border-color .18s ease, background .18s ease; }
.portal-card:hover { transform: none; border-color: rgba(52, 101, 68, .34); background: #fbfdf9; }
.portal-card h2 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.03em; }
.portal-card strong { margin-top: auto; padding-top: 18px; }
.portal-card-large,
.portal-card-feature,
.portal-card-quiet { grid-column: auto; min-height: 180px; background: #fff; }
.portal-footer { padding: 20px 0 28px; border-top: 1px solid var(--line); }
