:root {
  --primary-accent: #039be5;
  --primary-accent-hover: #0277b5;
  --panel-bg: rgba(35, 37, 41, 0.7);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.15);
  --solid-dark-bg: #232529;
  --builder-ink: #17202a;
  --builder-muted: #667085;
  --builder-line: #e4e7ec;
  --builder-orange: #f28c28;
  --eslflix-red: #e50914;
  --eslflix-red-dark: #b20710;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

body.modal-open {
  overflow: hidden;
}

/* Original public teacher-site design */
.background-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  background: #171717;
}

.background-slides {
  position: absolute;
  inset: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.bg-slide.is-active {
  opacity: 1;
}

.bg-slide.is-swimming-background {
  background-size: 220% 220%;
  animation: background-swim 18s ease-in-out infinite;
}

.bg-slide.is-pattern-background {
  background-size: 32px 32px, 32px 32px, cover;
}

.content-panel {
  width: 100%;
  max-width: 1200px;
  background: var(--panel-bg);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.grid-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "profile heading"
    "profile details";
  gap: 0 50px;
}

.main-heading {
  grid-area: heading;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  font-size: 3.4rem;
  margin: 0 0 30px;
}

.profile-column {
  grid-area: profile;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.profile-content {
  flex-grow: 1;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  margin: 0 auto 20px;
  background-color: var(--solid-dark-bg);
}

.profile-placeholder {
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.teacher-name {
  font-size: 1.45rem;
  margin: -4px 0 18px;
  font-weight: 600;
}

.teacher-headline {
  margin: -10px 0 18px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.profile-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: left;
  white-space: pre-line;
}

.profile-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.profile-buttons .button {
  flex: 1;
  font-size: 0.85rem;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.profile-buttons .button .button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  filter: invert(90%) sepia(13%) saturate(1352%) hue-rotate(175deg) brightness(119%) contrast(119%);
}

.teacher-site-root .profile-specialities {
  margin: 2px 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.teacher-site-root .profile-specialities span {
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 72%, white);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--theme-accent) 92%, white),
      var(--theme-accent)
    );
  color: var(--theme-button-text);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-accent) 24%, transparent);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.details-column {
  grid-area: details;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
}

.calendar-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.calendar-viewport {
  height: 410px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--solid-dark-bg);
}

.calendar-viewport iframe {
  width: 100%;
  height: calc(100% + 230px);
  margin-top: -230px;
  border: 0;
  filter: invert(1) hue-rotate(0deg);
}

.availability-card {
  min-height: 250px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 38px;
  text-align: center;
}

.availability-card strong {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.55;
  white-space: pre-line;
}

.calendar-mobile {
  display: none;
  text-align: center;
}

.mobile-schedule-button {
  display: inline-block;
  background: var(--primary-accent);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255, 140, 0, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  transition:
    background-color 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: rgba(255, 140, 0, 0.1);
  transform: translateY(-5px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.card .price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 15px 0;
}

.card .price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.card .price-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--primary-accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  cursor: pointer;
  border: 0;
}

.button:hover {
  background: var(--primary-accent-hover);
}

.button.button-secondary {
  background: rgba(255, 140, 0, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button.button-secondary:hover {
  background: rgba(255, 140, 0, 0.2);
}

.contact-buttons {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  border: 0;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition:
    filter 0.25s,
    transform 0.25s;
}

.contact-button::after {
  content: none;
}

.contact-button > i,
.contact-button > svg {
  width: 22px;
  height: 22px;
  margin: 0;
  justify-self: center;
  line-height: 1;
}

.contact-button > i {
  display: inline-grid;
  place-items: center;
}

.contact-button > svg {
  display: block;
}

.contact-button > span {
  min-width: 0;
  text-align: left;
}

.contact-button:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

.contact-button.whatsapp {
  background: #25d366;
}

.contact-button.telegram {
  background: #229ed9;
}

.contact-button.telegram i {
  border-radius: 50%;
  background: #229ed9;
  color: #fff;
  font-size: 0.72rem;
}

.contact-button.email {
  background: #5f6368;
}

.contact-button.wechat {
  background: #07c160;
}

.review-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  padding: 22px 64px;
  min-height: 145px;
  display: grid;
  place-items: center;
}

.review-slide {
  text-align: center;
}

.review-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 14px 0 0;
}

.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.74);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0.4s;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: var(--solid-dark-bg);
  color: var(--text-primary);
  margin: auto;
  padding: 30px;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.is-visible .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  color: #aaa;
  background: transparent;
  border: 0;
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
}

.modal-close:hover {
  color: white;
}

.modal-header {
  font-size: 1.5rem;
  margin: 0 0 25px;
  text-align: center;
}

.qualifications-modal {
  max-width: 800px;
}

.qualification-title {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.05rem;
}

.qualification-frame {
  height: min(60vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.qualification-frame img,
.qualification-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.carousel-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px;
  color: white;
  border: 0;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.carousel-arrow.prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.carousel-arrow.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.video-modal-content {
  max-width: 900px;
  width: 95%;
  background: #000;
  padding: 0;
  border: 5px solid var(--primary-accent);
}

.video-modal-content .modal-close {
  top: -50px;
  right: -5px;
  color: white;
  font-size: 40px;
}

.video-container {
  height: min(60vh, 620px);
  border-radius: 10px;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  color: white;
  border: 0;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.3s;
}

.payment-button:hover {
  transform: translateY(-2px);
}

.payment-button .icon-wrapper {
  height: 24px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.payment-button span {
  flex-shrink: 0;
  white-space: nowrap;
}

.payment-button img {
  width: 32px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.payment-button.paypal {
  background: #0070ba;
}

.payment-button.paypal:hover {
  background: #005ea6;
}

.payment-button.wise {
  background: #9fe870;
  color: #000;
}

.payment-button.wise:hover {
  background: #88d45b;
}

.payment-button.stripe {
  background: #3c3f46;
}

.payment-button.stripe:hover {
  background: #4f535a;
}

.payment-button.payoneer {
  background: #ff4800;
}

.info-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Landing page */
.landing-shell {
  min-height: 100vh;
  padding: 44px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.landing-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 16, 24, 0.58), rgba(24, 13, 5, 0.38)),
    url("backgrounds/bg4.jpg") center/cover;
  transform: scale(1.02);
}

.landing-panel {
  width: min(1220px, 100%);
  min-height: 690px;
  position: relative;
  z-index: 1;
  border-radius: 28px;
  background: rgba(24, 25, 28, 0.76);
  border: 1px solid rgba(229, 9, 20, 0.25);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}

.landing-copy {
  padding: 74px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: #d6d9de;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 22px 0;
}

.landing-copy .landing-access-copy {
  max-width: 500px;
  color: #c1c4c9;
  font-size: 0.92rem;
}

.login-only-form {
  max-width: 480px;
  margin-top: 30px;
  gap: 15px;
}

.auth-form.login-only-form > button {
  margin-top: 3px;
  background: var(--eslflix-red);
}

.auth-form.login-only-form > button:hover {
  background: var(--eslflix-red-dark);
}

.login-only-form input:focus {
  border-color: rgba(229, 9, 20, 0.72);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}

.signin-support {
  max-width: 480px;
  margin-top: 16px !important;
  color: #8e939a !important;
  font-size: 0.68rem;
  line-height: 1.55 !important;
}

.signin-support a {
  color: #f5f5f5;
}

.landing-copy > p {
  color: #b6b9bd;
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}

.landing-benefits {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  gap: 13px;
}

.landing-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e7e7e7;
}

.landing-benefits svg {
  color: #ff9a1f;
}

.primary-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  background: var(--primary-accent);
  color: white;
  text-decoration: none;
  padding: 15px 22px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.24);
}

.primary-cta:hover {
  background: var(--primary-accent-hover);
}

.signin-note {
  margin-top: 14px !important;
  font-size: 0.8rem;
}

.auth-switch {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-top: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-switch button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aeb1b5;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.78rem;
}

.auth-switch button.active {
  background: rgba(255, 140, 0, 0.16);
  color: #ffad42;
  font-weight: 600;
}

.auth-form {
  display: none;
  gap: 12px;
  margin-top: 16px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #d8d9db;
  font-size: 0.7rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 10px 11px;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(255, 140, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-form > button {
  border: 0;
  border-radius: 9px;
  background: var(--primary-accent);
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
}

.auth-form > button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-message {
  min-height: 1.3em;
  margin-top: 10px !important;
  font-size: 0.72rem !important;
}

.auth-message.error {
  color: #ff9d9d !important;
}

.auth-message.success {
  color: #8de6aa !important;
}

.landing-preview {
  padding: 55px 55px 55px 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 25%, rgba(184, 190, 199, 0.13), transparent 40%),
    rgba(0, 0, 0, 0.08);
}

.preview-window {
  width: min(590px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 30px;
  background: rgba(20, 21, 23, 0.86);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

.preview-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(184, 190, 199, 0.28);
}

.preview-profile img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(184, 190, 199, 0.46);
}

.preview-profile div {
  display: grid;
}

.preview-profile span,
.preview-schedule small,
.preview-prices span {
  color: #999da2;
  font-size: 0.75rem;
}

.preview-profile strong {
  font-size: 1.55rem;
}

.preview-schedule {
  min-height: 180px;
  margin: 24px 0;
  border: 1px solid rgba(184, 190, 199, 0.3);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.preview-schedule strong {
  font-size: 1.8rem;
  margin: 8px 0 3px;
}

.preview-schedule span {
  color: #b0b2b5;
}

.preview-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-prices div {
  min-height: 100px;
  border: 1px solid rgba(184, 190, 199, 0.26);
  background: rgba(184, 190, 199, 0.05);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}

.preview-prices strong {
  font-size: 1.25rem;
}

/* Builder access gate */
.builder-access-shell {
  min-height: 100vh;
  padding: 28px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.builder-access-card {
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
  padding: 38px 42px 32px;
  border: 1px solid rgba(229, 9, 20, 0.34);
  border-radius: 24px;
  background: rgba(23, 25, 29, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px);
  text-align: center;
}

.builder-access-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.builder-access-brand em {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: #b9bdc4;
  font-size: 0.72rem;
  font-style: normal;
}

.builder-access-icon {
  width: 58px;
  height: 58px;
  margin: 30px auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(229, 9, 20, 0.14);
  color: #ff3741;
  font-size: 1.2rem;
}

.builder-access-card > small {
  color: #9298a1;
  font-size: 0.68rem;
}

.builder-access-card h1 {
  margin: 9px 0 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.builder-access-card > p:not(.auth-message) {
  margin: 0 auto;
  max-width: 410px;
  color: #b3b8c0;
  font-size: 0.8rem;
  line-height: 1.65;
}

.builder-code-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.builder-code-form label {
  display: grid;
  gap: 7px;
  color: #dfe1e5;
  font-size: 0.7rem;
  font-weight: 600;
}

.builder-code-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-weight: 700;
}

.builder-code-form input:focus {
  border-color: rgba(229, 9, 20, 0.75);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.13);
}

.builder-code-form button {
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  background: var(--eslflix-red);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.builder-code-form button:hover {
  background: var(--eslflix-red-dark);
}

.builder-code-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.builder-access-help {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #8f949c;
  font-size: 0.67rem;
}

.builder-access-help a,
.builder-access-signout {
  color: #fff;
}

.builder-access-signout {
  display: inline-block;
  margin-top: 14px;
  color: #a9aeb6;
  font-size: 0.65rem;
}

/* Builder */
.builder-shell {
  min-height: 100vh;
  color: var(--builder-ink);
  background: #f8f9fb;
}

.builder-header {
  height: 72px;
  background: white;
  border-bottom: 1px solid var(--builder-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.builder-brand {
  color: #20242b;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 600;
}

.builder-brand span {
  color: var(--builder-orange);
}

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

.save-status {
  font-size: 0.78rem;
  color: #76808d;
}

.save-status.has-error {
  color: #c63e3e;
}

.header-preview-link {
  background: var(--builder-ink);
  color: white;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.header-preview-link.is-disabled {
  border: 1px solid #d7dce2;
  background: #e9ecef;
  color: #939ba5;
  cursor: not-allowed;
  pointer-events: none;
}

.signout-link {
  color: #68717d;
  font-size: 0.82rem;
  text-decoration: none;
}

.builder-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 270px minmax(500px, 700px) minmax(360px, 1fr);
}

.builder-steps {
  background: #fff;
  border-right: 1px solid var(--builder-line);
  padding: 30px 20px;
}

.builder-welcome {
  padding: 0 12px 24px;
  border-bottom: 1px solid #edf0f2;
  display: grid;
}

.builder-welcome small {
  color: var(--builder-muted);
}

.builder-welcome strong {
  font-size: 1.08rem;
}

.builder-welcome p {
  color: var(--builder-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 7px 0 0;
}

.builder-steps ol {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.builder-steps li button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #697382;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}

.builder-steps li.active button {
  background: #fff5e8;
  color: #2b2f35;
}

.builder-steps li button > span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #cfd4da;
  font-size: 0.7rem;
  font-weight: 600;
}

.builder-steps li.active button > span {
  background: var(--builder-orange);
  color: white;
  border-color: var(--builder-orange);
}

.builder-steps li.complete button > span {
  background: #e9f8ef;
  color: #268c4d;
  border-color: #bfe5ce;
}

.builder-steps li button div {
  display: grid;
}

.builder-steps li button b {
  font-size: 0.78rem;
}

.builder-steps li button small {
  font-size: 0.62rem;
  color: #9aa1ab;
}

.builder-workspace {
  padding: 42px 34px;
  overflow-y: auto;
}

.builder-form-card {
  background: white;
  border: 1px solid var(--builder-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.step-heading {
  padding: 30px 34px 24px;
  border-bottom: 1px solid #edf0f2;
}

.step-heading > span {
  color: var(--builder-orange);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-heading h1 {
  margin: 8px 0 3px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.step-heading p {
  margin: 0;
  color: var(--builder-muted);
  font-size: 0.82rem;
}

.step-content {
  padding: 32px 34px;
  min-height: 390px;
}

.form-stack {
  display: grid;
  align-content: start;
  gap: 20px;
}

.form-stack label,
.provider-fields label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3c4653;
}

.form-stack input,
.form-stack textarea,
.provider-fields input,
.editor-card input,
.editor-card textarea {
  width: 100%;
  border: 1px solid #d7dce2;
  border-radius: 9px;
  background: white;
  color: #20262e;
  padding: 11px 12px;
  font-size: 0.84rem;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-stack input:focus,
.form-stack textarea:focus,
.provider-fields input:focus,
.editor-card input:focus,
.editor-card textarea:focus {
  border-color: #eea04c;
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.12);
}

.profile-upload-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.large-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 5px solid #fff0df;
  background: #f3f4f6;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #a4aab3;
  font-size: 4rem;
}

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

.upload-button {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px !important;
  width: fit-content;
  background: var(--builder-ink);
  color: white !important;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

.upload-button input {
  display: none;
}

.upload-inline {
  justify-self: start;
}

.qualification-upload-card {
  padding: 22px;
  display: grid;
  gap: 20px;
  border: 1px solid #e0e4e9;
  border-radius: 15px;
  background: #fafbfc;
}

.qualification-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qualification-card-heading > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(229, 9, 20, 0.1);
  color: var(--eslflix-red);
}

.qualification-card-heading > div {
  display: grid;
  gap: 2px;
}

.qualification-card-heading strong {
  color: #252c35;
  font-size: 0.88rem;
}

.qualification-card-heading small {
  color: #828b96;
  font-size: 0.68rem;
}

.qualification-card-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: stretch;
  gap: 14px;
}

.qualification-card-fields > label:first-child {
  align-content: center;
}

.qualification-file-picker {
  min-height: 96px;
  padding: 14px;
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 3px !important;
  border: 1.5px dashed #d4a3a6;
  border-radius: 11px;
  background: #fff;
  color: #303741 !important;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.qualification-file-picker:hover {
  border-color: var(--eslflix-red);
  background: rgba(229, 9, 20, 0.035);
  transform: translateY(-2px);
}

.qualification-file-picker > span {
  color: var(--eslflix-red);
  font-size: 1rem;
}

.qualification-file-picker strong {
  font-size: 0.76rem;
}

.qualification-file-picker small {
  color: #858e99;
  font-size: 0.62rem;
  font-weight: 400;
}

.qualification-file-picker input {
  display: none;
}

.field-help {
  color: #8a929d;
  font-size: 0.71rem;
  font-weight: 400;
}

.intro-help {
  margin: 0 0 18px;
}

.slug-field {
  display: flex;
  align-items: center;
  border: 1px solid #d7dce2;
  border-radius: 9px;
  overflow: hidden;
}

.slug-field span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f3f4f6;
  color: #8b929d;
  border-right: 1px solid #d7dce2;
}

.slug-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.saved-items {
  display: grid;
  gap: 9px;
}

.saved-items > div {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e1e4e8;
  border-radius: 9px;
  padding: 10px;
}

.file-badge {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  background: #fff0df;
  color: #be6716;
  font-size: 0.6rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.saved-items > div > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.saved-items .saved-qualification-copy {
  min-width: 0;
  gap: 3px;
}

.saved-items .saved-qualification-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-items .saved-qualification-title i,
.saved-items .saved-qualification-title > svg {
  flex: 0 0 auto;
  color: #929aa5;
  font-size: 0.68rem;
}

.saved-items .saved-qualification-title input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 6px;
  background: transparent;
  color: #26303d;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.saved-items .saved-qualification-title:hover input {
  border-color: #d8dde4;
  background: #fff;
}

.saved-items .saved-qualification-title input:focus {
  border-color: var(--wizard-accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wizard-accent) 10%, transparent);
}

.saved-items b {
  font-size: 0.78rem;
}

.saved-items small {
  color: #8f97a2;
  font-size: 0.67rem;
}

.saved-items button,
.remove-card {
  border: 0;
  background: transparent;
  color: #b85454;
  cursor: pointer;
}

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

.speciality-editor {
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid #dfe4e9;
  border-radius: 12px;
  background: #fafbfd;
}

.speciality-editor-heading > div {
  display: grid;
  gap: 2px;
}

.speciality-editor-heading strong {
  color: #303945;
  font-size: 0.78rem;
}

.speciality-editor-heading small,
.speciality-examples {
  color: #858e99;
  font-size: 0.64rem;
}

.speciality-edit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.speciality-edit-pills > span {
  min-height: 34px;
  padding: 6px 7px 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--wizard-accent) 46%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wizard-accent) 10%, white);
  color: color-mix(in srgb, var(--wizard-accent) 82%, #20242a);
  font-size: 0.7rem;
  font-weight: 700;
}

.speciality-edit-pills button {
  width: 21px;
  height: 21px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wizard-accent) 18%, white);
  color: var(--wizard-accent);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.speciality-edit-pills button:hover {
  background: var(--wizard-accent);
  color: #fff;
}

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

.speciality-add-row input {
  min-width: 0;
}

.speciality-add-row button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--wizard-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.speciality-add-row button:hover {
  background: var(--wizard-accent-dark);
}

.editor-card {
  position: relative;
  border: 1px solid #e0e4e8;
  border-radius: 11px;
  padding: 15px;
  display: grid;
  gap: 9px;
  background: #fbfcfd;
}

.editor-card > span {
  color: #6e7783;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.removable-price-card {
  padding-top: 36px;
}

.price-row,
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-link-help {
  margin-top: -4px;
  padding: 10px 12px;
  border: 1px solid #dce4ee;
  border-radius: 9px;
  background: #f7faff;
}

.price-link-help i {
  margin-right: 5px;
  color: #55728f;
}

.price-payment-field {
  margin-top: 2px;
  padding-top: 10px;
  display: grid;
  gap: 6px;
  border-top: 1px solid #e4e8ec;
}

.price-payment-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4f5965;
  font-size: 0.68rem;
  font-weight: 700;
}

.price-payment-field > span i {
  color: var(--wizard-accent, var(--eslflix-red));
}

.price-payment-field > span em {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf1f5;
  color: #7c8590;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.price-payment-field input {
  padding: 9px 10px;
  font-size: 0.7rem;
}

.price-payment-links {
  display: grid;
  gap: 7px;
}

.price-payment-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.price-payment-link > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #5f6874;
  font-size: 0.64rem;
  font-weight: 700;
}

