/* Public appointments: one workspace, with optional detail and a visible total. */
.cinema-public:has(main[data-screen="rendez-vous"]) { grid-template-rows: 76px minmax(0, 1fr) 38px; }
.cinema-public:has(main[data-screen="rendez-vous"]) .header { grid-template-rows: 76px; }
.cinema-public:has(main[data-screen="rendez-vous"]) .header-profile-nav { display: none; }
.booking-workspace {
  height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: clamp(20px, 3vh, 36px) var(--pad) 0;
  background: #0c1016; color: #f6f7fa;
  scrollbar-gutter: stable;
}
.booking-heading { max-width: 1120px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.booking-heading h1 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.045em; margin: 8px 0; }
.booking-heading p { color: #bec8d6; font-size: 14px; line-height: 1.5; }
.booking-heading .back { color: #bec8d6; padding: 8px 0; min-height: 40px; font-size: 12px; }
.booking-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr); gap: clamp(28px, 5vw, 72px); max-width: 1120px; margin: auto; }
.booking-settings, .booking-schedule { min-width: 0; }
.booking-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 0 12px; }
.booking-settings > * { grid-column: 1 / -1; }
.booking-settings > .booking-field:nth-child(-n+2) { grid-column: auto; }
.booking-workspace .booking-field { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.booking-field > span, .booking-field legend { display: block; margin-bottom: 8px; padding: 0; color: #bdc9da; font-size: 12px; }
.booking-field > strong { display: block; font-size: 20px; color: #fff; }
.booking-options { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-options:not(.segmented) button { flex: 1; min-height: 50px; padding: 10px 12px; border: 1px solid #455267; border-radius: 10px; font-size: 20px; white-space: nowrap; }
.booking-options:not(.segmented) button[aria-pressed=true] { background: #1769d8; color: #fff; border-color: #80b7ff; }
.booking-workspace .booking-notice { color: #b5c4d9; font-size: 12px; line-height: 1.5; margin: 8px 0 16px; }
.booking-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.booking-actions h2 { margin: 0; }
.booking-lessons { list-style: none; padding: 0; margin: 0; }
.booking-workspace label, .booking-workspace .section-label { display: block; color: #bdc9da; font-size: 12px; margin: 0 0 8px; }
.booking-workspace input, .booking-workspace select {
  width: 100%; min-height: 46px; max-width: 100%; border: 1px solid #455267;
  background: #171e28; color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit;
}
.booking-workspace select { text-overflow: ellipsis; }
.booking-workspace .month-row { display: block; margin-bottom: 18px; }
.booking-workspace .month-row select { min-width: 0; }
.booking-workspace .segmented { width: 100%; margin-bottom: 0; flex-wrap: nowrap; }
.booking-workspace .segmented button { flex: 1; min-height: 44px; padding: 9px 10px; font-size: 13px; }
.booking-workspace .segmented button[aria-pressed=true],
.booking-workspace .volume-grid button[aria-pressed=true] { color: #fff; background: #1769d8; border-color: #80b7ff; }
.booking-workspace .volume-grid { gap: 8px; }
.booking-workspace .volume-grid button { min-height: 50px; padding: 10px 0; font-size: 23px; }
.booking-workspace .volume-grid span { font-size: 13px; }
.booking-workspace h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 14px; }
.booking-workspace .availability { gap: 12px; margin: 12px 0; }
.booking-workspace .availability p, .booking-workspace .availability button { font-size: 12px; }
.booking-workspace .availability button { min-height: 44px; padding: 8px; }
.booking-workspace .lesson { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; }
.booking-workspace .lesson .day { color: #fff; font-size: 28px; }
.booking-workspace .lesson .day span { color: #b5c4d9; font-size: 11px; }
.booking-workspace .lesson strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.booking-workspace .lesson p { color: #b5c4d9; font-size: 12px; line-height: 1.5; }
.booking-workspace .lesson button { min-width: 44px; min-height: 44px; color: #c1dcff; font-size: 12px; }
.booking-workspace .help-line, .booking-workspace .trust { color: #b0bfd3; font-size: 12px; line-height: 1.55; }
.booking-workspace .service-message:empty { display: none; }
.booking-workspace .service-message { color: #c5d8f3; font-size: 13px; line-height: 1.5; padding: 12px 0; }
.booking-workspace .service-message.error { color: #ffb7b7; }
.booking-workspace .text-button { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.booking-more { margin-top: 20px; border-top: 1px solid #ffffff26; }
.booking-more summary { cursor: pointer; min-height: 48px; padding: 16px 0; color: #c1dcff; font-size: 13px; }
.booking-more > :not(summary) { margin-bottom: 16px; }
.booking-more p { color: #b7c6d9; font-size: 13px; line-height: 1.6; }
.booking-more ol { padding-left: 18px; font-size: 12px; line-height: 1.9; color: #bdc9da; }
.booking-more .exam-location-details { margin: 12px 0; }
.booking-summary {
  position: sticky; bottom: 0; z-index: 3; max-width: 1120px; margin: 28px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0 max(18px, env(safe-area-inset-bottom));
  background: #0c1016f5; border-top: 1px solid #ffffff35;
  box-shadow: 0 -12px 24px #0c1016d9;
}
.booking-summary strong { display: block; font-size: 28px; font-weight: 650; letter-spacing: -.04em; }
.booking-total { flex-shrink: 0; }
.booking-total > span { font-size: 12px; color: #bdc9da; }
.booking-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; max-width: 580px; }
.booking-confirm .service-message { grid-column: 1 / -1; padding: 0; }
.booking-confirm .booking-notice { margin: 0; max-width: 300px; }
.booking-summary small, .booking-summary p { display: block; color: #bdc9da; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.booking-summary .primary { background: #1769d8; color: #fff; min-height: 50px; padding: 14px 28px; border-radius: 12px; box-shadow: none; }
.booking-summary .primary:hover { background: #2177ec; }
.booking-summary .primary:disabled { opacity: .5; }
@media (min-width: 761px) and (max-height: 800px) {
  .booking-workspace { padding-top: 18px; }
  .booking-heading { margin-bottom: 18px; }
  .booking-heading h1 { font-size: 32px; margin: 6px 0; }
  .booking-workspace .booking-field { margin-bottom: 12px; }
  .booking-workspace .booking-notice { margin: 6px 0 12px; }
  .booking-workspace .lesson { padding: 12px 0; }
  .booking-more { margin-top: 10px; }
  .booking-summary { margin-top: 12px; padding-top: 14px; padding-bottom: 14px; }
  .booking-confirm .booking-notice { margin: 0; }
}
@media (max-width: 760px) {
  .cinema-public:has(main[data-screen="rendez-vous"]) { grid-template-rows: 108px minmax(0, 1fr) auto; }
  .cinema-public:has(main[data-screen="rendez-vous"]) .header { grid-template-rows: 52px 56px; }
  .booking-workspace { padding: 20px 18px 0; }
  .booking-heading { margin-bottom: 18px; }
  .booking-heading { align-items: flex-start; }
  .booking-heading > .text-button { max-width: 90px; text-align: right; line-height: 1.5; }
  .booking-heading h1 { font-size: 26px; }
  .booking-heading .eyebrow { display: none; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .booking-workspace .booking-field { margin-bottom: 12px; }
  .booking-field > strong { font-size: 17px; }
  .booking-field input, .booking-field select { font-size: 12px; padding-inline: 10px; }
  .booking-workspace .booking-notice { margin: 6px 0 12px; }
  .booking-workspace .lesson { gap: 10px; grid-template-columns: 43px minmax(0, 1fr) auto; }
  .booking-workspace .lesson strong { font-size: 17px; }
  .booking-summary { gap: 12px; margin-top: 22px; padding-top: 14px; }
  .booking-summary strong { font-size: 24px; }
  .booking-total > span { max-width: 145px; display: block; font-size: 11px; }
  .booking-confirm { display: flex; flex-direction: column; align-items: stretch; max-width: 58%; gap: 6px; }
  .booking-confirm .booking-notice { font-size: 10px; }
  .booking-summary .primary { min-height: 48px; padding: 12px 16px; font-size: 13px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-workspace { scroll-behavior: auto; }
}

/* Public choice screens only. Photographic entry pages and private workspaces
   keep their existing dark identity; render() owns this explicit theme switch. */
body.cinema-public[data-public-theme="light"] {
  color-scheme: light;
  --bg: #f8f9fb;
  --text: #19212d;
  --muted: #526174;
  --line: #d5dde7;
  --blue: #075ec8;
  --public-surface: #fff;
  --public-control: #eef2f7;
  --public-control-border: #8492a5;
  --public-selection: #eaf2ff;
  background: var(--bg);
  color: var(--text);
}
body.cinema-public[data-public-theme="light"] .header {
  background: #f8f9fbf5;
  border-bottom-color: var(--line);
}
body.cinema-public[data-public-theme="light"] .header > .header-profile-nav { border-top-color: var(--line); }
body.cinema-public[data-public-theme="light"] :is(.brand span, .header nav, .header nav a, .header nav a svg, .footer, .footer a, .footer button) { color: var(--muted); }
body.cinema-public[data-public-theme="light"] .header nav a:is(:hover, [aria-current="page"]),
body.cinema-public[data-public-theme="light"] .header nav a[aria-current="page"] svg { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .header > .header-profile-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .footer { border-top-color: var(--line); }
body.cinema-public[data-public-theme="light"] .account { background: var(--public-surface); border-color: var(--public-control-border); color: var(--text); }

body.cinema-public[data-public-theme="light"] :is(.flow-bottom, .booking-workspace) { background: var(--bg); color: var(--text); }
body.cinema-public[data-public-theme="light"] .booking-summary {
  background: #f8f9fbf5;
  border-top-color: var(--line);
  box-shadow: 0 -12px 24px #f8f9fbe6;
}
body.cinema-public[data-public-theme="light"] :is(
  .intro > p, .section-label, .eyebrow, .choice small, .help-line,
  .flow-bottom .back, .flow-bottom .summary, .month-row label,
  .offering p, .price small, .benefits, .programme-list li > span,
  .programme-list p, .programme-list b, .pager, .meeting p,
  .lesson .day span, .lesson p, .availability p, .recap-list dt,
  .recap-list dd small, .recap-total small, .trust, .checkout-note,
  .dates-toolbar, .available-date-day small, .available-date-copy small,
  .available-date-copy > span, .dates-empty, .exam-location-details dt,
  .desired-exam-locations dd span, .desired-exam-locations dd small,
  .booking-heading p, .booking-heading .back, .booking-field > span,
  .booking-field legend, .booking-workspace label, .booking-notice,
  .booking-more p, .booking-more ol, .booking-total > span,
  .booking-summary small, .booking-summary p, .service-message,
  .advantage-highlight p, .advantage-item small, .rate-caption,
  .role-benefit p, .benefit-more, .profile-guide-detail .guide-proof
) { color: var(--muted); }
body.cinema-public[data-public-theme="light"] :is(
  .flow-bottom .summary strong, .choice .num, .booking-field > strong,
  .lesson .day, .available-date-day, .exam-location-details dd,
  .recap-list .recap-exam-centre, .advantage-item strong,
  .rate-caption strong, .team-portraits figcaption, .profile-guide-detail li strong
) { color: var(--text); }
body.cinema-public[data-public-theme="light"] :is(
  .text-button, .help-line button, .availability button, .lesson button,
  .booking-more summary, .available-date-next, .benefit-check,
  .meeting > span, .energy-kicker, .advantage-page .intro > .energy-kicker
) { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .benefits li::before,
body.cinema-public[data-public-theme="light"] .profile-guide-detail li::before { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .intro-photo small { color: #fff; }

body.cinema-public[data-public-theme="light"] .primary {
  color: #fff;
  background: #0967d8;
  box-shadow: none;
}
body.cinema-public[data-public-theme="light"] .primary:hover:not(:disabled) { background: #0759bd; }
body.cinema-public[data-public-theme="light"] .primary:active:not(:disabled) { background: #064da5; }
body.cinema-public[data-public-theme="light"] .primary:disabled { color: #566376; background: #e1e7ee; opacity: 1; }
body.cinema-public[data-public-theme="light"] .secondary {
  color: var(--blue);
  background: var(--public-surface);
  border-color: var(--public-control-border);
}
body.cinema-public[data-public-theme="light"] .secondary:hover { background: var(--public-selection); }
body.cinema-public[data-public-theme="light"] :is(.text-button, .flow-bottom .back, .pager button, .modal-days button) { min-height: 44px; }
body.cinema-public[data-public-theme="light"] .pager button { min-width: 44px; }
body.cinema-public[data-public-theme="light"] :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

body.cinema-public[data-public-theme="light"] .progress a { color: var(--muted); }
body.cinema-public[data-public-theme="light"] .progress a .dot { border-color: var(--public-control-border); }
body.cinema-public[data-public-theme="light"] .progress a:is(.active, .done) { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .progress a.active .dot { background: var(--blue); color: #fff; border-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .progress a.done .dot { color: var(--blue); border-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .progress .step-count { color: var(--muted); }
body.cinema-public[data-public-theme="light"] .segmented { background: var(--public-control); border-color: var(--line); }
body.cinema-public[data-public-theme="light"] .segmented button { color: var(--muted); min-height: 44px; }
body.cinema-public[data-public-theme="light"] :is(.choice, .volume-grid button, .booking-options:not(.segmented) button, .lesson button, .pager button, .modal-days button) {
  background: var(--public-surface);
  color: var(--text);
  border-color: var(--public-control-border);
}
body.cinema-public[data-public-theme="light"] :is(.segmented button, .volume-grid button, .booking-options button, .modal-days button)[aria-pressed="true"] {
  background: #0967d8;
  color: #fff;
  border-color: #0967d8;
  box-shadow: none;
}
body.cinema-public[data-public-theme="light"] .choice:hover:not(:disabled) { background: #f1f5fc; border-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .choice[aria-pressed="true"] { background: var(--public-selection); border-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .choice .radio { border-color: var(--public-control-border); }
body.cinema-public[data-public-theme="light"] .choice[aria-pressed="true"] .radio { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
body.cinema-public[data-public-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  color-scheme: light;
  background: var(--public-surface);
  color: var(--text);
  border-color: var(--public-control-border);
  min-height: 46px;
}
body.cinema-public[data-public-theme="light"] input::placeholder { color: #667387; opacity: 1; }
body.cinema-public[data-public-theme="light"] :is(.booking-more, .advantage-item, .desired-exam-locations, .desired-exam-locations div + div) { border-color: var(--line); }
body.cinema-public[data-public-theme="light"] .desired-exam-locations { background: transparent; }
body.cinema-public[data-public-theme="light"] .available-date:hover :is(.available-date-copy strong, .available-date-next),
body.cinema-public[data-public-theme="light"] .advantage-item:hover :is(strong, .benefit-more) { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .advantage-nav a { color: var(--muted); }
body.cinema-public[data-public-theme="light"] .advantage-nav a:is(:hover, [aria-current="page"]) { color: var(--blue); background: var(--public-selection); border-color: var(--line); box-shadow: none; }

/* Dialogs belong to the currently displayed public screen. */
body.cinema-public[data-public-theme="light"] dialog { background: var(--public-surface); color: var(--text); border-color: var(--line); box-shadow: 0 24px 100px #10284833; }
body.cinema-public[data-public-theme="light"] dialog::backdrop { background: #14203966; }
body.cinema-public[data-public-theme="light"] dialog :is(p, ul, label) { color: var(--muted); }
body.cinema-public[data-public-theme="light"] :is(.close, .guide-dismiss) { color: var(--muted); background: var(--public-control); width: 44px; height: 44px; }
body.cinema-public[data-public-theme="light"] :is(.close, .guide-dismiss):hover { background: #e2e9f3; color: var(--text); }
body.cinema-public[data-public-theme="light"] .profile-guide { background: #fffffff5; color: var(--text); border-color: var(--line); box-shadow: 0 16px 40px #1a35531a; }
body.cinema-public[data-public-theme="light"] .profile-guide .eyebrow { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .profile-guide p { color: var(--text); }
body.cinema-public[data-public-theme="light"] .quiz-choice { border-color: var(--public-control-border); }
body.cinema-public[data-public-theme="light"] .quiz-choice.correct { color: #165f3e; background: #e8f5ed; border-color: #26734c; }
body.cinema-public[data-public-theme="light"] .quiz-result { color: #165f3e; }
body.cinema-public[data-public-theme="light"] :is(.service-message.error, [role="alert"]),
body.cinema-public[data-public-theme="light"] :is(.booking-workspace, .flow, dialog) :is(.service-message.error, [role="alert"]) { color: #b4232e; }
body.cinema-public[data-public-theme="light"] .network-status:not([hidden]) { color: #9c202a; background: #fff0f1; border-bottom: 1px solid #d58d95; }

/* Keep the consent-driven map and its textual alternative readable. */
body.cinema-public[data-public-theme="light"] .esr-exam-map { color: var(--text); --exam-map-line: var(--line); --exam-map-blue: var(--blue); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-stage { background: #eef3f9; }
body.cinema-public[data-public-theme="light"] .esr-exam-map :is(p, small, .esr-exam-map-kicker, .esr-exam-map-index, .esr-exam-map-sources li) { color: var(--muted) !important; }
body.cinema-public[data-public-theme="light"] .esr-exam-map :is(.esr-exam-map-compass, .esr-exam-map-sources a, .esr-exam-map-sources summary) { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-purpose strong { color: var(--text); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-consent button { color: #fff; background: #0967d8; border-color: #0967d8; min-height: 44px; }
body.cinema-public[data-public-theme="light"] .esr-exam-map-itinerary li button { color: var(--muted); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-itinerary li button[aria-pressed="true"] { color: var(--blue); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-itinerary li button[aria-pressed="true"] .esr-exam-map-index { color: var(--blue) !important; border-left-color: var(--blue); }
body.cinema-public[data-public-theme="light"] .esr-exam-map-unavailable { color: var(--muted); }
@media (min-width: 761px) and (max-height: 780px) {
  /* Centring an overflowing intro moves its first line above the stage.
     Start below the existing padding and scroll the complete content instead. */
  body.cinema-public[data-public-theme="light"] .advantage-page .stage { align-items: start; overflow-y: auto; }
  body.cinema-public[data-public-theme="light"] .advantage-page .intro { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body.cinema-public[data-public-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]), select) { font-size: 16px; }
  body.cinema-public[data-public-theme="light"] .flow-bottom :is(.primary, .secondary) { white-space: normal; text-align: center; }
}
@media (forced-colors: active) {
  body.cinema-public[data-public-theme="light"] { --bg: Canvas; --public-surface: Canvas; --public-control: Canvas; --text: CanvasText; --muted: CanvasText; --line: CanvasText; --public-control-border: ButtonText; --blue: LinkText; }
  body.cinema-public[data-public-theme="light"] :is(button, a, input, select, summary):focus-visible { outline-color: Highlight; }
}
