/* Colors live in variables so dark mode only has to redefine them. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --border: #e6e0d6;
  --accent: #c2410c;          /* warm terracotta */
  --accent-text: #ffffff;
  --accent-soft: #fdebe1;
  --es: #b45309;  --es-soft: #fef3c7;
  --en: #1d4ed8;  --en-soft: #dbeafe;
  --danger: #b91c1c; --danger-soft: #fee2e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
}

/* The hidden attribute must always win. Browsers hide [hidden] with their own
   built-in style, which any display rule of ours (e.g. .notice's flex) overrides,
   so an element would stay visible while app.js thinks it's hidden. */
[hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1e2125;
    --text: #e8e6e3;
    --muted: #a1a7af;
    --border: #30343a;
    --accent: #f97316;
    --accent-text: #1a0d05;
    --accent-soft: #3a2116;
    --es: #fbbf24;  --es-soft: #3a2f12;
    --en: #93c5fd;  --en-soft: #172a46;
    --danger: #fca5a5; --danger-soft: #3b1717;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--accent); }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 12px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
/* Phones: row 1 = Hablemos … EN/ES; row 2 = name, credit and buttons (wrapping).
   display: contents lets .header-actions' children (the account area and the
   language switch) join .header-row directly, so `order` can place them. */
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
  .header-actions { display: contents; }
  .lang-switch { order: 2; flex-shrink: 0; }
  .account-area { order: 3; flex: 1 1 100%; }
}
.account-area { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.9rem; }
.account-credit { color: var(--muted); white-space: nowrap; }
.account-name { font-weight: 600; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Your name in the header opens My Account: an outlined button, long names cut with "…". */
.account-button { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-icon { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.35em; fill: currentColor; }
/* A payer's seats in a private booking (My bookings): one line each, the
   name left and small text actions right. At most 32rem wide, so on a monitor
   the actions stay near the names instead of drifting to the far edge. */
.seat-list { list-style: none; margin: 10px 0 0; padding: 4px 0 0; max-width: 32rem; border-top: 1px solid var(--border); }
.seat { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 44px; }
.seat-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.seat-name.muted { white-space: nowrap; }   /* "Open seat" / "Cupo libre": a short label, kept on one line */
.nowrap { white-space: nowrap; }
.seat-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
/* Text links in a booking: small to look at, 44px tall to tap (Apple's guideline). */
.seat .link-button, .seat-list .link-button, .my-booking-foot .link-button { min-height: 44px; padding: 0 6px; }
.seat-list .link-button { margin-left: -6px; }   /* "+ Add a seat" lines up with the names */
.seat-actions .link-button { margin-left: 0; }
.book-seats { margin: 4px 0; max-width: 12em; }
/* My Account dialog */
.account-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-bottom: 12px; }
.account-form .field { flex: 1 1 14em; }
.person-form { flex-direction: column; align-items: stretch; border-top: 1px solid var(--border); padding-top: 12px; }
.person-form h3, .dialog h3 { margin: 12px 0 6px; font-size: 1rem; }
.people-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* Each person: the name on its own line (long names don't squeeze into a
   sliver on a phone), then language | Edit | Remove. */
.person { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 8px; padding-block: 4px; }
.person-name { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
.person .muted { white-space: nowrap; }
/* Stacked fields don't grow: in a column, "grow" would mean taller, not wider. */
.person-form .field { flex: none; }
.btn-small { padding: 4px 12px; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 40em; }

/* ---------- catalog header + filters ---------- */
.catalog-head h2 { margin: 24px 0 4px; font-size: 1.3rem; }
.tz-note { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }

.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 20px; }
.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.segmented button {
  border: 0; background: transparent; color: var(--text);
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- status messages ---------- */
.status:empty { display: none; }
.status { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border); color: var(--muted); margin-bottom: 20px; }
.status.is-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.status p { margin: 0 0 8px; }
.status .ref { font-family: ui-monospace, monospace; font-size: 0.85rem; }

/* ---------- cards ---------- */
.session-list {
  list-style: none; margin: 0 0 64px; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tag-es { background: var(--es-soft); color: var(--es); }
.tag-en { background: var(--en-soft); color: var(--en); }

.card-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.card-teacher { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
/* Admin lists: a photo beside the card's text. */
.photo-medium { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); box-sizing: border-box; }
.person-card { display: flex; align-items: flex-start; gap: 14px; }
.person-card-body { flex: 1; min-width: 0; }
.person-heading { display: flex; align-items: center; gap: 14px; margin-block: 12px; }
.person-heading h2 { margin: 0; min-width: 0; }
.person-heading .link-button { min-height: 44px; }
.photo-small { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; }
.card-when { margin: 0; display: flex; flex-direction: column; }
.card-date { font-weight: 600; }
.card-time { color: var(--muted); font-size: 0.95rem; }

.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seats { font-size: 0.9rem; color: var(--muted); }
.seats.is-full { color: var(--danger); font-weight: 600; }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger {
  font: inherit; font-weight: 600; border-radius: 999px; padding: 8px 18px; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
/* Irreversible actions (cancelling a booking) are red. */
.btn-danger { background: var(--danger); color: var(--surface); } /* white on red; dark on pink in dark mode */
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- toast ---------- */
/* A rounded box (not a pill, which turns into a blob when text wraps):
   as wide as its text, at most 28rem, and never wider than the screen minus
   16px each side. Above the phone's home bar (safe-area inset). */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: max-content; max-width: min(28rem, calc(100vw - 32px));
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px;
  font-weight: 600; line-height: 1.4; text-align: left; box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
}

/* ---------- sign-in dialog ---------- */
.dialog {
  width: min(28rem, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.dialog h2 { margin: 0 0 8px; font-size: 1.25rem; }
.dialog p { margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.field input {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error { color: var(--danger); font-size: 0.9rem; min-height: 1.5em; margin: 8px 0 0 !important; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.muted { color: var(--muted); }

/* ---------- sign-in page ---------- */
.signin-card {
  max-width: 28rem; margin: 64px auto; padding: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.signin-card h1 { margin: 0 0 8px; font-size: 1.5rem; }
.signin-card p { margin: 0 0 16px; }
.signin-card a { color: var(--accent); font-weight: 600; }
.brand { text-decoration: none; }

/* ---------- book dialog ---------- */
.attendees { border: 0; padding: 0; margin: 8px 0 12px; }
.attendees legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.attendee { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.attendee input { width: 18px; height: 18px; accent-color: var(--accent); }
.attendee.is-disabled { color: var(--muted); }
.small { font-size: 0.85rem; }
.book-price { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px !important; }
.is-short { color: var(--danger) !important; }

/* ---------- policies page + footer ---------- */
.policies { padding-block: 32px 48px; max-width: 46rem; }
.policies h1 { margin: 0 0 8px; }
/* Our Teachers: one card per teacher, the photo beside the name and bio. */
.teacher-cards { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.teacher-card { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.teacher-card h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.teachers-cta { display: inline-block; text-decoration: none; }
/* About page: a readable column of text; pre-line keeps single line breaks as typed. */
.about { padding-block: 24px 16px; }
.about-text { max-width: 65ch; }
.about-text h2 { margin: 20px 0 8px; font-size: 1.3rem; line-height: 1.3; text-wrap: balance; overflow-wrap: break-word; }
.about-text p { margin: 0 0 14px; white-space: pre-line; overflow-wrap: break-word; }
.about-edit { margin-top: 8px; }
.about-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; max-width: 46rem; }
.about-form p { margin: 0; }
.about-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical;
}
.policy { margin-top: 28px; }
.policy h2 { font-size: 1.15rem; margin: 0 0 8px; }
.policy ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding-block: 20px; font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- buy credit dialog ---------- */
/* The notice after coming back from Stripe. */
.notice {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; font-weight: 600;
}
.notice > span { flex: 1; }
.notice.is-error { background: var(--danger-soft); border-color: var(--danger); }
.packs { border: 0; padding: 0; margin: 8px 0 12px; }
.packs legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
/* One card per pack; the whole card is the <label>, so clicking anywhere picks it. */
.pack {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.pack:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pack input { width: 18px; height: 18px; accent-color: var(--accent); }
.pack-bonus { margin-left: auto; white-space: nowrap; }

/* ---------- test-site banner (staging, dev) ---------- */
/* Diagonal yellow stripes: hard to mistake for the real site. */
.test-banner {
  background: repeating-linear-gradient(-45deg, #fde68a 0 14px, #fcd34d 14px 28px);
  color: #422006; font-size: 0.9rem; font-weight: 600;
}
.test-banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 8px; }
.test-banner-row > [data-i18n] { margin-right: auto; }   /* the message left, the buttons right */
.test-banner .btn-secondary { background: #fffbeb; color: #422006; border-color: #b45309; }

/* ---------- my bookings ---------- */
.my-bookings { margin-bottom: 32px; }
.my-bookings h2 { margin: 0 0 12px; }
.my-bookings-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.my-booking {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px 4px;
}
.my-booking-title { font-size: 1.05rem; margin: 8px 0 2px; }
.my-booking-when { margin: 0; font-weight: 600; }
.my-booking-detail { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
/* Teacher and admin cards: a top row (title left, action right), then detail
   lines. No quiet footer here, so the normal padding at the bottom. */
.my-booking.plain { padding-bottom: 14px; }
/* Wraps when narrow: below about 14em of title room (phones), the button drops
   under the title, on the right, instead of squeezing it. */
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; margin-bottom: 4px; }
.card-head .my-booking-title { flex: 1 1 14em; margin: 0; min-width: 0; overflow-wrap: break-word; }
.card-head .btn-small { flex: none; margin-left: auto; }
.my-booking .minor-note { margin: 6px 0 0; }
/* Who's in a class: names, with a small photo where the account holder has one. */
.class-people { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.class-person { display: inline-flex; align-items: center; gap: 6px; }
.my-booking-foot { margin-top: 8px; border-top: 1px solid var(--border); }
.my-booking-foot .link-button { margin-left: -6px; }
/* A quiet text link: grey until hovered (Cancel booking, Leave class). */
.link-button.quiet { color: var(--muted); font-weight: 500; }
.link-button.quiet:hover { color: var(--danger); }
.tag-booked { background: var(--accent-soft); color: var(--accent); }
/* Admin page: teacher status badges, and the activate/deactivate row. */
.tag-status-pending { background: var(--es-soft); color: var(--es); }
.tag-status-active { background: var(--en-soft); color: var(--en); }
.tag-status-inactive { background: var(--danger-soft); color: var(--danger); }
.admin { padding-block: 24px 48px; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 16px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.invite-result { flex-direction: column; align-items: stretch; font-weight: 400; margin-bottom: 12px; }
.invite-result p { margin: 0 0 6px; }
.invite-link-row { display: flex; gap: 8px; }
.invite-link-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}

/* ---------- teacher page ---------- */
.teacher-section { margin-block: 24px 40px; }
.block-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.day-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.day-name { font-weight: 600; min-width: 14em; }
.time-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 0.95rem;
}
.chip-action {
  font: inherit; font-size: 0.8rem; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: 2px 10px; cursor: pointer;
}
.chip-action:hover { color: var(--danger); border-color: var(--danger); }
.add-block {
  margin-top: 20px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.add-block h3 { margin: 0 0 12px; font-size: 1rem; }
.add-block-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 4px; }
/* Profile photo: a round picture (or an empty circle) with its controls beside it. */
.photo-editor { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; max-width: 40rem; }
.photo { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--surface); }
.photo-empty { background: var(--bg); border-style: dashed; }
.photo-controls { min-width: 0; }
.photo-controls p { margin: 6px 0 0; }
.photo-controls .form-error:empty { display: none; }
.photo-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
/* The label is the button; the real file input is invisible but keeps keyboard focus. */
.photo-choose { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.photo-choose input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-choose:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-buttons .link-button { min-height: 44px; }
.profile-form { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.profile-form .btn-primary { align-self: flex-start; }
.field textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; resize: vertical;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.profile-lengths { border: 0; padding: 0; margin: 0; }
/* The price table scrolls sideways on a narrow phone instead of squeezing. */
.price-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.price-table { border-collapse: collapse; }
.price-table th { text-align: left; font-size: 0.9rem; padding: 6px 12px 6px 0; white-space: nowrap; }
.price-table td { padding: 4px 8px 4px 0; }
.price-input {
  width: 6.5em; font: inherit; padding: 8px 10px; border-radius: 8px; text-align: right;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.profile-lengths #profile-lengths { display: flex; gap: 16px; }
.field select {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.minor-note { flex: 1 1 100%; color: var(--es); font-size: 0.85rem; font-weight: 600; }
a.link { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- private classes ---------- */
.private { margin-top: 48px; }
.private-prices { font-weight: 600; margin: 4px 0; }
/* One line per day: name, times dropdown, Book. On a phone the name takes its
   own line and the dropdown fills the width beside Book. 1rem text: iPhones
   zoom the whole page when a smaller form control is tapped. */
.slot-row { flex-wrap: nowrap; }
.slot-row .day-name { flex: 0 0 17em; }   /* wide enough for "Miércoles, 30 de septiembre", so the dropdowns line up */
.slot-select {
  font: inherit; font-size: 1rem; min-height: 40px; padding: 6px 10px; min-width: 11em; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.slot-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .slot-row { flex-wrap: wrap; }
  .slot-row .day-name { flex: 1 1 100%; min-width: 0; }
  .slot-row .slot-select { flex: 1 1 0; min-width: 0; }
}
.teacher-name { color: var(--accent); font-weight: 600; } /* as big as the price line, in the accent orange */
.private-teacher { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
/* Photo beside the name and bio. pre-line keeps the line breaks he typed. */
.teacher-intro { display: flex; align-items: flex-start; gap: 14px; }
.teacher-about { min-width: 0; max-width: 65ch; }
.teacher-bio { margin: 4px 0 0; white-space: pre-line; overflow-wrap: break-word; }

/* The one-time welcome: numbered steps with a little air between them. */
.welcome-steps { padding-left: 1.4em; margin: 0.5rem 0 1rem; }
.welcome-steps li { margin-bottom: 0.5rem; }

/* The sign-in code box: big, spaced digits, easy to check at a glance. */
.code-input { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; max-width: 12rem; font-variant-numeric: tabular-nums; }
.code-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* Passkey sign-in, above the email box: a full-width button and an "or" line. */
.passkey-signin { margin-bottom: 0.75rem; }
.passkey-signin .btn-primary { width: 100%; }
.passkey-signin p { margin: 0.75rem 0 0; }