.price-payment-link > span i {
  width: 14px;
  color: var(--wizard-accent, var(--eslflix-red));
  text-align: center;
}

.price-payment-link input {
  width: 100%;
  min-width: 0;
}

.price-payment-field small {
  color: #8a929d;
  font-size: 0.6rem;
  line-height: 1.45;
}

.price-payment-empty {
  padding: 9px 10px;
  border: 1px dashed #d8dde4;
  border-radius: 7px;
  background: #fff;
}

.review-editor {
  padding-top: 36px;
}

.remove-card {
  position: absolute;
  right: 11px;
  top: 10px;
}

.add-button {
  width: 100%;
  border: 1px dashed #cbd1d8;
  color: #626c78;
  background: #fafbfc;
  border-radius: 9px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
}

.empty-note {
  color: #8a929d;
  font-size: 0.73rem;
  text-align: center;
  margin: 2px 0;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0a6ae;
  font-size: 0.7rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  background: #e4e7eb;
  flex: 1;
}

.text-button {
  justify-self: start;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
}

.text-button.danger {
  color: #b54444;
}

.choice-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f3f5;
  padding: 4px;
  border-radius: 10px;
}

.choice-tabs button {
  border: 0;
  background: transparent;
  color: #76808b;
  padding: 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.77rem;
}

.choice-tabs button.active {
  background: white;
  color: #20262e;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.schedule-editor-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}

.schedule-editor-step .choice-tabs {
  flex: 0 0 auto;
  height: 50px;
}

.schedule-editor-step .choice-tabs button {
  min-height: 42px;
  padding: 9px 12px;
}

.schedule-editor-step > label {
  flex: 0 0 auto;
}

.schedule-editor-step input {
  height: 46px;
}

.schedule-editor-step textarea {
  min-height: 145px;
}

.provider-fields {
  display: grid;
  gap: 13px;
}

.provider-field {
  grid-template-columns: 150px 1fr;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
}

.provider-field > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.provider-field.whatsapp > span {
  color: #168842;
}

.provider-field.telegram > span {
  color: #2189bd;
}

.provider-field.wechat > span {
  color: #079749;
}

.provider-field.stripe > span {
  color: #635bff;
}

.provider-field.paypal > span {
  color: #0070ba;
}

.provider-field.wise > span {
  color: #3b7d22;
}

.provider-field.payoneer > span {
  color: #d94100;
}

.provider-field input {
  padding: 9px 10px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.background-grid button {
  aspect-ratio: 1.45;
  border: 2px solid transparent;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
}

.background-grid button.selected {
  border-color: var(--builder-orange);
}

.background-grid button span {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--builder-orange);
  color: white;
  font-size: 0.65rem;
}

.background-mode-tabs {
  margin-bottom: 4px;
}

.background-theme-note {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--wizard-accent) 22%, #d9dee7);
  border-radius: 10px;
  background: color-mix(in srgb, var(--wizard-accent) 6%, #fff);
  color: #687386;
}

.background-theme-note > i {
  margin-top: 3px;
  color: var(--wizard-accent);
}

.background-theme-note p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.background-theme-note strong {
  color: #273241;
}

.background-mode-tabs button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.background-design-option {
  min-height: 112px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  padding: 50px 11px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  background-image: var(--design-background);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -58px 50px -30px rgba(0, 0, 0, 0.86);
  cursor: pointer;
  text-align: left;
}

.background-design-option.is-animated {
  background-size: 220% 220%;
  animation: background-swim 9s ease-in-out infinite;
}

.background-design-option.is-patterned {
  background-size: 32px 32px, 32px 32px, cover;
}

.background-design-option.selected {
  border-color: var(--wizard-accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--wizard-accent) 13%, transparent),
    inset 0 -58px 50px -30px rgba(0, 0, 0, 0.86);
}

.background-design-option strong {
  font-size: 0.76rem;
}

.background-design-option small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.57rem;
}

.background-design-check {
  width: 22px;
  height: 22px;
  position: absolute;
  right: 7px;
  top: 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.62rem;
}

.background-design-option.selected .background-design-check {
  background: var(--wizard-accent);
}

