: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;
}

/* ESLFLIX teacher calendar portal */
.calendar-portal-body {
  min-height: 100vh;
  margin: 0;
  color: #20242b;
  background: #f3f4f6;
  font-family: "DM Sans", sans-serif;
}

.calendar-portal-body *,
.calendar-portal-body *::before,
.calendar-portal-body *::after {
  box-sizing: border-box;
}

.calendar-portal-wordmark {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.calendar-portal-wordmark > span {
  color: #e50914;
}

.calendar-portal-wordmark em {
  margin-left: 5px;
  color: #8d949f;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.16em;
}

.calendar-login-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(7, 9, 12, 0.92), rgba(14, 17, 23, 0.88)),
    url("backgrounds/bg4.jpg") center/cover;
}

.calendar-login-glow {
  width: 520px;
  height: 520px;
  position: absolute;
  top: -250px;
  right: -120px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.28);
  filter: blur(80px);
}

.calendar-login-card {
  width: min(480px, 100%);
  padding: 34px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #fff;
  background: rgba(20, 23, 29, 0.9);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.calendar-login-icon {
  width: 58px;
  height: 58px;
  margin-top: 30px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
  box-shadow: 0 14px 32px rgba(229, 9, 20, 0.32);
  font-size: 1.4rem;
}

.calendar-login-card h1 {
  margin: 19px 0 10px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.1;
}

.calendar-login-card > p {
  margin: 0 0 25px;
  color: #aeb4bf;
  line-height: 1.65;
}

.calendar-login-form,
.calendar-reset-form {
  display: grid;
  gap: 14px;
}

.calendar-login-form label,
.calendar-reset-form label {
  display: grid;
  gap: 7px;
  color: #d9dce2;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-login-form input,
.calendar-reset-form input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.calendar-login-form > p,
.calendar-reset-form > p {
  min-height: 18px;
  margin: -4px 0;
  color: #ff8088;
  font-size: 0.76rem;
}

.calendar-login-form button,
.calendar-reset-form button[type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #e50914;
  font-weight: 900;
  cursor: pointer;
}

.calendar-forgot-password {
  margin-top: 15px;
  padding: 0;
  border: 0;
  color: #aeb4bf;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.calendar-login-divider {
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777e89;
  font-size: 0.72rem;
}

.calendar-login-divider::before,
.calendar-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.11);
}

.calendar-google-login {
  min-height: 49px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
  text-decoration: none;
}

.calendar-reset-form {
  position: absolute;
  z-index: 3;
  inset: 18px;
  padding: 28px;
  align-content: center;
  border-radius: 18px;
  background: #1b1e24;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.calendar-reset-form[hidden] {
  display: none;
}

.calendar-reset-form > button:first-child {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.35rem;
}

.calendar-reset-form h2 {
  margin: 0;
  color: #fff;
}

.calendar-portal-shell {
  min-height: 100vh;
  display: block;
}

.calendar-portal-sidebar {
  width: 275px;
  min-height: 100vh;
  padding: 27px 20px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 23000;
  inset: 0 auto 0 0;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(229, 9, 20, 0.15), transparent 28%),
    #15181d;
  box-shadow: 20px 0 60px rgba(10, 13, 18, 0.3);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}

.calendar-portal-sidebar.is-open {
  transform: translateX(0);
}

.calendar-sidebar-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 20px;
  right: 16px;
  border: 0;
  border-radius: 50%;
  color: #d9dde3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
  cursor: pointer;
}

.calendar-sidebar-backdrop {
  position: fixed;
  z-index: 22500;
  inset: 0;
  border: 0;
  background: rgba(18, 21, 27, 0.5);
  backdrop-filter: blur(3px);
  cursor: default;
}

.calendar-sidebar-backdrop[hidden] {
  display: none;
}

.calendar-menu-open {
  overflow: hidden;
}

.calendar-portal-sidebar nav {
  margin-top: 44px;
  display: grid;
  gap: 7px;
}

.calendar-portal-sidebar nav button {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #aeb4bd;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.calendar-portal-sidebar nav button i {
  width: 20px;
  text-align: center;
}

.calendar-portal-sidebar nav button:hover,
.calendar-portal-sidebar nav button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.calendar-portal-sidebar nav button.is-active i {
  color: #e50914;
}

.calendar-portal-account {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-portal-account > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
  font-weight: 900;
}

.calendar-portal-account div {
  min-width: 0;
  display: grid;
}

.calendar-portal-account strong {
  color: #fff;
  font-size: 0.82rem;
}

.calendar-portal-account small {
  overflow: hidden;
  color: #878e99;
  font-size: 0.64rem;
  text-overflow: ellipsis;
}

.calendar-builder-link,
.calendar-signout {
  padding: 8px 0;
  color: #aeb4bd;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.calendar-signout {
  color: #ef737a;
}

.calendar-portal-main {
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 54px) 60px;
}

.calendar-portal-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-menu-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #dfe2e7;
  border-radius: 13px;
  color: #363b43;
  background: #fff;
  box-shadow: 0 7px 20px rgba(28, 34, 43, 0.06);
  font-size: 1.05rem;
  cursor: pointer;
}

.calendar-menu-toggle:hover {
  border-color: #e50914;
  color: #e50914;
}

