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