@keyframes background-swim {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.resolution-warning {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid #f0d08a;
  background: #fff8e8;
  color: #875b12;
  font-size: 0.73rem;
  line-height: 1.5;
}

.publish-box {
  border: 1px solid #cbe7d5;
  background: #f3fbf6;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.publish-box > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #277b48;
}

.publish-box > div > span {
  display: grid;
}

.publish-box b {
  color: #244d35;
  font-size: 0.85rem;
}

.publish-box small {
  color: #658270;
  font-size: 0.7rem;
}

.publish-button {
  border: 0;
  border-radius: 9px;
  background: #23844a;
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.published-link {
  color: #237f49;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.step-navigation {
  padding: 18px 34px;
  border-top: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.step-navigation button {
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.back-button,
.skip-button {
  color: #707985;
  background: transparent;
}

.next-button {
  background: var(--builder-orange);
  color: white;
  font-weight: 600;
}

.step-navigation button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-preview {
  border-left: 1px solid var(--builder-line);
  background: #f0f2f4;
  padding: 42px 28px;
  overflow: hidden;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.preview-heading span {
  font-size: 0.76rem;
  font-weight: 700;
}

.preview-heading small {
  color: #8b929c;
  font-size: 0.65rem;
}

.builder-preview-canvas {
  width: min(100%, 620px);
  aspect-ratio: 0.92;
  min-height: 530px;
  border-radius: 15px;
  background-position: center;
  background-size: cover;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(24, 31, 42, 0.18);
}

.builder-preview-panel {
  height: 100%;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 18px;
  border-radius: 12px;
  color: white;
  padding: 22px;
  background: rgba(28, 29, 32, 0.76);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 140, 0, 0.24);
}

.builder-preview-panel aside {
  text-align: center;
}

.builder-preview-panel aside > img,
.mini-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 140, 0, 0.35);
}

.mini-avatar {
  display: grid;
  place-items: center;
  background: #2b2d31;
  color: #bbb;
  font-size: 1.8rem;
}

.builder-preview-panel aside > strong {
  display: block;
  font-size: 0.7rem;
}

.builder-preview-panel aside > p {
  color: #aaa;
  text-align: left;
  font-size: 0.45rem;
  line-height: 1.55;
  white-space: pre-line;
}

.mini-contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-contacts span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}

.mini-contacts .whatsapp {
  background: #25d366;
}

.mini-contacts .telegram {
  background: #229ed9;
}

.mini-contacts .email {
  background: #5f6368;
}

.mini-contacts .wechat {
  background: #07c160;
}

.builder-preview-panel section h3 {
  margin: 3px 0 15px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.mini-schedule {
  min-height: 150px;
  border: 1px solid rgba(255, 140, 0, 0.24);
  border-radius: 8px;
  background: #202124;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-schedule small {
  color: #aaa;
  font-size: 0.48rem;
}

.mini-schedule b {
  margin-top: 8px;
  font-size: 0.72rem;
  white-space: pre-line;
}

.mini-review {
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 7px;
  color: #aaa;
  margin-top: 9px;
  padding: 9px;
  font-size: 0.45rem;
  font-style: italic;
}

.mini-prices {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.mini-prices div {
  min-height: 70px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 6px;
  background: rgba(255, 140, 0, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mini-prices small {
  color: #aaa;
  font-size: 0.38rem;
}

.mini-prices b {
  font-size: 0.52rem;
}

.builder-progress-mobile {
  display: none;
}

.builder-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  background: #f8f9fb;
  color: #667085;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background:
    linear-gradient(rgba(15, 17, 20, 0.76), rgba(15, 17, 20, 0.76)),
    url("backgrounds/bg4.jpg") center/cover;
}

.not-found-page section {
  width: min(620px, 100%);
  text-align: center;
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 22px;
  background: rgba(30, 30, 30, 0.76);
  backdrop-filter: blur(12px);
  padding: 48px;
}

.not-found-page span {
  color: var(--primary-accent);
  font-weight: 700;
}

.not-found-page h1 {
  font-size: 2rem;
}

.not-found-page p {
  color: #aeb1b5;
}

.not-found-page a {
  display: inline-block;
  margin-top: 12px;
  border-radius: 9px;
  background: var(--primary-accent);
  color: white;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 600;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #f1d2ad;
  border-top-color: var(--builder-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1250px) {
  .builder-layout {
    grid-template-columns: 245px minmax(500px, 1fr);
  }

  .builder-preview {
    display: none;
  }
}

@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "heading"
      "profile"
      "details";
    gap: 40px;
  }

  .main-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0;
  }

  .profile-column {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
  }

  .profile-description p {
    text-align: center;
  }

  .calendar-viewport:not(.availability-card) {
    display: none;
  }

  .calendar-mobile {
    display: block;
  }

  .landing-panel {
    grid-template-columns: 1fr;
  }

  .landing-preview {
    display: none;
  }

  .landing-copy {
    max-width: 700px;
  }

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

  .builder-steps {
    display: none;
  }

  .builder-progress-mobile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    background: white;
    border-bottom: 1px solid var(--builder-line);
    font-size: 0.72rem;
    color: #68717d;
  }

  .builder-progress-mobile > div {
    height: 5px;
    background: #edf0f2;
    border-radius: 999px;
    flex: 1;
    overflow: hidden;
  }

  .builder-progress-mobile i {
    display: block;
    height: 100%;
    background: var(--builder-orange);
  }
}

@media (max-width: 768px) {
  .background-container {
    padding: 1rem;
  }

  .content-panel {
    padding: 20px;
  }

  .main-heading {
    font-size: 2rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .review-carousel {
    padding: 20px 45px;
  }

  .landing-shell {
    padding: 16px;
  }

  .landing-panel {
    min-height: calc(100vh - 32px);
  }

  .landing-copy {
    padding: 44px 28px;
  }

  .landing-copy h1 {
    font-size: 2.65rem;
  }

  .builder-access-shell {
    padding: 14px;
  }

  .builder-access-card {
    padding: 32px 22px 26px;
    border-radius: 19px;
  }

  .builder-access-card h1 {
    font-size: 1.65rem;
  }

  .builder-access-help {
    flex-direction: column;
  }

  .primary-cta {
    width: 100%;
    justify-content: center;
  }

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

  .builder-header {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }

  .save-status,
  .signout-link {
    display: none;
  }

  .builder-workspace {
    padding: 18px 12px 34px;
  }

  .step-heading {
    padding: 24px 20px 20px;
  }

  .step-content {
    padding: 24px 20px;
  }

  .price-editor-grid {
    grid-template-columns: 1fr;
  }

  .provider-field {
    grid-template-columns: 1fr;
  }

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

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

  .step-navigation {
    padding: 14px 16px;
  }

  .skip-button {
    display: none !important;
  }
}

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

/* TeacherHarry.com public-page fidelity */
.teacher-site-root .content-panel {
  max-width: 1100px;
  background: rgba(35, 37, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-site-root .background-container {
  flex-direction: column;
  gap: 14px;
}

.teacher-builder-footer {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 2;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(22, 24, 28, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.teacher-builder-footer p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
}

.teacher-builder-footer .builder-footer-wordmark {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.teacher-builder-footer .builder-footer-wordmark span {
  color: var(--eslflix-red);
}

.teacher-builder-footer a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--eslflix-red);
  text-underline-offset: 3px;
}

.teacher-builder-footer a:hover {
  color: #ffccd0;
}

.teacher-site-root.theme-silver {
  --theme-accent: #f0f0f0;
  --theme-accent-hover: #d0d0d0;
  --theme-soft: rgba(255, 255, 255, 0.05);
  --theme-soft-hover: rgba(255, 255, 255, 0.1);
  --theme-border: rgba(255, 255, 255, 0.15);
  --theme-button-text: #111;
  --theme-calendar-filter: invert(1) grayscale(1);
}

.teacher-site-root.theme-orange {
  --theme-accent: #ff8c00;
  --theme-accent-hover: #dc7900;
  --theme-soft: rgba(255, 140, 0, 0.07);
  --theme-soft-hover: rgba(255, 140, 0, 0.14);
  --theme-border: rgba(255, 140, 0, 0.34);
  --theme-button-text: #111;
  --theme-calendar-filter: invert(1) hue-rotate(0deg) saturate(1.15);
}

.teacher-site-root.theme-blue {
  --theme-accent: #039be5;
  --theme-accent-hover: #0277b5;
  --theme-soft: rgba(3, 155, 229, 0.08);
  --theme-soft-hover: rgba(3, 155, 229, 0.16);
  --theme-border: rgba(3, 155, 229, 0.36);
  --theme-button-text: #fff;
  --theme-calendar-filter: invert(1) hue-rotate(180deg);
}

.teacher-site-root.theme-red {
  --theme-accent: #e50914;
  --theme-accent-hover: #b20710;
  --theme-soft: rgba(229, 9, 20, 0.08);
  --theme-soft-hover: rgba(229, 9, 20, 0.16);
  --theme-border: rgba(229, 9, 20, 0.4);
  --theme-button-text: #fff;
  --theme-calendar-filter: invert(1) sepia(0.7) saturate(5) hue-rotate(315deg);
}

.teacher-site-root.theme-purple {
  --theme-accent: #8b5cf6;
  --theme-accent-hover: #6d3fd4;
  --theme-soft: rgba(139, 92, 246, 0.09);
  --theme-soft-hover: rgba(139, 92, 246, 0.18);
  --theme-border: rgba(139, 92, 246, 0.42);
  --theme-button-text: #fff;
  --theme-calendar-filter: invert(1) sepia(0.55) saturate(4) hue-rotate(225deg);
}

/*
 * Fixed-layout palettes.
 * These declarations intentionally override any Liquid Glass colour saved on
 * the teacher profile, so every designed layout keeps its own visual identity.
 */
.teacher-site-root.site-theme-editorial {
  --theme-accent: #6577ff;
  --theme-accent-hover: #4f60df;
  --theme-soft: rgba(101, 119, 255, 0.08);
  --theme-soft-hover: rgba(101, 119, 255, 0.15);
  --theme-border: rgba(101, 119, 255, 0.28);
  --theme-button-text: #fff;
  --theme-calendar-filter: none;
}

.teacher-site-root.site-theme-studio {
  --theme-accent: #ee86bd;
  --theme-accent-hover: #d567a4;
  --theme-soft: rgba(238, 134, 189, 0.09);
  --theme-soft-hover: rgba(238, 134, 189, 0.17);
  --theme-border: rgba(238, 134, 189, 0.34);
  --theme-button-text: #16131b;
  --theme-calendar-filter: invert(1) sepia(0.35) saturate(2.6) hue-rotate(275deg);
}

.teacher-site-root.site-theme-link-stack {
  --theme-accent: #f7d75c;
  --theme-accent-hover: #e7c23c;
  --theme-soft: rgba(247, 215, 92, 0.12);
  --theme-soft-hover: rgba(247, 215, 92, 0.2);
  --theme-border: rgba(80, 84, 90, 0.3);
  --theme-button-text: #292d33;
  --theme-calendar-filter: none;
}

.teacher-site-root.site-theme-split-profile {
  --theme-accent: #8ea5ff;
  --theme-accent-hover: #7189e8;
  --theme-soft: rgba(142, 165, 255, 0.1);
  --theme-soft-hover: rgba(142, 165, 255, 0.18);
  --theme-border: rgba(142, 165, 255, 0.3);
  --theme-button-text: #fff;
  --theme-calendar-filter: none;
}

.teacher-site-root .grid-container {
  grid-template-columns: 300px 1fr;
  grid-template-rows: none;
  grid-template-areas: none;
  gap: 50px;
}

.teacher-site-root .profile-column,
.teacher-site-root .details-column {
  grid-area: auto;
}

.teacher-site-root .teacher-name {
  margin: 0 0 10px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
}

.teacher-site-root .details-column {
  gap: 40px;
}

.teacher-site-root .section-header {
  border-bottom-color: var(--theme-border);
}

.teacher-site-root .card {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  background: var(--theme-soft);
  border-color: var(--theme-border);
  overflow: hidden;
}

.teacher-site-root .card:hover {
  background: var(--theme-soft-hover);
}

.teacher-site-root .pricing-cards {
  align-items: start;
  grid-auto-rows: 360px;
}

.teacher-site-root .card h3 {
  height: 56px;
  min-height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 56px;
}

.teacher-site-root .card .price {
  height: 70px;
  min-height: 70px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
  flex: 0 0 70px;
}

.teacher-site-root .card .price.price-is-text {
  line-height: 1.08;
  white-space: nowrap;
}

.teacher-site-root .card .price-description {
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  margin: 0 0 18px;
  display: block;
  overflow: hidden;
  line-height: 1.45;
  flex: 0 0 88px;
}

.teacher-site-root .card > .button {
  min-height: 52px;
  max-height: 52px;
  margin-top: auto;
  flex: 0 0 52px;
}

.teacher-site-root .button {
  background: var(--theme-accent);
  color: var(--theme-button-text);
}

.teacher-site-root .button:hover {
  background: var(--theme-accent-hover);
}

.teacher-site-root .button.button-secondary {
  background: var(--theme-soft-hover);
  color: #f0f0f0;
  border-color: var(--theme-border);
}

.teacher-site-root .button.button-secondary:hover {
  background: color-mix(in srgb, var(--theme-accent) 25%, transparent);
}

.teacher-site-root .calendar-viewport {
  height: 100%;
  overflow: hidden;
  border-color: var(--theme-border);
  background: #232529;
}

.teacher-site-root .calendar-viewport iframe {
  height: 670px;
  margin-top: -280px;
  filter: var(--theme-calendar-filter);
}

.teacher-site-root .availability-card {
  min-height: 390px;
}

.teacher-site-root .review-carousel {
  border-color: var(--theme-border);
}

.teacher-site-root .modal-content,
.teacher-site-root .qualification-frame,
.teacher-site-root .video-modal-content {
  border-color: var(--theme-border);
}

.teacher-site-root .video-modal-content {
  border-color: var(--theme-accent);
}

.teacher-site-root .mobile-schedule-button {
  background: var(--theme-accent);
  color: var(--theme-button-text);
}

/* Single large modal wizard */
.wizard-page {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.wizard-background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(229, 9, 20, 0.28), transparent 34%),
    linear-gradient(rgba(10, 10, 10, 0.68), rgba(17, 17, 17, 0.84)),
    url("backgrounds/bg4.jpg") center/cover;
}

.wizard-modal {
  --wizard-accent: var(--eslflix-red);
  --wizard-accent-dark: var(--eslflix-red-dark);
  width: min(920px, calc(100vw - 40px));
  height: min(820px, calc(100vh - 50px));
  max-height: calc(100vh - 50px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wizard-accent) 48%, white);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  transition: width 0.3s ease;
}

.upload-progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(5px);
}

.upload-progress-overlay[hidden] {
  display: none;
}

.upload-progress-card {
  width: min(480px, 100%);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--wizard-accent) 28%, #dce1e6);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(25, 31, 40, 0.2);
  animation: uploadCardEnter 0.25s ease both;
}

.upload-progress-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--wizard-accent) 11%, white);
  color: var(--wizard-accent);
  font-size: 1.15rem;
}

.upload-progress-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.upload-progress-copy strong {
  color: #222a34;
  font-size: 0.9rem;
}

.upload-progress-copy small {
  overflow: hidden;
  color: #7e8792;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-percent {
  color: var(--wizard-accent);
  font-size: 0.9rem;
}

.upload-progress-track {
  height: 12px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf1;
  box-shadow: inset 0 1px 2px rgba(18, 24, 32, 0.08);
}

.upload-progress-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--wizard-accent), color-mix(in srgb, var(--wizard-accent) 70%, white));
  transition: width 0.18s ease;
}

.upload-progress-overlay.is-processing .upload-progress-track i {
  background:
    linear-gradient(
      100deg,
      var(--wizard-accent) 0%,
      color-mix(in srgb, var(--wizard-accent) 55%, white) 45%,
      var(--wizard-accent) 78%
    );
  background-size: 220% 100%;
  animation: uploadProcessing 1.1s linear infinite;
}

.upload-progress-overlay.is-processing .upload-progress-icon i {
  animation: uploadSpinner 0.85s linear infinite;
}

.upload-progress-overlay.is-complete .upload-progress-icon {
  background: #e8f8ef;
  color: #24854b;
}

.upload-progress-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a929c;
  font-size: 0.66rem;
  text-align: center;
}

@keyframes uploadProcessing {
  to {
    background-position: -220% 0;
  }
}

@keyframes uploadSpinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes uploadCardEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ajax-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  max-width: min(390px, calc(100vw - 32px));
  min-height: 52px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: var(--eslflix-red);
  color: #fff;
  box-shadow: 0 18px 44px rgba(77, 3, 7, 0.34);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px) translateX(18px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.ajax-toast.error {
  background: #92050c;
}

.ajax-toast.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.ajax-toast i {
  font-size: 1rem;
}

.wizard-header {
  flex: 0 0 auto;
  min-height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e8ec;
}

.eslflix-builder-brand {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.eslflix-builder-brand strong,
.eslflix-wordmark {
  color: #202124;
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow .eslflix-wordmark {
  color: #fff;
}

.eslflix-builder-brand strong span,
.eslflix-wordmark span {
  color: var(--eslflix-red);
}

.eslflix-builder-brand em {
  padding-left: 11px;
  border-left: 1px solid #dadddf;
  color: #4e5660;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.wizard-progress {
  flex: 0 0 auto;
  padding: 18px 34px 0;
}

.wizard-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7a838f;
  font-size: 0.72rem;
}

.wizard-progress strong {
  color: #333c47;
  font-weight: 600;
}

.wizard-progress-track {
  height: 6px;
  margin-top: 10px;
  position: relative;
  overflow: visible;
  border-radius: 999px;
  background: #e9edf1;
}

.wizard-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wizard-accent);
  pointer-events: none;
  transition: width 0.3s ease;
}

.wizard-progress-steps {
  position: absolute;
  z-index: 2;
  inset: -9px 0;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
}

.wizard-progress-step {
  min-width: 0;
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.wizard-progress-step::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: #c3c9d0;
  transform: translate(-50%, -50%);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.wizard-progress-step.is-complete::after {
  background: var(--wizard-accent);
}

.wizard-progress-step.is-current::after {
  background: #fff;
  box-shadow: 0 0 0 3px var(--wizard-accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.wizard-progress-step > span {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #20242a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 24, 30, 0.2);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.wizard-progress-step:first-child > span {
  left: 0;
  transform: translate(0, -4px);
}

.wizard-progress-step:last-child > span {
  right: 0;
  left: auto;
  transform: translate(0, -4px);
}

.wizard-progress-step:hover::after,
.wizard-progress-step:focus-visible::after {
  background: var(--wizard-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wizard-accent) 22%, transparent);
}

.wizard-progress-step:hover > span,
.wizard-progress-step:focus-visible > span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wizard-progress-step:first-child:hover > span,
.wizard-progress-step:first-child:focus-visible > span,
.wizard-progress-step:last-child:hover > span,
.wizard-progress-step:last-child:focus-visible > span {
  transform: translate(0, 0);
}

.wizard-progress-step:disabled {
  cursor: wait;
}

.wizard-modal.is-saving .wizard-progress-track i {
  background-image: linear-gradient(
    100deg,
    var(--wizard-accent) 0%,
    #ff5c64 45%,
    var(--wizard-accent) 75%
  );
  background-size: 220% 100%;
  animation: eslflixSaving 1s linear infinite;
}

.unsaved-warning-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(20, 22, 26, 0.58);
  backdrop-filter: blur(5px);
}

.unsaved-warning-overlay[hidden] {
  display: none;
}

.unsaved-warning-dialog {
  width: min(470px, 100%);
  padding: 28px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 16px;
  background: #fff;
  color: #202630;
  box-shadow: 0 24px 70px rgba(12, 15, 20, 0.34);
  text-align: center;
  animation: unsavedWarningIn 0.2s ease both;
}

.unsaved-warning-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fdebed;
  color: var(--eslflix-red);
  font-size: 1.15rem;
}

.unsaved-warning-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
}

.unsaved-warning-dialog p {
  margin: 10px auto 22px;
  color: #697380;
  font-size: 0.78rem;
  line-height: 1.6;
}

.unsaved-warning-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.unsaved-warning-actions button {
  min-height: 44px;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.unsaved-stay-button {
  border: 1px solid #d9dee4;
  background: #fff;
  color: #4b5561;
}

.unsaved-save-button {
  border: 1px solid var(--eslflix-red);
  background: var(--eslflix-red);
  color: #fff;
}

.unsaved-save-button:hover {
  border-color: var(--eslflix-red-dark);
  background: var(--eslflix-red-dark);
}

@keyframes unsavedWarningIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard-modal .step-heading {
  flex: 0 0 auto;
  padding: 24px 34px 18px;
}

.wizard-modal .step-heading > span {
  color: var(--wizard-accent);
}

.wizard-modal .step-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 26px 34px 34px;
}

.wizard-modal .step-navigation {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: 0 -8px 22px rgba(25, 31, 40, 0.04);
}

.wizard-modal .next-button,
.wizard-modal .publish-button {
  background: var(--wizard-accent);
}

.wizard-modal .next-button:hover,
.wizard-modal .publish-button:hover {
  background: var(--wizard-accent-dark);
}

.wizard-modal .upload-button {
  background: #232529;
}

.wizard-modal .form-stack input:focus,
.wizard-modal .form-stack textarea:focus,
.wizard-modal .provider-fields input:focus,
.wizard-modal .editor-card input:focus,
.wizard-modal .editor-card textarea:focus {
  border-color: var(--wizard-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wizard-accent) 13%, transparent);
}

.wizard-modal .qualification-card-heading > span,
.wizard-modal .qualification-file-picker > span {
  color: var(--wizard-accent);
}

.wizard-modal .qualification-card-heading > span {
  background: color-mix(in srgb, var(--wizard-accent) 10%, white);
}