.calendar-portal-header,
.calendar-panel-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.calendar-portal-header span,
.calendar-panel-heading > div > span,
.calendar-upcoming-card header > div > span {
  color: #e50914;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.calendar-portal-header h1,
.calendar-panel-heading h2 {
  margin: 5px 0 0;
  color: #1e2229;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.calendar-portal-header time {
  color: #737a85;
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-portal-notice {
  margin: -10px 0 24px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #8a3940;
  background: #fde9ea;
}

.calendar-portal-notice.is-success {
  color: #19724f;
  background: #e4f6ee;
}

.calendar-portal-panel {
  display: none;
}

.calendar-portal-panel.is-active {
  display: block;
}

.calendar-stat-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calendar-stat-grid article {
  min-height: 105px;
  padding: 20px;
  border: 1px solid #e0e3e8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 34, 43, 0.05);
}

.calendar-stat-grid article > span {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #e50914;
  background: #fdecee;
}

.calendar-stat-grid article div {
  display: grid;
  gap: 3px;
}

.calendar-stat-grid small {
  color: #838a95;
  font-size: 0.7rem;
  font-weight: 700;
}

.calendar-stat-grid strong {
  color: #20242b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.7rem;
}

.calendar-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(540px, 1.45fr) minmax(310px, 0.55fr);
  gap: 20px;
}

.teacher-month-calendar,
.calendar-upcoming-card,
.calendar-booking-table,
.calendar-integration-card {
  border: 1px solid #e0e3e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(28, 34, 43, 0.06);
}

.teacher-month-calendar {
  padding: 20px;
}

.teacher-month-calendar > header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teacher-month-calendar > header h2,
.calendar-upcoming-card h2 {
  margin: 0;
  color: #252930;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
}

.teacher-month-calendar > header button {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e5e9;
  border-radius: 9px;
  color: #69717c;
  background: #f8f9fa;
  cursor: pointer;
}

.teacher-month-weekdays,
.teacher-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.teacher-month-weekdays span {
  padding: 8px 4px;
  color: #8a919b;
  font-size: 0.64rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.teacher-month-day {
  min-height: 104px;
  padding: 8px;
  border-top: 1px solid #eceef1;
  border-left: 1px solid #eceef1;
}

.teacher-month-day:nth-child(7n) {
  border-right: 1px solid #eceef1;
}

.teacher-month-day:nth-last-child(-n + 7) {
  border-bottom: 1px solid #eceef1;
}

.teacher-month-day > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #4e555f;
  font-size: 0.73rem;
  font-weight: 800;
}

.teacher-month-day.is-muted {
  background: #fafafa;
  opacity: 0.48;
}

.teacher-month-day.is-today > span {
  border-radius: 50%;
  color: #fff;
  background: #e50914;
}

.teacher-month-day > div {
  margin-top: 4px;
  display: grid;
  gap: 3px;
}

.teacher-month-day button {
  min-width: 0;
  padding: 4px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  color: var(--booking-text, #5c3034);
  background: var(--booking-soft, #fde9ea);
  font-size: 0.57rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-month-day button b {
  color: var(--booking-accent, #d10b15);
}

.teacher-month-day > div > small {
  color: #8a919a;
  font-size: 0.55rem;
}

.calendar-upcoming-card {
  padding: 20px;
}

.calendar-upcoming-card > header {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-upcoming-card > header button {
  border: 0;
  color: #e50914;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.teacher-booking-item {
  padding: 13px 0;
  position: relative;
  border-bottom: 1px solid #eceef1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.teacher-booking-item:last-child {
  border-bottom: 0;
}

.teacher-booking-item > time {
  width: 44px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--booking-accent, #d00b14);
  background: var(--booking-soft, #fdecee);
  line-height: 1;
}

.teacher-booking-item > time strong {
  font-size: 1rem;
}

.teacher-booking-item > time span {
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-booking-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.teacher-booking-item > div small,
.teacher-booking-item > div span {
  color: #7a818b;
  font-size: 0.66rem;
}

.teacher-booking-item > div strong {
  overflow: hidden;
  color: #292d34;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-booking-item > a {
  color: #e50914;
  font-size: 0.7rem;
  text-decoration: none;
}

.calendar-booking-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.calendar-booking-meta > i {
  color: #4285f4;
}

.calendar-booking-count {
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--booking-text, #681216);
  background: var(--booking-soft, #fdecee);
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
}

.teacher-booking-item.is-past {
  opacity: 0.62;
  filter: grayscale(0.72) saturate(0.45);
}

.teacher-booking-item.is-past > time {
  color: #777e87;
  background: #e9ebee;
}

.teacher-booking-item.is-cancelled > div > strong {
  text-decoration: line-through;
}

.teacher-booking-item.is-cancelled {
  opacity: 0.68;
  filter: grayscale(0.78) saturate(0.35);
}

.teacher-booking-item.is-cancelled > time {
  color: #777e87;
  background: #e9ebee;
}

.calendar-booking-outcome {
  width: fit-content;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #5f6670;
  background: #eceef1;
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 900;
}

.calendar-booking-table {
  padding: 8px 22px;
}

.calendar-panel-heading label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c838d;
  font-size: 0.73rem;
  font-weight: 700;
}

.calendar-panel-heading select {
  min-height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid #dfe2e7;
  border-radius: 9px;
  background: #fff;
}

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

.calendar-integration-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.calendar-integration-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4285f4;
  font-size: 1.4rem;
}

.calendar-integration-card.apple .calendar-integration-logo {
  background: #1d2025;
}

.calendar-integration-card.zoom .calendar-integration-logo {
  background: #2d8cff;
}

.calendar-integration-card small {
  color: #e50914;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.calendar-integration-card h3 {
  margin: 6px 0 10px;
  color: #20242b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
}

.calendar-integration-card p {
  margin: 0 0 24px;
  color: #737a84;
  line-height: 1.65;
}

.calendar-integration-card > a {
  min-height: 44px;
  margin-top: auto;
  padding: 0 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #e50914;
  font-weight: 800;
  text-decoration: none;
}

.calendar-copy-feed,
.calendar-disconnect-button {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: #656c76;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.calendar-integration-connected {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #148457;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-integration-unavailable {
  margin-top: auto;
  color: #8a919b;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-sync-note {
  margin: 20px 0 0;
  color: #777e88;
  font-size: 0.76rem;
}

.calendar-empty-state,
.calendar-portal-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #8a919b;
  text-align: center;
}

.calendar-empty-state i {
  color: #e50914;
  font-size: 1.4rem;
}

.calendar-empty-state strong {
  color: #3c424b;
}

.calendar-empty-state span {
  font-size: 0.72rem;
}

.calendar-portal-toast {
  min-width: 250px;
  max-width: min(420px, calc(100vw - 30px));
  padding: 13px 17px;
  position: fixed;
  z-index: 2147483647;
  inset: auto auto 20px 20px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #16865a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-portal-toast.is-visible {
  opacity: 1;
  transform: none;
}

.calendar-portal-toast.error {
  background: #b5232c;
}

.calendar-google-toolbar {
  min-height: 62px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid #dfe2e7;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 43, 0.04);
}

.calendar-google-navigation,
.calendar-google-view-controls,
.calendar-google-view-controls > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-google-navigation > button,
.calendar-google-view-controls button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #3c4043;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-google-navigation > .calendar-today-button {
  min-width: 118px;
  height: 46px;
  padding: 0 20px;
  border-color: #e50914;
  border-radius: 11px;
  color: #fff;
  background: #e50914;
  box-shadow: 0 9px 22px rgba(229, 9, 20, 0.22);
  font-size: 0.86rem;
}

.calendar-google-navigation > .calendar-today-button:hover {
  color: #fff;
  background: #c90812;
}

.calendar-today-button i {
  margin-right: 7px;
}

.calendar-google-navigation > button:not(.calendar-today-button) {
  min-width: 38px;
  padding: 0;
  border-color: transparent;
}

.calendar-google-navigation > button:hover,
.calendar-google-view-controls button:hover,
.calendar-google-view-controls button.is-active {
  background: #f1f3f4;
}

.calendar-google-view-controls button.is-active {
  border-color: #e50914;
  color: #c20a13;
  background: #fdebed;
}

.calendar-google-navigation h2 {
  margin: 0 0 0 8px;
  color: #3c4043;
  font-size: 1.15rem;
  font-weight: 500;
}

.calendar-google-view-controls > span {
  margin-right: 8px;
  color: #69717b;
  font-size: 0.68rem;
  font-weight: 700;
}

.calendar-google-layout {
  display: grid;
  grid-template-columns: 250px minmax(680px, 1fr);
  align-items: start;
  gap: 16px;
}

.calendar-google-sidebar {
  min-width: 0;
}

.calendar-google-sidebar .calendar-stat-grid {
  margin: 0 0 14px;
  gap: 7px;
}

.calendar-google-sidebar .calendar-stat-grid article {
  min-height: 70px;
  padding: 11px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 11px;
  text-align: center;
  box-shadow: none;
}

.calendar-google-sidebar .calendar-stat-grid small {
  font-size: 0.57rem;
}

.calendar-google-sidebar .calendar-stat-grid strong {
  font-size: 1.18rem;
}

.calendar-google-sidebar .calendar-upcoming-card {
  padding: 15px;
  box-shadow: none;
}

.calendar-google-sidebar .calendar-upcoming-card h2 {
  font-size: 0.98rem;
}

.calendar-google-sidebar .teacher-booking-item {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  cursor: pointer;
}

.calendar-google-sidebar .calendar-booking-meta {
  min-width: 34px;
  justify-self: end;
}

.calendar-google-sidebar .calendar-booking-count {
  min-width: 34px;
  padding: 4px 7px;
}

.calendar-google-sidebar .teacher-booking-item > time {
  width: 38px;
  height: 42px;
}

.calendar-google-sidebar .teacher-booking-item.is-later > time {
  border: 1px solid #e2e5e9;
  color: #606771;
  background: #f8f9fa;
}

.calendar-google-sidebar .teacher-booking-item.is-next {
  margin: 0 -7px;
  padding-right: 7px;
  padding-left: 7px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(253, 236, 238, 0.74), rgba(255, 255, 255, 0));
}

.calendar-google-sidebar .teacher-booking-item.is-past {
  opacity: 0.55;
}

.calendar-google-sidebar .teacher-booking-item.is-past > time {
  color: #858b94;
  background: #eceef1;
}

.calendar-google-sidebar .teacher-booking-item.is-past > div strong,
.calendar-google-sidebar .teacher-booking-item.is-past > div small,
.calendar-google-sidebar .teacher-booking-item.is-past > div span {
  color: #8b9199;
}

.calendar-google-stage {
  min-width: 0;
  height: min(74vh, 820px);
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28, 34, 43, 0.05);
}

.calendar-week-view {
  height: 100%;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}

.calendar-week-header {
  padding-right: 12px;
  display: grid;
  grid-template-columns: 58px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #dadce0;
  background: #fff;
}

.calendar-week-header > div {
  padding: 8px 4px;
  border-left: 1px solid #f1f3f4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.calendar-week-header span {
  color: #70757a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-week-header strong {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3c4043;
  font-size: 1rem;
  font-weight: 500;
}

.calendar-week-header .is-today span {
  color: #d20a14;
}

.calendar-week-header .is-today strong {
  color: #fff;
  background: #e50914;
}

.calendar-week-scroll {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.calendar-week-times {
  height: 1536px;
  border-right: 1px solid #dadce0;
}

.calendar-week-times > div {
  height: 64px;
  position: relative;
  color: #70757a;
  font-size: 0.58rem;
  text-align: right;
}

.calendar-week-times span {
  position: relative;
  top: -7px;
  right: 8px;
  white-space: nowrap;
}

.calendar-week-grid {
  height: 1536px;
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

.calendar-week-columns,
.calendar-week-hour-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.calendar-week-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week-columns > div {
  border-right: 1px solid #f1f3f4;
}

.calendar-week-columns > div.is-today {
  background: rgba(229, 9, 20, 0.018);
}

.calendar-week-hour-lines {
  display: grid;
  grid-template-rows: repeat(24, 64px);
  z-index: 2;
}

.calendar-week-hour-lines i {
  border-top: 1px solid #e8eaed;
}

.calendar-week-availability {
  width: calc((100% / 7) - 4px);
  height: var(--calendar-height);
  position: absolute;
  z-index: 1;
  top: var(--calendar-top);
  left: calc((100% / 7) * var(--calendar-day) + 2px);
  overflow: hidden;
  border: 1px solid rgba(22, 134, 90, 0.3);
  border-left: 3px solid #16865a;
  border-radius: 5px;
  color: #126b49;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(22, 134, 90, 0.09) 0,
      rgba(22, 134, 90, 0.09) 8px,
      rgba(22, 134, 90, 0.14) 8px,
      rgba(22, 134, 90, 0.14) 16px
    ),
    #f1fbf7;
  pointer-events: none;
}

.calendar-week-availability span {
  padding: 4px 6px;
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-week-availability > i {
  height: 0;
  position: absolute;
  top: var(--availability-line-top);
  right: 0;
  left: 0;
  border-top: 2px solid rgba(18, 107, 73, 0.4);
}

.calendar-unavailable-block {
  width: calc((100% / 7) - 4px);
  height: var(--calendar-height);
  min-height: 16px;
  padding: 5px 7px;
  position: absolute;
  z-index: 4;
  top: var(--calendar-top);
  left: calc((100% / 7) * var(--calendar-day) + 2px);
  overflow: hidden;
  border: 1px solid #9ca2aa;
  border-left: 4px solid #686f78;
  border-radius: 6px;
  display: block;
  color: #3f454d;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(103, 111, 120, 0.12) 0,
      rgba(103, 111, 120, 0.12) 7px,
      rgba(103, 111, 120, 0.2) 7px,
      rgba(103, 111, 120, 0.2) 14px
    ),
    #e4e6e9;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.12);
  text-align: left;
  cursor: grab;
}

.calendar-unavailable-block.is-dragging {
  z-index: 30;
  opacity: 0.88;
  cursor: grabbing;
  box-shadow: 0 8px 20px rgba(32, 33, 36, 0.24);
}

.calendar-unavailable-block strong,
.calendar-unavailable-block span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-unavailable-block strong {
  font-size: 0.66rem;
}

.calendar-unavailable-block span {
  margin-top: 2px;
  color: #666d76;
  font-size: 0.56rem;
}

.calendar-current-time {
  width: calc(100% / 7);
  height: 2px;
  position: absolute;
  z-index: 12;
  top: var(--calendar-top);
  left: calc((100% / 7) * var(--calendar-day));
  background: #e50914;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.calendar-current-time::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: -4px;
  left: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.24);
}

.calendar-current-time span {
  padding: 3px 6px;
  position: absolute;
  top: -22px;
  right: 3px;
  border-radius: 5px;
  color: #fff;
  background: #e50914;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.calendar-week-event {
  width: calc(var(--calendar-event-width) - 4px);
  height: var(--calendar-height);
  min-height: 24px;
  padding: 5px 7px;
  position: absolute;
  z-index: 5;
  top: var(--calendar-top);
  left: calc(var(--calendar-event-left) + 2px);
  overflow: hidden;
  border: 1px solid var(--booking-border, rgba(178, 7, 16, 0.42));
  border-left: 4px solid var(--booking-accent, #e50914);
  border-radius: 6px;
  display: block;
  color: var(--booking-text, #5f1117);
  background: var(--booking-bg, #fbd6d9);
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.12);
  text-align: left;
  cursor: grab;
  transition: box-shadow 0.14s ease, filter 0.14s ease;
}

.calendar-week-event:hover {
  z-index: 8;
  filter: saturate(1.08);
  box-shadow: 0 4px 12px rgba(32, 33, 36, 0.2);
}

.calendar-week-event.has-clash {
  border-top-color: var(--booking-accent, rgba(178, 7, 16, 0.68));
  border-bottom-color: var(--booking-accent, rgba(178, 7, 16, 0.68));
}

.calendar-week-event.is-dragging {
  z-index: 30;
  opacity: 0.9;
  cursor: grabbing;
  box-shadow: 0 12px 26px rgba(32, 33, 36, 0.28);
}

.calendar-week-event.is-resizing {
  z-index: 31;
  opacity: 0.94;
  cursor: ns-resize;
  box-shadow: 0 12px 26px rgba(32, 33, 36, 0.28);
}

.calendar-week-event .calendar-resize-handle {
  height: 8px;
  margin: 0;
  position: absolute;
  z-index: 5;
  right: 4px;
  left: 4px;
  display: block;
  overflow: visible;
  border-radius: 999px;
  cursor: ns-resize;
  opacity: 0;
  transition: opacity 120ms ease;
}

.calendar-week-event .calendar-resize-handle::after {
  width: 28px;
  height: 3px;
  position: absolute;
  left: 50%;
  border-radius: 999px;
  background: var(--booking-accent, #e50914);
  content: "";
  transform: translateX(-50%);
}

.calendar-week-event .calendar-resize-handle.is-top {
  top: -1px;
}

.calendar-week-event .calendar-resize-handle.is-top::after {
  top: 1px;
}

.calendar-week-event .calendar-resize-handle.is-bottom {
  bottom: -1px;
}

.calendar-week-event .calendar-resize-handle.is-bottom::after {
  bottom: 1px;
}

.calendar-week-event:hover .calendar-resize-handle,
.calendar-week-event:focus-visible .calendar-resize-handle,
.calendar-week-event.is-resizing .calendar-resize-handle {
  opacity: 1;
}

.calendar-week-event.calendar-draft-event {
  z-index: 12;
  border-style: dashed;
  box-shadow: 0 5px 16px rgba(229, 9, 20, 0.16);
  cursor: grab;
}

.calendar-week-event.calendar-draft-event strong {
  font-style: italic;
}

.calendar-week-event.is-just-moved {
  animation: calendar-moved-highlight 1.5s ease;
}

@keyframes calendar-live-lesson-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--booking-accent, #e50914) 20%, transparent),
      0 2px 8px rgba(32, 33, 36, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--booking-accent, #e50914) 16%, transparent),
      0 5px 18px color-mix(in srgb, var(--booking-accent, #e50914) 24%, transparent);
  }
}

.calendar-week-event.is-live,
.teacher-month-day button.is-live {
  z-index: 9;
  animation: calendar-live-lesson-glow 2.8s ease-in-out infinite;
}

.calendar-week-event.is-live {
  background-color: var(--booking-bg, #fbd6d9);
  background-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 37%,
    color-mix(in srgb, var(--booking-accent, #e50914) 10%, transparent) 43%,
    color-mix(in srgb, var(--booking-accent, #e50914) 28%, transparent) 48%,
    color-mix(in srgb, var(--booking-accent, #e50914) 48%, transparent) 52%,
    color-mix(in srgb, var(--booking-accent, #e50914) 22%, transparent) 57%,
    color-mix(in srgb, var(--booking-accent, #e50914) 8%, transparent) 62%,
    transparent 68%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 260% 100%;
  animation: calendar-live-card-background 3.4s linear infinite;
}

@keyframes calendar-live-card-background {
  0%,
  14% {
    background-position: 140% 0;
    box-shadow:
      0 2px 7px rgba(32, 33, 36, 0.1);
  }
  86%,
  100% {
    background-position: -140% 0;
    box-shadow:
      0 2px 7px rgba(32, 33, 36, 0.1);
  }
}

.teacher-booking-item.is-live {
  margin-right: -7px;
  margin-left: -7px;
  padding-right: 7px;
  padding-left: 7px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--booking-soft, #fdecee) 72%, #fff);
  animation: calendar-live-lesson-glow 2.8s ease-in-out infinite;
}

@keyframes calendar-moved-highlight {
  0%,
  35% {
    border-color: #16865a;
    border-left-color: #16865a;
    background: #ccefe1;
    box-shadow: 0 0 0 5px rgba(22, 134, 90, 0.17), 0 8px 22px rgba(32, 33, 36, 0.2);
  }
  100% {
    border-color: var(--booking-border, rgba(178, 7, 16, 0.42));
    border-left-color: var(--booking-accent, #e50914);
    background: var(--booking-bg, #fbd6d9);
  }
}

.teacher-booking-item.is-color-red,
.teacher-month-day button.is-color-red,
.calendar-week-event.is-color-red,
.calendar-lesson-card.is-color-red {
  --booking-accent: #e50914;
  --booking-border: rgba(178, 7, 16, 0.42);
  --booking-bg: #fbd6d9;
  --booking-soft: #fdecee;
  --booking-text: #5f1117;
}

.teacher-booking-item.is-color-blue,
.teacher-month-day button.is-color-blue,
.calendar-week-event.is-color-blue,
.calendar-lesson-card.is-color-blue {
  --booking-accent: #1a73e8;
  --booking-border: #7baaf7;
  --booking-bg: #d2e3fc;
  --booking-soft: #e8f0fe;
  --booking-text: #174ea6;
}

.teacher-booking-item.is-color-green,
.teacher-month-day button.is-color-green,
.calendar-week-event.is-color-green,
.calendar-lesson-card.is-color-green {
  --booking-accent: #188038;
  --booking-border: #81c995;
  --booking-bg: #ceead6;
  --booking-soft: #e6f4ea;
  --booking-text: #0d652d;
}

.teacher-booking-item.is-color-purple,
.teacher-month-day button.is-color-purple,
.calendar-week-event.is-color-purple,
.calendar-lesson-card.is-color-purple {
  --booking-accent: #9334e6;
  --booking-border: #c58af9;
  --booking-bg: #e9d2fd;
  --booking-soft: #f3e8fd;
  --booking-text: #681da8;
}

.teacher-booking-item.is-color-orange,
.teacher-month-day button.is-color-orange,
.calendar-week-event.is-color-orange,
.calendar-lesson-card.is-color-orange {
  --booking-accent: #f29900;
  --booking-border: #fdd663;
  --booking-bg: #feefc3;
  --booking-soft: #fff4d6;
  --booking-text: #8d5200;
}

.teacher-booking-item.is-color-grey,
.teacher-month-day button.is-color-grey,
.calendar-week-event.is-color-grey,
.calendar-lesson-card.is-color-grey {
  --booking-accent: #5f6368;
  --booking-border: #bdc1c6;
  --booking-bg: #e8eaed;
  --booking-soft: #f1f3f4;
  --booking-text: #3c4043;
}

.calendar-week-event strong,
.calendar-week-event span {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-week-event strong {
  font-size: 0.69rem;
}

.calendar-week-event.has-meeting strong {
  padding-right: 15px;
}

.calendar-week-event span {
  margin-top: 2px;
  font-size: 0.57rem;
}

.calendar-week-event i {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 0.55rem;
}

.calendar-lesson-count-badge {
  min-width: 30px;
  padding: 3px 5px;
  position: absolute;
  right: 4px;
  bottom: 3px;
  border-radius: 999px;
  color: var(--booking-text, #681216);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.14);
}

.calendar-month-lesson-count {
  margin-left: 4px;
  color: var(--booking-text, #681216);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
}

.calendar-week-event.is-cancelled {
  border-color: #aeb2b7;
  background: #e6e8eb;
  color: #70757a;
  text-decoration: line-through;
}

.calendar-week-event.is-past {
  border-color: #aeb3ba;
  border-left-color: #777e87;
  color: #60666f;
  background: #e5e7ea;
  opacity: 0.7;
  filter: grayscale(0.78) saturate(0.35);
  box-shadow: none;
}

.calendar-week-event.is-past:hover {
  opacity: 0.84;
  filter: grayscale(0.62) saturate(0.48);
}

.calendar-week-event > em {
  margin-top: 3px;
  display: block;
  overflow: hidden;
  color: #6f757d;
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-month-day button.is-past {
  color: #777d85;
  background: #e8eaed;
  opacity: 0.66;
  filter: grayscale(0.75) saturate(0.4);
}

.teacher-month-day button.is-past b {
  color: #6f757d;
}

.teacher-month-day button.is-cancelled {
  color: #777d85;
  background: #e8eaed;
  opacity: 0.7;
  filter: grayscale(0.78) saturate(0.35);
  text-decoration: line-through;
}

.calendar-new-selection {
  width: calc((100% / 7) - 4px);
  height: var(--calendar-height);
  min-height: 16px;
  padding: 5px 7px;
  position: absolute;
  z-index: 20;
  top: var(--calendar-top);
  left: calc((100% / 7) * var(--calendar-day) + 2px);
  overflow: hidden;
  border: 1px dashed #c20a13;
  border-left: 4px solid #e50914;
  border-radius: 6px;
  color: #7f1017;
  background: rgba(229, 9, 20, 0.18);
  box-shadow: 0 6px 18px rgba(32, 33, 36, 0.16);
  pointer-events: none;
}

.calendar-new-selection strong,
.calendar-new-selection span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-new-selection strong {
  font-size: 0.69rem;
}

.calendar-new-selection span {
  margin-top: 2px;
  font-size: 0.57rem;
}

.is-google-month {
  height: 100%;
  padding: 10px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.is-google-month .teacher-month-weekdays,
.is-google-month .teacher-month-grid {
  min-width: 720px;
}

.calendar-interaction-hint {
  margin: 11px 4px 0;
  color: #727983;
  font-size: 0.68rem;
}

.calendar-interaction-hint i {
  margin-right: 5px;
  color: #e50914;
}

.calendar-context-menu {
  min-width: 205px;
  padding: 6px;
  position: fixed;
  z-index: 22000;
  border: 1px solid #dfe2e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 25, 34, 0.24);
}

.calendar-context-menu[hidden] {
  display: none;
}

.calendar-context-menu [hidden] {
  display: none !important;
}

.calendar-context-menu button,
.calendar-context-menu a {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #343941;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.calendar-context-menu button:hover,
.calendar-context-menu a:hover {
  background: #f1f3f4;
}

.calendar-booking-colour-picker {
  margin: 5px 4px;
  padding: 9px 7px 10px;
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #eceef1;
}

.calendar-booking-colour-picker > span {
  margin-bottom: 8px;
  display: block;
  color: #777e87;
  font-size: 0.61rem;
  font-weight: 800;
}

.calendar-booking-colour-picker > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-context-menu .calendar-booking-colour-picker button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  display: block;
  background: var(--booking-swatch);
  box-shadow: 0 0 0 1px #cfd3d8;
}

.calendar-context-menu .calendar-booking-colour-picker button:hover,
.calendar-context-menu .calendar-booking-colour-picker button.is-active {
  background: var(--booking-swatch);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--booking-swatch);
}

.calendar-past-outcome-picker {
  margin: 5px 4px;
  padding: 9px 4px 8px;
  border-bottom: 1px solid #eceef1;
}

.calendar-past-outcome-picker[hidden] {
  display: none;
}

.calendar-past-outcome-picker button[hidden] {
  display: none;
}

.calendar-past-outcome-picker > span {
  margin: 0 7px 6px;
  display: block;
  color: #777e87;
  font-size: 0.61rem;
  font-weight: 800;
}

.calendar-context-menu .calendar-past-outcome-picker button {
  min-height: 34px;
  font-size: 0.68rem;
}

.calendar-context-menu .calendar-past-outcome-picker button.is-active {
  color: #126843;
  background: #e5f6ed;
}

.calendar-context-menu .calendar-past-outcome-picker button.is-active i {
  color: #16865a;
}

.calendar-context-menu.is-future-lesson .calendar-past-outcome-picker {
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid #eceef1;
  border-bottom: 0;
}

.calendar-booking-colour-picker [data-booking-color="red"] {
  --booking-swatch: #e50914;
}

.calendar-booking-colour-picker [data-booking-color="blue"] {
  --booking-swatch: #1a73e8;
}

.calendar-booking-colour-picker [data-booking-color="green"] {
  --booking-swatch: #188038;
}

.calendar-booking-colour-picker [data-booking-color="purple"] {
  --booking-swatch: #9334e6;
}

.calendar-booking-colour-picker [data-booking-color="orange"] {
  --booking-swatch: #f29900;
}

.calendar-booking-colour-picker [data-booking-color="grey"] {
  --booking-swatch: #5f6368;
}

.calendar-context-menu .calendar-delete-booking {
  margin-top: 3px;
  color: #b10a12;
}

.calendar-context-menu .calendar-delete-booking:hover {
  color: #8d080e;
  background: #fdecee;
}

.calendar-lesson-card {
  width: min(410px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 13px 18px 18px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 21500;
  overflow-y: auto;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  color: #31353b;
  background: #fff;
  box-shadow: 0 18px 52px rgba(32, 33, 36, 0.3), 0 2px 8px rgba(32, 33, 36, 0.13);
  transform: translate(-50%, -50%);
}

.calendar-lesson-card[hidden] {
  display: none;
}

.calendar-lesson-card.is-anchored {
  top: var(--lesson-card-top);
  left: var(--lesson-card-left);
  transform: none;
  animation: calendar-lesson-card-enter 170ms cubic-bezier(0.2, 0, 0, 1) both;
}

.calendar-lesson-card.opens-right {
  --lesson-card-enter-x: -16px;
}

.calendar-lesson-card.opens-left {
  --lesson-card-enter-x: 16px;
}

.calendar-lesson-card-status {
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  color: #5f6670;
  background: #eceef1;
  font-size: 0.59rem;
  font-style: normal;
  font-weight: 900;
}

.calendar-lesson-card-status[hidden] {
  display: none;
}

.calendar-lesson-card.is-cancelled [data-lesson-card-colour] {
  background: #8a9098;
}

@keyframes calendar-lesson-card-enter {
  from {
    opacity: 0;
    transform: translateX(var(--lesson-card-enter-x, 0)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.calendar-lesson-card-actions {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.calendar-lesson-card-actions button,
.calendar-lesson-card-actions a {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #555c65;
  background: transparent;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.calendar-lesson-card-actions [hidden] {
  display: none;
}

.calendar-lesson-card-actions button:hover,
.calendar-lesson-card-actions a:hover {
  color: #20242a;
  background: #f0f2f4;
}

.calendar-lesson-card-actions [data-lesson-card-delete]:hover {
  color: #b10a12;
  background: #fdecee;
}

.calendar-lesson-card-actions [data-lesson-card-whatsapp]:hover {
  color: #087d55;
  background: #e7f8f0;
}

.calendar-lesson-card-actions [data-lesson-card-close] {
  margin-left: 5px;
}

.calendar-lesson-share-menu {
  width: 270px;
  padding: 13px;
  position: absolute;
  z-index: 4;
  top: 49px;
  right: 42px;
  border: 1px solid #e0e3e7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 28, 34, 0.18);
}

.calendar-lesson-share-menu[hidden] {
  display: none;
}

.calendar-lesson-share-menu > strong {
  display: block;
  color: #24282e;
  font-size: 0.76rem;
}

.calendar-lesson-share-menu > p {
  margin: 3px 0 10px;
  color: #7a8089;
  font-size: 0.61rem;
  line-height: 1.45;
}

.calendar-lesson-share-menu > button {
  width: 100%;
  min-height: 49px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  color: #343940;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.calendar-lesson-share-menu > button:hover {
  background: #f4f5f7;
}

.calendar-lesson-share-menu > button > i:first-child {
  color: #4b535d;
  font-size: 1rem;
  text-align: center;
}

.calendar-lesson-share-menu > button > i:last-child {
  color: #8a9098;
  font-size: 0.76rem;
  text-align: center;
}

.calendar-lesson-share-menu span,
.calendar-lesson-share-menu b,
.calendar-lesson-share-menu small {
  display: block;
}

.calendar-lesson-share-menu b {
  color: #343940;
  font-size: 0.68rem;
}

.calendar-lesson-share-menu small {
  margin-top: 2px;
  color: #858b93;
  font-size: 0.56rem;
  font-weight: 600;
}

.calendar-recurring-delete-dialog {
  position: fixed;
  z-index: 23000;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(21, 24, 29, 0.46);
  backdrop-filter: blur(3px);
}

.calendar-recurring-delete-dialog[hidden] {
  display: none;
}

.calendar-recurring-delete-dialog > section {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid #e0e3e7;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 26, 32, 0.3);
}

.calendar-recurring-delete-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #b10a12;
  background: #fdecee;
}

.calendar-recurring-delete-dialog small {
  color: #e50914;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.calendar-recurring-delete-dialog h2 {
  margin: 4px 0 9px;
  color: #24282e;
  font-size: 1.24rem;
}

.calendar-recurring-delete-dialog p {
  margin: 0;
  color: #5f6670;
  font-size: 0.72rem;
  line-height: 1.55;
}

.calendar-recurring-delete-dialog .calendar-recurring-delete-note {
  margin-top: 8px;
  color: #858b93;
  font-size: 0.62rem;
}

.calendar-recurring-delete-dialog footer {
  margin-top: 20px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-recurring-delete-dialog footer button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9dde2;
  border-radius: 9px;
  color: #444a52;
  background: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-recurring-delete-dialog footer button:hover {
  background: #f5f6f7;
}

.calendar-recurring-delete-dialog footer button.is-danger {
  border-color: #e50914;
  color: #fff;
  background: #e50914;
}

.calendar-recurring-delete-dialog footer button.is-danger:hover {
  background: #c90a13;
}

.calendar-recurring-move-dialog .calendar-recurring-delete-icon {
  color: #126843;
  background: #e5f6ed;
}

.calendar-recurring-delete-dialog footer button.is-primary {
  border-color: #16865a;
  color: #fff;
  background: #16865a;
}

.calendar-recurring-delete-dialog footer button.is-primary:hover {
  background: #106f49;
}

.calendar-lesson-card-heading {
  padding: 10px 4px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.calendar-lesson-card-heading > span {
  width: 17px;
  height: 17px;
  margin-top: 5px;
  border-radius: 4px;
  display: block;
  background: var(--booking-accent, #e50914);
}

.calendar-lesson-card-heading small {
  display: block;
  color: var(--booking-text, #8e1118);
  font-size: 0.64rem;
  font-weight: 800;
}

.calendar-lesson-card-heading h2 {
  margin: 2px 0 3px;
  color: #24282e;
  font-size: 1.3rem;
  font-weight: 650;
}

.calendar-lesson-card-heading p {
  margin: 0;
  color: #555c65;
  font-size: 0.74rem;
}

.calendar-lesson-card-primary-actions {
  margin: 0 0 14px 37px;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-lesson-card-primary-actions[hidden] {
  display: none;
}

.calendar-lesson-card-meeting,
.calendar-lesson-card-notify {
  width: fit-content;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--booking-accent, #e50914);
  border-radius: 21px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--booking-text, #a30a12);
  background: var(--booking-soft, #fdecee);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.calendar-lesson-card-notify {
  border-color: #128c7e;
  color: #08745f;
  background: #e7f8f0;
  font-family: inherit;
  cursor: pointer;
}

.calendar-lesson-card-meeting[hidden],
.calendar-lesson-card-notify[hidden] {
  display: none;
}

.calendar-lesson-notify-menu {
  width: 260px;
  padding: 12px;
  position: fixed;
  z-index: 21600;
  top: var(--lesson-notify-top, 12px);
  left: var(--lesson-notify-left, 12px);
  border: 1px solid #dde1e5;
  border-radius: 13px;
  display: grid;
  gap: 7px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 14px 34px rgba(24, 28, 34, 0.2);
  animation: calendar-notify-menu-enter 140ms ease-out both;
}

.calendar-lesson-notify-menu[hidden] {
  display: none;
}

.calendar-lesson-notify-menu strong {
  padding: 2px 4px 5px;
  color: #3f454d;
  font-size: 0.7rem;
  line-height: 1.4;
}

.calendar-lesson-notify-menu a {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #343940;
  background: #f5f6f7;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.calendar-lesson-notify-menu a:hover {
  background: #eceff2;
}

.calendar-lesson-notify-menu a[data-lesson-notify-whatsapp] {
  color: #08745f;
  background: #e7f8f0;
}

.calendar-lesson-notify-menu a[hidden] {
  display: none;
}

@keyframes calendar-notify-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calendar-lesson-card.is-live .calendar-lesson-card-meeting:not([hidden]) {
  animation: calendar-live-lesson-glow 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .calendar-week-event.is-live,
  .teacher-month-day button.is-live,
  .teacher-booking-item.is-live,
  .calendar-lesson-card.is-live .calendar-lesson-card-meeting:not([hidden]) {
    animation: none;
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--booking-accent, #e50914) 18%, transparent),
      0 4px 14px color-mix(in srgb, var(--booking-accent, #e50914) 18%, transparent);
  }

  .calendar-week-event.is-live {
    background-color: var(--booking-bg, #fbd6d9);
    background-position: center;
  }
}

.calendar-lesson-card-row {
  padding: 10px 4px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.calendar-lesson-card-row[hidden] {
  display: none;
}

.calendar-lesson-card-row > i {
  width: 22px;
  padding-top: 2px;
  color: #636a73;
  text-align: center;
}

.calendar-lesson-card-row span {
  display: block;
  color: #858b93;
  font-size: 0.6rem;
  font-weight: 800;
}

.calendar-lesson-card-row p {
  margin: 3px 0 0;
  color: #343940;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.calendar-lesson-card-row a {
  margin-top: 3px;
  display: inline-block;
  color: #3f596f;
  font-size: 0.72rem;
  text-decoration: none;
}

.calendar-lesson-card-row a:hover {
  text-decoration: underline;
}

.calendar-lesson-card-row [data-lesson-card-student-whatsapp] {
  color: #087d55;
  font-weight: 800;
}

.calendar-lesson-card-row.is-private {
  margin-top: 3px;
  border-radius: 10px;
  background: #f7f8fa;
}

@media (max-width: 760px) {
  .calendar-lesson-card,
  .calendar-lesson-card.is-anchored {
    width: auto;
    max-height: calc(100dvh - 24px);
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    transform: none;
    animation: calendar-lesson-card-mobile-enter 170ms ease-out both;
  }

  @keyframes calendar-lesson-card-mobile-enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.calendar-unavailable-menu {
  min-width: 225px;
}

.calendar-unavailable-menu p {
  margin: 0 5px 5px;
  padding: 7px 7px 9px;
  border-bottom: 1px solid #eceef1;
  color: #69717b;
  font-size: 0.65rem;
  font-weight: 800;
}

.calendar-unavailable-menu button[hidden],
.calendar-unavailable-menu [hidden] {
  display: none;
}

.calendar-unavailable-menu button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.calendar-context-menu button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.calendar-context-menu i {
  width: 16px;
  color: #e50914;
  text-align: center;
}

.calendar-booking-editor {
  position: fixed;
  z-index: 21000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 27, 0.68);
  backdrop-filter: blur(6px);
}

.calendar-booking-editor[hidden] {
  display: none;
}

.calendar-booking-editor.calendar-floating-editor {
  padding: 0;
  display: block;
  background: transparent;
  backdrop-filter: none;
}

.calendar-booking-editor.calendar-floating-editor[hidden] {
  display: none;
}

.calendar-booking-editor.calendar-floating-editor form {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px 20px 14px;
  position: fixed;
  top: 50%;
  left: 50%;
  gap: 10px;
  border-radius: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 55px rgba(32, 33, 36, 0.3), 0 2px 8px rgba(32, 33, 36, 0.16);
}

.calendar-booking-editor.calendar-floating-editor.is-anchored form {
  top: var(--editor-card-top);
  left: var(--editor-card-left);
  transform: none;
  animation: calendar-floating-editor-enter 180ms cubic-bezier(0.2, 0, 0, 1) both;
}

.calendar-booking-editor.calendar-floating-editor.opens-right {
  --editor-card-enter-x: -18px;
}

.calendar-booking-editor.calendar-floating-editor.opens-left {
  --editor-card-enter-x: 18px;
}

@keyframes calendar-floating-editor-enter {
  from {
    opacity: 0;
    transform: translateX(var(--editor-card-enter-x, 0)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.calendar-booking-editor.calendar-floating-editor header {
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
  align-items: center;
}

.calendar-booking-editor.calendar-floating-editor header span {
  font-size: 0.59rem;
}

.calendar-booking-editor.calendar-floating-editor h2 {
  margin-top: 2px;
  font-size: 1.2rem;
  font-weight: 650;
}

.calendar-booking-editor.calendar-floating-editor header button {
  width: 32px;
  height: 32px;
  background: transparent;
  font-size: 1.25rem;
}

.calendar-booking-editor.calendar-floating-editor .calendar-booking-editor-student,
.calendar-booking-editor.calendar-floating-editor .calendar-booking-type-field {
  padding: 9px 11px;
}

.calendar-booking-editor.calendar-floating-editor .calendar-booking-editor-student > span {
  width: 34px;
  height: 34px;
}

.calendar-booking-editor.calendar-floating-editor label {
  gap: 4px;
  font-size: 0.65rem;
}

.calendar-booking-editor.calendar-floating-editor input:not([type="checkbox"]),
.calendar-booking-editor.calendar-floating-editor select,
.calendar-booking-editor.calendar-floating-editor textarea {
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.72rem;
}

.calendar-booking-editor.calendar-floating-editor textarea {
  min-height: 58px;
}

.calendar-booking-editor.calendar-floating-editor .calendar-notify-student {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f8fa;
  font-size: 0.65rem;
}

.calendar-booking-editor.calendar-floating-editor footer {
  margin: 2px -2px -2px;
  padding-top: 12px;
  position: sticky;
  bottom: -14px;
  z-index: 2;
  background: #fff;
}

.calendar-booking-editor.calendar-floating-editor footer > span {
  max-width: 185px;
  font-size: 0.6rem;
  line-height: 1.35;
}

.calendar-booking-editor.calendar-floating-editor footer button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .calendar-booking-editor.calendar-floating-editor {
    padding: 10px;
    display: grid;
    place-items: center;
    background: rgba(18, 21, 27, 0.55);
    backdrop-filter: blur(4px);
  }

  .calendar-booking-editor.calendar-floating-editor form,
  .calendar-booking-editor.calendar-floating-editor.is-anchored form {
    width: 100%;
    max-height: calc(100dvh - 20px);
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: calendar-floating-editor-mobile-enter 180ms ease-out both;
  }

  @keyframes calendar-floating-editor-mobile-enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.calendar-booking-editor form {
  width: min(610px, 100%);
  max-height: min(880px, calc(100vh - 32px));
  padding: 25px;
  overflow-y: auto;
  border: 1px solid #e0e3e8;
  border-radius: 18px;
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 16, 24, 0.35);
}

.calendar-booking-editor header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.calendar-booking-editor header span {
  color: #e50914;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar-booking-editor h2 {
  margin: 4px 0 0;
  color: #20242b;
  font-size: 1.55rem;
}

.calendar-booking-editor header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #5f6670;
  background: #f1f3f4;
  font-size: 1.4rem;
  cursor: pointer;
}

.calendar-booking-editor-student {
  padding: 13px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f6f7f8;
}

.calendar-booking-editor-student > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
  font-weight: 900;
}

.calendar-booking-editor-student div {
  min-width: 0;
  display: grid;
}

.calendar-booking-editor-student strong {
  color: #2a2e35;
  font-size: 0.86rem;
}

.calendar-booking-editor-student a {
  color: #777e87;
  font-size: 0.68rem;
  text-decoration: none;
}

.calendar-booking-editor .calendar-booking-type-field {
  padding: 13px 14px;
  border: 1px solid rgba(229, 9, 20, 0.17);
  border-radius: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  background: linear-gradient(135deg, #fff7f8, #fff);
}

.calendar-booking-type-field > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a80a12;
  white-space: nowrap;
}

.calendar-booking-type-field > span i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
}

.calendar-booking-type-field select {
  background-color: #fff;
}

.calendar-booking-type-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 8px;
}

.calendar-booking-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calendar-booking-editor-contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.calendar-booking-editor label {
  display: grid;
  gap: 7px;
  color: #4d545e;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-booking-editor label > small {
  color: #9298a1;
  font-size: 0.6rem;
  font-weight: 500;
}

.calendar-booking-editor input,
.calendar-booking-editor select,
.calendar-booking-editor textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce0e5;
  border-radius: 9px;
  color: #252930;
  background: #fff;
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.calendar-booking-editor input:focus,
.calendar-booking-editor select:focus,
.calendar-booking-editor textarea:focus {
  border-color: #e50914;
  outline: 3px solid rgba(229, 9, 20, 0.08);
}

.calendar-meeting-input {
  position: relative;
}

.calendar-meeting-input > i {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  transform: translateY(-50%);
  color: #e50914;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.calendar-booking-editor.calendar-floating-editor .calendar-meeting-input > input:not([type="checkbox"]) {
  padding-left: 46px;
}

.calendar-meeting-shortcuts {
  margin-top: -8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-meeting-shortcuts button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  color: #555c66;
  background: #f8f9fa;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-notify-student {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}

.calendar-notify-student input {
  width: 17px;
  min-height: 17px;
}

.calendar-notify-student.is-disabled {
  color: #9298a2;
  cursor: not-allowed;
}

.calendar-notify-student.is-disabled input {
  cursor: not-allowed;
  opacity: 0.68;
}

.calendar-reminder-toggle input {
  width: 38px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  flex: 0 0 38px;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: #c9cdd3;
  cursor: pointer;
  transition: background 160ms ease;
}

.calendar-reminder-toggle input::after {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 29, 35, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.calendar-reminder-toggle input:checked {
  background: #e50914;
}

.calendar-reminder-toggle input:checked::after {
  transform: translateX(16px);
}

.calendar-reminder-toggle input:focus-visible {
  outline: 3px solid rgba(229, 9, 20, 0.2);
  outline-offset: 2px;
}

.calendar-recurrence-options {
  margin: 0 0 2px 26px;
  padding: 12px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  background: #f8f9fa;
}

.calendar-recurrence-options[hidden] {
  display: none;
}

.calendar-recurrence-options [hidden] {
  display: none !important;
}

.calendar-recurrence-options label {
  gap: 5px !important;
  color: #626973 !important;
  font-size: 0.61rem !important;
  font-weight: 800 !important;
}

.calendar-recurrence-options select,
.calendar-recurrence-options input {
  min-height: 37px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}

.calendar-recurrence-options p {
  margin: 0;
  grid-column: 1 / -1;
  color: #747b85;
  font-size: 0.6rem;
  line-height: 1.5;
}

.calendar-lesson-count-options {
  margin: 0 0 2px 26px;
  padding: 12px;
  border: 1px solid rgba(229, 9, 20, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f8, #f8f9fa);
}

.calendar-lesson-count-options[hidden] {
  display: none;
}

.calendar-lesson-count-options > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.calendar-lesson-count-options > div > span {
  padding-bottom: 12px;
  color: #858b94;
  font-size: 0.66rem;
  font-weight: 850;
}

.calendar-lesson-count-options label {
  gap: 5px !important;
  color: #626973 !important;
  font-size: 0.61rem !important;
  font-weight: 800 !important;
}

.calendar-lesson-count-options input {
  min-height: 39px;
  background: #fff;
}

.calendar-lesson-count-options p {
  margin: 9px 0 0;
  color: #747b85;
  font-size: 0.6rem;
  line-height: 1.5;
}

.calendar-event-card-recurrence {
  margin-left: 41px;
}

.calendar-booking-editor footer {
  padding-top: 16px;
  border-top: 1px solid #eceef1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.calendar-booking-editor footer > span {
  margin-right: auto;
  color: #747b85;
  font-size: 0.67rem;
}

.calendar-booking-editor footer button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #dfe2e7;
  border-radius: 9px;
  color: #565d67;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-booking-editor footer button[type="submit"] {
  border-color: #e50914;
  color: #fff;
  background: #e50914;
}

.calendar-booking-editor footer button:disabled {
  opacity: 0.55;
}

@media (max-width: 1050px) {
  .calendar-google-layout {
    grid-template-columns: 210px minmax(650px, 1fr);
    overflow-x: auto;
  }

  .calendar-portal-shell {
    display: block;
  }
}

@media (max-width: 760px) {
  .calendar-portal-shell {
    display: block;
  }

  .calendar-portal-sidebar {
    width: min(290px, 88vw);
    min-height: 100vh;
    padding: 24px 18px 20px;
    position: fixed;
  }

  .calendar-portal-sidebar nav {
    margin-top: 20px;
    grid-template-columns: 1fr;
  }

  .calendar-portal-sidebar nav button {
    padding: 0 14px;
    justify-content: flex-start;
    flex-direction: row;
    gap: 13px;
    font-size: 0.76rem;
  }

  .calendar-portal-main {
    padding: 24px 14px 40px;
  }

  .calendar-portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-stat-grid,
  .calendar-integration-grid {
    grid-template-columns: 1fr;
  }

  .calendar-google-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-google-navigation {
    width: 100%;
    flex-wrap: wrap;
  }

  .calendar-google-navigation h2 {
    width: 100%;
    margin: 5px 0 0;
  }

  .calendar-google-navigation > .calendar-today-button {
    min-width: 132px;
  }

  .calendar-google-view-controls {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-google-layout {
    display: block;
    overflow: visible;
  }

  .calendar-google-sidebar {
    margin-bottom: 14px;
  }

  .calendar-google-sidebar .calendar-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-google-sidebar .calendar-upcoming-card {
    display: none;
  }

  .calendar-google-stage {
    overflow-x: auto;
  }

  .calendar-week-view {
    min-width: 720px;
  }

  .teacher-month-calendar {
    padding: 12px;
    overflow-x: auto;
  }

  .teacher-month-weekdays,
  .teacher-month-grid {
    min-width: 680px;
  }

  .teacher-booking-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .teacher-booking-item > a {
    display: none;
  }

  .calendar-booking-editor {
    padding: 10px;
  }

  .calendar-booking-editor form {
    padding: 18px;
  }

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

  .calendar-booking-editor-contact-fields {
    grid-template-columns: 1fr;
  }

  .calendar-booking-editor footer {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .calendar-booking-editor footer > span {
    width: 100%;
  }
}

@media (min-width: 1051px) {
  .calendar-portal-body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .calendar-portal-shell,
  .calendar-portal-main {
    height: 100dvh;
    min-height: 0;
  }

  .calendar-portal-main {
    padding: 16px clamp(18px, 2.6vw, 38px) 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .calendar-portal-header {
    min-height: 50px;
    margin-bottom: 10px;
    align-items: center;
    flex: 0 0 auto;
  }

  .calendar-menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .calendar-portal-header h1 {
    margin-top: 2px;
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  }

  .calendar-portal-panel.is-active {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
  }

  .calendar-portal-panel[data-calendar-panel="calendar"].is-active {
    display: flex;
    overflow: hidden;
    flex-direction: column;
  }

  .calendar-google-toolbar {
    min-height: 56px;
    margin-bottom: 10px;
    flex: 0 0 auto;
  }

  .calendar-google-navigation > .calendar-today-button {
    height: 42px;
  }

  .calendar-google-layout {
    min-height: 0;
    flex: 1;
    align-items: stretch;
  }

  .calendar-google-sidebar {
    overflow-y: auto;
  }

  .calendar-google-stage {
    height: auto;
    min-height: 0;
  }

  .calendar-interaction-hint {
    margin-top: 7px;
    flex: 0 0 auto;
  }
}

* {
  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;
}

html.modal-scroll-locked {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body.modal-open {
  position: fixed;
  right: 0;
  left: 0;
  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;
  overflow-wrap: anywhere;
}

.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;
}

.contact-button.custom {
  background: var(--custom-contact-color, var(--primary-accent));
  color: var(--custom-contact-text, #fff);
}

.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: #635bff;
}

.payment-button.stripe:hover {
  background: #5147e5;
}

.payment-button.stripe .icon-wrapper {
  width: 38px;
}

.payment-button.stripe .icon-wrapper > i {
  width: auto;
  height: auto;
  font-size: 2rem;
}

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

.payment-button.custom {
  background: var(--custom-payment-color, #e50914);
  color: var(--custom-payment-text, #fff);
}

.payment-button.custom:hover {
  filter: brightness(0.9);
}

.payment-button.custom span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-button .icon-wrapper > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 1.08rem;
}

.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: 32px 42px 38px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  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;
}

.landing-example-sites {
  width: min(590px, 100%);
}

.landing-example-sites > p {
  margin: 0 0 12px;
  color: #b9bdc3;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.landing-example-sites > p a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
}

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

.landing-example-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #15171a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-example-card:hover,
.landing-example-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 100, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.landing-example-card:focus-visible {
  outline: 2px solid rgba(255, 73, 82, 0.5);
  outline-offset: 3px;
}

.landing-example-visual {
  position: relative;
  padding: 25px 7px 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(229, 9, 20, 0.2), transparent 35%),
    linear-gradient(145deg, #34383e, #1d2024);
}

.landing-example-card:nth-child(2) .landing-example-visual {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 193, 71, 0.22), transparent 36%),
    linear-gradient(145deg, #3b3833, #1d2024);
}

.landing-example-browser-bar {
  position: absolute;
  top: 0;
  right: 7px;
  left: 7px;
  height: 25px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb2b8;
  font-size: 0.49rem;
}

.landing-example-browser-bar i,
.landing-example-browser-bar i::before,
.landing-example-browser-bar i::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
  background: #ff5c64;
}

.landing-example-browser-bar i {
  position: relative;
  margin-right: 10px;
}

.landing-example-browser-bar i::before,
.landing-example-browser-bar i::after {
  content: "";
  position: absolute;
  top: 0;
}

.landing-example-browser-bar i::before {
  left: 7px;
  background: #ffc54d;
}

.landing-example-browser-bar i::after {
  left: 14px;
  background: #57c878;
}

.landing-example-browser-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-example-visual > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.landing-example-card:hover .landing-example-visual > img,
.landing-example-card:focus-visible .landing-example-visual > img {
  transform: scale(1.018);
}

.landing-example-live {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 17, 20, 0.86);
  color: #fff;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.landing-example-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #57c878;
  box-shadow: 0 0 0 3px rgba(87, 200, 120, 0.14);
}

.landing-example-copy {
  min-width: 0;
  padding: 12px 13px 13px;
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-example-copy > small {
  color: #ff6971;
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-example-copy > strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.landing-example-copy > span {
  min-width: 0;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.landing-example-copy > span > span {
  overflow: hidden;
  color: #9fa4ab;
  font-size: 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-example-copy em {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  font-style: normal;
}

/* 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;
}

.qualification-watermark-toggle {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e4e9;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #303741;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.qualification-watermark-toggle:hover,
.qualification-watermark-toggle:focus-visible {
  border-color: #d4a3a6;
  background: #fffafb;
}

.qualification-watermark-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #737d89;
  background: #f0f2f5;
}

.qualification-watermark-toggle.is-enabled .qualification-watermark-icon {
  color: var(--eslflix-red);
  background: rgba(229, 9, 20, 0.1);
}

.qualification-watermark-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.qualification-watermark-copy strong {
  font-size: 0.78rem;
}

.qualification-watermark-copy small {
  color: #828b96;
  font-size: 0.64rem;
  font-weight: 500;
}

.qualification-watermark-switch {
  width: 42px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: #cbd1d8;
  transition: background-color 0.2s ease;
}

.qualification-watermark-switch i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(37, 44, 53, 0.24);
  transition: transform 0.2s ease;
}

.qualification-watermark-toggle.is-enabled .qualification-watermark-switch {
  background: var(--eslflix-red);
}

.qualification-watermark-toggle.is-enabled .qualification-watermark-switch i {
  transform: translateX(18px);
}

.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;
  overflow-wrap: anywhere;
}

.price-payment-link.custom {
  grid-template-columns: 100px minmax(0, 1fr);
}

.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;
}

.custom-buttons-step {
  align-content: start;
}

.custom-buttons-section {
  margin-top: 8px;
  padding-top: 20px;
  display: grid;
  gap: 14px;
  border-top: 1px solid #e3e6ea;
}

.custom-buttons-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.custom-buttons-heading > div {
  display: grid;
  gap: 3px;
}

.custom-buttons-heading strong {
  color: #26303b;
  font-size: 0.84rem;
}

.custom-buttons-heading small {
  color: #7c8693;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
}

.compact-add-button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 9px 12px;
  font-size: 0.68rem;
}

.custom-button-list {
  display: grid;
  gap: 12px;
}

.custom-button-editor {
  position: relative;
  padding: 17px;
  display: grid;
  gap: 14px;
  border: 1px solid #dfe4e9;
  border-radius: 12px;
  background: #fafbfc;
}

.custom-button-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #fff0f0;
  color: #c74444;
  cursor: pointer;
}

.custom-icon-picker {
  padding-right: 38px;
  display: grid;
  gap: 8px;
}

.custom-icon-picker > strong {
  color: #4b5663;
  font-size: 0.68rem;
}

.custom-icon-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.custom-icon-option {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d9dee5;
  border-radius: 9px;
  background: #fff;
  color: #566171;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.custom-icon-option:hover {
  transform: translateY(-1px);
}

.custom-icon-option.selected {
  border-color: var(--wizard-accent, var(--eslflix-red));
  background: color-mix(in srgb, var(--wizard-accent, var(--eslflix-red)) 9%, #fff);
  color: var(--wizard-accent, var(--eslflix-red));
}

.custom-button-fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(240px, 1.3fr);
  gap: 10px;
}

.custom-payment-fields {
  grid-template-columns: minmax(145px, 0.65fr) minmax(230px, 1.2fr) 125px;
}

.custom-color-field > span {
  min-height: 39px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dce2;
  border-radius: 9px;
  background: #fff;
}

.custom-color-field input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.custom-color-field b {
  color: #687281;
  font-size: 0.62rem;
  font-weight: 700;
}

.custom-buttons-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #d7dce2;
  border-radius: 10px;
  background: #fff;
  color: #8a929d;
  font-size: 0.7rem;
  text-align: center;
}

.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;
  }

  .custom-buttons-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-add-button {
    width: fit-content;
  }

  .custom-button-fields,
  .custom-payment-fields {
    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;
  }
}

/* Account creation, recovery and builder access purchase flow */
.landing-shell {
  display: block;
  overflow: visible;
}

.landing-shell .landing-background,
.builder-access-shell .landing-background {
  position: fixed;
}

.landing-content {
  width: min(1220px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-content .landing-panel {
  width: 100%;
  min-height: 760px;
}

.landing-content .landing-copy {
  padding: 56px 52px;
}

.landing-content .landing-copy h1 {
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  margin: 18px 0;
}

.landing-content .auth-switch {
  margin-top: 24px;
}

.landing-content .auth-switch button.active {
  background: rgba(229, 9, 20, 0.18);
  color: #ff5c64;
}

.landing-content .auth-form {
  width: 100%;
  max-width: 500px;
}

.landing-content .auth-form > button[type="submit"] {
  background: var(--eslflix-red);
}

.landing-content .auth-form > button[type="submit"]:hover {
  background: var(--eslflix-red-dark);
}

.auth-password-note {
  margin: -2px 0 2px !important;
  color: #9da2a9 !important;
  font-size: 0.66rem !important;
  line-height: 1.55 !important;
}

.auth-text-button {
  width: fit-content;
  justify-self: start;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f2f2f2 !important;
  font-size: 0.7rem;
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-reset-form > div {
  padding: 13px 15px;
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.08);
}

.auth-reset-form > div strong {
  font-size: 0.78rem;
}

.auth-reset-form > div p {
  margin: 5px 0 0;
  color: #b7bbc1;
  font-size: 0.68rem;
  line-height: 1.55;
}

.auth-social {
  width: 100%;
  max-width: 500px;
  margin-top: 15px;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8d9299;
  font-size: 0.68rem;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.google-login-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f4f4f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 9, 20, 0.58);
  background: rgba(229, 9, 20, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.google-login-button:focus-visible {
  outline: 2px solid rgba(255, 73, 82, 0.5);
  outline-offset: 3px;
}

.google-login-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.existing-account-help {
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border: 1px solid rgba(95, 209, 135, 0.3);
  border-radius: 11px;
  background: rgba(57, 170, 97, 0.1);
}

.existing-account-help strong {
  color: #b8f3ca;
  font-size: 0.76rem;
}

.existing-account-help p {
  margin: 5px 0 12px;
  color: #aeb9b2;
  font-size: 0.68rem;
  line-height: 1.5;
}

.existing-account-help p b {
  color: #f3f5f4;
}

.existing-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.existing-account-help button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #def8e7;
  color: #1f6437;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.existing-account-help button.is-secondary {
  border: 1px solid rgba(184, 243, 202, 0.32);
  background: transparent;
  color: #d8f6e1;
}

.landing-purchase-section {
  margin-top: 28px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(19, 20, 23, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  color: #fff;
  backdrop-filter: blur(18px);
}

.landing-purchase-section h2 {
  max-width: 720px;
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.landing-purchase-section > p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #aeb2b8;
  font-size: 0.82rem;
  line-height: 1.65;
}

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

.builder-purchase-card {
  min-width: 0;
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: center;
}

.builder-purchase-card > small {
  color: #ff777e;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.builder-purchase-card h3 {
  margin: 7px 0 6px;
  font-size: 1.08rem;
  line-height: 1.3;
  text-align: center;
}

.builder-purchase-card h3.is-domain-name {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.builder-purchase-card p {
  margin: 0 0 15px;
  min-height: 3em;
  color: #aeb3ba;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.builder-purchase-details {
  width: 100%;
  max-width: 295px;
  flex: 1;
  margin: 0 auto 20px;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  list-style: none;
}

.builder-purchase-details li {
  position: relative;
  padding-left: 20px;
  color: #d0d3d7;
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: left;
}

.builder-purchase-details li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #ff5c64;
  font-weight: 700;
}

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

.builder-purchase-price {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.builder-purchase-price strong {
  color: #ff5c64;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1;
}

.builder-purchase-price span {
  color: #b9bdc3;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.builder-purchase-price:hover,
.builder-purchase-price:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 9, 20, 0.62);
  background: rgba(229, 9, 20, 0.09);
}

.builder-purchase-price:focus-visible {
  outline: 2px solid rgba(255, 73, 82, 0.5);
  outline-offset: 3px;
}

.builder-purchase-contact {
  width: 100%;
  height: 62px;
  min-height: 62px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eslflix-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.builder-purchase-contact:hover,
.builder-purchase-contact:focus-visible {
  transform: translateY(-1px);
  background: var(--eslflix-red-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.builder-purchase-contact:focus-visible {
  outline: 2px solid rgba(255, 73, 82, 0.5);
  outline-offset: 3px;
}

.builder-access-shell {
  overflow: auto;
}

.builder-code-access-card {
  width: min(1060px, 100%);
}

.builder-code-access-card .builder-code-form {
  width: min(460px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.builder-access-or {
  margin: 20px 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8f949c;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.builder-access-or::before,
.builder-access-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.builder-purchase-grid.is-compact .builder-purchase-card {
  min-height: 270px;
  padding: 17px;
}

.builder-purchase-grid.is-compact .builder-purchase-card p {
  min-height: 3em;
}

.builder-purchase-grid.is-compact .builder-purchase-details {
  max-width: 275px;
}

.builder-purchase-grid.is-compact .builder-purchase-price {
  padding: 12px 9px;
}

.builder-purchase-grid.is-compact .builder-purchase-contact {
  height: 48px;
  min-height: 48px;
  padding: 9px 12px;
}

.builder-purchase-grid.is-compact .builder-purchase-price strong {
  font-size: 1.35rem;
}

.password-reset-card {
  width: min(520px, 100%);
}

.password-reset-form {
  gap: 13px;
}

.password-reset-form small {
  color: #979ca4;
  font-size: 0.64rem;
  text-align: left;
}

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

  .builder-purchase-card,
  .builder-purchase-grid.is-compact .builder-purchase-card {
    min-height: 0;
  }

  .builder-purchase-card p,
  .builder-purchase-grid.is-compact .builder-purchase-card p {
    min-height: 0;
  }

  .landing-purchase-section {
    padding: 34px 28px;
  }
}

@media (max-width: 992px) {
  .landing-content .landing-preview {
    padding: 36px 28px 42px;
    display: flex;
  }

  .landing-content .preview-window {
    transform: none;
  }
}

@media (max-width: 768px) {
  .landing-content .landing-copy {
    padding: 42px 26px;
  }

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

  .landing-purchase-section {
    margin-top: 16px;
  }

  .landing-content .landing-preview {
    padding: 0 26px 36px;
  }

  .landing-content .preview-window {
    display: none;
  }

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

/* 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) hue-rotate(318deg) saturate(2.8) brightness(0.92);
}

.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.16) saturate(1.55) hue-rotate(220deg);
}

/*
 * Designed-layout palettes. Editorial Classroom, Lesson Links and Profile
 * Portfolio keep fixed palettes; Cinematic Studio supports selectable accents.
 */
.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-studio.theme-silver {
  --theme-accent: #f0f0f0;
  --theme-accent-hover: #d0d0d0;
  --theme-soft: rgba(255, 255, 255, 0.07);
  --theme-soft-hover: rgba(255, 255, 255, 0.13);
  --theme-border: rgba(255, 255, 255, 0.3);
  --theme-button-text: #111;
  --theme-calendar-filter: invert(1) grayscale(1);
}

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

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

.teacher-site-root.site-theme-studio.theme-red {
  --theme-accent: #e50914;
  --theme-accent-hover: #b20710;
  --theme-soft: rgba(229, 9, 20, 0.09);
  --theme-soft-hover: rgba(229, 9, 20, 0.17);
  --theme-border: rgba(229, 9, 20, 0.4);
  --theme-button-text: #fff;
  --theme-calendar-filter: invert(1) hue-rotate(318deg) saturate(2.8) brightness(0.92);
}

.teacher-site-root.site-theme-studio.theme-purple {
  --theme-accent: #8b5cf6;
  --theme-accent-hover: #6d3fd4;
  --theme-soft: rgba(139, 92, 246, 0.1);
  --theme-soft-hover: rgba(139, 92, 246, 0.19);
  --theme-border: rgba(139, 92, 246, 0.42);
  --theme-button-text: #fff;
  --theme-calendar-filter: invert(1) sepia(0.16) saturate(1.55) hue-rotate(220deg);
}

.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 {
  display: none;
}

.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::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  left: 4px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.wizard-progress-step::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #c3c9d0;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.wizard-progress-step.is-complete::before {
  background: var(--wizard-accent);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--wizard-accent) 20%, transparent);
}

.wizard-progress-step.is-complete::after {
  content: "✓";
  width: 16px;
  height: 16px;
  border-color: var(--wizard-accent);
  background: var(--wizard-accent);
}

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

.wizard-progress-step.is-complete.is-current::after {
  content: "✓";
  border-color: var(--wizard-accent);
  background: var(--wizard-accent);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--wizard-accent);
}

.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 {
  border-color: 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-step.is-current::before {
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(229, 9, 20, 0.22) 45%,
    transparent 75%
  );
  background-size: 220% 100%;
  animation: eslflixSaving 1s linear infinite;
}

.unsaved-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  border-radius: 0;
  background: rgba(20, 22, 26, 0.58);
  backdrop-filter: blur(5px);
  overscroll-behavior: contain;
}

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

.unsaved-warning-dialog {
  width: min(470px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  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.is-published {
  max-width: 610px;
  padding: 30px;
}

.final-domain-card.is-published .final-domain-icon {
  background: #e9f8ef;
  color: #16874a;
}

.final-live-domain {
  margin: 4px 0 14px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce4e0;
  border-radius: 12px;
  background: #f7faf8;
  text-align: left;
}

.final-live-domain > i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e3f5ea;
  color: #16874a;
}

.final-live-domain span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.final-live-domain small {
  color: #7f8a84;
  font-size: 0.64rem;
}

.final-live-domain strong {
  overflow-wrap: anywhere;
  color: #26342d;
  font-size: 0.84rem;
}

.final-live-domain em {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16874a;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.final-live-domain em i {
  font-size: 0.42rem;
}

.final-domain-card > .final-published-note {
  margin-bottom: 18px;
  font-size: 0.72rem;
}

.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) {
  .final-domain-card.is-published {
    padding: 24px 16px;
  }

  .final-live-domain {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .final-live-domain em {
    margin-left: 50px;
  }

  .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;
}

#imageZoomModal .image-zoom-close {
  position: fixed;
  top: 18px;
  right: 28px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#imageZoomModal .image-zoom-close:hover {
  background: rgba(10, 12, 16, 0.96);
}

#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,
.teacher-site-root.site-theme-parallax-atlas.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%, color-mix(in srgb, var(--theme-accent) 22%, transparent), 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: var(--theme-accent);
  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;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 72px);
  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, color-mix(in srgb, var(--theme-accent) 18%, #353042), #292c3b);
}

.teacher-site-root.site-theme-studio .card:nth-child(3n + 3) {
  background: linear-gradient(110deg, color-mix(in srgb, var(--theme-accent) 12%, #24313c), #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: var(--theme-accent);
    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;
  flex-wrap: wrap;
  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;
}

/* Text labels for themes that intentionally condense contact links into icons. */
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button {
  position: relative;
  overflow: visible;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(240px, 72vw);
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(9, 11, 16, 0.96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: none;
  transform: translateX(-50%);
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button:first-child::after {
  left: 0;
  transform: none;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button:last-child::after {
  right: 0;
  left: auto;
  transform: none;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button:hover::after,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.teacher-site-root.site-theme-link-stack .contact-button::after {
  border: 2px solid #4d5158;
  border-radius: 6px;
  background: #fffdf6;
  color: #31353b;
  box-shadow: 2px 3px 0 rgba(64, 68, 75, 0.42);
}

.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;
  flex-wrap: wrap;
  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%;
  }

}

@media (max-width: 600px) {
  .teacher-site-root.site-theme-link-stack .profile-column {
    padding: 18px;
  }

  .teacher-site-root.site-theme-link-stack .profile-content {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar headline"
      "actions actions"
      "pills pills"
      "copy copy";
    column-gap: 14px;
  }

  .teacher-site-root.site-theme-link-stack .profile-pic {
    width: 76px;
    height: 76px;
    margin: 0;
  }

  .teacher-site-root.site-theme-link-stack .teacher-name {
    align-self: end;
    margin: 0 0 4px;
    font-size: clamp(1.3rem, 7vw, 1.65rem);
    line-height: 1.05;
    text-align: left;
  }

  .teacher-site-root.site-theme-link-stack .teacher-headline {
    align-self: start;
    text-align: left;
  }

  .teacher-site-root.site-theme-link-stack .profile-buttons {
    width: auto;
    margin-top: 13px;
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 8px;
  }

  .teacher-site-root.site-theme-link-stack .profile-buttons .button {
    width: auto;
  }

  .teacher-site-root.site-theme-link-stack .profile-specialities {
    justify-content: flex-start;
    margin-top: 13px;
  }

  .teacher-site-root.site-theme-link-stack .profile-description p {
    font-size: 0.8rem;
    line-height: 1.65;
    text-align: left;
  }

  .teacher-site-root.site-theme-link-stack .contact-buttons {
    justify-content: flex-start;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid rgba(77, 81, 88, 0.18);
  }
}

/* Optional photo gallery builder step */
.gallery-builder-step {
  display: grid;
  gap: 20px;
  width: 100%;
}

.gallery-builder-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}

.gallery-builder-intro > span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffe7e9;
  color: #e50914;
  font-size: 1.15rem;
}

.gallery-builder-intro strong,
.gallery-builder-intro p {
  display: block;
  margin: 0;
}

.gallery-builder-intro strong {
  color: #17202d;
  font-size: 1rem;
}

.gallery-builder-intro p {
  margin-top: 4px;
  color: #728096;
  font-size: 0.84rem;
  line-height: 1.55;
}

.gallery-upload-zone {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px;
  border: 2px dashed #f2a3aa;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(229, 9, 20, 0.08), transparent 56%),
    #fff;
  color: #182231;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-upload-zone:hover {
  border-color: #e50914;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229, 9, 20, 0.1);
}

.gallery-upload-zone > i {
  color: #e50914;
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.gallery-upload-zone strong {
  font-size: 0.98rem;
}

.gallery-upload-zone small {
  color: #8490a2;
  font-size: 0.76rem;
}

.gallery-upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.gallery-upload-zone.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gallery-editor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #17202d;
}

.gallery-editor-summary small {
  color: #7d899b;
}

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

.gallery-editor-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid #dce2eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(23, 32, 45, 0.045);
}

.gallery-editor-image {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-radius: 12px;
  background: #edf1f5;
}

.gallery-editor-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-editor-image > span {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-editor-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.gallery-editor-copy label {
  color: #3f4b5d;
  font-size: 0.72rem;
  font-weight: 700;
}

.gallery-editor-copy input {
  width: 100%;
  height: 42px;
  margin-top: 5px;
  padding: 0 11px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  color: #17202d;
  font: inherit;
  font-size: 0.78rem;
  box-sizing: border-box;
}

.gallery-editor-copy input:focus {
  border-color: #e50914;
  outline: 3px solid rgba(229, 9, 20, 0.1);
}

.gallery-editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-editor-actions button {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d9e0e9;
  border-radius: 9px;
  background: #f7f9fb;
  color: #4c5869;
  cursor: pointer;
}

.gallery-editor-actions button:hover:not(:disabled) {
  border-color: #bdc6d2;
  background: #eef2f6;
}

.gallery-editor-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-editor-actions .gallery-remove-photo {
  width: auto;
  margin-left: auto;
  padding: 0 10px;
  display: inline-flex;
  gap: 6px;
  border-color: #ffd1d5;
  background: #fff4f5;
  color: #c50b16;
}

.gallery-empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 16px;
  background: #f7f9fb;
  color: #8a96a7;
  text-align: center;
}

.gallery-empty-state i {
  font-size: 1.55rem;
}

.gallery-empty-state strong {
  color: #4b5666;
  font-size: 0.88rem;
}

.gallery-empty-state span {
  font-size: 0.76rem;
}

/* Public gallery entry points */
.teacher-site-root .profile-pic.has-gallery {
  cursor: zoom-in;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.teacher-site-root .profile-pic.has-gallery:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  filter: brightness(1.05);
}

.teacher-site-root .profile-pic.has-gallery:focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 5px;
}

.teacher-site-root .profile-column,
.teacher-site-root .profile-content {
  position: relative;
}

.teacher-site-root .profile-gallery-indicator {
  position: absolute;
  z-index: 12;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 70%, white);
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--theme-accent) 88%, white),
      var(--theme-accent)
    );
  color: var(--theme-button-text);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 4px color-mix(in srgb, var(--theme-accent) 18%, transparent);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.teacher-site-root .profile-gallery-indicator::after {
  position: absolute;
  inset: -7px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 42%, transparent);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  opacity: 0.65;
  animation: profile-gallery-pulse 2.8s ease-in-out infinite;
}

.teacher-site-root .profile-gallery-indicator:hover,
.teacher-site-root .profile-gallery-indicator:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.34),
    0 0 0 5px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.teacher-site-root .profile-gallery-indicator:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-accent) 58%, white);
  outline-offset: 4px;
}

.teacher-site-root .profile-gallery-glyph {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("svgs/gallery.svg?v=1.8.21") center / contain no-repeat;
  mask: url("svgs/gallery.svg?v=1.8.21") center / contain no-repeat;
}

.teacher-site-root.site-theme-editorial .profile-gallery-indicator {
  border-color: #6577ff;
  border-radius: 13px;
  background: #fff;
  color: #4f60df;
  box-shadow:
    0 8px 20px rgba(59, 72, 164, 0.22),
    3px 3px 0 rgba(101, 119, 255, 0.24);
}

.teacher-site-root.site-theme-split-profile .profile-gallery-indicator {
  border-color: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: #8ea5ff;
  color: #fff;
  box-shadow:
    0 11px 25px rgba(68, 77, 125, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.38);
}

.teacher-site-root .gallery-contact-button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

.teacher-site-root.site-theme-studio .gallery-contact-button:hover,
.teacher-site-root.site-theme-studio .gallery-contact-button:focus-visible {
  background: var(--theme-accent);
  color: #17131b;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .gallery-contact-button > .profile-gallery-glyph {
  display: block;
}

@keyframes profile-gallery-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.04);
  }
}

.teacher-site-root .button-vector-icon {
  width: 18px;
  flex: 0 0 18px;
  font-size: 1rem;
}

.teacher-site-root .profile-buttons {
  flex-wrap: wrap;
}

.teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) {
  display: flex;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  gap: 9px;
}

.teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) > .button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) > .button.button-icon-only {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  padding-right: 0;
  padding-left: 0;
}

.teacher-site-root .profile-buttons .button-icon-only .button-icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) {
  gap: 8px;
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) > .button {
  width: auto;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 8px 6px;
  gap: 5px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) > .button .button-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) > .button.button-icon-only {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) > .button.button-icon-only .button-icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.teacher-site-root.site-theme-editorial .profile-buttons:has(> :nth-child(3):last-child) {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  justify-self: start;
  align-self: start;
  gap: 8px;
}

.teacher-site-root.site-theme-editorial .profile-buttons:has(> :nth-child(3):last-child) > .button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 7px 11px;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.teacher-site-root.site-theme-editorial .profile-buttons:has(> :nth-child(3):last-child) > .button.button-icon-only {
  flex-basis: 40px;
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.teacher-site-root.site-theme-editorial .profile-buttons:has(> :nth-child(3):last-child) > .button.button-icon-only .button-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

/* Without reviews, keep the Liquid Glass calendar at its designed height.
   Any remaining column height stays as open space before the pricing block. */
.teacher-site-root.site-theme-liquid-glass .details-column:not(:has(.review-carousel)) > .calendar-section {
  flex: 0 0 auto;
}

.teacher-site-root.site-theme-liquid-glass .details-column:not(:has(.review-carousel)) > .calendar-section .calendar-viewport:not(.availability-card) {
  height: 410px;
  flex: 0 0 410px;
}

.teacher-site-root.site-theme-liquid-glass .details-column:not(:has(.review-carousel)) > .details-section:has(.pricing-cards) {
  margin-top: auto;
}

.teacher-site-root .profile-buttons .button-icon-only::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(14, 17, 23, 0.94);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.teacher-site-root .profile-buttons .button-icon-only:hover::after,
.teacher-site-root .profile-buttons .button-icon-only:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Make every profile action read unmistakably as an interactive button. */
.teacher-site-root .profile-buttons .button {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.teacher-site-root .profile-buttons .button:hover,
.teacher-site-root .profile-buttons .button:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-accent) 72%, white);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--theme-accent) 22%, rgba(0, 0, 0, 0.28));
}

.teacher-site-root .profile-buttons .button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-accent) 52%, white);
  outline-offset: 3px;
}

.teacher-site-root .profile-buttons .button:active {
  transform: translateY(-1px);
}

.teacher-site-root.site-theme-liquid-glass .profile-buttons .button:hover,
.teacher-site-root.site-theme-liquid-glass .profile-buttons .button:focus-visible {
  background: color-mix(in srgb, var(--theme-accent) 28%, transparent);
}

.teacher-site-root.site-theme-editorial .profile-buttons .button:hover,
.teacher-site-root.site-theme-editorial .profile-buttons .button:focus-visible {
  background: color-mix(in srgb, var(--theme-accent) 22%, white);
  color: #26343b;
}

.teacher-site-root.site-theme-studio .profile-buttons .button:hover,
.teacher-site-root.site-theme-studio .profile-buttons .button:focus-visible {
  background: color-mix(in srgb, var(--theme-accent) 34%, rgba(20, 23, 34, 0.9));
  color: #fff;
}

.teacher-site-root.site-theme-link-stack .profile-buttons .button:hover,
.teacher-site-root.site-theme-link-stack .profile-buttons .button:focus-visible {
  background: color-mix(in srgb, var(--theme-accent) 58%, white);
  color: #292d33;
}

.teacher-site-root.site-theme-split-profile .profile-buttons .button:hover,
.teacher-site-root.site-theme-split-profile .profile-buttons .button:focus-visible {
  background: var(--theme-accent-hover);
  color: #fff;
}

/* On narrow phones, keep the complete action row visible by reducing each
   action to an equal icon button. Accessible names remain on the controls. */
@media (max-width: 520px) {
  .teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) {
    width: fit-content;
    max-width: 100%;
    gap: 9px;
  }

  .teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) > .button,
  .teacher-site-root.site-theme-liquid-glass .profile-buttons:has(> :nth-child(3):last-child) > .button,
  .teacher-site-root.site-theme-editorial .profile-buttons:has(> :nth-child(3):last-child) > .button {
    position: relative;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    flex: 0 0 46px;
    padding: 0;
    gap: 0;
  }

  .teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) > .button > span {
    display: none;
  }

  .teacher-site-root .profile-buttons:has(> :nth-child(3):last-child) > .button .button-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

/* Compact video dismissal control, kept outside the player in every theme. */
.teacher-site-root .video-modal-content .video-modal-close {
  top: -44px;
  right: 0;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f20d18;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.75));
  box-shadow: none;
  font-size: 31px;
  line-height: 1;
  opacity: 1;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease;
}

.teacher-site-root .video-modal-content .video-modal-close:hover,
.teacher-site-root .video-modal-content .video-modal-close:focus-visible {
  background: transparent;
  color: #ff3a44;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.88));
  transform: translateY(-1px) scale(1.05);
}

.teacher-site-root .video-modal-content .video-modal-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* Keep the builder credit present without competing with the teacher's site. */
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile
) .teacher-builder-footer {
  padding: 8px 15px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 24, 0.46);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  opacity: 0.78;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity 0.2s ease;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile
) .teacher-builder-footer:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile
) .teacher-builder-footer:focus-within {
  opacity: 0.94;
}

.teacher-site-root .teacher-builder-footer p {
  font-size: 0.7rem;
}

.teacher-site-root .teacher-builder-footer .builder-footer-wordmark {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.teacher-site-root .teacher-builder-footer .builder-footer-wordmark span {
  color: rgba(229, 9, 20, 0.86);
}

.teacher-site-root .teacher-builder-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
  text-decoration-color: rgba(229, 9, 20, 0.6);
}

/* Full-screen photo viewer, intentionally independent from document modals */
.teacher-site-root .photo-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 104px;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(4, 6, 10, 0.97);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
  isolation: isolate;
}

.teacher-site-root .photo-gallery-viewer.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.teacher-site-root .photo-gallery-ambient {
  position: absolute;
  z-index: -1;
  inset: -70px;
  background-position: center;
  background-size: cover;
  opacity: 0.16;
  filter: blur(55px) saturate(1.25);
  transform: scale(1.12);
  transition: background-image 0.35s ease;
  pointer-events: none;
}

.teacher-site-root .photo-gallery-viewer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 9, 0.62), rgba(3, 5, 9, 0.22) 45%, rgba(3, 5, 9, 0.78));
  pointer-events: none;
}

.teacher-site-root .photo-gallery-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  box-sizing: border-box;
}

.teacher-site-root .photo-gallery-header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.teacher-site-root .photo-gallery-eyebrow {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teacher-site-root .photo-gallery-header strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-site-root .photo-gallery-count {
  min-width: 68px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  backdrop-filter: blur(14px);
}

.teacher-site-root .photo-gallery-close {
  width: 44px;
  height: 44px;
  justify-self: end;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.teacher-site-root .photo-gallery-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(4deg) scale(1.05);
}

.teacher-site-root .photo-gallery-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  touch-action: pan-y;
}

.teacher-site-root .photo-gallery-figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-site-root .photo-gallery-figure.is-changing {
  opacity: 0;
}

.teacher-site-root .photo-gallery-figure.is-changing.to-next {
  transform: translateX(-30px) scale(0.985);
}

.teacher-site-root .photo-gallery-figure.is-changing.to-previous {
  transform: translateX(30px) scale(0.985);
}

.teacher-site-root .photo-gallery-figure.is-arriving {
  animation: gallery-photo-arrive 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gallery-photo-arrive {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.teacher-site-root .photo-gallery-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.teacher-site-root .photo-gallery-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.5));
}

.teacher-site-root .photo-gallery-figure figcaption {
  max-width: min(720px, 80vw);
  min-height: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(8, 11, 17, 0.58);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  backdrop-filter: blur(16px);
}

.teacher-site-root .photo-gallery-figure figcaption.is-empty {
  padding: 0;
  border: 0;
  background: transparent;
}

.teacher-site-root .photo-gallery-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.teacher-site-root .photo-gallery-arrow:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.17);
}

.teacher-site-root .photo-gallery-arrow.is-previous:hover {
  transform: translateX(-3px);
}

.teacher-site-root .photo-gallery-arrow.is-next:hover {
  transform: translateX(3px);
}

.teacher-site-root .photo-gallery-thumbnails {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 9px;
  padding: 12px 24px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.teacher-site-root .photo-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.teacher-site-root .photo-gallery-thumbnails button {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.52;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.teacher-site-root .photo-gallery-thumbnails button:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.teacher-site-root .photo-gallery-thumbnails button.is-active {
  border-color: #fff;
  opacity: 1;
  transform: translateY(-3px);
}

.teacher-site-root .photo-gallery-thumbnails img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

  .teacher-site-root .photo-gallery-viewer {
    grid-template-rows: 70px minmax(0, 1fr) 90px;
  }

  .teacher-site-root .photo-gallery-stage {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 8px;
    padding: 0 10px;
  }

  .teacher-site-root .photo-gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .teacher-site-root .photo-gallery-thumbnails button {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}

@media (max-width: 620px) {
  .gallery-builder-intro {
    align-items: flex-start;
  }

  .gallery-editor-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .gallery-editor-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .gallery-editor-image {
    height: 116px;
  }

  .gallery-editor-actions .gallery-remove-photo {
    width: 34px;
    padding: 0;
    font-size: 0;
  }

  .gallery-editor-actions .gallery-remove-photo i {
    font-size: 0.8rem;
  }

  .teacher-site-root .photo-gallery-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 13px 14px;
  }

  .teacher-site-root .photo-gallery-header strong {
    max-width: 38vw;
  }

  .teacher-site-root .photo-gallery-count {
    min-width: 54px;
    padding: 7px 9px;
  }

  .teacher-site-root .photo-gallery-close {
    width: 40px;
    height: 40px;
  }

  .teacher-site-root .photo-gallery-stage {
    position: relative;
    display: block;
    padding: 0 8px;
  }

  .teacher-site-root .photo-gallery-figure {
    height: 100%;
    gap: 8px;
  }

  .teacher-site-root .photo-gallery-image-frame img {
    border-radius: 11px;
  }

  .teacher-site-root .photo-gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 7, 11, 0.58);
  }

  .teacher-site-root .photo-gallery-arrow.is-previous {
    left: 15px;
  }

  .teacher-site-root .photo-gallery-arrow.is-next {
    right: 15px;
  }

  .teacher-site-root .photo-gallery-arrow.is-previous:hover,
  .teacher-site-root .photo-gallery-arrow.is-next:hover {
    transform: translateY(-50%);
  }

  .teacher-site-root .photo-gallery-figure figcaption {
    max-width: 88vw;
    padding: 7px 12px;
  }

  .teacher-site-root .photo-gallery-thumbnails {
    justify-content: flex-start;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-site-root .profile-gallery-indicator::after {
    animation: none;
  }

  .teacher-site-root .photo-gallery-viewer,
  .teacher-site-root .photo-gallery-figure,
  .teacher-site-root .photo-gallery-figure.is-arriving,
  .teacher-site-root .photo-gallery-thumbnails button,
  .teacher-site-root .photo-gallery-close,
  .teacher-site-root .photo-gallery-arrow {
    animation: none;
    transition: none;
  }
}

/* Immersive live theme studio */
.theme-studio-stage {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(229, 9, 20, 0.18), transparent 40%),
    #10141a;
}

.theme-studio-stage[hidden] {
  display: none;
}

.theme-studio-preview-status {
  position: absolute;
  z-index: 6;
  top: 16px;
  left: 50%;
  min-height: 38px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.74);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  transform: translateX(-50%);
}

.theme-studio-preview-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-studio-preview-status span i {
  color: #ff3340;
}

.theme-studio-preview-status small {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
}

.theme-studio-preview-frames,
.theme-studio-preview-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.theme-studio-preview-frame {
  border: 0;
  background: #11151b;
  opacity: 0;
  filter: blur(16px) saturate(0.75);
  transform: scale(1.055);
  transform-origin: 50% 44%;
  transition:
    opacity 0.72s cubic-bezier(.16, .8, .22, 1),
    filter 0.72s cubic-bezier(.16, .8, .22, 1),
    transform 0.82s cubic-bezier(.16, .8, .22, 1);
}

.theme-studio-preview-frame.is-active {
  z-index: 2;
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
}

.theme-studio-preview-frame.is-leaving {
  z-index: 1;
  opacity: 0;
  filter: blur(18px) saturate(1.2);
  pointer-events: none;
  transform: scale(0.94);
}

.wizard-page.is-theme-studio-mode {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #10141a;
}

.wizard-page.is-theme-studio-mode .wizard-background {
  opacity: 0;
  pointer-events: none;
}

.wizard-modal.is-theme-studio-dock {
  width: min(1240px, calc(100vw - 28px));
  height: auto;
  min-height: 0;
  max-height: none;
  position: fixed;
  z-index: 20;
  right: auto;
  bottom: 18px;
  left: 50%;
  display: block;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 25px;
  background: rgba(16, 19, 24, 0.9);
  box-shadow:
    0 24px 75px rgba(0, 0, 0, 0.58),
    inset 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  transform: translateX(-50%);
  animation: themeStudioDockFlyIn 0.72s cubic-bezier(.16, .82, .22, 1) both;
}

.wizard-modal.is-theme-studio-dock > .wizard-header,
.wizard-modal.is-theme-studio-dock > .wizard-progress,
.wizard-modal.is-theme-studio-dock > .step-heading,
.wizard-modal.is-theme-studio-dock > .step-navigation {
  display: none;
}

.wizard-modal.is-theme-studio-dock .theme-studio-controls {
  min-height: 0;
  position: relative;
  overflow: visible;
  padding: 0;
}

.theme-studio-dock {
  min-height: 118px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 14px;
}

.theme-studio-return,
.theme-studio-save,
.theme-studio-theme,
.theme-studio-option-tray button {
  font: inherit;
  cursor: pointer;
}

.theme-studio-return {
  min-height: 82px;
  padding: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.theme-studio-return i {
  font-size: 1rem;
}

.theme-studio-return:hover,
.theme-studio-return:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  transform: translateY(-2px);
}

.theme-studio-theme-list {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.theme-studio-theme {
  width: min(104px, 17%);
  min-width: 82px;
  padding: 7px 6px 6px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.63);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.theme-studio-theme:hover,
.theme-studio-theme:focus-visible,
.theme-studio-theme.is-open {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  transform: translateY(-3px);
}

.theme-studio-theme.selected {
  border-color: rgba(229, 9, 20, 0.62);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.08);
}

.theme-studio-theme > strong {
  width: 100%;
  min-height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.59rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.theme-studio-theme-preview {
  width: 68px;
  height: 58px;
  aspect-ratio: auto;
  flex: 0 0 auto;
  border-radius: 10px;
}

.theme-studio-theme .layout-theme-preview > b {
  width: 18px;
  height: 18px;
  top: 5px;
  right: 5px;
  opacity: 0.82;
  transform: scale(1);
}

.theme-studio-theme.selected .layout-theme-preview > b {
  background: #e50914;
}

.theme-studio-save-area {
  display: grid;
  gap: 8px;
}

.theme-studio-save-area > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.6rem;
  font-weight: 600;
}

.theme-studio-save-area > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.14);
}

.theme-studio-save {
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid #e50914;
  border-radius: 13px;
  background: #e50914;
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.26);
  font-size: 0.72rem;
  font-weight: 800;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.theme-studio-save:hover,
.theme-studio-save:focus-visible {
  background: #ff1f2b;
  box-shadow: 0 14px 30px rgba(229, 9, 20, 0.38);
  transform: translateY(-2px);
}

.theme-studio-save:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.theme-studio-option-tray {
  width: min(760px, calc(100vw - 38px));
  min-height: 0;
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 14px);
  left: 50%;
  display: none;
  grid-template-columns: minmax(230px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: 22px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 19px;
  background: rgba(15, 18, 23, 0.94);
  color: #fff;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.theme-studio-option-tray.is-open {
  display: grid;
  animation: themeStudioTrayIn 0.38s cubic-bezier(.16, .8, .22, 1) both;
}

.theme-studio-tray-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
}

.theme-studio-tray-heading > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.14);
  color: #ff3944;
}

.theme-studio-tray-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.theme-studio-tray-heading strong {
  font-size: 0.76rem;
}

.theme-studio-tray-heading small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.61rem;
  line-height: 1.35;
}

.theme-studio-colours {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.theme-studio-colours button {
  width: 58px;
  padding: 5px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.theme-studio-colours button::before {
  content: "";
  width: 36px;
  height: 36px;
  grid-area: 1 / 1;
  border: 3px solid #2b3038;
  border-radius: 50%;
  background: var(--theme-studio-swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.theme-studio-colours button > i {
  z-index: 1;
  grid-area: 1 / 1;
  place-self: center;
  color: #fff;
  font-size: 0.65rem;
  opacity: 0;
  filter: drop-shadow(0 1px 2px #000);
}

.theme-studio-colours button > span {
  font-size: 0.52rem;
  text-transform: capitalize;
}

.theme-studio-colours button:hover,
.theme-studio-colours button:focus-visible,
.theme-studio-colours button.selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.theme-studio-colours button.selected > i {
  opacity: 1;
}

.theme-studio-backgrounds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.theme-studio-backgrounds > button {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
}

.theme-studio-backgrounds > button:hover,
.theme-studio-backgrounds > button:focus-visible,
.theme-studio-backgrounds > button.selected {
  border-color: rgba(229, 9, 20, 0.65);
  background: rgba(229, 9, 20, 0.1);
}

.theme-studio-background-preview {
  width: 62px;
  height: 48px;
  display: block;
  border-radius: 8px;
  background: var(--theme-choice-background);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-studio-background-preview.is-editorial {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), transparent),
    linear-gradient(135deg, #f0dfcf, #eac4cb);
}

.theme-studio-background-preview.is-studio {
  background:
    radial-gradient(circle at 70% 25%, rgba(238, 134, 189, 0.75), transparent 35%),
    linear-gradient(145deg, #111522, #2d3042);
}

.theme-studio-background-preview.is-link-stack {
  background:
    linear-gradient(rgba(70, 65, 58, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 65, 58, 0.12) 1px, transparent 1px),
    #f7ead7;
  background-size: 9px 9px;
}

.theme-studio-background-preview.is-split-profile {
  background: linear-gradient(135deg, #ffd5b9, #dad1ff);
}

.theme-studio-background-preview.is-parallax-atlas {
  background:
    linear-gradient(180deg, rgba(250, 244, 232, 0.04), rgba(13, 52, 65, 0.2)),
    url("backgrounds/parallax-atlas-signature.webp") center/cover;
}

.theme-studio-backgrounds > button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.theme-studio-backgrounds > button > span strong {
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: normal;
}

.theme-studio-backgrounds > button > span small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.54rem;
}

.theme-studio-backgrounds > button > b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e50914;
  font-size: 0.55rem;
  opacity: 0;
}

.theme-studio-backgrounds > button.selected > b {
  opacity: 1;
}

.wizard-page.is-theme-studio-mode .unsaved-warning-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  border-radius: 0;
}

.wizard-modal.theme-studio-returning {
  animation: themeStudioModalReturn 0.62s cubic-bezier(.16, .82, .22, 1) both;
}

@keyframes themeStudioDockFlyIn {
  from {
    opacity: 0.3;
    transform: translate(-50%, -34vh) scale(1.32);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes themeStudioTrayIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, 18px) scale(0.94);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes themeStudioModalReturn {
  from {
    opacity: 0.35;
    transform: translateY(38vh) scale(0.58);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .theme-studio-preview-status {
    top: 9px;
    min-height: 32px;
    padding: 6px 10px;
  }

  .theme-studio-preview-status small {
    display: none;
  }

  .wizard-modal.is-theme-studio-dock {
    width: calc(100vw - 12px);
    bottom: 6px;
    border-radius: 20px;
  }

  .theme-studio-dock {
    min-height: 0;
    padding: 9px;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "themes themes"
      "return save";
    gap: 8px;
  }

  .theme-studio-return {
    min-height: 44px;
    grid-area: return;
  }

  .theme-studio-return span {
    display: none;
  }

  .theme-studio-theme-list {
    grid-area: themes;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 1px 6px;
    scrollbar-width: none;
  }

  .theme-studio-theme-list::-webkit-scrollbar {
    display: none;
  }

  .theme-studio-theme {
    width: 82px;
    min-width: 82px;
  }

  .theme-studio-theme-preview {
    width: 62px;
    height: 50px;
  }

  .theme-studio-save-area {
    grid-area: save;
    justify-self: stretch;
  }

  .theme-studio-save-area > span {
    display: none;
  }

  .theme-studio-save {
    width: 100%;
    min-height: 44px;
  }

  .theme-studio-option-tray,
  .theme-studio-option-tray.is-open {
    width: calc(100vw - 18px);
    max-height: 42vh;
    bottom: calc(100% + 8px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
  }

  .theme-studio-colours {
    justify-content: center;
    flex-wrap: wrap;
  }

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

@media (prefers-reduced-motion: reduce) {
  .theme-studio-preview-frame,
  .wizard-modal.is-theme-studio-dock,
  .wizard-modal.theme-studio-returning,
  .theme-studio-option-tray.is-open {
    animation: none;
    transition: none;
  }
}

/* Professional qualification document viewer */
.teacher-site-root {
  --qualification-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='290' height='150' viewBox='0 0 290 150'%3E%3Cg transform='rotate(-24 145 75)'%3E%3Ctext x='18' y='73' fill='%23e50914' fill-opacity='.2' font-family='Arial,sans-serif' font-size='17' font-weight='700' letter-spacing='1'%3EESLFlix VERIFIED TEACHER%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.qualification-document-viewer {
  --qualification-accent: var(--theme-accent, var(--accent, #e50914));
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #f7f9fc;
  background:
    radial-gradient(circle at 15% 12%, rgba(74, 108, 168, 0.2), transparent 32%),
    radial-gradient(circle at 88% 85%, rgba(161, 52, 66, 0.16), transparent 34%),
    rgba(8, 11, 17, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.qualification-document-viewer::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 82%);
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
}

.qualification-document-viewer.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qualification-document-shell {
  position: relative;
  width: min(1220px, 100%);
  height: min(900px, calc(100dvh - 36px));
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background: #111722;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  transform: translateY(18px) scale(0.985);
  transition: transform 320ms cubic-bezier(.2,.78,.24,1);
}

.qualification-document-viewer.is-visible .qualification-document-shell {
  transform: translateY(0) scale(1);
}

.qualification-document-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(19, 25, 36, 0.98);
}

.qualification-document-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qualification-document-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--qualification-accent) 42%, transparent);
  border-radius: 13px;
  color: #fff;
  background: color-mix(in srgb, var(--qualification-accent) 24%, #151b26);
  box-shadow: inset 0 1px rgba(255,255,255,0.1);
}

.qualification-document-heading > div {
  min-width: 0;
}

.qualification-document-heading small {
  display: block;
  margin: 0 0 2px;
  color: #909bac;
  font: 700 10px/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.qualification-document-heading h2 {
  max-width: min(54vw, 600px);
  margin: 0;
  overflow: hidden;
  color: #f8fafc;
  font: 700 clamp(15px, 1.4vw, 20px)/1.25 Inter, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qualification-document-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.qualification-document-count {
  min-width: 55px;
  color: #9da7b6;
  font: 700 12px/1 Inter, Arial, sans-serif;
  text-align: center;
}

.qualification-document-open,
.qualification-document-close,
.qualification-document-arrow,
.qualification-document-thumbnails button,
.qualification-document-image-button {
  appearance: none;
  -webkit-appearance: none;
  font-family: Inter, Arial, sans-serif;
}

.qualification-document-open {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 11px;
  color: #e9edf4;
  background: rgba(255,255,255,0.055);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.qualification-document-open:hover,
.qualification-document-open:focus-visible {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.qualification-document-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.075);
  font-size: 18px;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease;
}

.qualification-document-close:hover,
.qualification-document-close:focus-visible {
  background: var(--qualification-accent);
  transform: rotate(4deg) scale(1.05);
}

.qualification-document-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.055), transparent 56%),
    #0b1018;
  touch-action: pan-y;
}

.qualification-document-surface {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.055), transparent 58%),
    #151c26;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.2,.75,.25,1);
}

.qualification-document-surface::after,
.qualification-zoom-watermark {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: var(--qualification-watermark);
  background-position: center;
  background-size: 290px 150px;
}

.qualification-document-surface.is-pdf {
  background: #343a43;
}

.qualification-document-surface.is-changing {
  opacity: 0;
}

.qualification-document-surface.is-changing.to-next {
  transform: translateX(-26px) scale(0.99);
}

.qualification-document-surface.is-changing.to-previous {
  transform: translateX(26px) scale(0.99);
}

.qualification-document-surface.is-arriving.to-next {
  transform: translateX(26px) scale(0.99);
}

.qualification-document-surface.is-arriving.to-previous {
  transform: translateX(-26px) scale(0.99);
}

.qualification-document-surface iframe {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.qualification-document-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #9ca8b8;
  font-size: 13px;
  font-weight: 700;
}

.qualification-document-loading i {
  font-size: 30px;
}

.qualification-document-image-button {
  --qualification-document-inset: clamp(14px, 3vw, 32px);
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  display: block;
  padding: 0;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, #222c39, #10161f 72%);
  cursor: zoom-in;
}

.qualification-document-image-button img {
  position: absolute;
  inset: var(--qualification-document-inset);
  width: calc(100% - var(--qualification-document-inset) - var(--qualification-document-inset));
  height: calc(100% - var(--qualification-document-inset) - var(--qualification-document-inset));
  display: block;
  object-fit: contain;
  border-radius: 3px;
  background: #151c26;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  -webkit-user-drag: none;
  user-select: none;
}

/* The document canvas follows the website's visual mode. The three paper-led
   themes retain a light desk; dark themes use a dark neutral surround so
   portrait certificates do not create glaring white letterbox columns. */
.teacher-site-root:is(
  .site-theme-editorial,
  .site-theme-link-stack,
  .site-theme-split-profile
) .qualification-document-surface {
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.92), transparent 62%),
    #dfe3e8;
}

.teacher-site-root:is(
  .site-theme-editorial,
  .site-theme-link-stack,
  .site-theme-split-profile
) .qualification-document-image-button {
  background: linear-gradient(135deg, #eceff3, #cdd3da);
}

.teacher-site-root:is(
  .site-theme-editorial,
  .site-theme-link-stack,
  .site-theme-split-profile
) .qualification-document-image-button img {
  background: #fff;
  box-shadow: 0 15px 40px rgba(25, 31, 40, 0.28);
}

.teacher-site-root:is(
  .site-theme-editorial,
  .site-theme-link-stack,
  .site-theme-split-profile
) .qualification-document-loading {
  color: #657080;
}

.qualification-document-enlarge {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 20, 28, 0.78);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font-size: 11px;
  font-weight: 800;
}

.qualification-document-arrow {
  align-self: center;
  width: 48px;
  height: 60px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  color: #eaf0f8;
  background: rgba(255,255,255,0.045);
  font-size: 17px;
  cursor: pointer;
  transition: transform 170ms ease, color 170ms ease, border-color 170ms ease, background 170ms ease;
}

.qualification-document-arrow:hover,
.qualification-document-arrow:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--qualification-accent) 68%, white 5%);
  background: color-mix(in srgb, var(--qualification-accent) 25%, #151b24);
  transform: translateY(-2px);
}

.qualification-document-footer {
  min-width: 0;
  padding: 13px 18px 15px;
  border-top: 1px solid rgba(255,255,255,0.09);
  background: #121824;
}

.qualification-document-thumbnails {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.qualification-document-thumbnails button {
  width: 218px;
  min-width: 218px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  color: #dfe5ed;
  background: rgba(255,255,255,0.035);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.qualification-document-thumbnails button:hover,
.qualification-document-thumbnails button:focus-visible {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.075);
  transform: translateY(-1px);
}

.qualification-document-thumbnails button.is-active {
  border-color: color-mix(in srgb, var(--qualification-accent) 72%, white 8%);
  background: color-mix(in srgb, var(--qualification-accent) 15%, #17202d);
  box-shadow: inset 3px 0 var(--qualification-accent);
}

.qualification-document-thumb-preview {
  width: 48px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #f05a65;
  background: #f4f5f7;
  font-size: 19px;
}

.qualification-document-thumb-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qualification-document-thumb-copy {
  min-width: 0;
}

.qualification-document-thumb-copy strong,
.qualification-document-thumb-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qualification-document-thumb-copy strong {
  color: #f5f7fa;
  font-size: 12px;
  line-height: 1.35;
}

.qualification-document-thumb-copy small {
  margin-top: 4px;
  color: #8792a2;
  font-size: 10px;
  line-height: 1.2;
}

#imageZoomModal {
  z-index: 13000;
}

.qualification-zoom-frame {
  position: relative;
  width: fit-content;
  height: fit-content;
  max-width: 90vw;
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.qualification-zoom-frame #zoomedImage {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.qualification-zoom-watermark {
  border-radius: 8px;
}

@media (max-width: 720px) {
  .qualification-document-viewer {
    padding: 0;
  }

  .qualification-document-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .qualification-document-header {
    gap: 9px;
    padding: 10px 11px;
  }

  .qualification-document-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
  }

  .qualification-document-heading {
    gap: 9px;
  }

  .qualification-document-heading h2 {
    max-width: calc(100vw - 190px);
    font-size: 14px;
  }

  .qualification-document-count {
    min-width: auto;
    font-size: 10px;
  }

  .qualification-document-close {
    width: 38px;
    height: 38px;
  }

  .qualification-document-stage {
    display: block;
    padding: 10px;
  }

  .qualification-document-surface {
    width: 100%;
    height: 100%;
    border-radius: 11px;
  }

  .qualification-document-image-button {
    --qualification-document-inset: 10px;
    padding: 0;
  }

  .qualification-document-image-button.is-static {
    cursor: default;
  }

  .qualification-document-enlarge {
    display: none;
  }

  .qualification-document-arrow {
    display: none;
  }

  .qualification-document-footer {
    padding: 10px 9px calc(10px + env(safe-area-inset-bottom));
  }

  .qualification-document-thumbnails {
    justify-content: flex-start;
  }

  .qualification-document-thumbnails button {
    width: 188px;
    min-width: 188px;
    min-height: 62px;
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .qualification-document-thumb-preview {
    width: 43px;
    height: 44px;
  }
}

@media (max-width: 430px) {
  .qualification-document-count {
    display: none;
  }

  .qualification-document-heading h2 {
    max-width: calc(100vw - 155px);
  }

  .qualification-document-heading small {
    font-size: 9px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .qualification-document-viewer {
    padding: 0;
  }

  .qualification-document-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .qualification-document-header {
    padding-block: 8px;
  }

  .qualification-document-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .qualification-document-footer {
    padding-block: 8px;
  }

  .qualification-document-thumbnails button {
    min-height: 54px;
  }

  .qualification-document-thumb-preview {
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qualification-document-viewer,
  .qualification-document-shell,
  .qualification-document-surface,
  .qualification-document-arrow,
  .qualification-document-thumbnails button {
    transition: none;
  }
}

/* Connected-teacher entry screen */
.wizard-modal.is-live-site-choice {
  width: min(860px, calc(100vw - 40px));
  height: min(650px, calc(100vh - 50px));
}

.wizard-modal.is-live-site-choice .wizard-progress,
.wizard-modal.is-live-site-choice .step-navigation,
.wizard-modal.is-live-site-choice .save-status,
.wizard-modal.is-live-site-choice .header-preview-link {
  display: none;
}

.wizard-modal.is-live-site-choice .step-heading {
  padding: clamp(34px, 7vh, 58px) 34px 18px;
  text-align: center;
}

.wizard-modal.is-live-site-choice .step-content {
  padding: 8px 34px 38px;
  overflow-y: auto;
}

.wizard-modal.is-live-site-choice.is-opening-editor {
  animation: liveSiteChoiceExit 260ms ease both;
}

.live-site-choice-heading {
  display: grid;
  justify-items: center;
}

.live-site-choice-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid #b8e5c7;
  border-radius: 999px;
  color: #19713c !important;
  background: #eefbf2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-site-choice-status i {
  color: #22a757;
  font-size: 0.76rem;
}

.live-site-choice-heading h1 {
  margin: 0;
  color: #1b222c;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.live-site-choice-heading p {
  max-width: 520px;
  margin: 13px 0 0;
  color: #6e7886;
  font-size: 0.98rem;
  line-height: 1.55;
}

.live-site-choice {
  width: min(680px, 100%);
  display: grid;
  gap: 17px;
  margin: 0 auto;
}

.live-site-domain-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid #e1e5ea;
  border-radius: 15px;
  background: #f7f8fa;
}

.live-site-domain-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--eslflix-red);
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 31, 42, 0.08);
}

.live-site-domain-card > div {
  min-width: 0;
}

.live-site-domain-card small,
.live-site-domain-card strong {
  display: block;
}

.live-site-domain-card small {
  margin-bottom: 2px;
  color: #8a929e;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-site-domain-card strong {
  overflow: hidden;
  color: #29313b;
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-site-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #258149;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-site-domain-badge i {
  font-size: 0.5rem;
}

.live-site-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.live-site-choice-action {
  min-width: 0;
  min-height: 120px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 19px;
  border: 1px solid transparent;
  border-radius: 17px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.live-site-choice-action > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1rem;
}

.live-site-choice-action > div {
  min-width: 0;
}

.live-site-choice-action strong,
.live-site-choice-action small {
  display: block;
}

.live-site-choice-action strong {
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.live-site-choice-action small {
  font-size: 0.74rem;
  line-height: 1.45;
}

.live-site-choice-action > i {
  font-size: 0.78rem;
  transition: transform 190ms ease;
}

.live-site-choice-action.is-view {
  color: #fff;
  background: linear-gradient(135deg, var(--eslflix-red), #b0040d);
  box-shadow: 0 14px 28px rgba(229, 9, 20, 0.19);
}

.live-site-choice-action.is-view > span {
  background: rgba(255,255,255,0.15);
}

.live-site-choice-action.is-view small {
  color: rgba(255,255,255,0.72);
}

.live-site-choice-action.is-edit {
  color: #242c36;
  border-color: #dce1e6;
  background: #fff;
  box-shadow: 0 10px 25px rgba(24, 31, 42, 0.07);
}

.live-site-choice-action.is-edit > span {
  color: #3b4551;
  background: #eef0f3;
}

.live-site-choice-action.is-edit small {
  color: #7a8491;
}

.live-site-choice-action:hover,
.live-site-choice-action:focus-visible {
  transform: translateY(-3px);
}

.live-site-choice-action.is-view:hover,
.live-site-choice-action.is-view:focus-visible {
  box-shadow: 0 18px 34px rgba(229, 9, 20, 0.28);
}

.live-site-choice-action.is-edit:hover,
.live-site-choice-action.is-edit:focus-visible {
  border-color: #bbc2ca;
  box-shadow: 0 16px 32px rgba(24, 31, 42, 0.12);
}

.live-site-choice-action:hover > i,
.live-site-choice-action:focus-visible > i {
  transform: translateX(4px);
}

.live-site-choice-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--eslflix-red) 24%, transparent);
  outline-offset: 3px;
}

