@font-face {
  font-family: 'Poppins';
  src: url("../fonts/poppins/poppins-500.a09f2fccfee3.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("../fonts/poppins/poppins-600.72993dddf88a.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("../fonts/poppins/poppins-700.25b0e113ca7c.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/inter/inter-400.da03732a27e1.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/inter/inter-500.51205681a1ba.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/inter/inter-600.2ede57db1a3a.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url("../fonts/cairo/cairo-500.865ed1b5c799.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0660-0669;
}

@font-face {
  font-family: 'Cairo';
  src: url("../fonts/cairo/cairo-600.aed68efd7c32.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0660-0669;
}

@font-face {
  font-family: 'Cairo';
  src: url("../fonts/cairo/cairo-700.d41708c16051.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0660-0669;
}

:root {
  --terracotta: #d85a30;
  --terracotta-dark: #b94725;
  --terracotta-soft: #fff0e9;
  --charcoal: #1a1a18;
  --muted: #68635e;
  --surface: #fff8f3;
  --white: #ffffff;
  --line: #e8ded7;
  --line-strong: #d7c9c0;
  --green: #2d4a34;
  --green-soft: #edf5ef;
  --red: #9f3625;
  --red-soft: #fff0ed;
  --amber: #805c10;
  --amber-soft: #fff7df;
  --shadow: 0 18px 45px rgba(58, 36, 26, 0.08);
  --shadow-small: 0 5px 20px rgba(58, 36, 26, 0.06);
  --radius: 18px;
  --radius-small: 11px;
  --font-heading: 'Poppins', 'Cairo', sans-serif;
  --font-body: 'Inter', 'Cairo', sans-serif;
  --font-heading-ar: 'Poppins', 'Cairo', sans-serif;
  --font-body-ar: 'Inter', 'Cairo', sans-serif;
  --studio-chalk: #f6f0e7;
  --studio-paper: #fffdf9;
  --studio-ink-soft: #37342f;
  --studio-clay-wash: #f5ded4;
  --studio-forest-wash: #e7efe8;
  --studio-rule: rgba(83, 66, 56, 0.18);
  --studio-display: 'Fraunces', 'Iowan Old Style', 'Baskerville', 'Georgia', 'Cairo', serif;
  --studio-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Cairo', 'Inter', sans-serif;
  --studio-spine-width: 3px;
  --studio-focus: 0 0 0 4px rgba(216, 90, 48, 0.2);
  --ambient-base: #FFF9F4;
  --ambient-one: rgba(216, 90, 48, 0.14);
  --ambient-two: rgba(196, 139, 75, 0.1);
  --ambient-three: rgba(45, 74, 52, 0.07);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 160ms;
  --duration-medium: 320ms;
  --duration-slow: 640ms;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--ambient-base);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, var(--ambient-one), transparent 31rem),
    radial-gradient(circle at 88% 18%, var(--ambient-two), transparent 29rem),
    radial-gradient(circle at 68% 92%, var(--ambient-three), transparent 33rem),
    var(--ambient-base);
  background-size: 118% 118%;
  animation: ambient-shift 22s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  opacity: 0.26;
  background-image: radial-gradient(
    circle,
    rgba(92, 64, 50, 0.16) 0.7px,
    transparent 0.8px
  );
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.theme-learner {
  --ambient-one: rgba(45, 74, 52, 0.13);
  --ambient-two: rgba(161, 178, 145, 0.14);
  --ambient-three: rgba(216, 90, 48, 0.06);
}

.theme-publisher {
  --ambient-one: rgba(216, 90, 48, 0.17);
  --ambient-two: rgba(204, 143, 75, 0.14);
  --ambient-three: rgba(112, 76, 45, 0.06);
}

.publisher-type-page::before {
  background:
    radial-gradient(
      ellipse 58% 42% at 7% 4%,
      rgba(216, 90, 48, 0.22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 48% 50% at 98% 28%,
      rgba(226, 158, 84, 0.2),
      transparent 72%
    ),
    radial-gradient(
      ellipse 62% 38% at 56% 104%,
      rgba(45, 74, 52, 0.1),
      transparent 74%
    ),
    linear-gradient(145deg, #fff7f2 0%, #fffdfb 48%, #f8f5ed 100%);
  background-size: 100% 100%;
}

.theme-security {
  --ambient-one: rgba(45, 74, 52, 0.09);
  --ambient-two: rgba(100, 88, 78, 0.09);
  --ambient-three: rgba(216, 90, 48, 0.07);
}

.theme-danger {
  --ambient-one: rgba(159, 54, 37, 0.12);
  --ambient-two: rgba(216, 90, 48, 0.08);
  --ambient-three: rgba(104, 99, 94, 0.05);
}

html[dir="rtl"] body {
  font-family: var(--font-body-ar);
  line-height: 1.72;
}

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

body,
input,
button,
label,
.text-link {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.eyebrow {
  font-family: var(--font-heading);
}

html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] label,
html[dir="rtl"] .text-link {
  font-family: var(--font-body-ar);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .eyebrow {
  font-family: var(--font-heading-ar);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header {
  border-bottom: 1px solid rgba(232, 222, 215, 0.8);
  background: rgba(255, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--terracotta);
}

.brand__bracket {
  width: 10px;
  height: 24px;
  border: 3px solid currentColor;
}

.brand__bracket--start {
  border-inline-end: 0;
  border-radius: 12px 0 0 12px;
}

.brand__bracket--end {
  border-inline-start: 0;
  border-radius: 0 12px 12px 0;
}

[dir="rtl"] .brand__bracket--start {
  border-radius: 0 12px 12px 0;
}

[dir="rtl"] .brand__bracket--end {
  border-radius: 12px 0 0 12px;
}

.brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.brand__wordmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand__latin {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-header__actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch,
.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.language-switch:hover,
.header-link:hover {
  background: var(--white);
  color: var(--charcoal);
}

.language-switch__globe {
  font-size: 19px;
  color: var(--terracotta);
}

/* ─── Profile Circle & Dropdown ─── */
.user-menu-wrapper,
.user-menu-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-circle-btn {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(232, 222, 215, 0.9);
  background: #ffe6d8;
  color: var(--terracotta);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.profile-circle-btn::-webkit-details-marker,
.profile-circle-btn::marker {
  display: none;
  content: "";
}

.profile-circle-btn:hover {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(244, 91, 29, 0.18);
  transform: translateY(-1px);
}

.profile-circle-btn:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(244, 91, 29, 0.25);
}

.profile-circle-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

.profile-circle-avatar__default {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
}

.profile-circle-avatar__initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid rgba(232, 222, 215, 0.9);
  border-radius: 14px;
  box-shadow: 0 16px 36px -4px rgba(20, 20, 20, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 1000;
  animation: dropdown-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdown-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-menu-dropdown__header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px 10px;
}

.user-menu-dropdown__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffe6d8;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.user-menu-dropdown__user-info {
  min-width: 0;
  flex: 1;
}

.user-menu-dropdown__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-menu-dropdown__meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-menu-dropdown__divider {
  height: 1px;
  background: rgba(232, 222, 215, 0.7);
  margin: 4px 0;
}

.user-menu-dropdown__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: start;
  box-sizing: border-box;
}

.user-menu-dropdown__item:hover {
  background: #fff5ee;
  color: var(--terracotta);
}

.user-menu-dropdown__item svg {
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.user-menu-dropdown__item:hover svg {
  opacity: 1;
  transform: scale(1.05);
}

.user-menu-dropdown__item--danger {
  color: #dc2626;
}

.user-menu-dropdown__item--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-menu-dropdown__item--danger svg {
  stroke: #dc2626;
}

.user-menu-dropdown__logout-form {
  margin: 0;
  padding: 0;
  display: block;
}

.account-main {
  flex: 1;
  padding-block: 56px 72px;
}

.account-main > * {
  animation: page-enter var(--duration-slow) var(--ease-out) both;
}

.account-main > *:nth-child(2) {
  animation-delay: 70ms;
}

.account-main--narrow {
  width: min(520px, calc(100% - 40px));
  margin-inline: auto;
}

.account-main--medium {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.account-main--wide {
  width: min(1060px, calc(100% - 40px));
  margin-inline: auto;
}

.page-heading {
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-heading h1,
.panel h1,
.profile-name {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html[dir="rtl"] .page-heading h1,
html[dir="rtl"] .panel h1,
html[dir="rtl"] .profile-name {
  letter-spacing: 0;
  line-height: 1.35;
}

.page-heading p,
.panel-lead {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.panel--flat {
  box-shadow: var(--shadow-small);
}

.panel__header {
  margin-bottom: 28px;
}

.panel__header h1,
.panel__header h2 {
  margin: 0;
}

.panel__header h2,
.section-heading {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-heading {
  margin: 0 0 6px;
}

.section-description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.choice-card,
.pricing-card,
.settings-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--charcoal);
  text-decoration: none;
  box-shadow: var(--shadow-small);
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.choice-card {
  padding: 28px;
}

.choice-card:hover,
.pricing-card:hover,
.settings-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 90, 48, 0.55);
  box-shadow: var(--shadow);
}

.choice-card:active,
.pricing-card:active,
.settings-card:active {
  transform: translateY(0) scale(0.992);
}

.choice-card__icon,
.settings-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 20px;
  font-weight: 700;
}

.choice-card h2,
.pricing-card h2,
.settings-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.choice-card p,
.pricing-card p,
.settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.choice-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 700;
}

[dir="rtl"] .directional-arrow {
  transform: scaleX(-1);
}

.quiet-note {
  margin: 24px auto 0;
  max-width: 700px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.quiet-note a,
.text-link {
  color: var(--terracotta-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}

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

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
}

.field-hint,
.field-counter {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.django-field input:not([type="radio"]):not([type="checkbox"]),
.django-field select,
.django-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--white);
  color: var(--charcoal);
  padding: 11px 13px;
  outline: none;
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.field textarea,
.django-field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.django-field input:focus,
.django-field select:focus,
.django-field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.14);
  background: #fffdfb;
}

input[type="tel"],
input[type="date"],
input[type="email"],
input[type="url"] {
  direction: ltr;
  text-align: start;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9b938e;
}

.field input[type="file"] {
  padding: 8px;
}

.field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-inline-end: 10px;
  border: 0;
  border-radius: 7px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-weight: 700;
  cursor: pointer;
}

.phone-control,
.password-control {
  position: relative;
  display: flex;
}

.phone-prefix {
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-inline-end: 0;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  background: var(--surface);
  color: var(--muted);
  direction: ltr;
  font-size: 13px;
  font-weight: 600;
}

.phone-control input {
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
}

[dir="rtl"] .phone-prefix {
  border-inline-start: 1px solid var(--line-strong);
  border-inline-end: 0;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.password-toggle {
  position: absolute;
  inset-block: 4px;
  inset-inline-end: 4px;
  min-width: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--surface);
  color: var(--charcoal);
}

.password-control input {
  padding-inline-end: 58px !important;
}

.radio-list ul,
.radio-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.radio-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-list label {
  margin: 0;
}

.radio-list li label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--terracotta);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-row label {
  cursor: pointer;
}

.error-list,
.errorlist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  animation: helper-enter 220ms var(--ease-out) both;
}

.error-summary {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #efc5bd;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button-row--between {
  justify-content: space-between;
}

.button,
button.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
}

.button:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(185, 71, 37, 0.18);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: currentColor;
  border-radius: 50%;
  color: var(--white);
  animation: spin 700ms linear infinite;
}

.button--secondary.is-loading::after,
.button--quiet.is-loading::after {
  border-color: rgba(216, 90, 48, 0.25);
  border-top-color: var(--terracotta);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--charcoal);
}

.button--secondary:hover {
  border-color: var(--charcoal);
  background: var(--white);
}

.button--quiet {
  background: transparent;
  color: var(--terracotta-dark);
}

.button--quiet:hover {
  background: var(--terracotta-soft);
}

.button--danger {
  background: var(--red);
}

.button--danger:hover {
  background: #7e2a1d;
}

.button--full {
  width: 100%;
}

.form-footer {
  margin: 26px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.divider {
  height: 1px;
  margin-block: 28px;
  background: var(--line);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 13px;
}

.alert p {
  margin: 0;
}

.alert__mark {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.alert--success {
  border-color: #c8d9cc;
  background: var(--green-soft);
  color: var(--green);
}

.alert--success .alert__mark {
  background: var(--green);
}

.alert--error {
  border-color: #efc5bd;
  background: var(--red-soft);
  color: var(--red);
}

.alert--warning {
  border-color: #ead9a8;
  background: var(--amber-soft);
  color: var(--amber);
}

.message-stack {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.pricing-card {
  overflow: hidden;
}

.pricing-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pricing-card label {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  cursor: pointer;
}

.pricing-card:has(input:checked) {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.13), var(--shadow);
}

.pricing-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pricing-card__check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.pricing-card input:checked + label .pricing-card__check {
  border: 6px solid var(--terracotta);
}

.price {
  margin: 22px 0 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.progress__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress__number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.progress__item[data-state="current"] {
  color: var(--charcoal);
}

.progress__item[data-state="current"] .progress__number,
.progress__item[data-state="complete"] .progress__number {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--white);
}

.progress__item[data-state="complete"] .progress__number {
  animation: progress-pop 260ms var(--ease-out) both;
}

[data-step].step-enter-forward {
  animation: step-enter-forward 360ms var(--ease-out) both;
}

[dir="rtl"] [data-step].step-enter-forward {
  animation-name: step-enter-forward-rtl;
}

[data-step].step-enter-back {
  animation: step-enter-back 320ms var(--ease-out) both;
}

[dir="rtl"] [data-step].step-enter-back {
  animation-name: step-enter-back-rtl;
}

.panel__header h2[tabindex="-1"]:focus {
  outline: none;
}

.language-changing .site-header__inner,
.language-changing .account-main {
  opacity: 0.58;
  transform: translateY(2px);
}

.site-header__inner,
.account-main {
  transition:
    opacity 130ms ease,
    transform 180ms var(--ease-out);
}

.password-strength {
  margin-top: 9px;
}

.password-strength__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.password-strength__bar {
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  transition: background 180ms ease, transform 180ms var(--ease-out);
}

.password-strength[data-strength="1"] .password-strength__bar:nth-child(-n + 1) {
  background: var(--red);
}

.password-strength[data-strength="2"] .password-strength__bar:nth-child(-n + 2) {
  background: #b57927;
}

.password-strength[data-strength="3"] .password-strength__bar:nth-child(-n + 3) {
  background: #637846;
}

.password-strength[data-strength="4"] .password-strength__bar {
  background: var(--green);
}

.password-strength__label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.upload-preview {
  min-height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(216, 90, 48, 0.05), transparent),
    var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.upload-preview--avatar {
  width: 90px;
  border-radius: 24px;
}

.upload-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  animation: image-reveal 320ms var(--ease-out) both;
}

.upload-preview--avatar img {
  height: 90px;
}

.review-value {
  overflow-wrap: anywhere;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.review-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  color: var(--muted);
  font-size: 13px;
}

.review-list dd {
  margin: 0;
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.site-footer__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-shell {
  overflow: hidden;
  padding: 0;
}

.profile-cover {
  height: 210px;
  background:
    linear-gradient(120deg, rgba(216, 90, 48, 0.12), transparent 60%),
    repeating-linear-gradient(
      135deg,
      var(--surface),
      var(--surface) 16px,
      #fff3ec 16px,
      #fff3ec 32px
    );
  background-position: center;
  background-size: cover;
}

.profile-content {
  padding: 0 clamp(24px, 5vw, 48px) 42px;
}

.profile-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: -52px;
}

.avatar {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 28px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-small);
  font-size: 28px;
  font-weight: 700;
}

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

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.profile-copy {
  max-width: 720px;
  padding-top: 20px;
}

.profile-name {
  font-size: clamp(28px, 4vw, 38px);
}

.profile-handle {
  margin: 4px 0 0;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 700;
}

.badge--success {
  background: var(--green-soft);
  color: var(--green);
}

.profile-bio {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.profile-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-card {
  min-height: 150px;
  padding: 24px;
}

.settings-card--button {
  width: 100%;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.settings-card__arrow {
  margin-top: auto;
  padding-top: 18px;
  color: var(--terracotta-dark);
  font-weight: 700;
}

.danger-zone {
  border-color: #efc5bd;
}

.danger-zone .settings-card__icon {
  background: var(--red-soft);
  color: var(--red);
}

.status-illustration {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
  font-weight: 800;
  animation: status-pop 480ms var(--ease-out) both;
}

.status-panel {
  text-align: center;
}

.status-panel .button-row {
  justify-content: center;
}

/* Login card */
.login-card {
  --login-ink: #171715;
  --login-muted: #1d1d1c;
  --login-line: #c9c9c5;
  --login-input-line: #8a8a86;
  --login-accent: #e85b36;
  --login-accent-dark: #c74424;
  --login-error: #8a2b1d;
  --login-error-soft: #f4dcd6;
  width: 100%;
  max-width: 384px;
  margin-inline: auto;
  padding: 36px 32px 30px;
  border: 2px solid var(--login-ink);
  border-radius: 36px;
  background: var(--white);
  box-shadow:
    0 3px 0 rgba(23, 23, 21, 0.12),
    0 12px 28px rgba(23, 23, 21, 0.08);
  backdrop-filter: none;
}

.login-card__header {
  margin-bottom: 28px;
}

.login-card__header .eyebrow,
.login-card__header .panel-lead {
  display: none;
}

.login-card h1 {
  margin: 0;
  color: var(--login-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: initial;
}

html[dir="rtl"] .login-card h1 {
  letter-spacing: 0;
}

.login-card__form .form-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.login-card__field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--login-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

html[dir="rtl"] .login-card__field > label {
  letter-spacing: 0;
  text-transform: none;
}

.login-card .login-card__field input:not([type="radio"]):not([type="checkbox"]) {
  height: auto;
  min-height: 58px;
  padding: 19px 18px;
  border: 1px solid var(--login-input-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--login-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.login-card .login-card__field input::placeholder {
  font-size: 15px;
  font-weight: 500;
  opacity: 1;
}

.login-card .login-card__field input:not([type="radio"]):not([type="checkbox"]):hover {
  border-color: #60605c;
}

.login-card .login-card__field input:not([type="radio"]):not([type="checkbox"]):focus {
  border-color: var(--login-ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(23, 23, 21, 0.1);
}

.login-card .login-card__field:has(.errorlist) input:not([type="radio"]):not([type="checkbox"]) {
  border-color: var(--login-error);
  background: var(--login-error-soft);
  color: var(--login-error);
}

.login-card__field .password-control input {
  padding-inline-end: 64px !important;
}

.login-card__field .password-toggle {
  inset-block: 4px;
  inset-inline-end: 6px;
  min-width: 50px;
  border-radius: 999px;
  color: var(--login-muted);
  font-size: 13px;
  font-weight: 600;
}

.login-card__field .password-toggle:hover {
  background: #f0f0ed;
  color: var(--login-ink);
}

.login-card__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.login-card__options .checkbox-row {
  align-items: center;
  gap: 7px;
  color: var(--login-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.login-card__options .checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--login-accent);
}

.login-card__options .checkbox-row label {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

.login-card__options > .text-link {
  flex: 0 0 auto;
  color: var(--login-accent-dark);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 2px;
}

.login-card__error {
  margin-bottom: 22px;
  padding: 12px 14px;
  border-color: var(--login-error);
  border-radius: 14px;
  background: var(--login-error-soft);
  color: var(--login-error);
  font-size: 12px;
  font-weight: 600;
}

.login-card__actions {
  margin-top: 32px;
}

.login-card button.login-card__submit,
.login-card button.login-card__submit:hover {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--login-ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.login-card button.login-card__submit:hover {
  background: #30302d;
  transform: translateY(-1px);
}

.login-card button.login-card__submit:active {
  transform: translateY(0) scale(0.99);
}

.login-card__footer {
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--login-line);
  color: var(--login-muted);
  font-size: 14px;
}

.login-card__footer .text-link {
  color: var(--login-accent-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid rgba(216, 90, 48, 0.38);
  outline-offset: 3px;
}

@keyframes ambient-shift {
  from {
    background-position: 0% 0%;
    filter: saturate(0.96);
  }
  to {
    background-position: 7% 5%;
    filter: saturate(1.04);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes helper-enter {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes step-enter-forward {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes step-enter-forward-rtl {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes step-enter-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes step-enter-back-rtl {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes progress-pop {
  50% {
    transform: scale(1.12);
  }
}

@keyframes status-pop {
  from {
    opacity: 0;
    transform: scale(0.78) rotate(-5deg);
  }
}

@keyframes image-reveal {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

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

@media (max-width: 760px) {
  .shell,
  .account-main--narrow,
  .account-main--medium,
  .account-main--wide {
    width: min(100% - 32px, 1160px);
  }

  .account-main {
    padding-block: 36px 54px;
  }

  .choice-grid,
  .pricing-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

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

  .panel {
    padding: 24px 20px;
    border-radius: 15px;
  }

  .progress {
    gap: 4px;
  }

  .progress__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
  }

  .review-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-cover {
    height: 150px;
  }

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -42px;
  }

  .avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .profile-actions {
    width: 100%;
    padding: 0;
  }

  .profile-actions .button {
    flex: 1;
  }

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

  .button-row--between {
    flex-direction: column-reverse;
  }

  [data-wizard] .button-row {
    position: sticky;
    z-index: 5;
    inset-block-end: 10px;
    margin-inline: -8px;
    padding: 10px;
    border: 1px solid rgba(232, 222, 215, 0.9);
    border-radius: 13px;
    background: rgba(255, 250, 247, 0.92);
    box-shadow: 0 10px 28px rgba(58, 36, 26, 0.12);
    backdrop-filter: blur(14px);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 26px 26px;
    border-radius: 32px;
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand__latin,
  .header-link {
    display: none;
  }

  .brand__wordmark {
    font-size: 20px;
  }

  .choice-card {
    padding: 22px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}

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

.split-screen {
  display: flex;
  min-height: 100vh;
}

.split-screen__form-side {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.split-screen__form-inner {
  width: 100%;
  max-width: 420px;
}

.split-screen__art-side {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.split-screen__art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split-screen__art-side {
    display: none;
  }

  .split-screen__form-side {
    flex: 1 1 100%;
  }
}

/* Login split-screen layout */
.account-split {
  height: 100vh;
}

.account-main--split {
  width: 100%;
  min-height: 0;
  display: flex;
  padding: 0;
}

.account-main--split .split-screen {
  width: 100%;
  min-height: 0;
  flex: 1;
}

.split-screen__form-inner.login-card {
  max-width: 384px;
}

.account-main--split .split-screen__art-side {
  min-height: 0;
}

/* Craft-inspired authentication composition */
.account-split .site-header,
.account-split .site-footer {
  display: none;
}

.account-split .account-main--split,
.account-split .split-screen {
  height: 100vh;
}

.account-split .split-screen__form-side {
  position: relative;
  flex: 1 1 60%;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px);
  background: var(--white);
}

.account-split .login-language-switch {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 28px;
}

.account-split .split-screen__art-side {
  flex: 1 1 40%;
  background: #f8e9dc;
}

.account-split .split-screen__art-img {
  object-fit: cover;
  object-position: center;
}

.account-split .split-screen__form-inner.login-card {
  max-width: 476px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-split .login-card__header {
  margin-bottom: 38px;
  padding-top: clamp(24px, 4vh, 36px);
  text-align: center;
}

.account-split .login-card h1 {
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.2;
}

.account-split .login-card__header .panel-lead {
  display: block;
  max-width: 340px;
  margin: 12px auto 0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .account-split .split-screen__form-side {
    padding: 32px 24px;
  }

  .account-split .login-language-switch {
    inset-block-start: 18px;
    inset-inline-end: 18px;
  }
}

/* Login-style split composition for the actual sign-up forms. */
.signup-split .site-header,
.signup-split .site-footer {
  display: none;
}

.signup-split .account-main--split,
.signup-split .signup-screen {
  min-height: 100vh;
}

.signup-split .signup-screen__form-side {
  position: relative;
  flex: 1 1 60%;
  align-items: flex-start;
  justify-content: center;
  padding:
    clamp(96px, 8vw, 120px)
    clamp(32px, 6vw, 88px)
    72px;
  background: var(--white);
}

.signup-split .signup-language-switch {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 28px;
}

.signup-split .signup-screen__art-side {
  position: sticky;
  inset-block-start: 0;
  align-self: flex-start;
  flex: 1 1 40%;
  height: 100vh;
  background: #f8e9dc;
}

.signup-split .signup-screen__art-side .split-screen__art-img {
  object-fit: cover;
  object-position: center;
}

.signup-split .signup-card {
  --signup-ink: #171715;
  --signup-muted: #696965;
  --signup-input-line: #8a8a86;
  width: 100%;
  max-width: 620px;
}

.signup-split .signup-card__header {
  margin: 0 auto 38px;
  max-width: 620px;
  text-align: center;
}

.signup-split .signup-card__header .eyebrow {
  display: none;
}

.signup-split .signup-card__header h1 {
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

html[dir="rtl"] .signup-split .signup-card__header h1 {
  line-height: 1.3;
  letter-spacing: 0;
}

.signup-split .signup-card__header > p:last-child {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--signup-muted);
  font-size: 15px;
}

.signup-split .signup-card__form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.signup-split .signup-card__form .form-grid {
  gap: 26px;
}

.signup-split .signup-card__form .field > label,
.signup-split .signup-card__form .field > .field-label {
  margin-bottom: 8px;
  color: var(--signup-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

html[dir="rtl"] .signup-split .signup-card__form .field > label,
html[dir="rtl"] .signup-split .signup-card__form .field > .field-label {
  letter-spacing: 0;
  text-transform: none;
}

.signup-split .signup-card__form .field input:not([type="radio"]):not([type="checkbox"]),
.signup-split .signup-card__form .field select {
  min-height: 58px;
  padding: 19px 18px;
  border-color: var(--signup-input-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.signup-split .signup-card__form .field textarea {
  min-height: 132px;
  padding: 18px;
  border-color: var(--signup-input-line);
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.signup-split .signup-card__form .field input::placeholder,
.signup-split .signup-card__form .field textarea::placeholder {
  font-size: 15px;
  font-weight: 500;
  opacity: 1;
}

.signup-split .signup-card__form .password-toggle {
  inset-block: 4px;
  min-width: 50px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.signup-split .signup-card__form .password-control input {
  padding-inline-end: 64px !important;
}

.signup-split .signup-card__form .phone-prefix {
  min-width: 64px;
  border-color: var(--signup-input-line);
  background: var(--white);
  font-size: 14px;
}

.signup-split .signup-card__form .radio-list li label,
.signup-split .signup-card__form .checkbox-row {
  font-size: 14px;
  font-weight: 500;
}

.signup-split .signup-card__form .field-hint,
.signup-split .signup-card__form .field-counter,
.signup-split .signup-card__form .password-strength__label {
  font-size: 13px;
}

.signup-split .signup-card__form .button-row {
  margin-top: 32px;
}

.signup-split .signup-card__form .button {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
}

.signup-split .signup-card__form .button:not(.button--quiet):not(.button--secondary),
.signup-split .signup-card__form .button:not(.button--quiet):not(.button--secondary):hover {
  background: var(--signup-ink);
  color: var(--white);
}

.signup-split .signup-card__form .form-footer {
  font-size: 14px;
}

.signup-split .signup-card .progress {
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .signup-split .signup-screen__form-side {
    flex: 1 1 100%;
    padding: 88px 24px 48px;
  }

  .signup-split .signup-language-switch {
    inset-block-start: 18px;
    inset-inline-end: 18px;
  }
}


.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.course-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e5e5);
}

.course-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.course-card__photo--placeholder {
  background: var(--surface-muted, #f0f0f0);
}

.course-card__title {
  padding: 12px;
  font-size: 0.95rem;
  margin: 0;
}

/* Teacher workspace shell */
.teacher-app {
  --terracotta: #f97316;
  --terracotta-dark: #ea580c;
  --terracotta-soft: #fff7ed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: var(--ambient-base);
}

.material-symbols-rounded {
  width: 1em;
  overflow: hidden;
  font-family: "Material Symbols Rounded", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.teacher-sidebar {
  position: relative;
  z-index: 50;
  width: 264px;
  height: 100%;
  flex: 0 0 264px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 20px 24px;
  border-inline-end: 1.5px solid #F1E6DA;
  background: var(--white);
  box-shadow: 2px 0 12px rgba(120, 70, 20, 0.03);
}

.teacher-sidebar__header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 8px 4px;
}

.teacher-sidebar__brand,
.teacher-mobile-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  text-decoration: none;
}

.teacher-brand__mark {
  width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 3px;
  color: var(--terracotta);
}

.teacher-brand__bracket {
  width: 8px;
  height: 21px;
  border: 2.5px solid currentColor;
}

.teacher-brand__bracket--start {
  border-inline-end: 0;
  border-radius: 11px 0 0 11px;
}

.teacher-brand__bracket--end {
  border-inline-start: 0;
  border-radius: 0 11px 11px 0;
}

[dir="rtl"] .teacher-brand__bracket--start {
  border-radius: 0 11px 11px 0;
}

[dir="rtl"] .teacher-brand__bracket--end {
  border-radius: 11px 0 0 11px;
}

.teacher-brand__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

.teacher-brand__wordmark {
  color: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.teacher-sidebar__close {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
}

.teacher-sidebar__nav {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin-top: 46px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.teacher-sidebar__link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  color: #57534E;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
}

.teacher-sidebar__link:hover {
  background: #FFF1E6;
  color: #1C1917;
}

.teacher-sidebar__icon {
  flex: 0 0 auto;
  color: #A8A29E;
  font-size: 22px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.teacher-sidebar__link.is-active,
.teacher-sidebar__link.is-active:hover {
  background: #FFF1E6;
  color: #ED5517;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #FBCBA4;
}

.teacher-sidebar__link.is-active .teacher-sidebar__icon {
  color: #ED5517;
}

.student-sidebar__promo {
  margin-top: auto;
  margin-bottom: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FED7AA;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(244, 91, 29, 0.08);
}

.student-sidebar__promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-sidebar__promo-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #F45B1D;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.student-sidebar__promo-title {
  font-size: 12px;
  font-weight: 700;
  color: #9A3412;
  margin: 0;
}

.student-sidebar__promo-desc {
  font-size: 11px;
  color: #C2410C;
  margin: 0;
  line-height: 1.4;
}

.teacher-sidebar__link:focus-visible,
.teacher-sidebar__close:focus-visible,
.teacher-mobile-header__menu:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.25);
  outline-offset: 2px;
}

.teacher-sidebar__footer {
  flex: 0 0 auto;
  padding: 14px 14px 0;
  border-top: 1px solid #F1E6DA;
  color: #A8A29E;
  font-size: 11px;
  line-height: 1.5;
}

.teacher-sidebar__footer p {
  margin: 0;
}

.teacher-workspace {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.teacher-workspace__scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.teacher-workspace__scroll > .account-main {
  min-height: 100%;
}

.teacher-workspace__messages {
  width: min(1060px, calc(100% - 40px));
  flex: 0 0 auto;
  margin: 20px auto 0;
}

.teacher-mobile-header {
  display: none;
}

.teacher-sidebar-backdrop {
  display: none;
}

.teacher-placeholder {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.teacher-placeholder__icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  font-size: 29px;
}

@media (max-width: 900px) {
  .teacher-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(296px, calc(100vw - 48px));
    height: 100vh;
    height: 100dvh;
    padding: 22px 18px 24px;
    border-inline-end: 1px solid #e5e7eb;
    box-shadow: 18px 0 42px rgba(17, 24, 39, 0.14);
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform 240ms var(--ease-out),
      visibility 240ms;
  }

  .teacher-app.is-sidebar-open .teacher-sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .teacher-sidebar__close {
    display: inline-flex;
  }

  .teacher-sidebar__nav {
    margin-top: 34px;
  }

  .teacher-sidebar-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(17, 24, 39, 0.42);
    cursor: pointer;
    backdrop-filter: blur(2px);
  }

  .teacher-mobile-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 10px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--white);
  }

  .teacher-mobile-header__menu {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
  }

  .teacher-workspace__messages {
    width: min(100% - 32px, 1060px);
    margin-top: 16px;
  }
}

/* Shared role-registration wizard. Public and auth-only pages remain separate. */
.teacher-signup-page .site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.teacher-signup-page .site-header__inner {
  min-height: 84px;
}

.teacher-signup-page .teacher-signup__main {
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 38px 84px;
}

.teacher-signup {
  width: 100%;
}

.teacher-signup__progress {
  margin-bottom: clamp(40px, 6vw, 62px);
}

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

.teacher-signup__progress-track span {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition:
    background var(--duration-medium) ease,
    transform var(--duration-medium) var(--ease-out);
}

.teacher-signup__progress-track span[data-state="current"],
.teacher-signup__progress-track span[data-state="complete"] {
  background: var(--terracotta);
}

.teacher-signup__progress-track span[data-state="current"] {
  transform: scaleY(1.12);
}

.teacher-signup__progress-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.teacher-signup__progress-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--terracotta);
}

.teacher-signup__error-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -22px 0 32px;
}

.teacher-signup__error-summary > .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 20px;
}

.teacher-signup__heading {
  margin: 0 8px 32px;
}

.teacher-signup__heading .eyebrow {
  margin-bottom: 10px;
}

.teacher-signup__heading h1,
.teacher-signup__heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.teacher-signup__heading h1:focus,
.teacher-signup__heading h2:focus {
  outline: none;
}

.teacher-signup__heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.teacher-signup__card,
.teacher-signup__review-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.teacher-signup__card {
  padding: clamp(24px, 4vw, 38px);
}

.teacher-signup__card + .teacher-signup__card {
  margin-top: 22px;
}

.teacher-signup__field-grid {
  gap: 25px 28px;
}

.teacher-signup__field-grid .field > label,
.teacher-signup__field-grid .field > .field-label {
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
}

.teacher-signup__field-grid
  .field
  input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.teacher-signup__field-grid .field select {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 13px;
  font-size: 15px;
}

.teacher-signup__field-grid .field textarea {
  min-height: 148px;
  padding: 15px 16px;
  border-radius: 15px;
  font-size: 15px;
}

.teacher-signup__field-grid .password-toggle {
  inset-block: 5px;
  min-width: 46px;
}

.teacher-signup__field-grid .password-toggle .material-symbols-rounded {
  font-size: 21px;
}

.teacher-signup__radio-list > div,
.teacher-signup__radio-list ul {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.teacher-signup__radio-list > div > div,
.teacher-signup__radio-list li {
  min-width: 0;
}

.teacher-signup__radio-list label,
.teacher-signup__radio-list li label {
  min-height: 54px;
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
  border-color: var(--line-strong);
  border-radius: 13px;
}

.teacher-signup__terms {
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.teacher-signup__terms .checkbox-row {
  gap: 12px;
}

.teacher-signup__terms .checkbox-row label {
  display: block;
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
}

.teacher-signup__terms label span {
  color: var(--terracotta-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.teacher-signup__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.teacher-signup__actions--outside {
  padding-inline: 6px;
  border-top: 0;
}

.teacher-signup__actions .button {
  min-height: 50px;
  border-radius: 999px;
}

.teacher-signup__actions .button:not(.button--secondary) {
  min-width: 148px;
}

.teacher-signup__actions .material-symbols-rounded {
  font-size: 20px;
}

.teacher-signup__media-card {
  padding-block: clamp(28px, 5vw, 44px);
}

.teacher-signup__profile-photo-field > .field-label {
  margin-bottom: 20px;
  font-size: 15px;
}

.teacher-signup__upload-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
}

.teacher-signup__dropzone {
  width: 210px;
  height: 210px;
  display: block;
  margin: 0;
  border: 2px dashed var(--terracotta);
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.teacher-signup__dropzone:hover {
  transform: translateY(-2px);
  border-color: var(--terracotta-dark);
  background: #ffe7dc;
}

.teacher-signup__dropzone:focus-within {
  box-shadow: 0 0 0 4px rgba(216, 90, 48, 0.14);
}

.teacher-signup__dropzone-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 24px;
  text-align: center;
}

.teacher-signup__dropzone-preview > .material-symbols-rounded {
  margin-bottom: 4px;
  font-size: 34px;
}

.teacher-signup__dropzone-preview strong {
  font-size: 14px;
}

.teacher-signup__dropzone-preview small {
  color: var(--muted);
  font-size: 11px;
}

.teacher-signup__dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: image-reveal 300ms var(--ease-out) both;
}

.teacher-signup__upload-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 18px;
}

.teacher-signup__upload-copy p {
  max-width: 430px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.teacher-signup__upload-copy .button {
  width: fit-content;
  margin: 0;
  cursor: pointer;
}

.teacher-signup__native-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.teacher-signup__creator-media-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(360px, 1.4fr);
  align-items: start;
  gap: clamp(34px, 6vw, 72px);
}

.teacher-signup__creator-upload {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.teacher-signup__creator-upload > .field-label {
  align-self: stretch;
  justify-content: flex-start;
  margin-bottom: 0;
  font-size: 15px;
  text-align: start;
}

.teacher-signup__creator-upload .button {
  width: fit-content;
  margin: 0;
  cursor: pointer;
}

.teacher-signup__dropzone--cover {
  width: 100%;
  height: 210px;
  border-radius: 24px;
}

.teacher-signup__creator-review-media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.teacher-signup__review-cover {
  min-height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid #f1d7ca;
  border-radius: 18px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  overflow: hidden;
}

.teacher-signup__review-cover > .material-symbols-rounded {
  font-size: 36px;
}

.teacher-signup__review-cover img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.teacher-signup__profile-fields {
  margin-top: 22px;
}

.teacher-signup__review-stack {
  display: grid;
  gap: 22px;
}

.teacher-signup__review-card {
  overflow: hidden;
}

.teacher-signup__review-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

.teacher-signup__review-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
}

.teacher-signup__review-header h3 .material-symbols-rounded {
  color: var(--terracotta);
  font-size: 22px;
}

.teacher-signup__edit-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 90, 48, 0.5);
  border-radius: 10px;
  background: var(--white);
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.teacher-signup__edit-button:hover {
  background: var(--terracotta-soft);
}

.teacher-signup__edit-button .material-symbols-rounded {
  font-size: 18px;
}

.teacher-signup__review-body {
  padding: 28px;
}

.teacher-signup__identity-review {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
}

.teacher-signup__review-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid #f1d7ca;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  overflow: hidden;
}

.teacher-signup__review-avatar > .material-symbols-rounded {
  font-size: 42px;
}

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

.teacher-signup__identity-review h4,
.teacher-signup__plan h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.25;
}

.teacher-signup__username {
  margin: 3px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.teacher-signup__review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 30px;
  margin: 0;
}

.teacher-signup__review-grid > div {
  min-width: 0;
}

.teacher-signup__review-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.teacher-signup__review-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--charcoal);
  font-size: 14px;
  white-space: pre-line;
}

.teacher-signup__profile-review {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
}

.teacher-signup__review-full {
  grid-column: 1 / -1;
}

.teacher-signup__plan {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 26px 28px 28px;
  padding: 24px;
  border: 1px solid var(--terracotta);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--white), var(--terracotta-soft));
}

.teacher-signup .teacher-signup__plan-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 90, 48, 0.35);
  border-radius: 50%;
  background: var(--white);
  color: var(--terracotta);
  font-size: 34px;
}

.teacher-signup__plan p {
  margin: 5px 0 8px;
  color: var(--muted);
}

.teacher-signup__plan small {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(216, 90, 48, 0.09);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .teacher-signup-page .teacher-signup__main {
    width: min(100% - 28px, 980px);
    padding-block: 28px 58px;
  }

  .teacher-signup__progress {
    margin-bottom: 34px;
  }

  .teacher-signup__progress-track {
    gap: 7px;
  }

  .teacher-signup__heading {
    margin-inline: 2px;
  }

  .teacher-signup__card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .teacher-signup__field-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .teacher-signup__field-grid .field--full {
    grid-column: auto;
  }

  .teacher-signup__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .teacher-signup__actions .button {
    width: 100%;
  }

  .teacher-signup__upload-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    text-align: center;
  }

  .teacher-signup__dropzone {
    width: 184px;
    height: 184px;
  }

  .teacher-signup__upload-copy p {
    margin-inline: auto;
  }

  .teacher-signup__upload-copy .button {
    margin-inline: auto;
  }

  .teacher-signup__creator-media-grid {
    grid-template-columns: 1fr;
  }

  .teacher-signup__creator-upload > .field-label {
    justify-content: center;
    text-align: center;
  }

  .teacher-signup__dropzone--cover {
    width: min(100%, 460px);
    height: 184px;
  }

  .teacher-signup__creator-review-media {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .teacher-signup__review-header {
    min-height: 66px;
    padding: 14px 18px;
  }

  .teacher-signup__review-body {
    padding: 22px 18px;
  }

  .teacher-signup__identity-review,
  .teacher-signup__profile-review {
    grid-template-columns: 1fr;
  }

  .teacher-signup__review-avatar {
    width: 82px;
    height: 82px;
  }

  .teacher-signup__review-grid {
    grid-template-columns: 1fr;
  }

  .teacher-signup__review-full {
    grid-column: auto;
  }

  .teacher-signup__plan {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    margin: 20px 18px 22px;
    padding: 18px;
  }

  .teacher-signup .teacher-signup__plan-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .teacher-signup-page .site-header__actions .header-link {
    display: none;
  }

  .teacher-signup__heading h1,
  .teacher-signup__heading h2 {
    font-size: 29px;
  }

  .teacher-signup__progress-copy {
    font-size: 12px;
  }

  .teacher-signup__radio-list > div,
  .teacher-signup__radio-list ul {
    grid-template-columns: 1fr;
  }

  .teacher-signup__review-header h3 {
    font-size: 15px;
  }

  .teacher-signup__edit-button {
    padding-inline: 10px;
  }

  .teacher-signup__plan {
    grid-template-columns: 1fr;
  }

  .teacher-signup__creator-review-media {
    grid-template-columns: 1fr;
  }
}