.wizard-modal .qualification-file-picker:hover {
  border-color: var(--wizard-accent);
  background: color-mix(in srgb, var(--wizard-accent) 4%, white);
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.theme-choice-card {
  min-height: 175px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  color: #20242b;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.theme-choice-card:hover {
  transform: translateY(-3px);
  border-color: #b6bcc5;
  box-shadow: 0 12px 28px rgba(25, 31, 40, 0.1);
}

.theme-choice-card.selected {
  border-color: var(--eslflix-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.theme-choice-card > i {
  color: var(--eslflix-red);
  opacity: 0;
}

.theme-choice-card.selected > i {
  opacity: 1;
}

.theme-swatch {
  width: 35px;
  height: 35px;
  border: 5px solid #232529;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #cfd4da;
}

.theme-choice-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.theme-choice-card strong {
  font-size: 0.95rem;
}

.theme-choice-card small {
  color: #69727e;
  font-size: 0.7rem;
  font-weight: 600;
}

.theme-choice-card em {
  margin-top: 8px;
  color: #89919b;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.5;
}

.layout-theme-help {
  margin-bottom: 2px;
  text-align: center;
}

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

.layout-theme-option {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f6f7f9;
  color: #222a34;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.layout-theme-option:hover {
  border-color: #cbd1d8;
  box-shadow: 0 10px 24px rgba(25, 31, 40, 0.1);
  transform: translateY(-3px);
}

.layout-theme-option.selected {
  border-color: var(--wizard-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wizard-accent) 12%, transparent);
}

.layout-theme-preview {
  aspect-ratio: 1.45;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  background: #1e2228;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.layout-theme-preview > i {
  position: absolute;
  display: block;
}

.layout-theme-preview > b {
  width: 20px;
  height: 20px;
  position: absolute;
  z-index: 4;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wizard-accent);
  color: #fff;
  font-size: 0.58rem;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.layout-theme-option.selected .layout-theme-preview > b {
  opacity: 1;
  transform: scale(1);
}

.layout-theme-preview-liquid-glass {
  background:
    radial-gradient(circle at 80% 18%, rgba(3, 155, 229, 0.42), transparent 38%),
    linear-gradient(135deg, #1d2229, #384047);
}

.layout-theme-preview-liquid-glass .layout-preview-avatar {
  width: 27%;
  aspect-ratio: 1;
  top: 13%;
  left: 9%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #88939f;
}

.layout-theme-preview-liquid-glass .layout-preview-name {
  width: 27%;
  height: 6%;
  top: 47%;
  left: 9%;
  border-radius: 5px;
  background: #f4f6f8;
}

.layout-theme-preview-liquid-glass .layout-preview-copy {
  width: 27%;
  height: 23%;
  top: 59%;
  left: 9%;
  border-radius: 5px;
  background: repeating-linear-gradient(#89929c 0 3px, transparent 3px 8px);
  opacity: 0.75;
}

.layout-theme-preview-liquid-glass .layout-preview-schedule {
  width: 52%;
  height: 40%;
  top: 12%;
  right: 7%;
  border: 1px solid rgba(3, 155, 229, 0.65);
  border-radius: 7px;
  background: rgba(20, 25, 31, 0.66);
}

.layout-theme-preview-liquid-glass .layout-preview-card {
  width: 15%;
  height: 25%;
  bottom: 10%;
  border: 1px solid rgba(3, 155, 229, 0.55);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.layout-theme-preview-liquid-glass .preview-card-one { left: 43%; }
.layout-theme-preview-liquid-glass .preview-card-two { left: 61%; }
.layout-theme-preview-liquid-glass .preview-card-three { left: 79%; }

.layout-theme-preview-editorial {
  background:
    linear-gradient(90deg, #c25e3c 0 3%, transparent 3%),
    #f5f0e7;
  box-shadow: inset 0 0 0 1px #dfd5c5;
}

.layout-theme-preview-editorial .layout-preview-avatar {
  width: 25%;
  height: 43%;
  top: 13%;
  left: 9%;
  border-radius: 2px;
  background: #9e7562;
}

.layout-theme-preview-editorial .layout-preview-name {
  width: 29%;
  height: 7%;
  top: 63%;
  left: 9%;
  background: #26323b;
}

.layout-theme-preview-editorial .layout-preview-copy {
  width: 28%;
  height: 15%;
  top: 75%;
  left: 9%;
  background: repeating-linear-gradient(#948b80 0 2px, transparent 2px 6px);
}

.layout-theme-preview-editorial .layout-preview-schedule {
  width: 53%;
  height: 38%;
  top: 13%;
  right: 7%;
  border-top: 3px solid #c25e3c;
  border-bottom: 1px solid #b9afa0;
  background: #fffdf8;
}

.layout-theme-preview-editorial .layout-preview-card {
  width: 15%;
  height: 27%;
  bottom: 10%;
  border: 1px solid #cfc3b1;
  border-radius: 1px;
  background: #fffdf8;
}

.layout-theme-preview-editorial .preview-card-one { left: 43%; }
.layout-theme-preview-editorial .preview-card-two { left: 61%; }
.layout-theme-preview-editorial .preview-card-three { left: 79%; }

.layout-theme-preview-studio {
  background:
    radial-gradient(circle at 70% 18%, rgba(139, 92, 246, 0.55), transparent 34%),
    #0d1224;
}

.layout-theme-preview-studio .layout-preview-avatar {
  width: 17%;
  aspect-ratio: 1;
  top: 9%;
  left: 7%;
  border-radius: 9px;
  background: linear-gradient(145deg, #5eead4, #8b5cf6);
}

.layout-theme-preview-studio .layout-preview-name {
  width: 35%;
  height: 7%;
  top: 12%;
  left: 28%;
  border-radius: 8px;
  background: #f2f4ff;
}

.layout-theme-preview-studio .layout-preview-copy {
  width: 35%;
  height: 17%;
  top: 25%;
  left: 28%;
  border-radius: 4px;
  background: repeating-linear-gradient(#747f9d 0 2px, transparent 2px 6px);
}

.layout-theme-preview-studio .layout-preview-schedule {
  width: 27%;
  height: 34%;
  top: 9%;
  right: 6%;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 8px;
  background: rgba(20, 28, 55, 0.9);
}

.layout-theme-preview-studio .layout-preview-card {
  width: 27%;
  height: 36%;
  bottom: 10%;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 8px;
  background: #151c35;
}

.layout-theme-preview-studio .preview-card-one { left: 7%; }
.layout-theme-preview-studio .preview-card-two { left: 37%; }
.layout-theme-preview-studio .preview-card-three { left: 67%; }

.layout-theme-preview-link-stack {
  background:
    linear-gradient(rgba(77, 69, 59, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 69, 59, 0.08) 1px, transparent 1px),
    #f8eddb;
  background-size: 11px 11px;
}

.layout-theme-preview-link-stack .layout-preview-avatar {
  width: 13%;
  aspect-ratio: 1;
  top: 9%;
  left: 31%;
  border: 2px solid #4a4e55;
  border-radius: 50%;
  background: #dda36f;
}

.layout-theme-preview-link-stack .layout-preview-name {
  width: 27%;
  height: 6%;
  top: 12%;
  left: 47%;
  background: #333840;
}

.layout-theme-preview-link-stack .layout-preview-copy {
  width: 24%;
  height: 4%;
  top: 21%;
  left: 47%;
  background: #a39a8c;
}

.layout-theme-preview-link-stack .layout-preview-schedule,
.layout-theme-preview-link-stack .layout-preview-card {
  width: 40%;
  height: 13%;
  left: 30%;
  border: 2px solid #4d5158;
  border-radius: 5px;
}

.layout-theme-preview-link-stack .layout-preview-schedule { top: 32%; background: #f7d75c; }
.layout-theme-preview-link-stack .preview-card-one { top: 49%; background: #6677ff; }
.layout-theme-preview-link-stack .preview-card-two { top: 66%; background: #ff8194; }
.layout-theme-preview-link-stack .preview-card-three { top: 83%; height: 8%; background: #2ecbb4; }

.layout-theme-preview-split-profile {
  background: linear-gradient(135deg, #ffd6bb, #ddd4ff);
}

.layout-theme-preview-split-profile .layout-preview-avatar {
  width: 31%;
  height: 74%;
  top: 13%;
  left: 8%;
  border-radius: 3px;
  background: #928e93;
}

.layout-theme-preview-split-profile .layout-preview-name {
  width: 24%;
  height: 8%;
  top: 19%;
  left: 44%;
  background: #4b5060;
}

.layout-theme-preview-split-profile .layout-preview-copy {
  width: 25%;
  height: 36%;
  top: 35%;
  left: 44%;
  background: repeating-linear-gradient(#a0a3ad 0 2px, transparent 2px 7px);
}

.layout-theme-preview-split-profile .layout-preview-schedule {
  width: 18%;
  height: 15%;
  top: 20%;
  right: 8%;
  border-radius: 5px;
  background: #91a6ff;
}

.layout-theme-preview-split-profile .layout-preview-card {
  width: 18%;
  height: 10%;
  right: 8%;
  border-radius: 4px;
  background: #fff;
}

.layout-theme-preview-split-profile .preview-card-one { top: 42%; }
.layout-theme-preview-split-profile .preview-card-two { top: 57%; }
.layout-theme-preview-split-profile .preview-card-three { top: 72%; }

.layout-theme-label {
  min-width: 0;
  padding: 0 2px 2px;
  display: grid;
  gap: 2px;
}

.layout-theme-label strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-theme-label small {
  color: #7b8490;
  font-size: 0.62rem;
  line-height: 1.35;
}

.colour-help {
  text-align: center;
}

.colour-selector-grid {
  min-height: 235px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  background: #fafbfc;
}

.colour-selector {
  width: 92px;
  height: 92px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 38, 49, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.colour-selector:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 13px 28px rgba(30, 38, 49, 0.13);
}

.colour-selector.selected {
  border-color: var(--wizard-accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--wizard-accent) 14%, transparent),
    0 13px 28px rgba(30, 38, 49, 0.13);
}

.colour-selector-swatch {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 6px solid #252a31;
  border-radius: 50%;
  background: var(--swatch);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.colour-selector-swatch i {
  font-size: 1rem;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.colour-selector.selected .colour-selector-swatch i {
  opacity: 1;
}

.step-enter-forward {
  animation: wizardStepForward 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.step-enter-back {
  animation: wizardStepBack 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes wizardStepForward {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardStepBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes eslflixSaving {
  to {
    background-position: -220% 0;
  }
}

.final-preview-step {
  display: grid;
  place-items: center;
}

.wizard-modal .final-preview-step {
  min-height: 0;
  max-height: none;
}

.final-domain-card {
  width: 100%;
  max-width: 680px;
  margin: 4px auto 12px;
  padding: 22px 24px;
  border: 1px solid #e0e4ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(19, 26, 36, 0.08);
  text-align: center;
}

.final-domain-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wizard-accent) 12%, #fff);
  color: var(--wizard-accent);
  font-size: 1.25rem;
}

.final-domain-card h2 {
  margin: 0 0 6px;
  color: #202833;
  font-size: 1.25rem;
}

.final-domain-card > p {
  margin: 0 0 16px;
  color: #778195;
  font-size: 0.88rem;
}

.subdomain-editor {
  width: min(100%, 470px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.subdomain-editor-label {
  color: #3b4553;
  font-size: 0.75rem;
  font-weight: 700;
}

.subdomain-entry-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.subdomain-entry-row input {
  width: clamp(160px, 24vw, 230px);
  min-height: 42px !important;
  border: 1px solid #cfd5dd !important;
  border-radius: 9px !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: #202833;
  box-shadow: 0 3px 10px rgba(25, 32, 43, 0.05) !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  text-align: left;
}

.subdomain-entry-row input:focus {
  border-color: var(--wizard-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wizard-accent) 12%, transparent) !important;
  outline: 0;
}

.subdomain-entry-row strong {
  color: #596477;
  font-size: 0.82rem;
  font-weight: 700;
}

.subdomain-editor > small {
  color: #8a93a3;
  font-size: 0.68rem;
}

.subdomain-editor > small b {
  color: #596477;
  font-weight: 600;
}

.domain-provisioning-note {
  max-width: 570px;
  margin: 10px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #697386;
  font-size: 0.72rem;
  line-height: 1.55;
}

.domain-provisioning-note i {
  color: var(--wizard-accent);
}

.domain-provisioning-note a {
  color: var(--wizard-accent-dark);
  font-weight: 700;
}

.private-preview-link {
  margin: 0 0 20px;
  padding: 16px;
  display: grid;
  gap: 5px;
  border-radius: 12px;
  background: #f5f7fa;
  text-align: left;
}

.private-preview-link span {
  color: #27303d;
  font-size: 0.82rem;
  font-weight: 700;
}

.private-preview-link a {
  overflow-wrap: anywhere;
  color: var(--wizard-accent-dark);
  font-size: 0.78rem;
}

.private-preview-link small {
  color: #8a93a3;
  font-size: 0.7rem;
}

.final-domain-card .open-preview-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 15px 24px;
  background: var(--wizard-accent);
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--wizard-accent) 24%, transparent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.final-domain-card .open-preview-button:hover {
  background: var(--wizard-accent-dark);
  transform: translateY(-2px);
}

.final-domain-card .open-preview-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.preview-access-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 24px;
  display: none;
  place-items: center;
  background: rgba(12, 16, 22, 0.78);
  backdrop-filter: blur(9px);
}

.preview-access-modal.is-visible {
  display: grid;
}

.preview-access-modal section {
  width: min(100%, 520px);
  padding: 38px 34px 34px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  color: #202833;
  text-align: center;
}

.preview-access-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.1);
  color: #e50914;
  font-size: 1.4rem;
}

.preview-access-modal h1 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.preview-access-modal p {
  margin: 0 auto;
  max-width: 420px;
  color: #667085;
  line-height: 1.7;
}

.preview-access-modal button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  background: #e50914;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.preview-access-modal button:hover {
  background: #b20710;
}

.preview-locked-page {
  min-height: 100vh;
  background: #171b21;
}

.preview-expired-modal {
  background: #171b21;
  backdrop-filter: none;
}

@media (max-width: 992px) {
  .teacher-site-root .grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wizard-page {
    padding: 12px;
    overflow: auto;
  }

  .wizard-modal {
    width: 100%;
    height: calc(100vh - 24px);
    min-height: 0;
    max-height: calc(100vh - 24px);
  }

  .wizard-modal .step-content,
  .wizard-modal .final-preview-step {
    max-height: none;
  }

  .theme-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wizard-header {
    padding: 14px 18px;
  }

  .wizard-header .save-status,
  .wizard-header .signout-link {
    display: none;
  }

  .wizard-progress,
  .wizard-modal .step-heading,
  .wizard-modal .step-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wizard-modal .skip-button {
    display: inline-flex !important;
  }

  .wizard-modal .step-navigation {
    gap: 4px;
    padding: 12px;
  }

  .unsaved-warning-dialog {
    padding: 22px 18px;
  }

  .unsaved-warning-actions {
    flex-direction: column;
  }

  .unsaved-warning-actions button {
    width: 100%;
  }

  .speciality-add-row {
    grid-template-columns: 1fr;
  }

  .wizard-modal .step-navigation > div {
    gap: 3px;
  }

  .wizard-modal .step-navigation button {
    padding: 9px 10px;
    font-size: 0.7rem;
  }

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

  .eslflix-builder-brand em {
    padding-left: 0;
    border-left: 0;
    font-size: 0.63rem;
  }

  .ajax-toast {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .qualification-upload-card {
    padding: 16px;
  }

  .qualification-card-fields {
    grid-template-columns: 1fr;
  }

  .colour-selector-grid {
    min-height: 0;
    padding: 18px;
    gap: 12px;
  }

  .colour-selector {
    width: 68px;
    height: 68px;
  }

  .colour-selector-swatch {
    width: 48px;
    height: 48px;
    border-width: 5px;
  }

  .upload-progress-card {
    padding: 21px;
    grid-template-columns: auto 1fr;
  }

  .upload-progress-percent {
    grid-column: 1 / -1;
    text-align: right;
  }
}

/* Original Harry/Aaron qualifications modal and review carousel */
#qualificationsModal .modal-content {
  max-width: 800px;
}

#qualificationsModal .modal-close {
  top: 15px;
  right: 25px;
  color: #aaa;
  background: transparent;
  font-size: 28px;
}

#qualificationTitle {
  height: 1.2rem;
  margin-top: -15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}

#qualificationTitle.fading-out {
  opacity: 0;
}

#qualificationsModal .carousel {
  position: relative;
}

#qualificationsModal .carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

#qualificationsModal .carousel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#qualificationsModal .carousel-slide {
  min-width: 100%;
  height: 60vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.2);
}

#qualificationsModal .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#qualificationsModal .carousel-slide img.zoomable {
  cursor: zoom-in;
}

#qualificationsModal .carousel-slide.pdf-slide {
  height: 60vh;
  padding: 0;
}

#qualificationsModal .pdf-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

#qualificationsModal .carousel-arrow {
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
  user-select: none;
}

#qualificationsModal .carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.mobile-qualifications-links {
  display: none;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.mobile-qualifications-links a {
  display: block;
  padding: 15px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-soft-hover);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.3s;
}

#imageZoomModal {
  z-index: 1001;
  cursor: zoom-out;
}

#zoomedImage {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#imageZoomModal.is-visible #zoomedImage {
  transform: scale(1);
}

.teacher-site-root .review-carousel {
  position: relative;
  min-height: 0;
  display: block;
  overflow: hidden;
  box-sizing: content-box;
  padding: 20px 60px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  transition: height 0.5s ease-in-out;
}

.teacher-site-root .review-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.teacher-site-root .review-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.teacher-site-root .review-slide.active {
  display: block;
  animation: slide-in 0.5s forwards;
}

.teacher-site-root .review-slide.exiting {
  animation: slide-out 0.5s forwards;
}

.teacher-site-root .review-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-style: italic;
}