.live-site-choice-note {
  margin: 1px 0 0;
  color: #89919c;
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

.live-site-choice-note i {
  margin-right: 4px;
}

@keyframes liveSiteChoiceExit {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

@media (max-width: 620px) {
  .wizard-modal.is-live-site-choice {
    width: 100%;
    height: calc(100vh - 24px);
  }

  .wizard-modal.is-live-site-choice .wizard-header {
    min-height: 62px;
  }

  .wizard-modal.is-live-site-choice .step-heading {
    padding: 32px 20px 16px;
  }

  .wizard-modal.is-live-site-choice .step-content {
    padding: 5px 20px 28px;
  }

  .live-site-choice-heading h1 {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .live-site-choice-heading p {
    font-size: 0.88rem;
  }

  .live-site-domain-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-site-domain-badge {
    grid-column: 2;
  }

  .live-site-choice-actions {
    grid-template-columns: 1fr;
  }

  .live-site-choice-action {
    min-height: 100px;
  }
}

@media (max-width: 390px) {
  .wizard-modal.is-live-site-choice .eslflix-builder-brand em {
    display: none;
  }

  .wizard-modal.is-live-site-choice .step-heading {
    padding-top: 24px;
  }

  .live-site-choice-status {
    margin-bottom: 11px;
  }

  .live-site-choice-action {
    min-height: 92px;
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-modal.is-live-site-choice.is-opening-editor {
    animation: none;
  }

  .live-site-choice-action,
  .live-site-choice-action > i {
    transition: none;
  }
}

/* User-selected colours for custom contact buttons override theme defaults. */
.teacher-site-root .contact-button.custom {
  background: var(--custom-contact-color, var(--theme-accent));
  color: var(--custom-contact-text, #fff);
}

.teacher-site-root .contact-button.custom:hover,
.teacher-site-root .contact-button.custom:focus-visible {
  background: var(--custom-contact-color, var(--theme-accent-hover));
  color: var(--custom-contact-text, #fff);
  filter: brightness(0.9);
}

/* Compact icon docks use each layout's neutral button treatment. */
.teacher-site-root.site-theme-studio .contact-button.custom {
  background: rgba(255, 255, 255, 0.92);
  color: #20232d;
}

.teacher-site-root.site-theme-link-stack .contact-button.custom {
  background: #fff;
  color: #31353b;
}

.teacher-site-root.site-theme-studio .contact-button.custom:hover,
.teacher-site-root.site-theme-studio .contact-button.custom:focus-visible {
  background: var(--custom-contact-color, var(--theme-accent));
  color: var(--custom-contact-text, #fff);
  filter: none;
}

.teacher-site-root.site-theme-link-stack .contact-button.custom:hover,
.teacher-site-root.site-theme-link-stack .contact-button.custom:focus-visible {
  background: var(--custom-contact-color, var(--theme-accent));
  color: var(--custom-contact-text, #fff);
  filter: none;
}

/* Neutral icon docks reveal brand/theme colour only during interaction. */
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.whatsapp:hover,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.whatsapp:focus-visible {
  background: #25d366;
  color: #fff;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.telegram:hover,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.telegram:focus-visible {
  background: #229ed9;
  color: #fff;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.email:hover,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.email:focus-visible {
  background: #5f6368;
  color: #fff;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.wechat:hover,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .contact-button.wechat:focus-visible {
  background: #07c160;
  color: #fff;
}

.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .gallery-contact-button:hover,
.teacher-site-root:is(.site-theme-studio, .site-theme-link-stack) .gallery-contact-button:focus-visible {
  background: var(--theme-accent);
  color: var(--theme-button-text);
}

/* Cinematic Studio: purpose-built phone hero instead of compressed desktop positioning. */
@media (max-width: 680px) {
  .teacher-site-root.site-theme-studio .content-panel {
    padding: 10px;
  }

  .teacher-site-root.site-theme-studio .profile-column,
  .teacher-site-root.site-theme-studio .profile-column:not(:has(.contact-buttons)) {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 18px;
  }

  .teacher-site-root.site-theme-studio .profile-content {
    width: 100%;
    height: auto;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
  }

  .teacher-site-root.site-theme-studio .profile-pic {
    width: 100%;
    height: clamp(220px, 72vw, 300px);
    position: relative;
    inset: auto;
    margin: 0 0 24px;
    border-radius: 13px;
    object-fit: cover;
    object-position: center 25%;
  }

  .teacher-site-root.site-theme-studio .teacher-name {
    width: 100%;
    order: 1;
    margin: 0;
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
  }

  .teacher-site-root.site-theme-studio .teacher-headline {
    width: 100%;
    order: 2;
    margin: 9px 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-align: left;
  }

  .teacher-site-root.site-theme-studio .profile-specialities {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    margin: 18px 0 0;
  }

  .teacher-site-root.site-theme-studio .profile-description {
    width: 100%;
    order: 4;
    margin: 18px 0 0;
    padding: 16px 0 0;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
  }

  .teacher-site-root.site-theme-studio .profile-description p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .teacher-site-root.site-theme-studio .profile-buttons {
    width: 100%;
    order: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
  }

  .teacher-site-root.site-theme-studio .profile-buttons .button {
    width: auto;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 140px;
  }

  .teacher-site-root.site-theme-studio .contact-buttons {
    width: max-content;
    max-width: calc(100% - 32px);
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    margin: 2px auto 20px;
    padding: 8px;
    border-radius: 999px;
    box-sizing: border-box;
  }

  .teacher-site-root.site-theme-studio .contact-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    padding: 0;
  }
}

/*
 * Atlas
 * A scenic, layered profile that moves gently with the page and pointer.
 */
.layout-theme-preview-parallax-atlas {
  background:
    radial-gradient(circle at 78% 17%, rgba(255, 213, 139, 0.96) 0 7%, transparent 7.5%),
    linear-gradient(160deg, transparent 0 56%, rgba(47, 111, 101, 0.7) 56.5% 72%, transparent 72.5%),
    linear-gradient(200deg, transparent 0 54%, rgba(20, 65, 67, 0.92) 54.5% 76%, transparent 76.5%),
    linear-gradient(145deg, #9ed8ce, #244f57);
}

.layout-theme-preview-parallax-atlas .layout-preview-avatar {
  width: 27%;
  height: 62%;
  top: 14%;
  left: 8%;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 40% 40% 8px 8px;
  background: linear-gradient(145deg, #d4aa86, #764f3c);
  box-shadow: 0 8px 16px rgba(4, 33, 37, 0.24);
}

.layout-theme-preview-parallax-atlas .layout-preview-name {
  width: 42%;
  height: 9%;
  top: 19%;
  left: 42%;
  border-radius: 999px;
  background: #f7f0df;
}

.layout-theme-preview-parallax-atlas .layout-preview-copy {
  width: 46%;
  height: 24%;
  top: 34%;
  left: 42%;
  background: repeating-linear-gradient(rgba(235, 244, 237, 0.76) 0 3px, transparent 3px 8px);
}

.layout-theme-preview-parallax-atlas .layout-preview-schedule,
.layout-theme-preview-parallax-atlas .layout-preview-card {
  bottom: 10%;
  height: 18%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(7, 39, 42, 0.72);
  backdrop-filter: blur(4px);
}

.layout-theme-preview-parallax-atlas .layout-preview-schedule {
  width: 31%;
  left: 42%;
}

.layout-theme-preview-parallax-atlas .layout-preview-card {
  width: 12%;
}

.layout-theme-preview-parallax-atlas .preview-card-one { left: 76%; }
.layout-theme-preview-parallax-atlas .preview-card-two { left: 89%; }
.layout-theme-preview-parallax-atlas .preview-card-three { display: none; }

.teacher-site-root.site-theme-parallax-atlas {
  --text-primary: #f8f3e8;
  --text-secondary: rgba(236, 242, 233, 0.76);
  --theme-accent: #f1b45c;
  --theme-accent-hover: #ffc875;
  --theme-button-text: #17393a;
  --solid-dark-bg: #082f34;
  --border-color: rgba(233, 244, 234, 0.2);
  --atlas-bg-x: 0px;
  --atlas-bg-y: 0px;
  --atlas-far-x: 0px;
  --atlas-far-y: 0px;
  --atlas-middle-x: 0px;
  --atlas-middle-y: 0px;
  --atlas-near-x: 0px;
  --atlas-near-y: 0px;
  --atlas-content-y: 0px;
  font-family: "DM Sans", sans-serif;
  background: #082f34;
}

.teacher-site-root.site-theme-parallax-atlas .background-container {
  min-height: 100vh;
  align-items: flex-start;
  padding: clamp(26px, 5vw, 76px) clamp(16px, 4vw, 56px) 36px;
  overflow: clip;
  isolation: isolate;
  background: #082f34;
}

.teacher-site-root.site-theme-parallax-atlas.site-layout-background-signature .background-container {
  background:
    radial-gradient(circle at 76% 15%, rgba(255, 221, 156, 0.22), transparent 22%),
    linear-gradient(145deg, #8ecfc4 0%, #4a8784 36%, #174d52 68%, #082f34 100%);
}

.teacher-site-root.site-theme-parallax-atlas.site-layout-background-custom .background-container::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 35, 39, 0.24), rgba(4, 27, 31, 0.74)),
    radial-gradient(circle at 70% 12%, rgba(255, 207, 123, 0.18), transparent 30%);
}

.teacher-site-root.site-theme-parallax-atlas .background-slides {
  position: fixed;
  inset: -5vh -5vw;
  transform: translate3d(var(--atlas-bg-x), var(--atlas-bg-y), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-sun {
  width: clamp(170px, 22vw, 330px);
  aspect-ratio: 1;
  position: absolute;
  top: clamp(24px, 6vh, 82px);
  right: clamp(-42px, 8vw, 140px);
  border-radius: 50%;
  opacity: 0.9;
  background: radial-gradient(circle, rgba(255, 236, 187, 0.92) 0 18%, rgba(255, 204, 125, 0.36) 48%, transparent 70%);
  filter: blur(0.2px);
  transform: translate3d(var(--atlas-far-x), var(--atlas-far-y), 0);
  will-change: transform;
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge {
  width: 124%;
  position: absolute;
  left: -12%;
  bottom: -12vh;
  transform-origin: center bottom;
  will-change: transform;
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-far {
  height: 58vh;
  opacity: 0.62;
  background: linear-gradient(155deg, rgba(71, 135, 123, 0.2), rgba(25, 80, 78, 0.74));
  clip-path: polygon(0 64%, 12% 51%, 24% 62%, 38% 34%, 51% 57%, 65% 28%, 77% 50%, 88% 37%, 100% 58%, 100% 100%, 0 100%);
  transform: translate3d(var(--atlas-far-x), var(--atlas-far-y), 0) scale(1.02);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-middle {
  height: 47vh;
  opacity: 0.82;
  background: linear-gradient(155deg, rgba(25, 83, 80, 0.56), rgba(9, 54, 57, 0.92));
  clip-path: polygon(0 62%, 10% 40%, 21% 55%, 34% 29%, 49% 63%, 61% 41%, 74% 57%, 88% 25%, 100% 51%, 100% 100%, 0 100%);
  transform: translate3d(var(--atlas-middle-x), var(--atlas-middle-y), 0) scale(1.04);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-near {
  height: 34vh;
  opacity: 0.96;
  background: linear-gradient(165deg, rgba(8, 52, 52, 0.82), #052f32);
  clip-path: polygon(0 46%, 14% 22%, 28% 57%, 42% 34%, 57% 64%, 72% 28%, 84% 51%, 100% 19%, 100% 100%, 0 100%);
  transform: translate3d(var(--atlas-near-x), var(--atlas-near-y), 0) scale(1.06);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.8px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.teacher-site-root.site-theme-parallax-atlas .content-panel {
  max-width: 1220px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translate3d(0, var(--atlas-content-y), 0);
  will-change: transform;
}

.teacher-site-root.site-theme-parallax-atlas .grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "profile"
    "details";
  gap: clamp(24px, 4vw, 46px);
}

.teacher-site-root.site-theme-parallax-atlas .profile-column {
  min-height: min(720px, calc(100vh - 110px));
  padding: clamp(28px, 5vw, 66px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(236, 247, 238, 0.3);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(6, 43, 47, 0.86), rgba(12, 57, 59, 0.62)),
    rgba(7, 42, 45, 0.78);
  box-shadow:
    0 38px 100px rgba(0, 26, 29, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.18);
  text-align: left;
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.teacher-site-root.site-theme-parallax-atlas .profile-column::before {
  content: "LEARN • EXPLORE • CONNECT";
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(233, 242, 226, 0.52);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.teacher-site-root.site-theme-parallax-atlas .profile-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "portrait name"
    "portrait headline"
    "portrait specialities"
    "portrait description"
    "portrait actions";
  grid-template-rows: auto auto auto 1fr auto;
  align-items: start;
  column-gap: clamp(32px, 5vw, 74px);
}

.teacher-site-root.site-theme-parallax-atlas .profile-pic {
  width: 100%;
  height: clamp(380px, 46vw, 540px);
  grid-area: portrait;
  align-self: stretch;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 48% 48% 24px 24px;
  background: rgba(4, 36, 40, 0.78);
  box-shadow: 0 24px 64px rgba(0, 23, 25, 0.38);
  object-position: center 22%;
}

.teacher-site-root.site-theme-parallax-atlas .teacher-name {
  grid-area: name;
  align-self: end;
  margin: 38px 0 6px;
  color: #f9f1de;
  font-family: "Lora", serif;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.teacher-site-root.site-theme-parallax-atlas .teacher-headline {
  grid-area: headline;
  margin: 10px 0 22px;
  color: #f1b45c;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-parallax-atlas .profile-specialities {
  grid-area: specialities;
  justify-content: flex-start;
  margin: 0 0 20px;
}

.teacher-site-root.site-theme-parallax-atlas .profile-specialities span {
  border-color: rgba(239, 219, 175, 0.24);
  background: rgba(236, 243, 225, 0.1);
  color: #f7eedc;
  box-shadow: none;
}

.teacher-site-root.site-theme-parallax-atlas .profile-description {
  max-width: 720px;
  grid-area: description;
  align-self: start;
}

.teacher-site-root.site-theme-parallax-atlas .profile-description p {
  margin: 0;
  color: rgba(239, 242, 229, 0.76);
  font-size: clamp(0.94rem, 1.45vw, 1.08rem);
  line-height: 1.78;
  text-align: left;
}

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

.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button {
  min-height: 48px;
  flex: 0 1 190px;
  border-color: rgba(241, 226, 192, 0.26);
  border-radius: 999px;
  background: rgba(234, 243, 227, 0.1);
  color: #f8f1e2;
}

.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button:hover,
.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button:focus-visible {
  background: rgba(241, 180, 92, 0.23);
}

.teacher-site-root.site-theme-parallax-atlas .contact-buttons {
  width: fit-content;
  max-width: 100%;
  margin: clamp(26px, 4vw, 46px) 0 0 auto;
  padding: 9px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid rgba(239, 245, 228, 0.22);
  border-radius: 999px;
  background: rgba(5, 36, 39, 0.46);
  backdrop-filter: blur(14px);
}

.teacher-site-root.site-theme-parallax-atlas .contact-button {
  min-height: 48px;
  border-radius: 999px;
}

.teacher-site-root.site-theme-parallax-atlas .details-column {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 22px;
}

.teacher-site-root.site-theme-parallax-atlas .details-column > .details-section {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(233, 244, 231, 0.22);
  border-radius: 28px;
  background: rgba(5, 41, 44, 0.78);
  box-shadow:
    0 24px 70px rgba(0, 27, 29, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.teacher-site-root.site-theme-parallax-atlas .calendar-section {
  min-height: 640px;
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards) {
  grid-column: 8 / 13;
  grid-row: 1;
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.review-carousel) {
  grid-column: 8 / 13;
  grid-row: 2;
}

.teacher-site-root.site-theme-parallax-atlas .section-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-color: rgba(237, 245, 228, 0.18);
}

.teacher-site-root.site-theme-parallax-atlas .section-header h2 {
  color: #f8f1df;
  font-family: "Lora", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
}

.teacher-site-root.site-theme-parallax-atlas .calendar-viewport {
  height: 540px;
  border-color: rgba(236, 244, 225, 0.2);
  border-radius: 20px;
  background: rgba(3, 32, 35, 0.72);
}

.teacher-site-root.site-theme-parallax-atlas .calendar-viewport iframe {
  filter: invert(0.94) sepia(0.11) hue-rotate(118deg) saturate(0.74);
}

.teacher-site-root.site-theme-parallax-atlas .availability-card {
  min-height: 480px;
}

.teacher-site-root.site-theme-parallax-atlas .availability-card strong {
  color: #f7eedc;
  font-family: "Lora", serif;
  font-weight: 500;
}

.teacher-site-root.site-theme-parallax-atlas .pricing-cards {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 12px;
}

.teacher-site-root.site-theme-parallax-atlas .card {
  height: 154px;
  min-height: 154px;
  max-height: 154px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 14px;
  border-color: rgba(235, 243, 227, 0.16);
  border-radius: 18px;
  background: rgba(234, 244, 225, 0.08);
  text-align: left;
}

.teacher-site-root.site-theme-parallax-atlas .card:hover {
  border-color: rgba(241, 180, 92, 0.42);
  background: rgba(241, 180, 92, 0.12);
}

.teacher-site-root.site-theme-parallax-atlas .card h3,
.teacher-site-root.site-theme-parallax-atlas .card .price,
.teacher-site-root.site-theme-parallax-atlas .card .price-description {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
}

.teacher-site-root.site-theme-parallax-atlas .card h3 {
  grid-column: 1;
  grid-row: 1;
  color: #f7efdf;
}

.teacher-site-root.site-theme-parallax-atlas .card .price {
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  color: #f1b45c;
  font-size: 1.45rem;
}

.teacher-site-root.site-theme-parallax-atlas .card .price-description {
  grid-column: 1;
  grid-row: 3;
  color: rgba(234, 240, 226, 0.66);
  font-size: 0.72rem !important;
}

.teacher-site-root.site-theme-parallax-atlas .card > .button {
  min-width: 92px;
  min-height: 44px;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  border-radius: 999px;
  background: #f1b45c;
  color: #17393a;
  font-size: 0.7rem;
}

.teacher-site-root.site-theme-parallax-atlas .review-carousel {
  min-height: 180px;
  border-color: rgba(235, 243, 227, 0.15);
  border-radius: 20px;
  background: rgba(234, 244, 225, 0.08);
}

.teacher-site-root.site-theme-parallax-atlas .review-text {
  color: #f6eddc;
  font-family: "Lora", serif;
}

.teacher-site-root.site-theme-parallax-atlas .teacher-builder-footer {
  max-width: 1220px;
  z-index: 2;
  border-color: rgba(234, 243, 225, 0.18);
  border-radius: 18px;
  background: rgba(4, 36, 39, 0.7);
  color: rgba(238, 243, 230, 0.72);
  backdrop-filter: blur(16px);
}

.teacher-site-root.site-theme-parallax-atlas .modal-content {
  border-color: rgba(236, 245, 229, 0.2);
  background: rgba(5, 38, 42, 0.97);
}

.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .modal-content {
  border-color: rgba(23, 47, 60, 0.14);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 111, 87, 0.14), transparent 28%),
    #faf7ee;
  color: #172f3c;
  box-shadow: 0 32px 90px rgba(11, 39, 48, 0.28);
}

.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .modal-header,
.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .info-text {
  color: #172f3c;
}

.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .modal-close {
  color: #172f3c;
}

.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .modal-close:hover,
.teacher-site-root.site-theme-parallax-atlas .modal[data-modal="payment"] .modal-close:focus-visible {
  color: #e95742;
}

.teacher-site-root.site-theme-parallax-atlas.atlas-scroll-ready [data-atlas-scroll] {
  opacity: var(--atlas-scroll-opacity, 1);
  filter: blur(var(--atlas-scroll-blur, 0));
  transform:
    translate3d(0, var(--atlas-scroll-y, 0), 0)
    scale(var(--atlas-scroll-scale, 1));
  transform-origin: center;
  will-change: opacity, filter, transform;
}

@media (max-width: 940px) {
  .teacher-site-root.site-theme-parallax-atlas .background-container {
    padding: 18px 14px 28px;
  }

  .teacher-site-root.site-theme-parallax-atlas .content-panel {
    transform: none;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-column {
    min-height: 0;
    padding: clamp(20px, 5vw, 34px);
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-content {
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
    column-gap: 28px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-pic {
    height: clamp(310px, 58vw, 460px);
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-name {
    font-size: clamp(2.7rem, 8vw, 4.8rem);
  }

  .teacher-site-root.site-theme-parallax-atlas .calendar-section {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .teacher-site-root.site-theme-parallax-atlas .background-container {
    padding: 10px 10px 24px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-column {
    padding: 18px;
    border-radius: 24px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-column::before {
    top: 14px;
    right: 18px;
    font-size: 0.52rem;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "name"
      "headline"
      "specialities"
      "description"
      "actions";
    grid-template-rows: auto;
    gap: 0;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-pic {
    width: 100%;
    height: clamp(290px, 95vw, 420px);
    margin: 0 0 26px;
    border-radius: 46% 46% 18px 18px;
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-name {
    margin: 0 0 4px;
    font-size: clamp(2.65rem, 15vw, 4.2rem);
    line-height: 0.96;
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-headline {
    margin: 9px 0 18px;
    font-size: 0.68rem;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-description p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 9px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-buttons .button {
    flex: 1 1 138px;
  }

  .teacher-site-root.site-theme-parallax-atlas .contact-buttons {
    width: 100%;
    margin-top: 26px;
    justify-content: center;
    border-radius: 20px;
  }

  .teacher-site-root.site-theme-parallax-atlas .contact-button {
    min-width: 46px;
    min-height: 46px;
    padding: 10px 13px;
  }

  .teacher-site-root.site-theme-parallax-atlas .contact-button > span {
    display: none;
  }

  .teacher-site-root.site-theme-parallax-atlas .details-column > .details-section {
    padding: 20px;
    border-radius: 22px;
  }

  .teacher-site-root.site-theme-parallax-atlas .calendar-viewport {
    height: auto;
  }

  .teacher-site-root.site-theme-parallax-atlas .availability-card {
    min-height: 250px;
  }

  .teacher-site-root.site-theme-parallax-atlas .card {
    height: 158px;
    min-height: 158px;
    max-height: 158px;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .teacher-site-root.site-theme-parallax-atlas .parallax-atlas-sun {
    right: -70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-site-root.site-theme-parallax-atlas .background-slides,
  .teacher-site-root.site-theme-parallax-atlas .parallax-atlas-sun,
  .teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge,
  .teacher-site-root.site-theme-parallax-atlas .content-panel,
  .teacher-site-root.site-theme-parallax-atlas.atlas-scroll-ready [data-atlas-scroll] {
    opacity: 1;
    filter: none;
    transform: none;
    will-change: auto;
  }
}

/*
 * Atlas — scroll narrative redesign
 * Airy editorial scenes replace the earlier dark dashboard composition.
 */
.layout-theme-preview-parallax-atlas {
  background:
    radial-gradient(circle at 78% 26%, #ff795f 0 8%, transparent 8.5%),
    linear-gradient(162deg, transparent 0 58%, rgba(31, 73, 91, 0.22) 58.5% 72%, transparent 72.5%),
    linear-gradient(200deg, transparent 0 60%, rgba(31, 73, 91, 0.42) 60.5% 78%, transparent 78.5%),
    #f4eddf;
}

.layout-theme-preview-parallax-atlas .layout-preview-avatar {
  width: 33%;
  height: 72%;
  top: 13%;
  right: 8%;
  left: auto;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 48% 48% 16% 16%;
  background: linear-gradient(145deg, #cf9b7b, #5b3b34);
  box-shadow: 0 7px 0 rgba(24, 46, 57, 0.12);
}

.layout-theme-preview-parallax-atlas .layout-preview-name {
  width: 43%;
  height: 11%;
  top: 20%;
  left: 8%;
  border-radius: 1px;
  background: #172f3c;
}

.layout-theme-preview-parallax-atlas .layout-preview-copy {
  width: 38%;
  height: 19%;
  top: 39%;
  left: 8%;
  background: repeating-linear-gradient(#536a70 0 3px, transparent 3px 8px);
}

.layout-theme-preview-parallax-atlas .layout-preview-schedule,
.layout-theme-preview-parallax-atlas .layout-preview-card {
  height: 13%;
  bottom: 12%;
  border: 0;
  border-radius: 999px;
  backdrop-filter: none;
}

.layout-theme-preview-parallax-atlas .layout-preview-schedule {
  width: 25%;
  left: 8%;
  background: #ff795f;
}

.layout-theme-preview-parallax-atlas .layout-preview-card {
  width: 7%;
  background: #172f3c;
}

.layout-theme-preview-parallax-atlas .preview-card-one { left: 35%; }
.layout-theme-preview-parallax-atlas .preview-card-two { left: 44%; }

.teacher-site-root.site-theme-parallax-atlas {
  --text-primary: #172f3c;
  --text-secondary: #52666d;
  --theme-accent: #ff6f57;
  --theme-accent-hover: #e95742;
  --theme-button-text: #fff;
  --solid-dark-bg: #172f3c;
  --border-color: rgba(23, 47, 60, 0.14);
  color: #172f3c;
  background: #dceae4;
}

.teacher-site-root.site-theme-parallax-atlas .background-container,
.teacher-site-root.site-theme-parallax-atlas.site-layout-background-signature .background-container {
  padding: clamp(18px, 3vw, 44px) clamp(12px, 3vw, 42px) 110px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(250, 244, 232, 0.08), rgba(13, 52, 65, 0.22)),
    url("backgrounds/parallax-atlas-signature.webp") center/cover fixed;
}

.teacher-site-root.site-theme-parallax-atlas.site-layout-background-signature .parallax-atlas-scene {
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.teacher-site-root.site-theme-parallax-atlas.site-layout-background-custom .background-container::after {
  background:
    linear-gradient(180deg, rgba(222, 238, 231, 0.42), rgba(23, 47, 60, 0.62)),
    radial-gradient(circle at 82% 10%, rgba(255, 112, 86, 0.24), transparent 28%);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-sun {
  width: clamp(220px, 27vw, 430px);
  top: -7vh;
  right: -3vw;
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 125, 98, 0.94) 0 31%, rgba(255, 179, 129, 0.28) 54%, transparent 70%);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-far {
  height: 48vh;
  opacity: 0.34;
  background: #749fa0;
  clip-path: polygon(0 71%, 16% 52%, 29% 69%, 43% 44%, 56% 68%, 70% 39%, 83% 62%, 100% 46%, 100% 100%, 0 100%);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-middle {
  height: 36vh;
  opacity: 0.48;
  background: #3e7279;
  clip-path: polygon(0 61%, 13% 37%, 27% 63%, 39% 32%, 52% 66%, 68% 42%, 82% 70%, 100% 33%, 100% 100%, 0 100%);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-ridge.is-near {
  height: 23vh;
  opacity: 0.84;
  background: #173f4b;
  clip-path: polygon(0 49%, 14% 25%, 29% 58%, 45% 30%, 59% 62%, 73% 28%, 86% 55%, 100% 21%, 100% 100%, 0 100%);
}

.teacher-site-root.site-theme-parallax-atlas .parallax-atlas-grain {
  opacity: 0.08;
  background-image: radial-gradient(rgba(23, 47, 60, 0.7) 0.55px, transparent 0.8px);
}

.teacher-site-root.site-theme-parallax-atlas .content-panel {
  max-width: 1360px;
}

.teacher-site-root.site-theme-parallax-atlas .grid-container {
  gap: clamp(34px, 6vw, 88px);
}

.teacher-site-root.site-theme-parallax-atlas .profile-column {
  min-height: calc(100svh - clamp(36px, 6vw, 88px));
  padding: clamp(28px, 5.5vw, 84px);
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: clamp(30px, 5vw, 72px);
  background:
    radial-gradient(circle at 83% 17%, rgba(255, 112, 86, 0.15), transparent 25%),
    rgba(250, 247, 238, 0.74);
  box-shadow:
    0 42px 110px rgba(31, 73, 80, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.9);
  color: #172f3c;
  backdrop-filter: blur(18px) saturate(1.05);
}

.teacher-site-root.site-theme-parallax-atlas .profile-column::before {
  content: "LANGUAGE • CONFIDENCE • CONNECTION";
  top: clamp(22px, 3.5vw, 48px);
  right: clamp(25px, 4.5vw, 68px);
  color: rgba(23, 47, 60, 0.48);
  letter-spacing: 0.2em;
}

.teacher-site-root.site-theme-parallax-atlas .profile-content {
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  grid-template-areas:
    "name portrait"
    "headline portrait"
    "description portrait"
    "specialities portrait"
    "actions portrait";
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  column-gap: clamp(42px, 7vw, 108px);
}

.teacher-site-root.site-theme-parallax-atlas .profile-pic {
  width: 100%;
  height: min(68vh, 650px);
  min-height: 440px;
  align-self: center;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 50% 18% 18%;
  background: #c9d9d2;
  box-shadow:
    22px 28px 0 rgba(255, 111, 87, 0.18),
    0 34px 80px rgba(23, 47, 60, 0.2);
}

.teacher-site-root.site-theme-parallax-atlas .teacher-name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-self: end;
  margin: 30px 0 8px;
  overflow: visible;
  padding-bottom: 0.08em;
  color: #172f3c;
  font-size: clamp(4.5rem, 8.7vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.teacher-site-root.site-theme-parallax-atlas .teacher-headline {
  margin: 17px 0 30px;
  color: #e95742;
  font-size: clamp(0.72rem, 1.15vw, 0.98rem);
  letter-spacing: 0.19em;
}

.teacher-site-root.site-theme-parallax-atlas .profile-description {
  max-width: 680px;
  align-self: center;
}

.teacher-site-root.site-theme-parallax-atlas .profile-description p {
  color: #4f6369;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.8;
}

.teacher-site-root.site-theme-parallax-atlas .profile-specialities {
  align-self: center;
  margin: 24px 0 0;
}

.teacher-site-root.site-theme-parallax-atlas .profile-specialities span {
  border: 1px solid rgba(23, 47, 60, 0.16);
  background: transparent;
  color: #172f3c;
}

.teacher-site-root.site-theme-parallax-atlas .profile-buttons {
  align-self: start;
  margin-top: 26px;
}

.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button {
  min-height: 52px;
  border: 1px solid #172f3c;
  background: #172f3c;
  color: #fff;
}

.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button:hover,
.teacher-site-root.site-theme-parallax-atlas .profile-buttons .button:focus-visible {
  border-color: #ff6f57;
  background: #ff6f57;
}

.teacher-site-root.site-theme-parallax-atlas .contact-buttons {
  width: fit-content;
  padding: 0;
  margin: clamp(28px, 4vw, 52px) auto 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-parallax-atlas .details-column {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 6vw, 82px);
}

.teacher-site-root.site-theme-parallax-atlas .details-column > .details-section {
  width: 100%;
  min-height: min(760px, 82svh);
  padding: clamp(34px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: clamp(30px, 5vw, 70px);
  box-shadow: 0 38px 110px rgba(23, 47, 60, 0.17);
  backdrop-filter: blur(18px) saturate(1.04);
}

.teacher-site-root.site-theme-parallax-atlas .calendar-section {
  min-height: min(760px, 82svh);
  color: #f7f0df;
  background:
    radial-gradient(circle at 86% 15%, rgba(255, 111, 87, 0.28), transparent 24%),
    linear-gradient(145deg, rgba(23, 47, 60, 0.97), rgba(27, 75, 83, 0.93));
}

.teacher-site-root.site-theme-parallax-atlas .calendar-section::after {
  content: "01";
  position: absolute;
  right: clamp(30px, 6vw, 82px);
  bottom: clamp(24px, 5vw, 66px);
  color: rgba(255, 255, 255, 0.08);
  font-family: "Lora", serif;
  font-size: clamp(8rem, 22vw, 19rem);
  line-height: 0.7;
}

.teacher-site-root.site-theme-parallax-atlas .calendar-section .section-header {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.teacher-site-root.site-theme-parallax-atlas .calendar-section .section-header h2 {
  color: #f8f1df;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
}

.teacher-site-root.site-theme-parallax-atlas .calendar-viewport {
  width: min(940px, 100%);
  height: 390px;
  flex: 0 0 390px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(4, 29, 36, 0.48);
}

.teacher-site-root.site-theme-parallax-atlas .availability-card {
  min-height: 390px;
  height: 390px;
  place-items: center start;
  padding: clamp(28px, 6vw, 76px);
}

.teacher-site-root.site-theme-parallax-atlas .availability-card strong {
  max-width: 780px;
  color: #f8f1df;
  font-size: clamp(2.2rem, 5vw, 5.1rem);
  line-height: 1.15;
  text-align: left;
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.review-carousel) {
  min-height: min(590px, 68svh);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 235, 193, 0.26), transparent 24%),
    #ff7158;
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.review-carousel)::before {
  content: "“";
  position: absolute;
  top: -0.18em;
  left: 0.08em;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Lora", serif;
  font-size: clamp(15rem, 34vw, 30rem);
  line-height: 1;
}

.teacher-site-root.site-theme-parallax-atlas .review-carousel {
  width: min(980px, 100%);
  min-height: 280px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.teacher-site-root.site-theme-parallax-atlas .review-text {
  color: #fff9ed;
  font-size: clamp(1.8rem, 4.3vw, 4.4rem);
  line-height: 1.18;
}

.teacher-site-root.site-theme-parallax-atlas .review-author {
  color: rgba(255, 249, 237, 0.82);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards) {
  min-height: min(760px, 82svh);
  background:
    radial-gradient(circle at 15% 90%, rgba(102, 184, 181, 0.22), transparent 28%),
    rgba(248, 244, 233, 0.94);
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards) .section-header {
  border-color: rgba(23, 47, 60, 0.14);
}

.teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards) .section-header h2 {
  color: #172f3c;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
}

.teacher-site-root.site-theme-parallax-atlas .pricing-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: clamp(14px, 2vw, 26px);
}

.teacher-site-root.site-theme-parallax-atlas .card {
  height: auto;
  min-height: 330px;
  max-height: none;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  border: 1px solid rgba(23, 47, 60, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  color: #172f3c;
  box-shadow: 0 18px 48px rgba(23, 47, 60, 0.08);
  text-align: left;
}

.teacher-site-root.site-theme-parallax-atlas .card:hover {
  border-color: #ff6f57;
  background: #fff;
  transform: translateY(-8px);
}

.teacher-site-root.site-theme-parallax-atlas .card h3,
.teacher-site-root.site-theme-parallax-atlas .card .price,
.teacher-site-root.site-theme-parallax-atlas .card .price-description,
.teacher-site-root.site-theme-parallax-atlas .card > .button {
  width: 100%;
  grid-column: auto;
  grid-row: auto;
}

.teacher-site-root.site-theme-parallax-atlas .card h3 {
  color: #172f3c;
  font-family: "Lora", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.teacher-site-root.site-theme-parallax-atlas .card .price {
  margin: 22px 0 12px;
  color: #e95742;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.teacher-site-root.site-theme-parallax-atlas .card .price-description {
  margin-bottom: 28px;
  color: #5a6b70;
  font-size: 0.84rem !important;
  line-height: 1.6;
}

.teacher-site-root.site-theme-parallax-atlas .card > .button {
  min-width: 0;
  min-height: 52px;
  margin-top: auto;
  align-self: stretch;
  border: 0;
  border-radius: 999px;
  background: #172f3c;
  color: #fff;
}

.teacher-site-root.site-theme-parallax-atlas .card > .button:hover,
.teacher-site-root.site-theme-parallax-atlas .card > .button:focus-visible {
  background: #ff6f57;
}

.teacher-site-root.site-theme-parallax-atlas .teacher-builder-footer {
  margin-top: clamp(30px, 5vw, 70px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(248, 244, 233, 0.78);
  color: #52666d;
}

@media (max-width: 940px) {
  .teacher-site-root.site-theme-parallax-atlas .profile-column {
    min-height: 0;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-content {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.86fr);
    column-gap: 38px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-pic {
    height: 560px;
    min-height: 0;
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-name {
    font-size: clamp(3.8rem, 10vw, 6rem);
  }

  .teacher-site-root.site-theme-parallax-atlas .details-column > .details-section,
  .teacher-site-root.site-theme-parallax-atlas .calendar-section,
  .teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards),
  .teacher-site-root.site-theme-parallax-atlas .details-section:has(.review-carousel) {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .teacher-site-root.site-theme-parallax-atlas .background-container {
    padding: 8px 8px 80px;
  }

  .teacher-site-root.site-theme-parallax-atlas .grid-container,
  .teacher-site-root.site-theme-parallax-atlas .details-column {
    gap: 28px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-column {
    padding: 18px 18px 28px;
    border-radius: 28px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-column::before {
    top: 15px;
    right: 18px;
    font-size: 0.48rem;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "name"
      "headline"
      "description"
      "specialities"
      "actions";
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-pic {
    height: min(105vw, 430px);
    min-height: 0;
    margin-bottom: 32px;
    border-width: 5px;
    border-radius: 48% 48% 15% 15%;
    box-shadow:
      10px 14px 0 rgba(255, 111, 87, 0.18),
      0 24px 54px rgba(23, 47, 60, 0.16);
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-name {
    margin: 0;
    font-size: clamp(3.6rem, 19vw, 5.2rem);
    line-height: 0.94;
    white-space: nowrap;
  }

  .teacher-site-root.site-theme-parallax-atlas .teacher-headline {
    margin: 18px 0 24px;
  }

  .teacher-site-root.site-theme-parallax-atlas .profile-specialities {
    margin-top: 22px;
  }

  .teacher-site-root.site-theme-parallax-atlas .contact-buttons {
    width: fit-content;
    margin: 28px auto 0;
    padding: 0;
    justify-content: center;
  }

  .teacher-site-root.site-theme-parallax-atlas .contact-button > span {
    display: inline;
  }

  .teacher-site-root.site-theme-parallax-atlas .details-column > .details-section {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .teacher-site-root.site-theme-parallax-atlas .calendar-section .section-header h2,
  .teacher-site-root.site-theme-parallax-atlas .details-section:has(.pricing-cards) .section-header h2 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .teacher-site-root.site-theme-parallax-atlas .calendar-viewport,
  .teacher-site-root.site-theme-parallax-atlas .availability-card {
    height: 330px;
    min-height: 330px;
    border-radius: 20px;
  }

  .teacher-site-root.site-theme-parallax-atlas .availability-card {
    padding: 24px;
  }

  .teacher-site-root.site-theme-parallax-atlas .availability-card strong {
    font-size: clamp(1.75rem, 9vw, 2.65rem);
  }

  .teacher-site-root.site-theme-parallax-atlas .details-section:has(.review-carousel) {
    min-height: 460px;
  }

  .teacher-site-root.site-theme-parallax-atlas .review-text {
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

  .teacher-site-root.site-theme-parallax-atlas .pricing-cards {
    grid-template-columns: 1fr;
  }

  .teacher-site-root.site-theme-parallax-atlas .card {
    min-height: 280px;
    padding: 28px;
  }
}

/* Keep the qualification viewer visually direct in every theme: the modal
   shell is the frame, so the document surface does not need another frame. */
.teacher-site-root .qualification-document-surface {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.teacher-site-root .qualification-document-surface.is-pdf {
  background: transparent;
}

/* Atlas carries its light editorial palette into the viewer. */
.teacher-site-root.site-theme-parallax-atlas .qualification-document-viewer {
  color: #172f3c;
  background:
    radial-gradient(circle at 14% 12%, rgba(201, 217, 210, 0.48), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(255, 111, 87, 0.2), transparent 32%),
    rgba(14, 40, 45, 0.82);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-viewer::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-shell {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: #f6f2e8;
  box-shadow: 0 34px 100px rgba(7, 31, 36, 0.42);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-header {
  border-color: rgba(23, 47, 60, 0.12);
  background: rgba(250, 247, 238, 0.98);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-mark {
  border-color: rgba(233, 87, 66, 0.34);
  color: #f8f3e8;
  background: #e95742;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-heading small {
  color: #e95742;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-heading h2 {
  color: #172f3c;
  font-family: "Lora", serif;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-count {
  color: #66777a;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-close {
  border-color: rgba(23, 47, 60, 0.16);
  color: #172f3c;
  background: rgba(23, 47, 60, 0.06);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-close:hover,
.teacher-site-root.site-theme-parallax-atlas .qualification-document-close:focus-visible {
  color: #fff;
  background: #e95742;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-stage {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94), transparent 58%),
    linear-gradient(145deg, #dce8e2, #eee8dc);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-image-button {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.8), transparent 60%),
    transparent;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-image-button img {
  background: #fff;
  box-shadow: 0 20px 52px rgba(23, 47, 60, 0.24);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-arrow {
  border-color: rgba(23, 47, 60, 0.16);
  color: #172f3c;
  background: rgba(250, 247, 238, 0.72);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-arrow:hover,
.teacher-site-root.site-theme-parallax-atlas .qualification-document-arrow:focus-visible {
  border-color: rgba(233, 87, 66, 0.52);
  color: #fff;
  background: #e95742;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-footer {
  border-color: rgba(23, 47, 60, 0.12);
  background: #edf3ef;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumbnails {
  scrollbar-color: rgba(23, 47, 60, 0.24) transparent;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumbnails button {
  border-color: rgba(23, 47, 60, 0.14);
  color: #263f49;
  background: rgba(255, 255, 255, 0.54);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumbnails button:hover,
.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumbnails button:focus-visible {
  border-color: rgba(23, 47, 60, 0.3);
  background: rgba(255, 255, 255, 0.88);
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumbnails button.is-active {
  border-color: rgba(233, 87, 66, 0.66);
  background: #fff7ef;
  box-shadow: inset 3px 0 #e95742;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumb-copy strong {
  color: #172f3c;
}

.teacher-site-root.site-theme-parallax-atlas .qualification-document-thumb-copy small {
  color: #6c7d81;
}

@media (max-width: 720px) {
  .teacher-site-root.site-theme-parallax-atlas .qualification-document-shell {
    border-radius: 0;
  }
}

/* Theme-matched qualification viewers */
.teacher-site-root.site-theme-liquid-glass {
  --qualification-viewer-overlay: rgba(4, 8, 18, 0.92);
  --qualification-viewer-glow-a: rgba(95, 131, 255, 0.25);
  --qualification-viewer-glow-b: rgba(99, 224, 205, 0.16);
  --qualification-viewer-shell: rgba(14, 21, 35, 0.92);
  --qualification-viewer-panel: rgba(18, 27, 44, 0.94);
  --qualification-viewer-stage-a: #17243a;
  --qualification-viewer-stage-b: #080e1a;
  --qualification-viewer-control: rgba(255, 255, 255, 0.07);
  --qualification-viewer-control-hover: rgba(255, 255, 255, 0.13);
  --qualification-viewer-thumb: rgba(255, 255, 255, 0.045);
  --qualification-viewer-active: color-mix(in srgb, var(--theme-accent) 18%, #17243a);
  --qualification-viewer-border: rgba(255, 255, 255, 0.14);
  --qualification-viewer-ink: #f5f8ff;
  --qualification-viewer-muted: #9ca9bd;
  --qualification-viewer-mark-ink: #fff;
  --qualification-viewer-radius: 28px;
  --qualification-viewer-font: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-editorial {
  --qualification-viewer-overlay: rgba(34, 28, 22, 0.76);
  --qualification-viewer-glow-a: rgba(101, 119, 255, 0.22);
  --qualification-viewer-glow-b: rgba(193, 151, 104, 0.2);
  --qualification-viewer-shell: #faf7ef;
  --qualification-viewer-panel: #f1ebdf;
  --qualification-viewer-stage-a: #fffdf8;
  --qualification-viewer-stage-b: #d9cdbc;
  --qualification-viewer-control: rgba(54, 45, 36, 0.055);
  --qualification-viewer-control-hover: rgba(54, 45, 36, 0.1);
  --qualification-viewer-thumb: rgba(255, 255, 255, 0.62);
  --qualification-viewer-active: #f2f0ff;
  --qualification-viewer-border: rgba(72, 58, 44, 0.18);
  --qualification-viewer-ink: #1f2c33;
  --qualification-viewer-muted: #756d63;
  --qualification-viewer-mark-ink: #fff;
  --qualification-viewer-radius: 6px;
  --qualification-viewer-font: "Lora", serif;
}

.teacher-site-root.site-theme-studio {
  --qualification-viewer-overlay: rgba(2, 5, 16, 0.93);
  --qualification-viewer-glow-a: color-mix(in srgb, var(--theme-accent) 28%, transparent);
  --qualification-viewer-glow-b: rgba(90, 113, 255, 0.2);
  --qualification-viewer-shell: #090f20;
  --qualification-viewer-panel: #111a31;
  --qualification-viewer-stage-a: #1a2544;
  --qualification-viewer-stage-b: #080d1b;
  --qualification-viewer-control: rgba(255, 255, 255, 0.065);
  --qualification-viewer-control-hover: color-mix(in srgb, var(--theme-accent) 20%, #18213c);
  --qualification-viewer-thumb: rgba(255, 255, 255, 0.045);
  --qualification-viewer-active: color-mix(in srgb, var(--theme-accent) 15%, #151e38);
  --qualification-viewer-border: color-mix(in srgb, var(--theme-accent) 30%, rgba(255, 255, 255, 0.12));
  --qualification-viewer-ink: #f7f8ff;
  --qualification-viewer-muted: #a7b0ca;
  --qualification-viewer-mark-ink: #111522;
  --qualification-viewer-radius: 30px;
  --qualification-viewer-font: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-link-stack {
  --qualification-viewer-overlay: rgba(41, 45, 51, 0.68);
  --qualification-viewer-glow-a: rgba(247, 215, 92, 0.28);
  --qualification-viewer-glow-b: rgba(251, 231, 220, 0.26);
  --qualification-viewer-shell: #f8f5ef;
  --qualification-viewer-panel: #fff;
  --qualification-viewer-stage-a: #fffaf0;
  --qualification-viewer-stage-b: #dedbd4;
  --qualification-viewer-control: #fff;
  --qualification-viewer-control-hover: #fff6d0;
  --qualification-viewer-thumb: #fff;
  --qualification-viewer-active: #fff5bd;
  --qualification-viewer-border: rgba(45, 49, 55, 0.22);
  --qualification-viewer-ink: #292d33;
  --qualification-viewer-muted: #6c6962;
  --qualification-viewer-mark-ink: #292d33;
  --qualification-viewer-radius: 16px;
  --qualification-viewer-font: "DM Sans", sans-serif;
}

.teacher-site-root.site-theme-split-profile {
  --qualification-viewer-overlay: rgba(50, 45, 66, 0.7);
  --qualification-viewer-glow-a: rgba(142, 165, 255, 0.34);
  --qualification-viewer-glow-b: rgba(255, 184, 137, 0.28);
  --qualification-viewer-shell: rgba(252, 250, 253, 0.98);
  --qualification-viewer-panel: #f2eef6;
  --qualification-viewer-stage-a: #f8f5fa;
  --qualification-viewer-stage-b: #ddd9eb;
  --qualification-viewer-control: rgba(78, 83, 98, 0.065);
  --qualification-viewer-control-hover: rgba(142, 165, 255, 0.17);
  --qualification-viewer-thumb: rgba(255, 255, 255, 0.74);
  --qualification-viewer-active: #edf0ff;
  --qualification-viewer-border: rgba(78, 83, 98, 0.16);
  --qualification-viewer-ink: #3d4150;
  --qualification-viewer-muted: #7b7f8d;
  --qualification-viewer-mark-ink: #fff;
  --qualification-viewer-radius: 24px;
  --qualification-viewer-font: "Outfit", sans-serif;
}

.teacher-site-root.site-theme-parallax-atlas {
  --qualification-viewer-overlay: rgba(14, 40, 45, 0.82);
  --qualification-viewer-glow-a: rgba(201, 217, 210, 0.48);
  --qualification-viewer-glow-b: rgba(255, 111, 87, 0.2);
  --qualification-viewer-shell: #f6f2e8;
  --qualification-viewer-panel: #edf3ef;
  --qualification-viewer-stage-a: #fff;
  --qualification-viewer-stage-b: #dce8e2;
  --qualification-viewer-control: rgba(250, 247, 238, 0.72);
  --qualification-viewer-control-hover: #fff;
  --qualification-viewer-thumb: rgba(255, 255, 255, 0.54);
  --qualification-viewer-active: #fff7ef;
  --qualification-viewer-border: rgba(23, 47, 60, 0.14);
  --qualification-viewer-ink: #172f3c;
  --qualification-viewer-muted: #6c7d81;
  --qualification-viewer-mark-ink: #fff;
  --qualification-viewer-radius: 30px;
  --qualification-viewer-font: "Lora", serif;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-viewer {
  color: var(--qualification-viewer-ink);
  background:
    radial-gradient(circle at 14% 12%, var(--qualification-viewer-glow-a), transparent 34%),
    radial-gradient(circle at 88% 84%, var(--qualification-viewer-glow-b), transparent 34%),
    var(--qualification-viewer-overlay);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-shell {
  border-color: var(--qualification-viewer-border);
  border-radius: var(--qualification-viewer-radius);
  background: var(--qualification-viewer-shell);
  box-shadow: 0 34px 100px color-mix(in srgb, var(--qualification-viewer-overlay) 68%, transparent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-header,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-footer {
  border-color: var(--qualification-viewer-border);
  background: var(--qualification-viewer-panel);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-mark {
  border-color: color-mix(in srgb, var(--theme-accent) 56%, transparent);
  color: var(--qualification-viewer-mark-ink);
  background: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-heading small {
  color: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-heading h2 {
  color: var(--qualification-viewer-ink);
  font-family: var(--qualification-viewer-font);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) :is(
  .qualification-document-count,
  .qualification-document-thumb-copy small,
  .qualification-document-loading
) {
  color: var(--qualification-viewer-muted);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) :is(
  .qualification-document-close,
  .qualification-document-arrow
) {
  border-color: var(--qualification-viewer-border);
  color: var(--qualification-viewer-ink);
  background: var(--qualification-viewer-control);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-close:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-close:focus-visible,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-arrow:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-arrow:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent) 65%, var(--qualification-viewer-border));
  color: var(--qualification-viewer-mark-ink);
  background: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-stage {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--qualification-viewer-stage-a) 88%, transparent), transparent 58%),
    linear-gradient(145deg, var(--qualification-viewer-stage-a), var(--qualification-viewer-stage-b));
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-image-button {
  background: transparent;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-image-button img {
  background: #fff;
  box-shadow: 0 20px 52px color-mix(in srgb, var(--qualification-viewer-overlay) 35%, transparent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumbnails {
  scrollbar-color: var(--qualification-viewer-border) transparent;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumbnails button {
  border-color: var(--qualification-viewer-border);
  color: var(--qualification-viewer-ink);
  background: var(--qualification-viewer-thumb);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumbnails button:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumbnails button:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent) 58%, var(--qualification-viewer-border));
  background: var(--qualification-viewer-control-hover);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumbnails button.is-active {
  border-color: color-mix(in srgb, var(--theme-accent) 72%, var(--qualification-viewer-border));
  background: var(--qualification-viewer-active);
  box-shadow: inset 3px 0 var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .qualification-document-thumb-copy strong {
  color: var(--qualification-viewer-ink);
}

/* Photo galleries use the same theme tokens as qualification viewers. */
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-viewer {
  color: var(--qualification-viewer-ink);
  background:
    radial-gradient(circle at 14% 12%, var(--qualification-viewer-glow-a), transparent 34%),
    radial-gradient(circle at 88% 84%, var(--qualification-viewer-glow-b), transparent 34%),
    var(--qualification-viewer-overlay);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-viewer::after {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--qualification-viewer-panel) 88%, transparent),
      transparent 28% 70%,
      color-mix(in srgb, var(--qualification-viewer-panel) 88%, transparent)
    );
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-ambient {
  opacity: 0.1;
  filter: blur(64px) saturate(1.08);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-header {
  border-bottom: 1px solid var(--qualification-viewer-border);
  background: color-mix(in srgb, var(--qualification-viewer-panel) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-eyebrow {
  color: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-header strong {
  color: var(--qualification-viewer-ink);
  font-family: var(--qualification-viewer-font);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) :is(
  .photo-gallery-count,
  .photo-gallery-close,
  .photo-gallery-arrow
) {
  border-color: var(--qualification-viewer-border);
  color: var(--qualification-viewer-ink);
  background: var(--qualification-viewer-control);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-close:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-arrow:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 65%, var(--qualification-viewer-border));
  color: var(--qualification-viewer-mark-ink);
  background: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-stage {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--qualification-viewer-stage-a) 86%, transparent), transparent 58%),
    linear-gradient(145deg, var(--qualification-viewer-stage-a), var(--qualification-viewer-stage-b));
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-image-frame img {
  border-radius: min(16px, var(--qualification-viewer-radius));
  filter: drop-shadow(
    0 28px 48px color-mix(in srgb, var(--qualification-viewer-overlay) 48%, transparent)
  );
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-figure figcaption {
  border-color: var(--qualification-viewer-border);
  color: var(--qualification-viewer-ink);
  background: color-mix(in srgb, var(--qualification-viewer-panel) 78%, transparent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-thumbnails {
  border-top: 1px solid var(--qualification-viewer-border);
  background: color-mix(in srgb, var(--qualification-viewer-panel) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-thumbnails button {
  border-color: var(--qualification-viewer-border);
  background: var(--qualification-viewer-thumb);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-thumbnails button:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 55%, var(--qualification-viewer-border));
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .photo-gallery-thumbnails button.is-active {
  border-color: var(--theme-accent);
  background: var(--qualification-viewer-active);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

@media (max-width: 720px) {
  .teacher-site-root:is(
    .site-theme-liquid-glass,
    .site-theme-editorial,
    .site-theme-studio,
    .site-theme-link-stack,
    .site-theme-split-profile,
    .site-theme-parallax-atlas,
    .site-theme-minimalist
  ) .qualification-document-shell {
    border-radius: 0;
  }
}

/* Theme-aware page scrollbars */
html[data-teacher-theme] {
  --teacher-scroll-track: #0a101a;
  --teacher-scroll-thumb: color-mix(in srgb, var(--teacher-scroll-accent, #8fa3bf) 66%, #8fa3bf);
  --teacher-scroll-thumb-hover: var(--teacher-scroll-accent, #b8c6dc);
  scrollbar-width: thin;
  scrollbar-color: var(--teacher-scroll-thumb) var(--teacher-scroll-track);
}

html[data-teacher-theme="editorial"] {
  --teacher-scroll-track: #ebe4d8;
  --teacher-scroll-thumb: color-mix(in srgb, var(--teacher-scroll-accent, #6577ff) 66%, #65625e);
}

html[data-teacher-theme="studio"] {
  --teacher-scroll-track: #080d1b;
  --teacher-scroll-thumb: color-mix(in srgb, var(--teacher-scroll-accent, #ee86bd) 78%, #8190b2);
}

html[data-teacher-theme="link-stack"] {
  --teacher-scroll-track: #e8e4dc;
  --teacher-scroll-thumb: color-mix(in srgb, var(--teacher-scroll-accent, #f7d75c) 74%, #4b4f56);
}

html[data-teacher-theme="split-profile"] {
  --teacher-scroll-track: #ebe7ef;
  --teacher-scroll-thumb: color-mix(in srgb, var(--teacher-scroll-accent, #8ea5ff) 72%, #767b8d);
}

html[data-teacher-theme="parallax-atlas"] {
  --teacher-scroll-track: #d9e5df;
  --teacher-scroll-thumb: #2c6870;
  --teacher-scroll-thumb-hover: var(--teacher-scroll-accent, #ff6f57);
}

html[data-teacher-theme]::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

html[data-teacher-theme]::-webkit-scrollbar-track {
  background: var(--teacher-scroll-track);
}

html[data-teacher-theme]::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid var(--teacher-scroll-track);
  border-radius: 999px;
  background: var(--teacher-scroll-thumb);
}

html[data-teacher-theme]::-webkit-scrollbar-thumb:hover {
  background: var(--teacher-scroll-thumb-hover);
}

html[data-teacher-theme]::-webkit-scrollbar-corner {
  background: var(--teacher-scroll-track);
}

.teacher-site-root :is(
  .qualification-document-thumbnails,
  .photo-gallery-thumbnails
) {
  scrollbar-color: var(--teacher-scroll-thumb) transparent;
}

/* Minimalist: full-screen, section-snapped teacher profile */
.layout-theme-preview-minimalist {
  border-color: #d8d0c3;
  background:
    linear-gradient(90deg, #faf8f5 0 64%, #f3ece3 64%);
}

.layout-theme-preview-minimalist .layout-preview-avatar {
  top: 13%;
  right: 9%;
  left: auto;
  width: 27%;
  height: 66%;
  border: 5px solid #fff;
  border-radius: 3px;
  background: #b9aa97;
  box-shadow: 0 7px 18px rgba(80, 62, 40, 0.14);
}

.layout-theme-preview-minimalist .layout-preview-name {
  top: 29%;
  left: 9%;
  width: 43%;
  height: 9%;
  border-radius: 2px;
  background: #2c2a29;
}

.layout-theme-preview-minimalist .layout-preview-copy {
  top: 44%;
  left: 9%;
  width: 38%;
  height: 5%;
  border-radius: 2px;
  background: #8c7853;
  box-shadow: 0 11px 0 rgba(92, 88, 86, 0.25);
}

.layout-theme-preview-minimalist .layout-preview-schedule {
  top: 67%;
  left: 9%;
  width: 24%;
  height: 11%;
  border: 0;
  border-radius: 2px;
  background: #8c7853;
}

.layout-theme-preview-minimalist .layout-preview-card {
  display: none;
}

.minimalist-variant-options button {
  min-width: 150px;
}

.minimalist-variant-options button > span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.minimalist-variant-options button > span strong {
  text-transform: none;
}

.minimalist-variant-options button > span small {
  max-width: 17ch;
  color: #8690a1;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.teacher-site-root.site-theme-minimalist {
  --minimal-bg: #faf8f5;
  --minimal-bg-secondary: #f3ece3;
  --minimal-card: #fff;
  --minimal-text: #2c2a29;
  --minimal-muted: #5c5856;
  --minimal-accent: #8c7853;
  --minimal-accent-hover: #705f41;
  --minimal-border: #e2dcd5;
  --minimal-radius: 4px;
  --minimal-shadow: 0 18px 54px rgba(140, 120, 83, 0.12);
  --minimal-heading-font: "Playfair Display", "Lora", serif;
  --minimal-body-font: "Inter", "DM Sans", sans-serif;
  --minimal-calendar-filter: sepia(0.1) saturate(0.78) hue-rotate(346deg) brightness(1.025);
  --theme-accent: var(--minimal-accent);
  --theme-accent-hover: var(--minimal-accent-hover);
  --theme-soft: color-mix(in srgb, var(--minimal-accent) 10%, transparent);
  --theme-soft-hover: color-mix(in srgb, var(--minimal-accent) 17%, transparent);
  --theme-border: var(--minimal-border);
  --theme-button-text: #fff;
  --theme-calendar-filter: var(--minimal-calendar-filter);
  --qualification-viewer-overlay: rgba(44, 42, 41, 0.72);
  --qualification-viewer-glow-a: rgba(140, 120, 83, 0.25);
  --qualification-viewer-glow-b: rgba(243, 236, 227, 0.46);
  --qualification-viewer-shell: #faf8f5;
  --qualification-viewer-panel: #f3ece3;
  --qualification-viewer-stage-a: #fff;
  --qualification-viewer-stage-b: #eee8df;
  --qualification-viewer-control: rgba(140, 120, 83, 0.08);
  --qualification-viewer-control-hover: rgba(140, 120, 83, 0.15);
  --qualification-viewer-thumb: #fff;
  --qualification-viewer-active: #f4eee5;
  --qualification-viewer-border: rgba(92, 88, 86, 0.18);
  --qualification-viewer-ink: #2c2a29;
  --qualification-viewer-muted: #6f6a67;
  --qualification-viewer-mark-ink: #fff;
  --qualification-viewer-radius: 4px;
  --qualification-viewer-font: var(--minimal-heading-font);
  color: var(--minimal-text);
  background: var(--minimal-bg);
  font-family: var(--minimal-body-font);
}

.teacher-site-root.site-theme-minimalist.theme-vibrant {
  --minimal-bg: #0f172a;
  --minimal-bg-secondary: #1e293b;
  --minimal-card: #1e293b;
  --minimal-text: #f8fafc;
  --minimal-muted: #94a3b8;
  --minimal-accent: #6366f1;
  --minimal-accent-hover: #4f46e5;
  --minimal-border: #334155;
  --minimal-radius: 16px;
  --minimal-shadow: 0 22px 70px rgba(99, 102, 241, 0.17);
  --minimal-heading-font: "Plus Jakarta Sans", "Outfit", sans-serif;
  --minimal-body-font: "Plus Jakarta Sans", "Outfit", sans-serif;
  --minimal-calendar-filter: invert(0.9) hue-rotate(180deg) saturate(1.15) brightness(0.94);
  --qualification-viewer-overlay: rgba(2, 6, 23, 0.88);
  --qualification-viewer-glow-a: rgba(99, 102, 241, 0.28);
  --qualification-viewer-glow-b: rgba(30, 41, 59, 0.55);
  --qualification-viewer-shell: #0f172a;
  --qualification-viewer-panel: #1e293b;
  --qualification-viewer-stage-a: #182235;
  --qualification-viewer-stage-b: #0b1120;
  --qualification-viewer-control: rgba(148, 163, 184, 0.09);
  --qualification-viewer-control-hover: rgba(99, 102, 241, 0.22);
  --qualification-viewer-thumb: #182235;
  --qualification-viewer-active: rgba(99, 102, 241, 0.18);
  --qualification-viewer-border: rgba(148, 163, 184, 0.2);
  --qualification-viewer-ink: #f8fafc;
  --qualification-viewer-muted: #94a3b8;
  --qualification-viewer-radius: 16px;
}

.teacher-site-root.site-theme-minimalist.theme-corporate {
  --minimal-bg: #f8fafc;
  --minimal-bg-secondary: #fff;
  --minimal-card: #fff;
  --minimal-text: #0f172a;
  --minimal-muted: #475569;
  --minimal-accent: #0284c7;
  --minimal-accent-hover: #0369a1;
  --minimal-border: #e2e8f0;
  --minimal-radius: 8px;
  --minimal-shadow: 0 18px 52px rgba(15, 23, 42, 0.1);
  --minimal-heading-font: "Roboto", "DM Sans", sans-serif;
  --minimal-body-font: "Roboto", "DM Sans", sans-serif;
  --minimal-calendar-filter: none;
  --qualification-viewer-overlay: rgba(15, 23, 42, 0.72);
  --qualification-viewer-glow-a: rgba(2, 132, 199, 0.2);
  --qualification-viewer-glow-b: rgba(224, 242, 254, 0.42);
  --qualification-viewer-shell: #f8fafc;
  --qualification-viewer-panel: #fff;
  --qualification-viewer-stage-a: #fff;
  --qualification-viewer-stage-b: #eaf4f9;
  --qualification-viewer-control: rgba(2, 132, 199, 0.07);
  --qualification-viewer-control-hover: rgba(2, 132, 199, 0.14);
  --qualification-viewer-thumb: #fff;
  --qualification-viewer-active: #e0f2fe;
  --qualification-viewer-border: rgba(71, 85, 105, 0.18);
  --qualification-viewer-ink: #0f172a;
  --qualification-viewer-muted: #64748b;
  --qualification-viewer-radius: 8px;
}

html[data-teacher-theme="minimalist"]:not(.modal-scroll-locked) {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}

.teacher-site-root.site-theme-minimalist .background-container {
  min-height: 100svh;
  padding: 0;
  overflow: visible;
  background: var(--minimal-bg);
}

.teacher-site-root.site-theme-minimalist .background-slides,
.teacher-site-root.site-theme-minimalist .background-container::before,
.teacher-site-root.site-theme-minimalist .background-container::after {
  display: none;
}

.teacher-site-root.site-theme-minimalist .content-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--minimal-text);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-minimalist .grid-container,
.teacher-site-root.site-theme-minimalist .details-column {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
}

.teacher-site-root.site-theme-minimalist [data-minimalist-section] {
  min-height: 100svh !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.teacher-site-root.site-theme-minimalist .profile-column {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 118px) clamp(28px, 6vw, 82px);
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-template-areas:
    "headline portrait"
    "name portrait"
    "specialities portrait"
    "description portrait"
    "contacts portrait"
    "actions portrait";
  column-gap: clamp(50px, 8vw, 110px);
  row-gap: 18px;
  align-content: center;
  text-align: left;
}

.teacher-site-root.site-theme-minimalist .profile-content {
  display: contents;
}

.teacher-site-root.site-theme-minimalist .profile-pic {
  grid-area: portrait;
  align-self: center;
  justify-self: end;
  width: min(31vw, 360px);
  height: min(66svh, 470px);
  margin: 0;
  border: 12px solid var(--minimal-card);
  border-radius: var(--minimal-radius);
  object-fit: cover;
  box-shadow: var(--minimal-shadow);
  filter: none;
}

.teacher-site-root.site-theme-minimalist.theme-vibrant .profile-pic {
  border-width: 4px;
  border-color: var(--minimal-accent);
  border-radius: 44px 12px 44px 12px;
}

.teacher-site-root.site-theme-minimalist.theme-corporate .profile-pic {
  border-width: 0 0 8px;
  border-color: var(--minimal-accent);
  border-radius: 50% 50% 0 0;
}

.teacher-site-root.site-theme-minimalist .profile-gallery-indicator {
  grid-area: portrait;
  position: relative;
  top: auto !important;
  left: auto !important;
  align-self: end;
  justify-self: end;
  z-index: 3;
  margin: 0 12px 12px 0;
  color: #fff;
  background: var(--minimal-accent);
}

.teacher-site-root.site-theme-minimalist .teacher-headline {
  grid-area: headline;
  align-self: end;
  justify-self: start;
  width: auto;
  margin: 0 0 4px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--minimal-accent);
  background: color-mix(in srgb, var(--minimal-accent) 11%, transparent);
  font-family: var(--minimal-body-font);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-minimalist .teacher-name {
  grid-area: name;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(3.5rem, 6.2vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

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

.teacher-site-root.site-theme-minimalist .profile-specialities span {
  border: 1px solid var(--minimal-border);
  border-radius: 999px;
  color: var(--minimal-muted);
  background: transparent;
  font-family: var(--minimal-body-font);
}

.teacher-site-root.site-theme-minimalist .profile-description {
  grid-area: description;
  width: min(100%, 620px);
  margin: 0;
}

.teacher-site-root.site-theme-minimalist .profile-description p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--minimal-muted);
  font-family: var(--minimal-body-font);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.72;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.teacher-site-root.site-theme-minimalist .contact-buttons {
  grid-area: contacts;
  position: static;
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-minimalist .contact-button {
  width: auto;
  min-width: 132px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--minimal-accent);
  border-radius: var(--minimal-radius);
  gap: 9px;
  color: #fff !important;
  background: var(--minimal-accent) !important;
  font-family: var(--minimal-body-font);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none;
}

.teacher-site-root.site-theme-minimalist .contact-button:nth-child(n + 2) {
  color: var(--minimal-accent) !important;
  background: transparent !important;
}

.teacher-site-root.site-theme-minimalist .contact-button:hover,
.teacher-site-root.site-theme-minimalist .contact-button:focus-visible {
  color: #fff !important;
  background: var(--minimal-accent-hover) !important;
  transform: translateY(-2px);
}

.teacher-site-root.site-theme-minimalist .contact-button > span {
  display: inline;
}

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

.teacher-site-root.site-theme-minimalist .profile-buttons .button {
  width: auto;
  min-height: auto;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--minimal-border);
  border-radius: 0;
  color: var(--minimal-muted);
  background: transparent;
  font-family: var(--minimal-body-font);
  font-size: 0.78rem;
  box-shadow: none;
}

.teacher-site-root.site-theme-minimalist .profile-buttons .button:hover,
.teacher-site-root.site-theme-minimalist .profile-buttons .button:focus-visible {
  border-bottom-color: var(--minimal-accent);
  color: var(--minimal-accent);
  background: transparent;
}

.teacher-site-root.site-theme-minimalist .profile-buttons .button-icon {
  width: 15px;
  height: 15px;
  filter: none;
  opacity: 0.72;
}

.teacher-site-root.site-theme-minimalist.theme-vibrant .profile-buttons .button-icon {
  filter: invert(1);
}

.teacher-site-root.site-theme-minimalist .details-column > .details-section {
  width: 100%;
  margin: 0;
  padding: clamp(72px, 9vh, 108px) clamp(28px, 7vw, 100px);
  border: 0;
  border-radius: 0;
  display: grid;
  align-content: start;
  color: var(--minimal-text);
  background: var(--minimal-bg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.teacher-site-root.site-theme-minimalist .details-column > .details-section:nth-child(even),
.teacher-site-root.site-theme-minimalist .details-section:has(.pricing-cards) {
  background: var(--minimal-bg-secondary);
}

.teacher-site-root.site-theme-minimalist .minimalist-about-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.teacher-site-root.site-theme-minimalist .minimalist-about-heading span {
  display: block;
  margin-bottom: 16px;
  color: var(--minimal-accent);
  font-family: var(--minimal-body-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-site-root.site-theme-minimalist .minimalist-about-heading h2 {
  margin: 0;
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.teacher-site-root.site-theme-minimalist .minimalist-about-copy {
  padding-top: 28px;
  border-top: 1px solid var(--minimal-border);
}

.teacher-site-root.site-theme-minimalist .minimalist-about-copy p {
  margin: 0;
  color: var(--minimal-muted);
  font-family: var(--minimal-body-font);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.8;
  white-space: pre-line;
}

.teacher-site-root.site-theme-minimalist .section-header {
  width: min(1100px, 100%);
  margin: 0 auto clamp(28px, 5vh, 48px);
  padding: 0;
  border: 0;
  text-align: center;
}

.teacher-site-root.site-theme-minimalist .section-header h2 {
  margin: 0;
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
}

.teacher-site-root.site-theme-minimalist .calendar-section {
  position: relative;
}

.teacher-site-root.site-theme-minimalist .calendar-viewport {
  width: min(980px, 100%);
  height: 390px;
  min-height: 390px;
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--minimal-border);
  border-radius: var(--minimal-radius);
  background: var(--minimal-card);
  box-shadow: var(--minimal-shadow);
}

.teacher-site-root.site-theme-minimalist .calendar-viewport iframe {
  width: 100%;
  height: 610px;
  border: 0;
  border-radius: max(0px, calc(var(--minimal-radius) - 2px));
  filter: var(--minimal-calendar-filter);
}

.teacher-site-root.site-theme-minimalist.theme-elegant .calendar-viewport:not(.availability-card) {
  isolation: isolate;
  background: var(--minimal-bg-secondary);
  box-shadow: 0 14px 42px rgba(92, 78, 58, 0.08);
}

.teacher-site-root.site-theme-minimalist.theme-elegant .calendar-viewport:not(.availability-card) iframe {
  mix-blend-mode: multiply;
}

.teacher-site-root.site-theme-minimalist .availability-card {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 34px;
  color: var(--minimal-text);
  text-align: center;
}

.teacher-site-root.site-theme-minimalist .availability-card strong {
  max-width: 48ch;
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  line-height: 1.45;
}

.teacher-site-root.site-theme-minimalist .details-section:has(.review-carousel) {
  padding-inline: clamp(40px, 12vw, 190px);
  align-content: center;
}

.teacher-site-root.site-theme-minimalist .review-carousel {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px);
  border: 1px solid var(--minimal-border);
  border-radius: var(--minimal-radius);
  background: var(--minimal-card);
  box-shadow: var(--minimal-shadow);
}

.teacher-site-root.site-theme-minimalist .review-text {
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(1.65rem, 3vw, 3.15rem);
  line-height: 1.36;
  text-align: center;
}

.teacher-site-root.site-theme-minimalist .review-author {
  margin-top: 24px;
  color: var(--minimal-accent);
  font-family: var(--minimal-body-font);
  font-weight: 700;
  text-align: center;
}

.teacher-site-root.site-theme-minimalist .review-arrow {
  border-color: var(--minimal-border);
  color: var(--minimal-accent);
  background: var(--minimal-bg);
}

.teacher-site-root.site-theme-minimalist .pricing-cards {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 30px);
}

.teacher-site-root.site-theme-minimalist .card {
  min-height: 410px;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--minimal-border);
  border-radius: var(--minimal-radius);
  color: var(--minimal-text);
  background: var(--minimal-card);
  box-shadow: var(--minimal-shadow);
  transition: transform 260ms ease, border-color 260ms ease;
}

.teacher-site-root.site-theme-minimalist .card:nth-child(2) {
  border: 2px solid var(--minimal-accent);
  transform: translateY(-10px);
}

.teacher-site-root.site-theme-minimalist .card:hover {
  border-color: var(--minimal-accent);
  transform: translateY(-7px);
}

.teacher-site-root.site-theme-minimalist .card:nth-child(2):hover {
  transform: translateY(-16px);
}

.teacher-site-root.site-theme-minimalist .card h3 {
  color: var(--minimal-text);
  font-family: var(--minimal-heading-font);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.teacher-site-root.site-theme-minimalist .card .price {
  color: var(--minimal-accent);
  font-family: var(--minimal-heading-font);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.teacher-site-root.site-theme-minimalist .card .price-unit,
.teacher-site-root.site-theme-minimalist .card .price-description {
  color: var(--minimal-muted);
  font-family: var(--minimal-body-font);
}

.teacher-site-root.site-theme-minimalist .card > .button {
  border: 1px solid var(--minimal-accent);
  border-radius: var(--minimal-radius);
  color: var(--minimal-accent);
  background: transparent;
  font-family: var(--minimal-body-font);
  font-weight: 700;
}

.teacher-site-root.site-theme-minimalist .card:nth-child(2) > .button,
.teacher-site-root.site-theme-minimalist .card > .button:hover,
.teacher-site-root.site-theme-minimalist .card > .button:focus-visible {
  color: #fff;
  background: var(--minimal-accent);
}

.teacher-site-root.site-theme-minimalist .teacher-builder-footer {
  position: static;
  z-index: auto;
  width: 100%;
  margin: 0;
  padding: 34px 24px;
  border: 0;
  border-top: 1px solid var(--minimal-border);
  border-radius: 0;
  color: var(--minimal-muted);
  background: var(--minimal-bg-secondary);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scroll-snap-align: end;
}

.teacher-site-root.site-theme-minimalist .teacher-builder-footer .builder-footer-wordmark,
.teacher-site-root.site-theme-minimalist .teacher-builder-footer a {
  color: var(--minimal-text);
}

.teacher-site-root.site-theme-minimalist [data-minimalist-section] :is(
  .teacher-name,
  .teacher-headline,
  .profile-specialities,
  .profile-description,
  .profile-buttons,
  .contact-buttons,
  .profile-pic,
  .minimalist-about-layout,
  .section-header,
  .calendar-viewport,
  .availability-card,
  .review-carousel,
  .pricing-cards
) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-site-root.site-theme-minimalist [data-minimalist-section] .profile-pic {
  transform: translateX(34px);
}

.teacher-site-root.site-theme-minimalist [data-minimalist-section].is-minimalist-visible :is(
  .teacher-name,
  .teacher-headline,
  .profile-specialities,
  .profile-description,
  .profile-buttons,
  .contact-buttons,
  .profile-pic,
  .minimalist-about-layout,
  .section-header,
  .calendar-viewport,
  .availability-card,
  .review-carousel,
  .pricing-cards
) {
  opacity: 1;
  transform: translate(0);
}

.teacher-site-root.site-theme-minimalist .minimalist-section-nav {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 60;
  width: 48px;
  padding: 6px;
  border: 1px solid var(--minimal-border);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--minimal-text);
  background: color-mix(in srgb, var(--minimal-card) 88%, transparent);
  box-shadow: var(--minimal-shadow);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.teacher-site-root.site-theme-minimalist .minimalist-section-nav button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--minimal-accent);
  background: transparent;
  cursor: pointer;
}

.teacher-site-root.site-theme-minimalist .minimalist-section-nav button:hover,
.teacher-site-root.site-theme-minimalist .minimalist-section-nav button:focus-visible {
  color: #fff;
  background: var(--minimal-accent);
}

.teacher-site-root.site-theme-minimalist .minimalist-section-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}

.teacher-site-root.site-theme-minimalist .minimalist-section-nav span {
  color: var(--minimal-muted);
  font-family: var(--minimal-body-font);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

html[data-teacher-theme="minimalist"] {
  --teacher-scroll-track: #efeae2;
  --teacher-scroll-thumb: #8c7853;
  --teacher-scroll-thumb-hover: #705f41;
}

html[data-teacher-theme="minimalist"][data-teacher-variant="vibrant"] {
  --teacher-scroll-track: #0f172a;
  --teacher-scroll-thumb: #6366f1;
  --teacher-scroll-thumb-hover: #818cf8;
}

html[data-teacher-theme="minimalist"][data-teacher-variant="corporate"] {
  --teacher-scroll-track: #e2e8f0;
  --teacher-scroll-thumb: #0284c7;
  --teacher-scroll-thumb-hover: #0369a1;
}

html[data-teacher-theme="minimalist"]::-webkit-scrollbar {
  width: 11px;
}

html[data-teacher-theme="minimalist"]::-webkit-scrollbar-thumb {
  border-width: 3px 0 3px 3px;
  border-radius: 999px 0 0 999px;
}

@media (max-width: 900px) {
  .teacher-site-root.site-theme-minimalist .profile-column {
    width: 100%;
    padding: 74px 42px 48px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "headline"
      "name"
      "specialities"
      "description"
      "contacts"
      "actions";
    gap: 16px;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .teacher-site-root.site-theme-minimalist .profile-pic {
    justify-self: center;
    width: min(300px, 58vw);
    height: min(40svh, 360px);
  }

  .teacher-site-root.site-theme-minimalist .profile-gallery-indicator {
    justify-self: center;
    transform: translate(112px, -8px);
  }

  .teacher-site-root.site-theme-minimalist .teacher-headline {
    justify-self: center;
    margin-top: 6px;
  }

  .teacher-site-root.site-theme-minimalist .teacher-name {
    text-align: center;
  }

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

  .teacher-site-root.site-theme-minimalist .profile-description p {
    text-align: center;
  }

  .teacher-site-root.site-theme-minimalist .details-column > .details-section {
    padding-inline: 34px;
  }

  .teacher-site-root.site-theme-minimalist .minimalist-about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .teacher-site-root.site-theme-minimalist .minimalist-about-heading {
    text-align: center;
  }

  .teacher-site-root.site-theme-minimalist .minimalist-about-copy {
    max-width: 720px;
    margin: 0 auto;
  }

  .teacher-site-root.site-theme-minimalist .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .teacher-site-root.site-theme-minimalist .card {
    min-height: 260px;
  }

  .teacher-site-root.site-theme-minimalist .card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 620px) {
  html[data-teacher-theme="minimalist"]:not(.modal-scroll-locked) {
    scroll-snap-type: y proximity;
  }

  .teacher-site-root.site-theme-minimalist .profile-column {
    min-height: 100svh;
    padding: 48px 28px 42px;
  }

  .teacher-site-root.site-theme-minimalist .profile-pic {
    width: min(230px, 64vw);
    height: min(34svh, 280px);
    border-width: 8px;
  }

  .teacher-site-root.site-theme-minimalist .teacher-name {
    width: calc(100vw - 70px);
    font-size: clamp(2.45rem, 13vw, 4rem);
    line-height: 1.05;
  }

  .teacher-site-root.site-theme-minimalist .teacher-headline {
    font-size: 0.65rem;
  }

  .teacher-site-root.site-theme-minimalist .profile-specialities {
    display: none;
  }

  .teacher-site-root.site-theme-minimalist .profile-description p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.93rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .teacher-site-root.site-theme-minimalist .contact-buttons {
    width: 100%;
  }

  .teacher-site-root.site-theme-minimalist .contact-button {
    flex: 1 1 120px;
    min-width: 0;
    height: 44px;
    padding-inline: 12px;
  }

  .teacher-site-root.site-theme-minimalist .details-column > .details-section {
    padding: 64px 22px 74px;
  }

  .teacher-site-root.site-theme-minimalist .section-header {
    margin-bottom: 24px;
  }

  .teacher-site-root.site-theme-minimalist .section-header h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .teacher-site-root.site-theme-minimalist .calendar-viewport:not(.availability-card) {
    display: none;
  }

  .teacher-site-root.site-theme-minimalist .calendar-mobile {
    display: block;
    width: min(100%, 330px);
    margin: 0 auto;
  }

  .teacher-site-root.site-theme-minimalist .mobile-schedule-button {
    min-height: 52px;
    border: 1px solid var(--minimal-accent);
    border-radius: var(--minimal-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--minimal-accent);
    font-family: var(--minimal-body-font);
    font-weight: 700;
    box-shadow: var(--minimal-shadow);
  }

  .teacher-site-root.site-theme-minimalist .mobile-schedule-button:hover,
  .teacher-site-root.site-theme-minimalist .mobile-schedule-button:focus-visible {
    color: #fff;
    background: var(--minimal-accent-hover);
  }

  .teacher-site-root.site-theme-minimalist .details-section:has(.review-carousel) {
    padding-inline: 28px;
  }

  .teacher-site-root.site-theme-minimalist .review-carousel {
    padding: 34px 26px;
  }

  .teacher-site-root.site-theme-minimalist .pricing-cards {
    gap: 12px;
  }

  .teacher-site-root.site-theme-minimalist .card {
    min-height: 0;
    padding: 24px;
  }

  .teacher-site-root.site-theme-minimalist .card .price-description {
    min-height: 36px;
  }

  .teacher-site-root.site-theme-minimalist .minimalist-section-nav {
    top: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-teacher-theme="minimalist"] {
    scroll-behavior: auto;
  }

  .teacher-site-root.site-theme-minimalist [data-minimalist-section] :is(
    .teacher-name,
    .teacher-headline,
    .profile-specialities,
    .profile-description,
    .profile-buttons,
    .contact-buttons,
    .profile-pic,
    .minimalist-about-layout,
    .section-header,
    .calendar-viewport,
    .availability-card,
    .review-carousel,
    .pricing-cards
  ) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Optional document watermark: legacy and unspecified documents remain protected. */
.teacher-site-root .qualification-document-surface:not(.is-watermarked)::after,
.teacher-site-root .qualification-zoom-frame:not(.is-watermarked) .qualification-zoom-watermark {
  display: none;
}

/* Google changes its embed layout above 1,000px; this shared cap preserves
   the complete appointment-card border and keeps every theme consistent. */
.teacher-site-root .calendar-viewport:not(.availability-card) {
  width: min(980px, 100%);
  margin-inline: auto;
}

.teacher-site-root .calendar-viewport:not(.availability-card) iframe {
  margin-top: -266px;
}

/* Theme-matched payment dialog, sharing the established viewer palette. */
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] {
  padding: 18px;
  color: var(--qualification-viewer-ink);
  background:
    radial-gradient(circle at 14% 12%, var(--qualification-viewer-glow-a), transparent 34%),
    radial-gradient(circle at 88% 84%, var(--qualification-viewer-glow-b), transparent 34%),
    var(--qualification-viewer-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ESLFLIX calendar setup */
.eslflix-calendar-summary {
  min-height: 150px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 9, 20, 0.08), transparent 36%),
    linear-gradient(135deg, #fff, #f8f9fb);
  box-shadow: 0 18px 46px rgba(30, 37, 48, 0.08);
}

.eslflix-calendar-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f12630, #bd0710);
  box-shadow: 0 12px 26px rgba(229, 9, 20, 0.24);
  font-size: 1.4rem;
}

.eslflix-calendar-summary small {
  color: #e50914;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eslflix-calendar-summary h3 {
  margin: 5px 0 4px;
  color: #1d222a;
  font-size: 1.2rem;
}

.eslflix-calendar-summary p {
  margin: 0;
  color: #68707d;
}

.setup-calendar-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #17191e;
  font-weight: 800;
  cursor: pointer;
}

.setup-calendar-button:hover,
.setup-calendar-button:focus-visible {
  background: #e50914;
}

.calendar-setup-overlay {
  position: fixed;
  z-index: 16000;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(14px);
}

.calendar-setup-overlay[hidden] {
  display: none;
}

.calendar-setup-dialog {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  padding: 30px;
  overflow: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  color: #1d222a;
  background: #fff;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38);
}

.calendar-setup-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  border-radius: 50%;
  color: #4f5661;
  background: #f0f2f5;
  font-size: 1.55rem;
  cursor: pointer;
}

.calendar-setup-brand,
.booking-modal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #252932;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.calendar-setup-brand i,
.booking-modal-brand i {
  color: #e50914;
}

.calendar-setup-brand strong,
.booking-modal-brand strong {
  color: #e50914;
}

.calendar-setup-progress {
  margin: 26px 0 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.calendar-setup-progress i {
  height: 4px;
  border-radius: 999px;
  background: #e6e8ec;
}

.calendar-setup-progress i.is-current,
.calendar-setup-progress i.is-complete {
  background: #e50914;
}

.calendar-setup-kicker,
.booking-modal-kicker {
  color: #e50914;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.calendar-setup-dialog h2 {
  margin: 8px 48px 8px 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.calendar-setup-dialog [data-calendar-setup-content] > p {
  margin: 0 0 24px;
  color: #69717e;
  line-height: 1.55;
}

.calendar-timezone-field {
  display: grid;
  gap: 8px;
  color: #3c424c;
  font-weight: 800;
}

.calendar-timezone-field select,
.calendar-hours-fields input,
.calendar-class-row input,
.calendar-class-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #d8dde4;
  border-radius: 11px;
  color: #222831;
  background: #fff;
  font: inherit;
}

.calendar-detect-timezone,
.add-calendar-class {
  margin-top: 12px;
  padding: 10px 0;
  border: 0;
  color: #d20a14;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.calendar-hours-list,
.calendar-class-list,
.calendar-start-time-options {
  display: grid;
  gap: 9px;
}

.calendar-start-time-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-start-time-option {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #dfe3e8;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.calendar-start-time-option:hover,
.calendar-start-time-option.is-selected {
  border-color: rgba(229, 9, 20, 0.52);
  background: #fff;
  box-shadow: 0 12px 28px rgba(38, 43, 52, 0.09);
  transform: translateY(-1px);
}

.calendar-start-time-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-start-time-check {
  width: 24px;
  height: 24px;
  border: 2px solid #cdd2d9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  font-size: 0.65rem;
}

.calendar-start-time-option.is-selected .calendar-start-time-check {
  border-color: #e50914;
  color: #fff;
  background: #e50914;
}

.calendar-start-time-option > span:last-child {
  display: grid;
  gap: 5px;
}

.calendar-start-time-option strong {
  color: #252a32;
  font-size: 0.96rem;
}

.calendar-start-time-option small {
  color: #e50914;
  font-weight: 800;
}

.calendar-start-time-option em {
  color: #747b86;
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.45;
}

.calendar-hours-row {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #f7f8fa;
  opacity: 0.66;
}

.calendar-hours-row.is-enabled {
  border-color: rgba(229, 9, 20, 0.23);
  background: #fff;
  opacity: 1;
}

.calendar-day-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-day-toggle button {
  width: 38px;
  height: 22px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  flex: 0 0 38px;
  background: #c8cdd4;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.calendar-day-toggle button:focus-visible {
  outline: 3px solid rgba(229, 9, 20, 0.18);
  outline-offset: 2px;
}

.calendar-day-toggle button > span {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(32, 36, 43, 0.22);
  transition: transform 160ms ease;
}

.calendar-day-toggle button[aria-checked="true"] {
  background: #e50914;
}

.calendar-day-toggle button[aria-checked="true"] > span {
  transform: translateX(16px);
}

.calendar-hours-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-hours-fields label {
  display: grid;
  grid-template-columns: auto 136px;
  align-items: center;
  gap: 7px;
  color: #777e89;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-hours-fields input,
.calendar-hours-fields .calendar-picker-trigger {
  min-height: 40px;
}

.calendar-class-row {
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 120px auto;
  align-items: end;
  gap: 10px;
  border: 1px solid #e1e4e9;
  border-radius: 14px;
  background: #fafbfc;
}

.calendar-class-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #d50a14;
  background: #fdecee;
}

.calendar-class-row label {
  display: grid;
  gap: 5px;
  color: #777e89;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-class-row button {
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 10px;
  color: #a0444a;
  background: #f7e7e8;
  cursor: pointer;
}

.calendar-setup-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eceef1;
  display: flex;
  justify-content: space-between;
}

.calendar-setup-actions button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-setup-back {
  color: #454b55;
  background: #edeff2;
}

.calendar-setup-next {
  margin-left: auto;
  color: #fff;
  background: #e50914;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.22);
}

/* Student-facing ESLFLIX calendar */
.teacher-site-root {
  --booking-surface: #15181e;
  --booking-surface-alt: #1e222a;
  --booking-menu-surface: #1b2027;
  --booking-ink: #f7f8fa;
  --booking-muted: #aeb5c0;
  --booking-border: rgba(255, 255, 255, 0.12);
  --booking-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.teacher-site-root:is(.site-theme-editorial, .site-theme-link-stack, .site-theme-split-profile, .site-theme-minimalist) {
  --booking-surface: #fffdf9;
  --booking-surface-alt: #f3f1ec;
  --booking-menu-surface: #fffdf9;
  --booking-ink: #272c33;
  --booking-muted: #6d7279;
  --booking-border: rgba(52, 57, 65, 0.14);
  --booking-shadow: 0 20px 55px rgba(55, 45, 38, 0.12);
}

.teacher-site-root.site-theme-minimalist.theme-vibrant {
  --booking-surface: rgba(15, 23, 42, 0.88);
  --booking-surface-alt: rgba(30, 41, 59, 0.82);
  --booking-menu-surface: #172033;
  --booking-ink: #f8fafc;
  --booking-muted: #a9b6ca;
  --booking-border: rgba(148, 163, 184, 0.2);
  --booking-shadow:
    0 28px 80px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.teacher-site-root.site-theme-minimalist.theme-vibrant .eslflix-calendar-viewport {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.teacher-site-root.site-theme-minimalist.theme-vibrant .eslflix-booking-calendar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 54%),
    radial-gradient(circle at 100% 0, rgba(99, 102, 241, 0.18), transparent 38%),
    var(--booking-surface);
}

.teacher-site-root .eslflix-calendar-viewport {
  height: 100%;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  color: var(--booking-ink);
  border-color: var(--booking-border);
  background: var(--booking-surface);
  box-shadow: var(--booking-shadow);
}

.eslflix-booking-calendar {
  height: 100%;
  min-height: 390px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--booking-ink);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--theme-accent) 11%, transparent), transparent 32%),
    var(--booking-surface);
}

.booking-calendar-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.booking-calendar-class-field {
  min-width: min(320px, 65%);
  display: grid;
  gap: 6px;
}

.booking-calendar-class-field > span {
  color: var(--booking-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-class-picker {
  min-width: 0;
  position: relative;
  z-index: 12;
}

.booking-native-class-select {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  overflow: hidden;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.booking-class-picker-trigger {
  width: 100%;
  min-height: 46px;
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--booking-ink);
  background: var(--booking-surface-alt);
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.booking-class-picker-trigger:hover,
.booking-class-picker-trigger:focus-visible,
.booking-class-picker.is-open .booking-class-picker-trigger {
  border-color: color-mix(in srgb, var(--theme-accent) 65%, var(--booking-border));
  outline: 0;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--theme-accent) 15%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.booking-class-picker-trigger > i {
  color: var(--theme-accent);
  font-size: 0.72rem;
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.booking-class-picker.is-open .booking-class-picker-trigger > i {
  transform: rotate(180deg);
}

.booking-class-picker-value {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-class-picker-value strong {
  overflow: hidden;
  color: var(--booking-ink);
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-class-picker-value small {
  padding: 3px 7px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, var(--booking-border));
  border-radius: 999px;
  color: color-mix(in srgb, var(--theme-accent) 78%, var(--booking-ink));
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
}

.booking-class-picker-menu {
  width: 100%;
  max-height: 240px;
  padding: 7px;
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, var(--booking-border));
  border-radius: 14px;
  background: var(--booking-menu-surface);
  box-shadow:
    0 22px 52px rgba(3, 7, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  transform-origin: top center;
  animation: booking-class-picker-open 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.booking-class-picker-menu[hidden] {
  display: none;
}

@keyframes booking-class-picker-open {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.booking-class-picker-menu button {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--booking-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.booking-class-picker-menu button:hover,
.booking-class-picker-menu button:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent) 28%, transparent);
  outline: 0;
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--booking-surface-alt));
}

.booking-class-picker-menu button.is-selected {
  border-color: color-mix(in srgb, var(--theme-accent) 44%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 16%, var(--booking-surface-alt));
}

.booking-class-picker-menu button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.booking-class-picker-menu button strong {
  overflow: hidden;
  color: var(--booking-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-class-picker-menu button small {
  color: var(--booking-muted);
  font-size: 0.61rem;
}

.booking-class-picker-menu button > i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--theme-button-text);
  background: var(--theme-accent);
  font-size: 0.61rem;
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.booking-class-picker-menu button.is-selected > i {
  opacity: 1;
  transform: scale(1);
}

.booking-calendar-timezone {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--booking-muted);
  font-size: 0.73rem;
}

.booking-calendar-timezone i {
  color: var(--theme-accent);
}

.booking-date-navigation {
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
}

.booking-date-navigation > button {
  width: 32px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  color: var(--booking-muted);
  background: var(--booking-surface-alt);
  cursor: pointer;
}

.booking-date-navigation > button:disabled {
  opacity: 0.3;
  cursor: default;
}

.booking-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  gap: 5px;
}

.booking-date-strip.is-transition-next,
.booking-slot-region.is-transition-next {
  animation: booking-calendar-next 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-date-strip.is-transition-previous,
.booking-slot-region.is-transition-previous {
  animation: booking-calendar-previous 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-slot-region.is-transition-day {
  animation: booking-calendar-day 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-date-strip.is-transition-fade,
.booking-slot-region.is-transition-fade {
  animation: booking-calendar-fade 300ms ease-out;
}

@keyframes booking-calendar-next {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes booking-calendar-previous {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes booking-calendar-day {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes booking-calendar-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-date-strip button {
  min-width: 0;
  min-height: 70px;
  padding: 7px 3px 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--booking-muted);
  background: transparent;
  cursor: pointer;
}

.booking-date-strip button:hover,
.booking-date-strip button.is-selected {
  border-color: color-mix(in srgb, var(--theme-accent) 52%, transparent);
  color: var(--booking-ink);
  background: color-mix(in srgb, var(--theme-accent) 11%, var(--booking-surface-alt));
}

.booking-date-strip small,
.booking-date-strip span {
  font-size: 0.62rem;
  line-height: 1;
}

.booking-date-strip strong {
  color: inherit;
  font-size: 1rem;
}

.booking-date-strip i {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--booking-muted);
  background: var(--booking-surface-alt);
  font-size: 0.54rem;
  font-style: normal;
}

.booking-date-strip .is-selected i {
  color: var(--theme-button-text);
  background: var(--theme-accent);
}

.booking-slot-region {
  min-height: 0;
  padding-right: 5px;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: color-mix(in srgb, var(--theme-accent) 45%, var(--booking-border)) transparent;
  scrollbar-width: thin;
}

.booking-calendar-loading,
.booking-no-slots {
  min-height: 165px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--booking-muted);
  text-align: center;
}

.booking-calendar-loading i,
.booking-no-slots > i {
  color: var(--theme-accent);
  font-size: 1.3rem;
}

.booking-no-slots strong {
  color: var(--booking-ink);
}

.booking-no-slots span {
  font-size: 0.76rem;
}

.booking-slot-heading {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-slot-heading strong {
  color: var(--booking-ink);
  font-size: 0.83rem;
}

.booking-slot-heading span {
  color: var(--booking-muted);
  font-size: 0.68rem;
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 8px;
}

.booking-slot-grid button {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 48%, var(--booking-border));
  border-radius: 9px;
  color: var(--booking-ink);
  background: color-mix(in srgb, var(--theme-accent) 7%, var(--booking-surface-alt));
  font-weight: 800;
  cursor: pointer;
}

.booking-slot-grid button:hover,
.booking-slot-grid button:focus-visible {
  color: var(--theme-button-text);
  background: var(--theme-accent);
  transform: translateY(-1px);
}

.eslflix-booking-calendar > footer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--booking-border);
  display: flex;
  justify-content: space-between;
  color: var(--booking-muted);
  font-size: 0.62rem;
}

.eslflix-booking-calendar > footer strong {
  color: var(--booking-ink);
  letter-spacing: 0.06em;
}

.eslflix-booking-calendar > footer strong span {
  color: var(--theme-accent);
}

.teacher-site-root .booking-modal {
  padding: 18px;
}

.teacher-site-root .booking-modal-content {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--booking-border);
  border-radius: 22px;
  color: var(--booking-ink);
  background:
    radial-gradient(circle at 95% 2%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 34%),
    var(--booking-surface);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.booking-modal-content .modal-close {
  color: var(--booking-ink);
  background: var(--booking-surface-alt);
}

.booking-modal-kicker {
  margin-top: 27px;
  display: block;
  color: var(--theme-accent);
}

.booking-modal-content h2 {
  margin: 6px 0 16px;
  color: var(--booking-ink);
  font-size: 1.8rem;
}

.booking-modal-class-picker {
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
  color: var(--booking-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.booking-modal-class-picker .booking-class-picker-trigger {
  min-height: 46px;
}

.booking-modal-summary {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--booking-surface-alt);
}

.booking-modal-summary > span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--theme-button-text);
  background: var(--theme-accent);
}

.booking-modal-summary strong,
.booking-modal-summary p {
  color: var(--booking-ink);
}

.booking-modal-summary p {
  margin: 3px 0 0;
  color: var(--booking-muted);
  font-size: 0.78rem;
}

.booking-class-availability {
  min-height: 20px;
  margin: 0 0 14px;
  padding-left: 18px;
  position: relative;
  color: var(--booking-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.booking-class-availability::before {
  position: absolute;
  top: 0.06em;
  left: 0;
  content: "●";
  color: currentColor;
}

.booking-class-availability.is-available {
  color: #54c899;
}

.booking-class-availability.is-unavailable {
  color: #f15b64;
}

.booking-class-availability.is-checking::before {
  content: "◌";
  animation: booking-availability-spin 800ms linear infinite;
}

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

.booking-modal-content form {
  display: grid;
  gap: 12px;
}

.booking-contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.booking-modal-content form label {
  display: grid;
  gap: 6px;
  color: var(--booking-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.booking-modal-content form label > span {
  color: var(--booking-muted);
  font-weight: 500;
}

.booking-modal-content input,
.booking-modal-content textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  color: var(--booking-ink);
  background: var(--booking-surface-alt);
  font: inherit;
  box-sizing: border-box;
}

.booking-modal-content textarea {
  min-height: 82px;
  resize: vertical;
}

.booking-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.booking-form-error {
  min-height: 18px;
  margin: 0;
  color: #f15b64;
  font-size: 0.76rem;
}

.booking-submit,
.booking-success button {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: var(--theme-button-text);
  background: var(--theme-accent);
  font-weight: 900;
  cursor: pointer;
}

.booking-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-success {
  padding: 34px 6px 8px;
  text-align: center;
}

.booking-success > span {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1aa36f;
  font-size: 1.5rem;
  box-shadow: 0 14px 34px rgba(26, 163, 111, 0.3);
}

.booking-success p {
  margin: 0 auto 22px;
  max-width: 42ch;
  color: var(--booking-muted);
  line-height: 1.6;
}

.booking-success-calendar-actions {
  margin: -4px auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.booking-success-calendar-actions[hidden] {
  display: none;
}

.booking-success-calendar-actions a {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--booking-ink);
  background: var(--booking-surface-alt);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.booking-success-calendar-actions a:hover {
  border-color: var(--theme-accent);
  transform: translateY(-1px);
}

.booking-success-calendar-actions [data-booking-add-google] i {
  color: #4285f4;
}

.booking-success-calendar-actions [data-booking-add-apple] {
  border-color: #17191d;
  color: #fff;
  background: #17191d;
}

.booking-success-calendar-actions small {
  grid-column: 1 / -1;
  color: var(--booking-muted);
  font-size: 0.63rem;
  line-height: 1.5;
}

.booking-success button {
  min-width: 150px;
  padding: 0 24px;
}

@media (max-width: 520px) {
  .booking-contact-fields {
    grid-template-columns: 1fr;
  }

  .booking-success-calendar-actions {
    grid-template-columns: 1fr;
  }

  .booking-success-calendar-actions small {
    grid-column: auto;
  }
}

.teacher-site-root.site-theme-link-stack .eslflix-calendar-viewport,
.teacher-site-root.site-theme-link-stack .booking-modal-content {
  border: 2px solid #50545a;
  border-radius: 10px;
  box-shadow: 4px 5px 0 rgba(54, 57, 62, 0.46);
}

.teacher-site-root.site-theme-minimalist .eslflix-calendar-viewport {
  padding: 0;
}

.teacher-site-root.site-theme-parallax-atlas .eslflix-booking-calendar {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent),
    rgba(9, 14, 20, 0.9);
}

.teacher-site-root.site-theme-liquid-glass {
  --booking-surface: rgba(12, 18, 25, 0.32);
  --booking-surface-alt: rgba(255, 255, 255, 0.065);
  --booking-menu-surface: #16222d;
  --booking-border: rgba(255, 255, 255, 0.17);
  --booking-shadow:
    0 24px 64px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.teacher-site-root.site-theme-liquid-glass .eslflix-calendar-viewport {
  height: 410px;
  min-height: 410px;
  max-height: 410px;
  flex: 0 0 410px;
  background: rgba(9, 14, 20, 0.24);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.teacher-site-root.site-theme-liquid-glass .eslflix-booking-calendar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 52%),
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--theme-accent) 13%, transparent), transparent 38%),
    rgba(10, 16, 23, 0.16);
}

.teacher-site-root.site-theme-liquid-glass :is(
  .booking-class-picker-trigger,
  .booking-date-navigation > button,
  .booking-date-strip i,
  .booking-slot-grid button
) {
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.teacher-site-root.site-theme-liquid-glass .booking-slot-grid button {
  background: color-mix(in srgb, var(--theme-accent) 6%, rgba(255, 255, 255, 0.055));
}

.teacher-site-root.site-theme-liquid-glass .booking-modal-content {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 46%),
    radial-gradient(circle at 95% 2%, color-mix(in srgb, var(--theme-accent) 13%, transparent), transparent 38%),
    rgba(12, 18, 25, 0.78);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.teacher-site-root.site-theme-liquid-glass .review-carousel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 58%),
    rgba(9, 14, 20, 0.2);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.teacher-site-root.site-theme-liquid-glass .review-text {
  line-height: 1.34;
}

@media (max-width: 760px) {
  .eslflix-calendar-summary {
    grid-template-columns: auto 1fr;
  }

  .setup-calendar-button {
    grid-column: 1 / -1;
  }

  .calendar-setup-dialog {
    padding: 24px 18px;
  }

  .calendar-hours-row,
  .calendar-class-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .calendar-start-time-options {
    grid-template-columns: 1fr;
  }

  .calendar-hours-fields {
    justify-content: space-between;
  }

  .calendar-hours-fields label {
    grid-template-columns: 1fr;
  }

  .calendar-class-icon {
    display: none;
  }

  .calendar-class-row button {
    width: 100%;
  }

  .teacher-site-root .calendar-viewport.eslflix-calendar-viewport,
  .teacher-site-root.site-theme-minimalist .calendar-viewport.eslflix-calendar-viewport {
    height: auto !important;
    min-height: 480px;
    display: block !important;
  }

  .eslflix-booking-calendar {
    min-height: 480px;
    padding: 14px;
  }

  .booking-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .booking-calendar-class-field {
    min-width: 0;
  }

  .booking-calendar-timezone {
    padding: 0;
  }

  .booking-date-navigation {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 3px;
  }

  .booking-date-strip {
    gap: 1px;
  }

  .booking-date-strip button {
    min-height: 62px;
    border-radius: 7px;
  }

  .booking-date-strip span {
    display: none;
  }

  .booking-slot-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .booking-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teacher-site-root .booking-modal-content {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-date-strip,
  .booking-slot-region,
  .booking-class-availability.is-checking::before {
    animation: none !important;
  }
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .modal-content {
  width: min(560px, 100%);
  max-width: 560px;
  margin: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--qualification-viewer-border);
  border-radius: var(--qualification-viewer-radius);
  color: var(--qualification-viewer-ink);
  background: var(--qualification-viewer-shell);
  box-shadow: 0 34px 100px color-mix(in srgb, var(--qualification-viewer-overlay) 68%, transparent);
  font-family: var(--qualification-viewer-font);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .modal-header {
  margin: 0 42px 28px;
  color: var(--qualification-viewer-ink);
  font-family: var(--qualification-viewer-font);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .modal-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--qualification-viewer-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--qualification-viewer-ink);
  background: var(--qualification-viewer-control);
  font-family: "DM Sans", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .modal-close:hover,
.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .modal-close:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent) 60%, var(--qualification-viewer-border));
  color: var(--qualification-viewer-mark-ink);
  background: var(--theme-accent);
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .payment-options {
  gap: 13px;
}

.teacher-site-root:is(
  .site-theme-liquid-glass,
  .site-theme-editorial,
  .site-theme-studio,
  .site-theme-link-stack,
  .site-theme-split-profile,
  .site-theme-parallax-atlas,
  .site-theme-minimalist
) .modal[data-modal="payment"] .payment-button {
  height: 58px;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: min(999px, calc(var(--qualification-viewer-radius) + 12px));
  font-family: var(--qualification-viewer-font);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--qualification-viewer-overlay) 22%, transparent);
}

@media (max-width: 540px) {
  .teacher-site-root:is(
    .site-theme-liquid-glass,
    .site-theme-editorial,
    .site-theme-studio,
    .site-theme-link-stack,
    .site-theme-split-profile,
    .site-theme-parallax-atlas,
    .site-theme-minimalist
  ) .modal[data-modal="payment"] {
    padding: 12px;
  }

  .teacher-site-root:is(
    .site-theme-liquid-glass,
    .site-theme-editorial,
    .site-theme-studio,
    .site-theme-link-stack,
    .site-theme-split-profile,
    .site-theme-parallax-atlas,
    .site-theme-minimalist
  ) .modal[data-modal="payment"] .modal-content {
    padding: 30px 18px 22px;
  }

  .teacher-site-root:is(
    .site-theme-liquid-glass,
    .site-theme-editorial,
    .site-theme-studio,
    .site-theme-link-stack,
    .site-theme-split-profile,
    .site-theme-parallax-atlas,
    .site-theme-minimalist
  ) .modal[data-modal="payment"] .modal-header {
    margin: 8px 42px 24px;
    font-size: 1.35rem;
  }
}

.calendar-google-view-controls > .calendar-availability-button {
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: rgba(22, 134, 90, 0.32);
  color: #106d49;
  background: #edf9f4;
  box-shadow: 0 5px 13px rgba(22, 134, 90, 0.09);
}

.calendar-google-view-controls > .calendar-availability-button:hover,
.calendar-google-view-controls > .calendar-availability-button:focus-visible {
  border-color: #137751;
  color: #fff;
  background: #16865a;
  box-shadow: 0 7px 16px rgba(22, 134, 90, 0.2);
}

.calendar-google-view-controls > .calendar-settings-button {
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #d8dce2;
  color: #4f5661;
  background: #fff;
}

.calendar-google-view-controls > .calendar-settings-button:hover,
.calendar-google-view-controls > .calendar-settings-button:focus-visible {
  border-color: #aeb4bd;
  color: #242830;
  background: #f4f5f7;
}

.calendar-availability-editor form {
  width: min(760px, 100%);
}

.calendar-availability-intro {
  padding: 14px 16px;
  border: 1px solid #e2e5e9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f8fa;
}

.calendar-availability-intro > i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #e50914;
  background: #fdebed;
}

.calendar-availability-intro > div {
  display: grid;
  gap: 3px;
}

.calendar-availability-intro strong {
  color: #2a2e35;
  font-size: 0.78rem;
}

.calendar-availability-intro span {
  color: #747b85;
  font-size: 0.68rem;
  line-height: 1.45;
}

.calendar-availability-hours {
  max-height: min(475px, calc(100vh - 320px));
  padding-right: 4px;
  overflow-y: auto;
}

.calendar-availability-editor .calendar-hours-fields input {
  letter-spacing: normal;
  text-transform: none;
}

.calendar-availability-editor [data-availability-status].is-error {
  color: #b5232c;
  font-weight: 700;
}

.calendar-settings-editor form {
  width: min(820px, 100%);
  max-height: min(900px, calc(100vh - 28px));
}

.calendar-settings-intro {
  padding: 14px 16px;
  border: 1px solid rgba(229, 9, 20, 0.16);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff6f7, #fff);
}

.calendar-settings-intro > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
  box-shadow: 0 7px 16px rgba(229, 9, 20, 0.2);
}

.calendar-settings-intro > div {
  display: grid;
  gap: 2px;
}

.calendar-settings-intro strong {
  font-size: 0.82rem;
}

.calendar-settings-intro span {
  color: #747b85;
  font-size: 0.67rem;
}

.calendar-settings-section {
  padding: 17px;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  background: #fbfbfc;
}

.calendar-settings-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.calendar-settings-section-heading > span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
  font-size: 0.68rem;
  font-weight: 900;
}

.calendar-settings-section-heading > div {
  display: grid;
  gap: 3px;
}

.calendar-settings-section-heading h3 {
  margin: 0;
  color: #292d34;
  font-size: 0.94rem;
}

.calendar-settings-section-heading p {
  margin: 0;
  color: #7a808a;
  font-size: 0.65rem;
  line-height: 1.45;
}

.calendar-settings-timezone {
  display: grid;
  gap: 7px;
  color: #555c66;
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-settings-timezone select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  color: #282d35;
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.calendar-settings-start-options .calendar-start-time-option {
  min-height: 116px;
  padding: 14px;
}

.calendar-settings-notice-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calendar-settings-notice-options label {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555c66;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.calendar-settings-notice-options label:hover,
.calendar-settings-notice-options label.is-selected {
  border-color: #e50914;
  color: #b20710;
  background: #fff4f5;
}

.calendar-settings-notice-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-meeting-provider-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.calendar-meeting-provider-options label {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #555c66;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calendar-meeting-provider-options label:hover,
.calendar-meeting-provider-options label.is-selected {
  border-color: #e50914;
  background: #fff7f7;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.08);
}

.calendar-meeting-provider-options label.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-meeting-provider-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-meeting-provider-options > label > i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #272b32;
  font-size: 0.8rem;
}

.calendar-meeting-provider-options label.is-selected > i {
  background: #e50914;
}

.calendar-meeting-provider-options label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.calendar-meeting-provider-options strong {
  color: #292d34;
  font-size: 0.75rem;
}

.calendar-meeting-provider-options small {
  color: #7a808a;
  font-size: 0.62rem;
  line-height: 1.4;
}

.calendar-settings-class-list {
  gap: 8px;
}

.calendar-settings-class-list .calendar-class-row {
  background: #fff;
}

.calendar-settings-class-list .calendar-class-row button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar-settings-editor .add-calendar-class {
  width: fit-content;
  margin: 0;
  padding: 8px 0;
}

.calendar-settings-editor [data-calendar-settings-status].is-error {
  color: #b5232c;
  font-weight: 700;
}

.calendar-picker-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #dce0e5;
  border-radius: 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #252930;
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calendar-picker-trigger:hover,
.calendar-picker-trigger[aria-expanded="true"] {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.08);
}

.calendar-picker-trigger:focus-visible {
  border-color: #e50914;
  outline: 3px solid rgba(229, 9, 20, 0.1);
}

.calendar-picker-trigger > i:first-child {
  color: #e50914;
}

.calendar-picker-trigger > i:last-child {
  color: #9ba0a8;
  font-size: 0.58rem;
}

.calendar-picker-trigger:disabled {
  color: #a1a6ae;
  background: #eef0f3;
  cursor: not-allowed;
  opacity: 0.72;
}

.calendar-picker-popover {
  width: min(350px, calc(100vw - 24px));
  padding: 0;
  position: fixed;
  z-index: 52000;
  top: var(--calendar-picker-top, 50%);
  left: var(--calendar-picker-left, 50%);
  overflow: hidden;
  border: 1px solid rgba(28, 32, 39, 0.12);
  border-radius: 16px;
  color: #252930;
  background: #fff;
  box-shadow: 0 22px 65px rgba(16, 20, 28, 0.27), 0 3px 10px rgba(16, 20, 28, 0.1);
  animation: calendar-picker-in 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calendar-picker-popover[hidden] {
  display: none;
}

@keyframes calendar-picker-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calendar-picker-popover > header {
  min-height: 64px;
  padding: 13px 14px 12px 17px;
  border-bottom: 1px solid #eceef1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.08), transparent 62%),
    #fff;
}

.calendar-picker-popover > header > div {
  display: grid;
  gap: 2px;
}

.calendar-picker-popover > header span {
  color: #e50914;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.calendar-picker-popover > header strong {
  color: #242830;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
}

.calendar-picker-popover > header button,
.calendar-date-picker-panel nav button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #626975;
  background: #f1f3f5;
  cursor: pointer;
}

.calendar-date-picker-panel {
  padding: 12px 14px 14px;
}

.calendar-date-picker-panel[hidden],
.calendar-time-picker-panel[hidden] {
  display: none;
}

.calendar-date-picker-panel nav {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.calendar-date-picker-panel nav > strong {
  text-align: center;
  font-size: 0.88rem;
}

.calendar-date-picker-weekdays,
.calendar-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-date-picker-weekdays {
  margin: 8px 0 5px;
}

.calendar-date-picker-weekdays span {
  color: #9298a2;
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-date-picker-grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  color: #343943;
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-date-picker-grid button:hover {
  color: #b20710;
  background: #fdecee;
}

.calendar-date-picker-grid button.is-outside {
  color: #b5bac2;
}

.calendar-date-picker-grid button.is-today {
  box-shadow: inset 0 0 0 1px #e50914;
  color: #b20710;
}

.calendar-date-picker-grid button.is-selected {
  color: #fff;
  background: #e50914;
  box-shadow: 0 6px 14px rgba(229, 9, 20, 0.25);
}

.calendar-date-picker-panel footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.calendar-date-picker-panel footer button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: 9px;
  color: #b20710;
  background: #fff7f8;
  font-weight: 900;
  cursor: pointer;
}

.calendar-time-picker-panel {
  padding: 13px 14px 15px;
}

.calendar-time-picker-heading {
  margin-bottom: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f7f9;
}

.calendar-time-picker-heading > i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e50914;
}

.calendar-time-picker-heading > div {
  display: grid;
  gap: 1px;
}

.calendar-time-picker-heading strong {
  font-size: 0.76rem;
}

.calendar-time-picker-heading span {
  color: #858b95;
  font-size: 0.59rem;
}

.calendar-time-picker-list {
  max-height: min(330px, calc(100vh - 220px));
  padding-right: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow-y: auto;
  scrollbar-color: #d3d7dd transparent;
  scrollbar-width: thin;
}

.calendar-time-picker-list button {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #444a54;
  background: #f7f8fa;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-time-picker-list button:hover {
  border-color: rgba(229, 9, 20, 0.2);
  color: #b20710;
  background: #fff6f7;
}

.calendar-time-picker-list button.is-hour {
  background: #f2f3f6;
}

.calendar-time-picker-list button small {
  color: #a1a6ae;
  font-size: 0.48rem;
  font-weight: 800;
}

.calendar-time-picker-list button.is-selected {
  border-color: #e50914;
  color: #fff;
  background: #e50914;
  box-shadow: 0 5px 13px rgba(229, 9, 20, 0.22);
}

.calendar-time-picker-list button.is-selected small {
  color: rgba(255, 255, 255, 0.75);
}

.calendar-event-card-time-fields .calendar-picker-trigger {
  min-height: 38px;
  font-size: 0.68rem;
}

@media (max-width: 680px) {
  .calendar-picker-popover {
    width: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    top: auto;
    border-radius: 18px;
    animation-name: calendar-picker-mobile-in;
  }

  @keyframes calendar-picker-mobile-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .calendar-time-picker-list {
    max-height: min(390px, calc(100vh - 210px));
  }
}

.calendar-new-lesson-editor {
  padding: 0;
  display: block;
  background: transparent;
  backdrop-filter: none;
}

.calendar-new-lesson-editor form {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px 20px 14px;
  position: fixed;
  top: 50%;
  left: 50%;
  gap: 8px;
  border-radius: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 55px rgba(32, 33, 36, 0.3), 0 2px 8px rgba(32, 33, 36, 0.16);
}

.calendar-new-lesson-editor.is-anchored form {
  top: var(--event-card-top);
  left: var(--event-card-left);
  transform: none;
  animation: calendar-event-card-enter 180ms cubic-bezier(0.2, 0, 0, 1) both;
}

.calendar-new-lesson-editor.opens-right {
  --event-card-enter-x: -18px;
}

.calendar-new-lesson-editor.opens-left {
  --event-card-enter-x: 18px;
}

@keyframes calendar-event-card-enter {
  from {
    opacity: 0;
    transform: translateX(var(--event-card-enter-x, 0)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.calendar-new-lesson-editor header {
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
  align-items: center;
}

.calendar-new-lesson-editor header span {
  font-size: 0.59rem;
}

.calendar-new-lesson-editor h2 {
  margin-top: 2px;
  font-size: 1.2rem;
  font-weight: 650;
}

.calendar-new-lesson-editor header button {
  width: 32px;
  height: 32px;
  background: transparent;
  font-size: 1.25rem;
}

.calendar-new-lesson-editor header button:hover {
  background: #f1f3f4;
}

.calendar-event-card-row {
  min-width: 0;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.calendar-event-card-row > i {
  width: 30px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #646b74;
  font-size: 0.9rem;
}

.calendar-event-card-row > label,
.calendar-event-card-row > div {
  min-width: 0;
}

.calendar-event-card-fields,
.calendar-event-card-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.calendar-event-card-type .calendar-event-card-fields {
  grid-template-columns: minmax(0, 1fr) 112px;
}

.calendar-event-card-student-fields .calendar-event-card-student-name {
  grid-column: 1 / -1;
}

.calendar-event-card-time > div {
  display: grid;
  gap: 3px;
}

.calendar-event-card-time strong {
  color: #30343a;
  font-size: 0.78rem;
  font-weight: 650;
}

.calendar-event-card-time > div > span {
  margin-bottom: 5px;
  color: #7b8189;
  font-size: 0.61rem;
}

.calendar-new-lesson-editor label {
  gap: 4px;
  font-size: 0.61rem;
  font-weight: 700;
}

.calendar-new-lesson-editor label > small {
  margin-left: 4px;
  font-size: 0.56rem;
}

.calendar-new-lesson-editor input:not([type="checkbox"]),
.calendar-new-lesson-editor select,
.calendar-new-lesson-editor textarea {
  min-height: 39px;
  padding: 8px 10px;
  border-color: #e1e4e8;
  border-radius: 7px;
  background: #f7f8fa;
  font-size: 0.7rem;
}

.calendar-new-lesson-editor textarea {
  min-height: 56px;
}

.calendar-new-lesson-editor input:not([type="checkbox"]):focus,
.calendar-new-lesson-editor select:focus,
.calendar-new-lesson-editor textarea:focus {
  background: #fff;
}

.calendar-event-card-notify {
  margin: 2px 0 4px 41px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f7f8fa;
  font-size: 0.65rem !important;
}

.calendar-new-lesson-editor footer {
  margin: 2px -2px -2px;
  padding-top: 12px;
  position: sticky;
  bottom: -14px;
  z-index: 2;
  background: #fff;
}

.calendar-new-lesson-editor footer > span {
  max-width: 165px;
  font-size: 0.58rem;
  line-height: 1.35;
}

.calendar-new-lesson-editor footer button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
}

.calendar-new-lesson-editor footer button[type="submit"] {
  min-width: 74px;
}

.calendar-new-lesson-editor [data-new-lesson-status].is-error {
  color: #b5232c;
  font-weight: 700;
}

@media (max-width: 760px) {
  .calendar-event-card-student-fields {
    grid-template-columns: 1fr;
  }

  .calendar-new-lesson-editor {
    padding: 10px;
    display: grid;
    place-items: center;
    background: rgba(18, 21, 27, 0.55);
    backdrop-filter: blur(4px);
  }

  .calendar-new-lesson-editor form,
  .calendar-new-lesson-editor.is-anchored form {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 17px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: calendar-event-card-mobile-enter 180ms ease-out both;
  }

  @keyframes calendar-event-card-mobile-enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .calendar-google-view-controls {
    flex-wrap: wrap;
  }

  .calendar-google-view-controls > .calendar-availability-button {
    order: 3;
    width: 100%;
  }

  .calendar-google-view-controls > .calendar-settings-button {
    order: 4;
    width: 100%;
  }

  .calendar-settings-start-options {
    grid-template-columns: 1fr;
  }

  .calendar-settings-notice-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-meeting-provider-options {
    grid-template-columns: 1fr;
  }

  .calendar-availability-hours {
    max-height: none;
    overflow: visible;
  }
}