.teacher-site-root .review-author {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.teacher-site-root .review-arrow {
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.teacher-site-root .review-arrow:hover,
.teacher-site-root .review-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
}

.teacher-site-root .review-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -3px;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slide-in-reverse {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-out-reverse {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  #qualificationsModal .modal-content {
    width: 95%;
    padding: 20px;
  }

  #qualificationsModal .carousel {
    display: none;
  }

  #qualificationsModal .mobile-qualifications-links {
    display: flex;
  }

  .teacher-site-root .review-carousel {
    padding: 20px 45px;
  }
}

/* Editorial Classroom: a warm, structured teaching profile */
.teacher-site-root.site-theme-editorial {
  --text-primary: #1f2c33;
  --text-secondary: #665f57;
  --solid-dark-bg: #fffdf8;
  --border-color: #d8cdbd;
  font-family: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-editorial .background-container {
  padding: clamp(24px, 4vw, 64px);
  color: #1f2c33;
}

.teacher-site-root.site-theme-editorial .content-panel {
  max-width: 1180px;
  padding: clamp(28px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(96, 72, 49, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(90deg, var(--theme-accent) 0 7px, transparent 7px),
    rgba(250, 247, 239, 0.97);
  box-shadow: 0 28px 80px rgba(32, 22, 12, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.teacher-site-root.site-theme-editorial .grid-container {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 74px);
}

.teacher-site-root.site-theme-editorial .profile-column {
  text-align: left;
}

.teacher-site-root.site-theme-editorial .profile-pic {
  width: 100%;
  height: 286px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 2px;
  background: #ded4c5;
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--theme-accent) 18%, #ded4c5);
}

.teacher-site-root.site-theme-editorial .teacher-name,
.teacher-site-root.site-theme-editorial .section-header h2,
.teacher-site-root.site-theme-editorial .modal-header {
  font-family: "Lora", Georgia, serif;
}

.teacher-site-root.site-theme-editorial .teacher-name {
  margin: 0 0 14px;
  color: #17242b;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.teacher-site-root.site-theme-editorial .profile-buttons {
  justify-content: flex-start;
}

.teacher-site-root.site-theme-editorial .profile-buttons .button {
  flex: 0 1 auto;
  border-radius: 2px;
  background: transparent;
  color: #26343b;
}

.teacher-site-root.site-theme-editorial .profile-buttons .button .button-icon {
  filter: brightness(0) saturate(100%);
}

.teacher-site-root.site-theme-editorial .profile-specialities {
  justify-content: flex-start;
  margin: 10px 0 22px;
}

.teacher-site-root.site-theme-editorial .profile-specialities span {
  padding: 6px 10px;
  border-width: 0 0 2px;
  border-radius: 0;
  background: transparent;
  color: #24323a;
  box-shadow: none;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-editorial .profile-description {
  padding-top: 18px;
  border-top: 1px solid #cfc3b2;
}

.teacher-site-root.site-theme-editorial .profile-description p {
  margin-top: 0;
  color: #665f57;
  font-weight: 400;
  line-height: 1.78;
}

.teacher-site-root.site-theme-editorial .contact-buttons {
  margin-top: 24px;
}

.teacher-site-root.site-theme-editorial .contact-button {
  justify-content: flex-start;
  border-radius: 2px;
  padding: 12px 15px;
}

.teacher-site-root.site-theme-editorial .details-column {
  gap: 34px;
}

.teacher-site-root.site-theme-editorial .details-section {
  min-width: 0;
}

.teacher-site-root.site-theme-editorial .section-header {
  margin-bottom: 18px;
  padding: 0 0 13px;
  border-bottom: 2px solid #27343a;
}

.teacher-site-root.site-theme-editorial .section-header h2 {
  color: #1a282f;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.teacher-site-root.site-theme-editorial .calendar-viewport {
  height: 390px;
  border: 1px solid #cfc3b2;
  border-radius: 2px;
  background: #22272c;
}

.teacher-site-root.site-theme-editorial .calendar-section {
  flex-grow: 0;
}

.teacher-site-root.site-theme-editorial .availability-card {
  color: #1c2930;
  background:
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(116, 91, 65, 0.09) 33px 34px),
    #fffdf8;
}

.teacher-site-root.site-theme-editorial .review-carousel {
  border: 0;
  border-left: 4px solid var(--theme-accent);
  border-radius: 0;
  background: #eee7dc;
}

.teacher-site-root.site-theme-editorial .review-author {
  color: #243138;
}

.teacher-site-root.site-theme-editorial .review-text {
  color: #655d54;
  font-family: "Lora", Georgia, serif;
}

.teacher-site-root.site-theme-editorial .review-arrow {
  color: #463f38;
}

.teacher-site-root.site-theme-editorial .pricing-cards {
  gap: 14px;
  grid-auto-rows: 330px;
}

.teacher-site-root.site-theme-editorial .card {
  height: 330px;
  min-height: 330px;
  max-height: 330px;
  border: 1px solid #cfc3b2;
  border-radius: 2px;
  background: #fffdf8;
  color: #1c2930;
  box-shadow: 0 10px 25px rgba(76, 57, 38, 0.07);
}

.teacher-site-root.site-theme-editorial .card:hover {
  border-color: var(--theme-accent);
  background: #fffdf8;
  box-shadow: 0 15px 34px rgba(76, 57, 38, 0.12);
}

.teacher-site-root.site-theme-editorial .card h3 {
  color: #26343b;
  font-family: "Lora", Georgia, serif;
}

.teacher-site-root.site-theme-editorial .card .price {
  color: #1a282f;
}

.teacher-site-root.site-theme-editorial .card .price-unit,
.teacher-site-root.site-theme-editorial .card .price-description {
  color: #746b61;
}

.teacher-site-root.site-theme-editorial .button {
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-editorial .card > .button {
  border: 1px solid var(--theme-accent);
}

.teacher-site-root.site-theme-editorial .teacher-builder-footer {
  max-width: 1180px;
  border: 1px solid rgba(96, 72, 49, 0.22);
  border-radius: 2px;
  background: rgba(32, 41, 45, 0.94);
  font-family: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-editorial .modal {
  background: rgba(29, 27, 24, 0.7);
  backdrop-filter: blur(4px);
}

.teacher-site-root.site-theme-editorial .modal-content {
  border: 1px solid #cfc3b2;
  border-radius: 3px;
  background: #faf7ef;
  color: #1f2c33;
  box-shadow: 0 28px 85px rgba(22, 18, 13, 0.34);
  transform: translateY(54px);
}

.teacher-site-root.site-theme-editorial .modal.is-visible .modal-content {
  transform: translateY(0);
}

.teacher-site-root.site-theme-editorial .modal-close {
  color: #6c6258;
}

.teacher-site-root.site-theme-editorial .qualification-title,
.teacher-site-root.site-theme-editorial #qualificationTitle,
.teacher-site-root.site-theme-editorial .info-text {
  color: #6c6258;
}

.teacher-site-root.site-theme-editorial .qualification-frame,
.teacher-site-root.site-theme-editorial #qualificationsModal .carousel-viewport {
  border-radius: 1px;
  background: #e8e1d6;
}

.teacher-site-root.site-theme-editorial .video-modal-content {
  border: 5px solid var(--theme-accent);
  background: #111;
}

/* Tutor Studio: a dark bento-style teaching dashboard */
.teacher-site-root.site-theme-studio {
  --text-primary: #f7f8ff;
  --text-secondary: #a7b0ca;
  --solid-dark-bg: #10172c;
  --border-color: rgba(167, 139, 250, 0.26);
  font-family: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-studio .background-container {
  padding: clamp(20px, 3vw, 44px);
  color: #f7f8ff;
}

.teacher-site-root.site-theme-studio .content-panel {
  max-width: 1320px;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 40%, rgba(255, 255, 255, 0.1));
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 6%, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 30%),
    rgba(9, 14, 31, 0.93);
  box-shadow: 0 28px 90px rgba(2, 5, 16, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.teacher-site-root.site-theme-studio .grid-container {
  grid-template-columns: 1fr;
  gap: 28px;
}

.teacher-site-root.site-theme-studio .profile-column {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(28, 38, 73, 0.88), rgba(15, 23, 48, 0.88));
  text-align: left;
}

.teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
  grid-template-columns: 1fr;
}

.teacher-site-root.site-theme-studio .profile-content {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar actions"
    "avatar pills"
    "copy copy";
  align-content: start;
  column-gap: 24px;
}

.teacher-site-root.site-theme-studio .profile-pic {
  width: 148px;
  height: 148px;
  grid-area: avatar;
  margin: 0;
  border: 2px solid color-mix(in srgb, var(--theme-accent) 70%, white);
  border-radius: 22px;
  background: #18213e;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

.teacher-site-root.site-theme-studio .teacher-name {
  grid-area: name;
  align-self: end;
  margin: 0 0 10px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.teacher-site-root.site-theme-studio .profile-buttons {
  grid-area: actions;
  justify-content: flex-start;
  margin: 0 0 10px;
}

.teacher-site-root.site-theme-studio .profile-buttons .button {
  flex: 0 1 170px;
  border-radius: 12px;
}

.teacher-site-root.site-theme-studio .profile-specialities {
  grid-area: pills;
  justify-content: flex-start;
  margin: 0;
}

.teacher-site-root.site-theme-studio .profile-specialities span {
  border-color: color-mix(in srgb, var(--theme-accent) 65%, white);
  background: color-mix(in srgb, var(--theme-accent) 24%, #151d38);
  color: #fff;
  box-shadow: none;
}

.teacher-site-root.site-theme-studio .profile-description {
  grid-area: copy;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-site-root.site-theme-studio .profile-description p {
  max-width: 900px;
  margin: 0;
  color: #abb5cf;
  font-weight: 300;
  line-height: 1.75;
}

.teacher-site-root.site-theme-studio .contact-buttons {
  align-content: center;
  gap: 9px;
  margin: 0;
}

.teacher-site-root.site-theme-studio .contact-button {
  min-height: 49px;
  justify-content: flex-start;
  border-radius: 13px;
  padding-inline: 18px;
}

.teacher-site-root.site-theme-studio .details-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: start;
  gap: 24px;
}

.teacher-site-root.site-theme-studio .details-column > .details-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(16, 23, 45, 0.86);
}

.teacher-site-root.site-theme-studio .details-column > .calendar-section {
  min-height: 466px;
  grid-column: 1;
  grid-row: 1;
}

.teacher-site-root.site-theme-studio .details-column > .details-section:has(.review-carousel) {
  min-height: 466px;
  grid-column: 2;
  grid-row: 1;
  align-content: center;
}

.teacher-site-root.site-theme-studio .details-column > .details-section:has(.pricing-cards) {
  grid-column: 1 / -1;
}

.teacher-site-root.site-theme-studio .section-header {
  border: 0;
  margin-bottom: 14px;
  padding: 0;
}

.teacher-site-root.site-theme-studio .section-header h2 {
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.teacher-site-root.site-theme-studio .calendar-viewport {
  height: 390px;
  min-height: 390px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 40%, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  background: #0b1020;
}

.teacher-site-root.site-theme-studio .availability-card {
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 52%),
    #0b1020;
}

.teacher-site-root.site-theme-studio .review-carousel {
  min-height: 168px;
  padding: 28px 42px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.08));
}

.teacher-site-root.site-theme-studio .review-text {
  color: #c2c9dd;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.teacher-site-root.site-theme-studio .pricing-cards {
  gap: 14px;
  grid-auto-rows: 340px;
}

.teacher-site-root.site-theme-studio .card {
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 32%, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 12%, #151d38), #11182f);
}

.teacher-site-root.site-theme-studio .card:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 70%, white);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 18%, #18213f), #141b34);
  transform: translateY(-7px) scale(1.01);
}

.teacher-site-root.site-theme-studio .card h3,
.teacher-site-root.site-theme-studio .card .price {
  color: #fff;
}

.teacher-site-root.site-theme-studio .card .price-unit,
.teacher-site-root.site-theme-studio .card .price-description {
  color: #aab3cc;
}

.teacher-site-root.site-theme-studio .button {
  border-radius: 13px;
  font-family: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-studio .teacher-builder-footer {
  max-width: 1320px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(9, 14, 31, 0.9);
  font-family: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-studio .modal {
  background: rgba(3, 6, 18, 0.78);
  backdrop-filter: blur(12px);
}

.teacher-site-root.site-theme-studio .modal-content {
  border: 1px solid color-mix(in srgb, var(--theme-accent) 45%, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--theme-accent) 18%, transparent), transparent 34%),
    #11182d;
  color: #f7f8ff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
  transform: perspective(900px) translateY(24px) scale(0.86) rotateX(8deg);
}

.teacher-site-root.site-theme-studio .modal.is-visible .modal-content {
  transform: perspective(900px) translateY(0) scale(1) rotateX(0);
}

.teacher-site-root.site-theme-studio .video-modal-content {
  border: 5px solid var(--theme-accent);
  background: #05070d;
}

@media (max-width: 992px) {
  .teacher-site-root.site-theme-editorial .grid-container {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-editorial .profile-column {
    max-width: none;
  }

  .teacher-site-root.site-theme-editorial .profile-content {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 28px;
  }

  .teacher-site-root.site-theme-editorial .profile-pic {
    width: 190px;
    height: 220px;
    grid-row: 1 / span 4;
  }

  .teacher-site-root.site-theme-editorial .contact-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-site-root.site-theme-studio .profile-column,
  .teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-studio .contact-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-site-root.site-theme-studio .details-column {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-studio .details-column > .calendar-section,
  .teacher-site-root.site-theme-studio .details-column > .details-section:has(.review-carousel),
  .teacher-site-root.site-theme-studio .details-column > .details-section:has(.pricing-cards) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .layout-theme-grid {
    gap: 6px;
  }

  .layout-theme-option {
    padding: 5px;
    border-radius: 9px;
  }

  .layout-theme-label strong {
    font-size: 0.62rem;
  }

  .layout-theme-label small {
    display: none;
  }

  .teacher-site-root.site-theme-editorial .background-container,
  .teacher-site-root.site-theme-studio .background-container {
    padding: 12px;
  }

  .teacher-site-root.site-theme-editorial .content-panel,
  .teacher-site-root.site-theme-studio .content-panel {
    padding: 22px;
  }

  .teacher-site-root.site-theme-editorial .profile-content,
  .teacher-site-root.site-theme-studio .profile-content {
    display: flex;
    flex-direction: column;
  }

  .teacher-site-root.site-theme-editorial .profile-pic,
  .teacher-site-root.site-theme-studio .profile-pic {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
  }

  .teacher-site-root.site-theme-editorial .teacher-name,
  .teacher-site-root.site-theme-studio .teacher-name {
    text-align: center;
  }

  .teacher-site-root.site-theme-editorial .profile-buttons,
  .teacher-site-root.site-theme-editorial .profile-specialities,
  .teacher-site-root.site-theme-studio .profile-buttons,
  .teacher-site-root.site-theme-studio .profile-specialities {
    justify-content: center;
  }

  .teacher-site-root.site-theme-editorial .contact-buttons,
  .teacher-site-root.site-theme-studio .contact-buttons {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-studio .details-column > .calendar-section {
    min-height: 0;
  }

  .teacher-site-root.site-theme-studio .calendar-viewport {
    min-height: 0;
  }
}

/* Theme background choice dialog */
.layout-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(18, 20, 25, 0.66);
  backdrop-filter: blur(7px);
}

.layout-background-overlay[hidden] {
  display: none;
}

.layout-background-dialog {
  width: min(590px, 100%);
  position: relative;
  padding: 28px;
  border: 1px solid rgba(229, 9, 20, 0.28);
  border-radius: 18px;
  background: #fff;
  color: #202833;
  box-shadow: 0 30px 90px rgba(12, 16, 23, 0.38);
  text-align: center;
  animation: layoutBackgroundDialogIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.layout-background-close {
  position: absolute;
  top: 9px;
  right: 13px;
  border: 0;
  background: transparent;
  color: #7a838e;
  font-size: 1.7rem;
  cursor: pointer;
}

.layout-background-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fdebed;
  color: var(--eslflix-red);
}

.layout-background-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
}

.layout-background-dialog > p {
  margin: 8px auto 20px;
  color: #727c89;
  font-size: 0.76rem;
  line-height: 1.55;
}

.layout-background-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.layout-background-choices > button {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 4px;
  border: 1px solid #dfe4e9;
  border-radius: 13px;
  background: #fff;
  color: #27303b;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.layout-background-choices > button:hover,
.layout-background-choices > button:focus-visible {
  border-color: var(--eslflix-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

.layout-background-choice-preview {
  aspect-ratio: 1.9;
  margin-bottom: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
}

.layout-background-choice-preview.is-signature {
  background:
    linear-gradient(120deg, rgba(255, 183, 139, 0.86), rgba(187, 181, 255, 0.85)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.22) 16px 17px);
}

.layout-background-choice-preview.is-custom {
  background:
    linear-gradient(rgba(13, 18, 28, 0.35), rgba(13, 18, 28, 0.35)),
    url("backgrounds/bg4.jpg") center/cover;
}

.layout-background-choices strong {
  padding: 2px 4px 0;
  font-size: 0.76rem;
}

.layout-background-choices small {
  padding: 0 4px 4px;
  color: #84909c;
  font-size: 0.64rem;
}

.liquid-colour-dialog {
  width: min(620px, 100%);
}

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

.liquid-colour-option {
  min-width: 0;
  padding: 13px 8px 10px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid #dfe4e9;
  border-radius: 13px;
  background: #fff;
  color: #27303b;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.liquid-colour-option:hover,
.liquid-colour-option:focus-visible {
  border-color: var(--choice-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-accent) 12%, transparent);
  outline: 0;
  transform: translateY(-2px);
}

.liquid-colour-option.selected {
  border-color: var(--choice-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-accent) 15%, transparent);
}

.liquid-colour-option > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 4px solid #252a31;
  border-radius: 50%;
  background: var(--swatch);
  color: #fff;
}

.liquid-colour-option > span i {
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.liquid-colour-option.selected > span i {
  opacity: 1;
}

.liquid-colour-option strong {
  font-size: 0.68rem;
}

@media (max-width: 620px) {
  .liquid-colour-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.layout-theme-label em {
  width: max-content;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wizard-accent) 9%, white);
  color: var(--wizard-accent-dark);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 700;
}

@keyframes layoutBackgroundDialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*
 * Reimagined Editorial Classroom
 * Identity card + contact rail + colourful stacked lesson links.
 */
.teacher-site-root.site-theme-editorial.site-layout-background-signature .background-container {
  background:
    linear-gradient(135deg, rgba(255, 214, 185, 0.86), rgba(227, 216, 255, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 64px, rgba(58, 63, 74, 0.08) 64px 65px),
    repeating-linear-gradient(-45deg, transparent 0 64px, rgba(58, 63, 74, 0.05) 64px 65px),
    #eee8e4;
}

.teacher-site-root.site-theme-editorial.site-layout-background-signature .background-slides,
.teacher-site-root.site-theme-studio.site-layout-background-signature .background-slides,
.teacher-site-root.site-theme-link-stack.site-layout-background-signature .background-slides,
.teacher-site-root.site-theme-split-profile.site-layout-background-signature .background-slides {
  display: none;
}

.teacher-site-root.site-theme-editorial .content-panel {
  max-width: 1120px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-editorial .grid-container {
  grid-template-columns: 1fr;
  gap: 22px;
}

.teacher-site-root.site-theme-editorial .profile-column {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  border: 1px solid rgba(61, 66, 76, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(69, 49, 45, 0.18);
  text-align: left;
}

.teacher-site-root.site-theme-editorial .profile-content {
  min-width: 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas:
    "portrait teacher"
    "portrait headline"
    "portrait actions"
    "portrait pills"
    "portrait biography";
  align-content: center;
  column-gap: 30px;
}

.teacher-site-root.site-theme-editorial .profile-pic {
  width: 250px;
  height: 320px;
  grid-area: portrait;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 17px 40px rgba(37, 45, 54, 0.18);
}

.teacher-site-root.site-theme-editorial .teacher-name {
  grid-area: teacher;
  align-self: end;
  margin: 0 0 7px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.teacher-site-root.site-theme-editorial .teacher-headline {
  grid-area: headline;
  margin: 0 0 13px;
  color: #6577ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-editorial .profile-buttons {
  grid-area: actions;
  margin: 0 0 12px;
}

.teacher-site-root.site-theme-editorial .profile-buttons .button {
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 12%, white);
}

.teacher-site-root.site-theme-editorial .profile-specialities {
  grid-area: pills;
  margin: 0 0 10px;
}

.teacher-site-root.site-theme-editorial .profile-specialities span {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #eafaf6;
  color: #197e6c;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.teacher-site-root.site-theme-editorial .profile-description {
  grid-area: biography;
  min-width: 0;
  padding: 12px 0 0;
  border-top: 1px solid #dde1e3;
}

.teacher-site-root.site-theme-editorial .profile-description p {
  margin: 0;
  color: #697178;
  font-size: 0.86rem;
  line-height: 1.65;
}

.teacher-site-root.site-theme-editorial .contact-buttons {
  margin: 0;
  padding: 28px 20px;
  align-content: center;
  border-left: 1px solid #e6e8eb;
  background: rgba(248, 248, 251, 0.84);
}

.teacher-site-root.site-theme-editorial .contact-button {
  min-height: 48px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(42, 50, 60, 0.1);
}

.teacher-site-root.site-theme-editorial .details-column {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "packages schedule"
    "reviews reviews";
  align-items: stretch;
  gap: 22px;
}

.teacher-site-root.site-theme-editorial .details-column > .details-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(61, 66, 76, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 50px rgba(69, 49, 45, 0.13);
}

.teacher-site-root.site-theme-editorial .details-column > .calendar-section {
  height: 100%;
  grid-area: schedule;
}

.teacher-site-root.site-theme-editorial .details-column > .details-section:has(.review-carousel) {
  grid-area: reviews;
}

.teacher-site-root.site-theme-editorial .details-column > .details-section:has(.pricing-cards) {
  height: 100%;
  grid-area: packages;
}

.teacher-site-root.site-theme-editorial .section-header {
  margin-bottom: 15px;
  border: 0;
}

.teacher-site-root.site-theme-editorial .section-header h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.teacher-site-root.site-theme-editorial .calendar-viewport {
  height: 390px;
  border-radius: 12px;
}

.teacher-site-root.site-theme-editorial .review-carousel {
  min-height: 126px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #eafaf6, #f3f1ff);
}

.teacher-site-root.site-theme-editorial .pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}

.teacher-site-root.site-theme-editorial .card {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 94px;
  grid-template-rows: 1fr 1fr;
  gap: 2px 10px;
  border: 2px solid rgba(44, 50, 59, 0.58);
  border-radius: 10px;
  background: #f7d75c;
  color: #252b32;
  box-shadow: 3px 4px 0 rgba(42, 47, 56, 0.5);
  text-align: left;
}

.teacher-site-root.site-theme-editorial .card:nth-child(4n + 2) {
  background: #6677ff;
  color: #fff;
}

.teacher-site-root.site-theme-editorial .card:nth-child(4n + 3) {
  background: #ff8194;
}

.teacher-site-root.site-theme-editorial .card:nth-child(4n + 4) {
  background: #2ecbb4;
}

.teacher-site-root.site-theme-editorial .card:hover {
  border-color: #242a32;
  background: #f7d75c;
  box-shadow: 4px 6px 0 rgba(42, 47, 56, 0.58);
  transform: translate(-1px, -2px);
}

.teacher-site-root.site-theme-editorial .card:nth-child(4n + 2):hover { background: #6677ff; }
.teacher-site-root.site-theme-editorial .card:nth-child(4n + 3):hover { background: #ff8194; }
.teacher-site-root.site-theme-editorial .card:nth-child(4n + 4):hover { background: #2ecbb4; }

.teacher-site-root.site-theme-editorial .card h3 {
  height: auto;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: inherit;
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-editorial .card .price {
  height: auto;
  min-height: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  color: inherit;
  font-size: 1.15rem;
}

.teacher-site-root.site-theme-editorial .card .price-unit,
.teacher-site-root.site-theme-editorial .card .price-description {
  color: inherit;
  opacity: 0.75;
}

.teacher-site-root.site-theme-editorial .card .price-description {
  height: auto;
  min-height: 0;
  max-height: 38px;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 0.7rem !important;
}

.teacher-site-root.site-theme-editorial .card > .button {
  min-height: 42px;
  max-height: 42px;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  border: 2px solid rgba(37, 43, 50, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #252b32;
  font-size: 0.72rem;
}

.teacher-site-root.site-theme-editorial .teacher-builder-footer {
  max-width: 1120px;
  border-radius: 12px;
}

/*
 * Reimagined Tutor Studio
 * Cinematic teacher hero + floating contact dock + side-stack packages.
 */
.teacher-site-root.site-theme-studio.site-layout-background-signature .background-container {
  background:
    radial-gradient(circle at 75% 18%, rgba(238, 134, 189, 0.22), transparent 31%),
    linear-gradient(rgba(54, 56, 74, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 56, 74, 0.72) 1px, transparent 1px),
    linear-gradient(160deg, #242631 0%, #292b3a 50%, #181a24 100%);
  background-size: auto, 58px 58px, 58px 58px, auto;
}

.teacher-site-root.site-theme-studio .content-panel {
  max-width: 1160px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-studio .grid-container {
  grid-template-columns: 1fr;
  gap: 22px;
}

.teacher-site-root.site-theme-studio .profile-column,
.teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
  height: 490px;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #202330;
  box-shadow: 0 30px 90px rgba(5, 7, 14, 0.55);
}

.teacher-site-root.site-theme-studio .profile-column::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 27, 0.95) 0%, rgba(15, 17, 27, 0.7) 47%, rgba(15, 17, 27, 0.12) 82%),
    linear-gradient(0deg, rgba(15, 17, 27, 0.82), transparent 50%);
  pointer-events: none;
}

.teacher-site-root.site-theme-studio .profile-column::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 86px, rgba(255, 255, 255, 0.035) 86px 87px),
    repeating-linear-gradient(-45deg, transparent 0 86px, rgba(255, 255, 255, 0.025) 86px 87px);
  pointer-events: none;
}

.teacher-site-root.site-theme-studio .profile-content {
  height: 100%;
  position: static;
  display: block;
}

.teacher-site-root.site-theme-studio .profile-pic {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-position: center 28%;
  filter: grayscale(0.35) brightness(0.72) saturate(0.82);
  box-shadow: none;
}

.teacher-site-root.site-theme-studio .teacher-name {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 205px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.teacher-site-root.site-theme-studio .teacher-headline {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 178px;
  margin: 0;
  color: #f2a9d0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-studio .profile-specialities {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 48px;
  justify-content: flex-start;
}

.teacher-site-root.site-theme-studio .profile-specialities span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(17, 20, 31, 0.5);
  backdrop-filter: blur(8px);
}

.teacher-site-root.site-theme-studio .profile-description {
  width: min(620px, calc(100% - 96px));
  max-height: 112px;
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 78px;
  overflow-y: auto;
  margin: 0;
  padding: 12px 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

.teacher-site-root.site-theme-studio .profile-description p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.58;
}

.teacher-site-root.site-theme-studio .profile-buttons {
  position: absolute;
  z-index: 3;
  left: 48px;
  bottom: 24px;
  margin: 0;
}

.teacher-site-root.site-theme-studio .profile-buttons .button {
  min-width: 148px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 23, 34, 0.64);
  backdrop-filter: blur(10px);
}

.teacher-site-root.site-theme-studio .contact-buttons {
  position: absolute;
  z-index: 3;
  right: 36px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(18, 20, 30, 0.58);
  backdrop-filter: blur(12px);
}

.teacher-site-root.site-theme-studio .contact-button {
  width: 46px;
  min-height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #20232d;
  box-shadow: none;
}

.teacher-site-root.site-theme-studio .contact-button > span {
  display: none;
}

.teacher-site-root.site-theme-studio .contact-button:hover {
  color: #fff;
}

.teacher-site-root.site-theme-studio .contact-button.whatsapp:hover { background: #25d366; }
.teacher-site-root.site-theme-studio .contact-button.telegram:hover { background: #229ed9; }
.teacher-site-root.site-theme-studio .contact-button.email:hover { background: #5f6368; }
.teacher-site-root.site-theme-studio .contact-button.wechat:hover { background: #07c160; }

.teacher-site-root.site-theme-studio .details-column {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-template-areas:
    "packages calendar"
    "reviews calendar";
  align-items: stretch;
  gap: 22px;
}

.teacher-site-root.site-theme-studio .details-column > .details-section {
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(31, 34, 47, 0.88);
  box-shadow: 0 22px 60px rgba(5, 7, 14, 0.34);
  backdrop-filter: blur(13px);
}

.teacher-site-root.site-theme-studio .details-column > .calendar-section {
  min-height: 620px;
  grid-area: calendar;
}

.teacher-site-root.site-theme-studio .details-column > .details-section:has(.pricing-cards) {
  grid-area: packages;
}

.teacher-site-root.site-theme-studio .details-column > .details-section:has(.review-carousel) {
  min-height: 180px;
  grid-area: reviews;
  align-content: center;
}

.teacher-site-root.site-theme-studio .calendar-viewport {
  height: 542px;
  min-height: 542px;
  border-radius: 14px;
}

.teacher-site-root.site-theme-studio .calendar-viewport iframe {
  height: 822px;
  margin-top: -280px;
}

.teacher-site-root.site-theme-studio .pricing-cards {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}

.teacher-site-root.site-theme-studio .card {
  height: 126px;
  min-height: 126px;
  max-height: 126px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  grid-template-rows: auto auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--theme-accent) 24%, #272a39), #292c3b);
  box-shadow: none;
  text-align: left;
}

.teacher-site-root.site-theme-studio .card:nth-child(3n + 2) {
  background: linear-gradient(110deg, rgba(238, 134, 189, 0.28), #292c3b);
}

.teacher-site-root.site-theme-studio .card:nth-child(3n + 3) {
  background: linear-gradient(110deg, rgba(110, 231, 213, 0.22), #292c3b);
}

.teacher-site-root.site-theme-studio .card h3 {
  height: auto;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
  display: block;
  font-size: 1rem;
}

.teacher-site-root.site-theme-studio .card .price {
  height: auto;
  min-height: 0;
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  margin: 2px 0;
  font-size: 1.35rem;
}

.teacher-site-root.site-theme-studio .card .price-description {
  height: auto;
  min-height: 0;
  max-height: 28px;
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  font-size: 0.68rem !important;
}

.teacher-site-root.site-theme-studio .card > .button {
  min-height: 44px;
  max-height: 44px;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
  border-radius: 999px;
  font-size: 0.72rem;
}

.teacher-site-root.site-theme-studio .review-carousel {
  min-height: 124px;
  border-radius: 13px;
}

.teacher-site-root.site-theme-studio .teacher-builder-footer {
  max-width: 1160px;
}

@media (max-width: 940px) {
  .teacher-site-root.site-theme-editorial .profile-column {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-editorial .contact-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e6e8eb;
    border-left: 0;
  }

  .teacher-site-root.site-theme-editorial .details-column,
  .teacher-site-root.site-theme-studio .details-column {
    grid-template-columns: 1fr;
    grid-template-areas:
      "calendar"
      "reviews"
      "packages";
  }

  .teacher-site-root.site-theme-studio .details-column > .calendar-section {
    min-height: 0;
  }

  .teacher-site-root.site-theme-studio .calendar-viewport {
    height: 440px;
    min-height: 440px;
  }

  .teacher-site-root.site-theme-studio .calendar-viewport iframe {
    height: 720px;
  }
}

@media (max-width: 680px) {
  .layout-background-choices {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-editorial .profile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
  }

  .teacher-site-root.site-theme-editorial .profile-pic {
    width: 100%;
    height: 320px;
    margin: 0 0 22px;
  }

  .teacher-site-root.site-theme-editorial .contact-buttons {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-editorial .card {
    height: 142px;
    min-height: 142px;
    max-height: 142px;
    grid-template-columns: 1fr 86px;
  }

  .teacher-site-root.site-theme-editorial .card .price {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .teacher-site-root.site-theme-editorial .card .price-description {
    grid-column: 1;
    grid-row: 3;
  }

  .teacher-site-root.site-theme-editorial .card > .button {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .teacher-site-root.site-theme-studio .profile-column,
  .teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
    height: auto;
    overflow: hidden;
  }

  .teacher-site-root.site-theme-studio .profile-column::before,
  .teacher-site-root.site-theme-studio .profile-column::after {
    display: none;
  }

  .teacher-site-root.site-theme-studio .profile-content {
    height: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    background: #202330;
  }

  .teacher-site-root.site-theme-studio .profile-pic {
    width: 100%;
    height: 310px;
    position: relative;
    margin: 0 0 22px;
    border-radius: 14px;
    filter: none;
  }

  .teacher-site-root.site-theme-studio .teacher-name,
  .teacher-site-root.site-theme-studio .teacher-headline,
  .teacher-site-root.site-theme-studio .profile-specialities,
  .teacher-site-root.site-theme-studio .profile-description,
  .teacher-site-root.site-theme-studio .profile-buttons {
    width: auto;
    max-height: none;
    position: relative;
    inset: auto;
  }

  .teacher-site-root.site-theme-studio .teacher-name {
    order: 1;
    margin-bottom: 14px;
    text-align: left;
  }

  .teacher-site-root.site-theme-studio .teacher-headline {
    order: 2;
    margin: -7px 0 16px;
    color: #f2a9d0;
    text-align: left;
  }

  .teacher-site-root.site-theme-studio .profile-specialities {
    order: 3;
  }

  .teacher-site-root.site-theme-studio .profile-description {
    order: 4;
    overflow: visible;
    margin-top: 15px;
  }

  .teacher-site-root.site-theme-studio .profile-buttons {
    order: 5;
    margin-top: 15px;
  }

  .teacher-site-root.site-theme-studio .contact-buttons {
    position: relative;
    inset: auto;
    justify-content: center;
    border-radius: 0;
  }

  .teacher-site-root.site-theme-studio .calendar-viewport {
    height: 390px;
    min-height: 390px;
  }

  .teacher-site-root.site-theme-studio .calendar-viewport iframe {
    height: 670px;
  }
}

/* Light and dark Google Calendar treatments */
.teacher-site-root.site-theme-editorial .calendar-viewport,
.teacher-site-root.site-theme-link-stack .calendar-viewport,
.teacher-site-root.site-theme-split-profile .calendar-viewport {
  background: #fff;
}

.teacher-site-root.site-theme-editorial .calendar-viewport iframe,
.teacher-site-root.site-theme-link-stack .calendar-viewport iframe,
.teacher-site-root.site-theme-split-profile .calendar-viewport iframe {
  filter: none;
}

.teacher-site-root.site-theme-studio .calendar-viewport {
  background: color-mix(in srgb, var(--theme-accent) 8%, #11131b);
}

.teacher-site-root.site-theme-studio .calendar-viewport iframe {
  filter: var(--theme-calendar-filter);
}

/*
 * Lesson Links
 * A centred identity header with bold stacked offer links.
 */
.teacher-site-root.site-theme-link-stack {
  --text-primary: #292d33;
  --text-secondary: #69645c;
  --solid-dark-bg: #fff;
  --border-color: rgba(52, 57, 64, 0.18);
  font-family: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-link-stack.site-layout-background-signature .background-container {
  background:
    linear-gradient(rgba(84, 70, 54, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 70, 54, 0.075) 1px, transparent 1px),
    linear-gradient(135deg, #f7ecd8, #fae6e5);
  background-size: 24px 24px, 24px 24px, auto;
}

.teacher-site-root.site-theme-link-stack .background-container {
  color: #292d33;
}

.teacher-site-root.site-theme-link-stack .content-panel {
  max-width: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-link-stack .grid-container {
  grid-template-columns: 1fr;
  gap: 18px;
}

.teacher-site-root.site-theme-link-stack .profile-column {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  border: 2px solid #50545a;
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.95);
  box-shadow: 4px 5px 0 rgba(54, 57, 62, 0.54);
  text-align: left;
}

.teacher-site-root.site-theme-link-stack .profile-content {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar headline"
    "actions actions"
    "pills pills"
    "copy copy";
  column-gap: 16px;
}

.teacher-site-root.site-theme-link-stack .profile-pic {
  width: 78px;
  height: 78px;
  grid-area: avatar;
  margin: 0;
  border: 3px solid #4b4f56;
  border-radius: 50%;
  box-shadow: none;
}

.teacher-site-root.site-theme-link-stack .teacher-name {
  grid-area: name;
  align-self: end;
  margin: 0 0 5px;
  color: #2d3137;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-link-stack .teacher-headline {
  grid-area: headline;
  align-self: start;
  margin: 0;
  color: #737881;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-link-stack .profile-buttons {
  grid-area: actions;
  justify-content: flex-start;
  margin: 0;
}

.teacher-site-root.site-theme-link-stack .profile-buttons .button {
  flex: 0 1 auto;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: #4d5259;
}

.teacher-site-root.site-theme-link-stack .profile-buttons .button .button-icon {
  filter: brightness(0) saturate(100%);
}

.teacher-site-root.site-theme-link-stack .profile-specialities {
  grid-area: pills;
  justify-content: flex-start;
  margin: 15px 0 9px;
}

.teacher-site-root.site-theme-link-stack .profile-specialities span {
  border: 1px solid #4d5158;
  background: #fff;
  color: #34383e;
  box-shadow: 2px 2px 0 rgba(64, 68, 75, 0.34);
}

.teacher-site-root.site-theme-link-stack .profile-description {
  grid-area: copy;
}

.teacher-site-root.site-theme-link-stack .profile-description p {
  margin-bottom: 0;
  color: #69645c;
  font-size: 0.78rem;
  line-height: 1.6;
}

.teacher-site-root.site-theme-link-stack .contact-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.teacher-site-root.site-theme-link-stack .contact-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #4d5158;
  border-radius: 8px;
  background: #fff;
  color: #31353b;
  box-shadow: 2px 3px 0 rgba(64, 68, 75, 0.42);
}

.teacher-site-root.site-theme-link-stack .contact-button > span {
  display: none;
}

.teacher-site-root.site-theme-link-stack .details-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.teacher-site-root.site-theme-link-stack .details-column > .details-section {
  padding: 20px;
  border: 2px solid #50545a;
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.95);
  box-shadow: 4px 5px 0 rgba(54, 57, 62, 0.46);
}

.teacher-site-root.site-theme-link-stack .details-column > .details-section:has(.pricing-cards) {
  width: min(520px, 100%);
  order: -3;
  margin: 0 auto;
}

.teacher-site-root.site-theme-link-stack .calendar-section {
  order: -2;
}

.teacher-site-root.site-theme-link-stack .details-column > .details-section:has(.review-carousel) {
  order: -1;
}

.teacher-site-root.site-theme-link-stack .section-header {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
}

.teacher-site-root.site-theme-link-stack .section-header h2 {
  color: #30343a;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-link-stack .pricing-cards {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}

.teacher-site-root.site-theme-link-stack .card {
  height: 102px;
  min-height: 102px;
  max-height: 102px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 88px;
  grid-template-rows: auto 1fr;
  gap: 3px 9px;
  border: 2px solid #4d5158;
  border-radius: 9px;
  background: #f7d75c;
  color: #292d33;
  box-shadow: 3px 4px 0 rgba(57, 61, 68, 0.5);
  text-align: left;
}

.teacher-site-root.site-theme-link-stack .card:nth-child(4n + 2) { background: #6577ff; color: #fff; }
.teacher-site-root.site-theme-link-stack .card:nth-child(4n + 3) { background: #ff8194; }
.teacher-site-root.site-theme-link-stack .card:nth-child(4n + 4) { background: #2ecbb4; }

.teacher-site-root.site-theme-link-stack .card h3,
.teacher-site-root.site-theme-link-stack .card .price,
.teacher-site-root.site-theme-link-stack .card .price-description {
  height: auto;
  min-height: 0;
  margin: 0;
  color: inherit;
}

.teacher-site-root.site-theme-link-stack .card h3 {
  grid-column: 1;
  grid-row: 1;
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-link-stack .card .price {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1rem;
}

.teacher-site-root.site-theme-link-stack .card .price-unit,
.teacher-site-root.site-theme-link-stack .card .price-description {
  color: inherit;
  opacity: 0.76;
}

.teacher-site-root.site-theme-link-stack .card .price-description {
  max-height: 30px;
  grid-column: 1;
  grid-row: 2;
  font-size: 0.65rem !important;
}

.teacher-site-root.site-theme-link-stack .card > .button {
  min-height: 40px;
  max-height: 40px;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  border: 2px solid #4d5158;
  border-radius: 8px;
  background: #fff;
  color: #2d3137;
  font-size: 0.66rem;
}

.teacher-site-root.site-theme-link-stack .calendar-viewport {
  height: 390px;
  border: 1px solid #d9d6cf;
  border-radius: 9px;
}

.teacher-site-root.site-theme-link-stack .review-carousel {
  border: 0;
  background: #f5efe3;
}

.teacher-site-root.site-theme-link-stack .teacher-builder-footer {
  max-width: 760px;
  border: 2px solid #50545a;
  background: rgba(47, 50, 57, 0.95);
}

.teacher-site-root.site-theme-link-stack .modal-content {
  border: 2px solid #50545a;
  border-radius: 12px;
  background: #fffdf6;
  color: #292d33;
  box-shadow: 5px 7px 0 rgba(54, 57, 62, 0.5);
}

/*
 * Profile Portfolio
 * Portrait poster on the left; all identity and contact information on the right.
 */
.teacher-site-root.site-theme-split-profile {
  --text-primary: #3d4150;
  --text-secondary: #7b7f8d;
  --solid-dark-bg: #fff;
  --border-color: rgba(78, 83, 98, 0.14);
  font-family: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-split-profile.site-layout-background-signature .background-container {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 184, 137, 0.72), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(176, 171, 255, 0.78), transparent 39%),
    #f2e9ea;
}

.teacher-site-root.site-theme-split-profile .background-container {
  color: #3d4150;
}

.teacher-site-root.site-theme-split-profile .content-panel {
  max-width: 1160px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(76, 61, 83, 0.2);
  backdrop-filter: blur(16px);
}

.teacher-site-root.site-theme-split-profile .grid-container {
  grid-template-columns: 1fr;
  gap: 0;
}

.teacher-site-root.site-theme-split-profile .profile-column {
  min-height: 520px;
  display: grid;
  grid-template-columns: 42% 58%;
  grid-template-rows: auto auto auto auto 1fr auto;
  border-bottom: 1px solid #e5e2e8;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.teacher-site-root.site-theme-split-profile .profile-content {
  display: contents;
}

.teacher-site-root.site-theme-split-profile .profile-pic {
  width: 100%;
  height: 100%;
  min-height: 520px;
  grid-column: 1;
  grid-row: 1 / 7;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-position: center 25%;
}

.teacher-site-root.site-theme-split-profile .teacher-name,
.teacher-site-root.site-theme-split-profile .teacher-headline,
.teacher-site-root.site-theme-split-profile .profile-buttons,
.teacher-site-root.site-theme-split-profile .profile-specialities,
.teacher-site-root.site-theme-split-profile .profile-description,
.teacher-site-root.site-theme-split-profile .contact-buttons {
  grid-column: 2;
  margin-right: 42px;
  margin-left: 42px;
}

.teacher-site-root.site-theme-split-profile .teacher-name {
  grid-row: 1;
  margin-top: 46px;
  margin-bottom: 12px;
  color: #454957;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.teacher-site-root.site-theme-split-profile .teacher-headline {
  grid-row: 2;
  margin-top: 0;
  margin-bottom: 16px;
  color: #8a82cc;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.teacher-site-root.site-theme-split-profile .profile-buttons {
  grid-row: 3;
  justify-content: flex-start;
}

.teacher-site-root.site-theme-split-profile .profile-buttons .button {
  flex: 0 1 auto;
  border-radius: 8px;
  background: #8ea5ff;
  color: #fff;
}

.teacher-site-root.site-theme-split-profile .profile-buttons .button .button-icon {
  filter: brightness(0) invert(1);
}

.teacher-site-root.site-theme-split-profile .profile-specialities {
  grid-row: 4;
  justify-content: flex-start;
}

.teacher-site-root.site-theme-split-profile .profile-specialities span {
  border: 0;
  background: #eeebff;
  color: #6e68ad;
  box-shadow: none;
}

.teacher-site-root.site-theme-split-profile .profile-description {
  grid-row: 5;
}

.teacher-site-root.site-theme-split-profile .profile-description p {
  margin-top: 12px;
  color: #7a7e8c;
  font-size: 0.9rem;
  line-height: 1.72;
}

.teacher-site-root.site-theme-split-profile .contact-buttons {
  grid-row: 6;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 38px;
}

.teacher-site-root.site-theme-split-profile .contact-button {
  min-width: 50px;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(83, 90, 122, 0.13);
}

.teacher-site-root.site-theme-split-profile .details-column {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  grid-template-areas:
    "calendar packages"
    "calendar reviews";
  gap: 20px;
}

.teacher-site-root.site-theme-split-profile .details-column > .details-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e2e0e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.teacher-site-root.site-theme-split-profile .calendar-section { grid-area: calendar; }
.teacher-site-root.site-theme-split-profile .details-section:has(.pricing-cards) { grid-area: packages; }
.teacher-site-root.site-theme-split-profile .details-section:has(.review-carousel) { grid-area: reviews; }

.teacher-site-root.site-theme-split-profile .section-header {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
}

.teacher-site-root.site-theme-split-profile .section-header h2 {
  color: #454957;
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.teacher-site-root.site-theme-split-profile .calendar-viewport {
  height: 480px;
  border: 1px solid #dcd9e2;
  border-radius: 10px;
}

.teacher-site-root.site-theme-split-profile .calendar-viewport iframe {
  height: 760px;
}

.teacher-site-root.site-theme-split-profile .pricing-cards {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 9px;
}

.teacher-site-root.site-theme-split-profile .card {
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 84px;
  grid-template-rows: auto auto 1fr;
  border: 0;
  border-radius: 10px;
  background: #f1effa;
  box-shadow: none;
  text-align: left;
}

.teacher-site-root.site-theme-split-profile .card:nth-child(3n + 2) { background: #e8f3ff; }
.teacher-site-root.site-theme-split-profile .card:nth-child(3n + 3) { background: #fff0f3; }

.teacher-site-root.site-theme-split-profile .card h3,
.teacher-site-root.site-theme-split-profile .card .price,
.teacher-site-root.site-theme-split-profile .card .price-description {
  height: auto;
  min-height: 0;
  margin: 0;
}

.teacher-site-root.site-theme-split-profile .card h3 {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: #484c59;
  font-size: 0.9rem;
}

.teacher-site-root.site-theme-split-profile .card .price {
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  color: #4c5060;
  font-size: 1.1rem;
}

.teacher-site-root.site-theme-split-profile .card .price-description {
  max-height: 23px;
  grid-column: 1;
  grid-row: 3;
  color: #878b98;
  font-size: 0.62rem !important;
}

.teacher-site-root.site-theme-split-profile .card > .button {
  min-height: 40px;
  max-height: 40px;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
  border-radius: 8px;
  background: #8ea5ff;
  color: #fff;
  font-size: 0.64rem;
}

.teacher-site-root.site-theme-split-profile .review-carousel {
  min-height: 132px;
  border: 0;
  background: #f4f2fa;
}

.teacher-site-root.site-theme-split-profile .teacher-builder-footer {
  max-width: 1160px;
}

.teacher-site-root.site-theme-split-profile .modal-content {
  border-color: #dedbe6;
  background: #fff;
  color: #454957;
}

/*
 * Frosted Focus
 * Scenic background, centred teacher identity and a glass action dock.
 */
.teacher-site-root.site-theme-frosted-focus {
  --text-primary: #f8fafc;
  --text-secondary: rgba(255, 255, 255, 0.74);
  --solid-dark-bg: #191d24;
  --border-color: rgba(255, 255, 255, 0.22);
  font-family: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-frosted-focus.site-layout-background-signature .background-container {
  background:
    linear-gradient(rgba(15, 21, 27, 0.32), rgba(15, 21, 27, 0.5)),
    url("backgrounds/bg3.jpg") center/cover fixed;
}

.teacher-site-root.site-theme-frosted-focus .content-panel {
  max-width: 1000px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(33, 40, 47, 0.5);
  box-shadow: 0 28px 90px rgba(8, 11, 15, 0.48);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.teacher-site-root.site-theme-frosted-focus .grid-container {
  grid-template-columns: 1fr;
  gap: 26px;
}

.teacher-site-root.site-theme-frosted-focus .profile-column {
  display: block;
  text-align: center;
}

.teacher-site-root.site-theme-frosted-focus .profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-site-root.site-theme-frosted-focus .profile-pic {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 14px 38px rgba(5, 9, 13, 0.36);
}

.teacher-site-root.site-theme-frosted-focus .teacher-name {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.teacher-site-root.site-theme-frosted-focus .profile-buttons {
  order: 4;
  margin: 10px 0 0;
}

.teacher-site-root.site-theme-frosted-focus .profile-buttons .button {
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.teacher-site-root.site-theme-frosted-focus .profile-specialities {
  margin: 0 0 14px;
}

.teacher-site-root.site-theme-frosted-focus .profile-specialities span {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(20, 28, 35, 0.34);
  color: #fff;
  box-shadow: none;
}

.teacher-site-root.site-theme-frosted-focus .profile-description {
  max-width: 760px;
}

.teacher-site-root.site-theme-frosted-focus .profile-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  text-align: center;
}

.teacher-site-root.site-theme-frosted-focus .contact-buttons {
  width: min(650px, 100%);
  margin: 22px auto 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(18, 24, 29, 0.4);
  backdrop-filter: blur(14px);
}

.teacher-site-root.site-theme-frosted-focus .contact-button {
  min-width: 54px;
  min-height: 50px;
  padding: 0 15px;
  border-radius: 999px;
}

.teacher-site-root.site-theme-frosted-focus .contact-button > span {
  display: none;
}

.teacher-site-root.site-theme-frosted-focus .details-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  grid-template-areas:
    "calendar packages"
    "reviews packages";
  gap: 20px;
}

.teacher-site-root.site-theme-frosted-focus .details-column > .details-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(25, 31, 38, 0.54);
  backdrop-filter: blur(15px);
}

.teacher-site-root.site-theme-frosted-focus .calendar-section { grid-area: calendar; }
.teacher-site-root.site-theme-frosted-focus .details-section:has(.pricing-cards) { grid-area: packages; }
.teacher-site-root.site-theme-frosted-focus .details-section:has(.review-carousel) { grid-area: reviews; }

.teacher-site-root.site-theme-frosted-focus .section-header {
  margin-bottom: 13px;
  padding: 0;
  border: 0;
}

.teacher-site-root.site-theme-frosted-focus .section-header h2 {
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.teacher-site-root.site-theme-frosted-focus .calendar-viewport {
  height: 450px;
  border-radius: 14px;
}

.teacher-site-root.site-theme-frosted-focus .calendar-viewport iframe {
  height: 730px;
}

.teacher-site-root.site-theme-frosted-focus .pricing-cards {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}

.teacher-site-root.site-theme-frosted-focus .card {
  height: 128px;
  min-height: 128px;
  max-height: 128px;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 90px;
  grid-template-rows: auto auto 1fr;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
}

.teacher-site-root.site-theme-frosted-focus .card h3,
.teacher-site-root.site-theme-frosted-focus .card .price,
.teacher-site-root.site-theme-frosted-focus .card .price-description {
  height: auto;
  min-height: 0;
  margin: 0;
}

.teacher-site-root.site-theme-frosted-focus .card h3 {
  grid-column: 1;
  grid-row: 1;
  display: block;
}

.teacher-site-root.site-theme-frosted-focus .card .price {
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  font-size: 1.25rem;
}

.teacher-site-root.site-theme-frosted-focus .card .price-description {
  max-height: 27px;
  grid-column: 1;
  grid-row: 3;
  font-size: 0.66rem !important;
}

.teacher-site-root.site-theme-frosted-focus .card > .button {
  min-height: 44px;
  max-height: 44px;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
  border-radius: 999px;
  font-size: 0.68rem;
}

.teacher-site-root.site-theme-frosted-focus .review-carousel {
  min-height: 136px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.teacher-site-root.site-theme-frosted-focus .teacher-builder-footer {
  max-width: 1000px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(20, 25, 31, 0.55);
}

.teacher-site-root.site-theme-frosted-focus .modal-content {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(24, 30, 37, 0.96);
}

@media (max-width: 940px) {
  .teacher-site-root.site-theme-split-profile .details-column,
  .teacher-site-root.site-theme-frosted-focus .details-column {
    grid-template-columns: 1fr;
    grid-template-areas:
      "calendar"
      "reviews"
      "packages";
  }
}

@media (max-width: 700px) {
  .teacher-site-root.site-theme-link-stack .profile-column,
  .teacher-site-root.site-theme-link-stack .details-column > .details-section {
    box-shadow: 2px 3px 0 rgba(54, 57, 62, 0.44);
  }

  .teacher-site-root.site-theme-split-profile .profile-column {
    display: flex;
    flex-direction: column;
  }

  .teacher-site-root.site-theme-split-profile .profile-content {
    display: flex;
    flex-direction: column;
  }

  .teacher-site-root.site-theme-split-profile .profile-pic {
    min-height: 0;
    height: 370px;
  }

  .teacher-site-root.site-theme-split-profile .teacher-name,
  .teacher-site-root.site-theme-split-profile .teacher-headline,
  .teacher-site-root.site-theme-split-profile .profile-buttons,
  .teacher-site-root.site-theme-split-profile .profile-specialities,
  .teacher-site-root.site-theme-split-profile .profile-description,
  .teacher-site-root.site-theme-split-profile .contact-buttons {
    margin-right: 24px;
    margin-left: 24px;
  }

  .teacher-site-root.site-theme-split-profile .teacher-name {
    margin-top: 28px;
  }

  .teacher-site-root.site-theme-split-profile .contact-buttons {
    flex-wrap: wrap;
  }

  .teacher-site-root.site-theme-frosted-focus .content-panel {
    padding: 22px;
  }

  .teacher-site-root.site-theme-frosted-focus .contact-buttons {
    flex-wrap: wrap;
    border-radius: 18px;
  }
}

/* Wide-screen composition for Lesson Links */
@media (min-width: 941px) {
  .teacher-site-root.site-theme-link-stack .content-panel {
    max-width: 1240px;
  }

  .teacher-site-root.site-theme-link-stack .profile-column {
    width: 100%;
    padding: 24px 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
  }

  .teacher-site-root.site-theme-link-stack .profile-content {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar headline"
      "actions actions"
      "pills pills"
      "copy copy";
  }

  .teacher-site-root.site-theme-link-stack .profile-pic {
    width: 92px;
    height: 92px;
  }

  .teacher-site-root.site-theme-link-stack .profile-description p {
    max-width: 940px;
  }

  .teacher-site-root.site-theme-link-stack .contact-buttons {
    min-width: 142px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: start;
    margin: 0;
  }

  .teacher-site-root.site-theme-link-stack .details-column {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    grid-template-areas:
      "packages calendar"
      "reviews reviews";
    align-items: stretch;
    gap: 18px;
  }

  .teacher-site-root.site-theme-link-stack .details-column > .details-section:has(.pricing-cards) {
    width: 100%;
    height: 100%;
    grid-area: packages;
    order: initial;
    margin: 0;
  }

  .teacher-site-root.site-theme-link-stack .calendar-section {
    height: 100%;
    grid-area: calendar;
    order: initial;
  }

  .teacher-site-root.site-theme-link-stack .details-column > .details-section:has(.review-carousel) {
    grid-area: reviews;
    order: initial;
  }

  .teacher-site-root.site-theme-link-stack .teacher-builder-footer {
    max-width: 1240px;
  }
}

/* Let the cinematic biography determine the hero height instead of scrolling inside it. */
@media (min-width: 681px) {
  .teacher-site-root.site-theme-studio .profile-column,
  .teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
    height: auto;
    min-height: 560px;
  }

  .teacher-site-root.site-theme-studio .profile-content {
    min-height: 560px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 48px 82px;
  }

  .teacher-site-root.site-theme-studio .teacher-name,
  .teacher-site-root.site-theme-studio .teacher-headline,
  .teacher-site-root.site-theme-studio .profile-specialities,
  .teacher-site-root.site-theme-studio .profile-description,
  .teacher-site-root.site-theme-studio .profile-buttons {
    position: relative;
    inset: auto;
    z-index: 2;
  }

  .teacher-site-root.site-theme-studio .profile-specialities {
    order: 1;
    margin: 0 0 auto;
  }

  .teacher-site-root.site-theme-studio .teacher-name {
    order: 2;
    margin: 54px 0 0;
  }

  .teacher-site-root.site-theme-studio .teacher-headline {
    order: 3;
    margin: 5px 0 0;
  }

  .teacher-site-root.site-theme-studio .profile-description {
    width: min(820px, calc(100% - 24px));
    max-height: none;
    order: 4;
    overflow: visible;
    margin: 18px 0 0;
    padding: 14px 0 0;
    scrollbar-width: auto;
  }

  .teacher-site-root.site-theme-studio .profile-buttons {
    order: 5;
    margin: 18px 0 0;
  }
}

/*
 * Final responsive guardrails for every public website theme.
 * Theme-specific desktop grids must collapse into one predictable mobile flow.
 */
@media (max-width: 940px) {
  .teacher-site-root,
  .teacher-site-root .background-container,
  .teacher-site-root .content-panel,
  .teacher-site-root .grid-container,
  .teacher-site-root .profile-column,
  .teacher-site-root .profile-content,
  .teacher-site-root .details-column,
  .teacher-site-root .details-column > .details-section {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .teacher-site-root {
    overflow-x: hidden;
  }

  .teacher-site-root .content-panel,
  .teacher-site-root .grid-container,
  .teacher-site-root .profile-column,
  .teacher-site-root .details-column {
    width: 100%;
  }

  .teacher-site-root .details-column {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .teacher-site-root .details-column > .details-section {
    width: 100% !important;
    height: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .teacher-site-root .pricing-cards {
    width: 100%;
    grid-template-columns: 1fr !important;
  }

  .teacher-site-root .card,
  .teacher-site-root .review-carousel,
  .teacher-site-root .calendar-section,
  .teacher-site-root .calendar-mobile,
  .teacher-site-root .availability-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .teacher-site-root .calendar-section {
    min-height: 0 !important;
  }

  .teacher-site-root.site-theme-split-profile .details-column {
    padding: 18px;
  }
}

@media (max-width: 700px) {
  .teacher-site-root .background-container {
    padding: 10px;
  }

  .teacher-site-root .content-panel {
    border-radius: 18px;
  }

  .teacher-site-root .grid-container {
    gap: 18px;
  }

  .teacher-site-root .profile-column {
    overflow: hidden;
  }

  .teacher-site-root .teacher-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .teacher-site-root .profile-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .teacher-site-root .profile-buttons .button {
    min-width: 0;
    flex: 1 1 145px;
  }

  .teacher-site-root .profile-specialities,
  .teacher-site-root .contact-buttons {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .teacher-site-root .review-carousel {
    min-height: 150px;
    padding: 22px 42px;
  }

  .teacher-site-root .review-text,
  .teacher-site-root .review-author {
    overflow-wrap: anywhere;
  }

  .teacher-site-root .pricing-cards {
    gap: 12px;
  }

  .teacher-site-root .card {
    overflow: hidden;
  }

  .teacher-site-root.site-theme-editorial .content-panel,
  .teacher-site-root.site-theme-studio .content-panel {
    padding: 14px;
  }

  .teacher-site-root.site-theme-editorial .details-column > .details-section,
  .teacher-site-root.site-theme-studio .details-column > .details-section,
  .teacher-site-root.site-theme-link-stack .details-column > .details-section,
  .teacher-site-root.site-theme-split-profile .details-column > .details-section {
    padding: 16px;
  }

  .teacher-site-root.site-theme-editorial .contact-buttons {
    width: 100%;
  }

  .teacher-site-root.site-theme-link-stack .profile-column {
    width: 100%;
    margin: 0;
  }

  .teacher-site-root.site-theme-link-stack .profile-content {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .teacher-site-root.site-theme-link-stack .profile-pic {
    width: 68px;
    height: 68px;
  }

  .teacher-site-root.site-theme-link-stack .contact-buttons {
    width: 100%;
  }

  .teacher-site-root.site-theme-split-profile .details-column {
    padding: 0;
  }

  .teacher-site-root.site-theme-split-profile .profile-pic {
    width: 100%;
    height: min(94vw, 370px);
  }

  .teacher-site-root .teacher-builder-footer {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 420px) {
  .teacher-site-root .background-container {
    padding: 6px;
  }

  .teacher-site-root .review-carousel {
    padding-right: 36px;
    padding-left: 36px;
  }

  .teacher-site-root .profile-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .teacher-site-root .profile-buttons .button {
    width: 100%;
  }

  .teacher-site-root.site-theme-link-stack .profile-content {
    display: flex;
    flex-direction: column;
  }

  .teacher-site-root.site-theme-link-stack .profile-pic {
    margin-bottom: 14px;
  }

  .teacher-site-root.site-theme-link-stack .teacher-name {
    margin-bottom: 10px;
  }
}
