.prescreen-dialog {
  width:min(920px,calc(100vw - 32px));
  max-height:min(860px,calc(100dvh - 32px));
  margin:auto;
  padding:0;
  border:1px solid rgba(33,25,20,.13);
  border-radius:28px;
  color:var(--encre);
  background:rgba(248,246,242,.98);
  box-shadow:0 42px 110px -34px rgba(33,25,20,.58);
  overflow:hidden;
}

.prescreen-dialog::backdrop {
  background:rgba(33,25,20,.58);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.prescreen-shell {
  height:min(860px,calc(100dvh - 32px));
  min-height:0;
  display:grid;
  grid-template-rows:auto 1fr auto;
}

.prescreen-head {
  position:relative;
  padding:32px clamp(26px,5vw,56px) 24px;
  border-bottom:1px solid rgba(33,25,20,.1);
}

.prescreen-kicker {
  display:block;
  margin-bottom:7px;
  color:var(--caramel);
  font-size:10px;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.prescreen-head h2 {
  max-width:15ch;
  font-size:clamp(32px,4.5vw,48px);
}

.prescreen-subtitle {
  max-width:57ch;
  margin-top:12px;
  color:var(--encre-douce);
  font-size:14.5px;
}

.prescreen-service {
  margin-top:18px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.prescreen-service[hidden] { display:none; }

.prescreen-close {
  position:absolute;
  top:25px;
  right:28px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(33,25,20,.15);
  border-radius:50%;
  background:transparent;
  color:var(--encre);
  font-size:25px;
  font-weight:300;
  cursor:pointer;
}

.prescreen-progress-wrap {
  margin-top:22px;
}

.prescreen-progress-meta {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:9px;
  color:var(--encre-douce);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.prescreen-progress {
  height:2px;
  background:rgba(33,25,20,.12);
  overflow:hidden;
}

.prescreen-progress > span {
  display:block;
  width:0;
  height:100%;
  background:var(--caramel);
  transition:width .45s cubic-bezier(.16,1,.3,1);
}

.prescreen-body {
  min-height:0;
  padding:clamp(28px,4.5vw,48px) clamp(26px,5vw,56px);
  overflow:auto;
  overscroll-behavior:contain;
}

.prescreen-intro {
  max-width:62ch;
  margin-bottom:30px;
  color:var(--encre-douce);
  font-size:14px;
}

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

.prescreen-service-choice {
  min-height:68px;
  padding:15px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid rgba(33,25,20,.13);
  border-radius:14px;
  background:rgba(255,255,255,.46);
  color:var(--encre);
  font-family:var(--sans);
  font-size:14px;
  text-align:left;
  cursor:pointer;
  transition:border-color .25s ease,background .25s ease,transform .25s ease;
}

.prescreen-service-choice::after {
  content:"→";
  color:var(--caramel);
  font-size:17px;
}

.prescreen-service-choice:hover {
  border-color:var(--caramel);
  background:rgba(255,255,255,.8);
  transform:translateY(-2px);
}

.prescreen-group {
  border:0;
}

.prescreen-group > legend {
  width:100%;
  margin-bottom:24px;
  font-family:var(--serif);
  font-size:clamp(25px,3vw,34px);
  line-height:1.2;
}

.prescreen-question {
  padding:20px 0;
  border-top:1px solid rgba(33,25,20,.1);
}

.prescreen-question:first-of-type {
  padding-top:0;
  border-top:0;
}

.prescreen-question-title {
  display:block;
  margin-bottom:13px;
  font-size:15px;
  font-weight:400;
  line-height:1.5;
}

.prescreen-options {
  display:flex;
  gap:10px;
}

.prescreen-option {
  position:relative;
  flex:1;
}

.prescreen-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.prescreen-option label {
  min-height:48px;
  padding:11px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(33,25,20,.16);
  border-radius:999px;
  background:rgba(255,255,255,.42);
  font-size:13px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}

.prescreen-option input:checked + label {
  border-color:var(--encre);
  background:var(--encre);
  color:var(--blanc);
}

.prescreen-option input:focus-visible + label {
  outline:2px solid var(--caramel);
  outline-offset:3px;
}

.prescreen-explanation {
  margin-top:12px;
  padding:11px 14px;
  border-left:2px solid var(--caramel);
  background:rgba(218,191,177,.16);
  color:var(--encre-douce);
  font-size:12.5px;
}

.prescreen-error {
  min-height:0;
  grid-column:1/-1;
  color:#7A3029;
  font-size:13px;
}

.prescreen-footer {
  min-height:90px;
  padding:18px clamp(26px,5vw,56px);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  border-top:1px solid rgba(33,25,20,.1);
  background:rgba(243,239,233,.76);
}

.prescreen-footer .btn {
  justify-content:center;
}

.prescreen-back[hidden],
.prescreen-next[hidden] {
  display:none;
}

.prescreen-privacy {
  max-width:48ch;
  color:var(--encre-douce);
  font-size:11.5px;
  line-height:1.5;
}

.prescreen-result {
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}

.prescreen-status {
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.prescreen-status::before {
  content:"";
  width:12px;
  height:12px;
  border:2px solid currentColor;
  border-radius:50%;
}

.prescreen-result[data-status="GREEN"] .prescreen-status { color:#466A55; }
.prescreen-result[data-status="ORANGE"] .prescreen-status { color:#9A632E; }
.prescreen-result[data-status="RED"] .prescreen-status { color:#8A3F39; }

.prescreen-result h3 {
  max-width:16ch;
  font-size:clamp(32px,4.5vw,52px);
  line-height:1.08;
}

.prescreen-result-copy {
  max-width:59ch;
  margin-top:20px;
  color:var(--encre-douce);
  font-size:15px;
}

.prescreen-result-note {
  max-width:62ch;
  margin-top:22px;
  padding:15px 18px;
  border:1px solid rgba(33,25,20,.1);
  border-radius:12px;
  background:rgba(255,255,255,.38);
  color:var(--encre-douce);
  font-size:12.5px;
}

.prescreen-patch-note {
  margin-top:16px;
  color:var(--encre-douce);
  font-size:12px;
  font-style:italic;
}

body.prescreen-open {
  overflow:hidden;
}

@media (max-width:640px) {
  .prescreen-dialog {
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
  }

  .prescreen-shell {
    height:100dvh;
    min-height:0;
  }

  .prescreen-head {
    padding:24px 20px 18px;
  }

  .prescreen-head h2 {
    padding-right:52px;
    font-size:32px;
  }

  .prescreen-subtitle {
    font-size:13px;
  }

  .prescreen-close {
    top:18px;
    right:18px;
  }

  .prescreen-body {
    padding:26px 20px;
  }

  .prescreen-selector {
    grid-template-columns:1fr;
  }

  .prescreen-footer {
    padding:14px 20px calc(14px + env(safe-area-inset-bottom));
    grid-template-columns:1fr 1fr;
  }

  .prescreen-footer .btn {
    min-height:48px;
    padding:13px 20px;
  }

  .prescreen-privacy {
    width:100%;
    grid-column:1/-1;
  }

  .prescreen-back,
  .prescreen-next {
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  .prescreen-progress > span,
  .prescreen-service-choice,
  .safety-brief-dialog,
  .safety-brief-dialog[open],
  .safety-brief-dialog[open] .safety-brief-sheet,
  .safety-brief-trigger .safety-brief-mark,
  .safety-brief-tip {
    transition:none;
    animation:none;
  }
}

.safety-brief-trigger {
  position:relative;
  flex:none;
  width:44px;
  height:44px;
  margin:-12px -12px -12px -6px;
  display:inline-grid;
  place-items:center;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  vertical-align:middle;
  -webkit-tap-highlight-color:transparent;
}

.safety-brief-mark {
  width:15px;
  height:15px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:50%;
  color:var(--caramel);
  font-family:var(--serif);
  font-size:10px;
  font-style:italic;
  font-weight:500;
  line-height:1;
  opacity:.72;
  transition:opacity .2s ease, border-color .2s ease, color .2s ease;
}

.safety-brief-trigger:hover .safety-brief-mark,
.safety-brief-trigger:focus-visible .safety-brief-mark {
  opacity:1;
  color:var(--encre);
  border-color:var(--encre);
}

.safety-brief-trigger--on-dark .safety-brief-mark {
  color:var(--nude);
  border-color:rgba(218,191,177,.62);
}

.safety-brief-trigger--on-dark:hover .safety-brief-mark,
.safety-brief-trigger--on-dark:focus-visible .safety-brief-mark {
  color:var(--cendre);
  border-color:var(--cendre);
}

.safety-brief-tip {
  position:absolute;
  left:50%;
  bottom:calc(100% - 4px);
  z-index:4;
  width:max-content;
  max-width:220px;
  padding:7px 11px;
  border:1px solid rgba(33,25,20,.1);
  border-radius:8px;
  background:rgba(248,246,242,.98);
  color:var(--encre-douce);
  font-family:var(--sans);
  font-size:11px;
  font-weight:400;
  letter-spacing:.02em;
  line-height:1.35;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%, 4px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow:0 14px 28px -22px rgba(33,25,20,.4);
}

.safety-brief-trigger--on-dark .safety-brief-tip {
  background:rgba(248,246,242,.98);
  color:var(--encre-douce);
}

@media (hover:hover) and (pointer:fine) {
  .safety-brief-trigger:hover .safety-brief-tip,
  .safety-brief-trigger:focus-visible .safety-brief-tip {
    opacity:1;
    visibility:visible;
    transform:translate(-50%, 0);
  }
}

.safety-brief-dialog {
  position:fixed;
  inset:unset;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:min(440px, calc(100vw - 32px));
  height:auto;
  max-height:min(72dvh, 640px);
  margin:0;
  padding:0;
  border:1px solid rgba(33,25,20,.12);
  border-radius:22px;
  color:var(--encre);
  background:rgba(248,246,242,.98);
  box-shadow:0 28px 70px -28px rgba(33,25,20,.48);
  overflow:hidden;
}

.safety-brief-dialog::backdrop {
  background:rgba(33,25,20,.42);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.safety-brief-dialog[open] {
  animation:safety-brief-fade .2s ease both;
}

.safety-brief-dialog[open]::backdrop {
  animation:safety-brief-backdrop .2s ease both;
}

.safety-brief-dialog[open] .safety-brief-sheet {
  animation:safety-brief-in .22s cubic-bezier(.16,1,.3,1) both;
}

@keyframes safety-brief-fade {
  from { opacity:0; }
  to { opacity:1; }
}

@keyframes safety-brief-in {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes safety-brief-backdrop {
  from { opacity:0; }
  to { opacity:1; }
}

.safety-brief-sheet {
  position:relative;
  display:flex;
  flex-direction:column;
  max-height:min(72dvh, 640px);
  min-height:0;
}

.safety-brief-handle {
  display:none;
}

.safety-brief-close {
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--encre);
  font-size:24px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
}

.safety-brief-dialog h2 {
  max-width:16ch;
  padding:28px 56px 0 28px;
  font-size:clamp(26px, 4vw, 32px);
  line-height:1.15;
}

.safety-brief-service {
  padding:8px 28px 0;
  color:var(--encre-douce);
  font-size:13px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.safety-brief-body {
  flex:1 1 auto;
  min-height:0;
  padding:22px 28px 8px;
  overflow:auto;
  overscroll-behavior:contain;
}

.safety-brief-section + .safety-brief-section {
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid rgba(33,25,20,.1);
}

.safety-brief-section h3 {
  margin-bottom:12px;
  color:var(--encre);
  font-family:var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.safety-brief-section ul {
  display:grid;
  gap:8px;
}

.safety-brief-section li {
  position:relative;
  padding-left:14px;
  color:var(--encre-douce);
  font-size:14px;
  line-height:1.5;
}

.safety-brief-section li::before {
  content:"";
  position:absolute;
  top:.72em;
  left:0;
  width:5px;
  height:1px;
  background:var(--caramel);
}

.safety-brief-notes p {
  max-width:46ch;
  color:var(--encre-douce);
  font-size:13.5px;
  line-height:1.6;
}

.safety-brief-notes p + p {
  margin-top:8px;
}

.safety-brief-legal {
  flex:none;
  margin:8px 28px 0;
  padding-top:16px;
  border-top:1px solid rgba(33,25,20,.1);
  color:var(--glace);
  font-size:11.5px;
  line-height:1.55;
}

.safety-brief-done {
  flex:none;
  align-self:stretch;
  justify-content:center;
  margin:20px 28px 26px;
}

body.safety-brief-open {
  overflow:hidden;
}

@media (max-width:640px) {
  .safety-brief-dialog {
    top:auto;
    left:0;
    right:0;
    bottom:0;
    transform:none;
    width:100%;
    max-width:none;
    height:auto;
    max-height:min(88dvh, 760px);
    margin:0;
    border:0;
    border-radius:24px 24px 0 0;
  }

  .safety-brief-dialog[open] {
    animation:safety-brief-fade .2s ease both;
  }

  .safety-brief-sheet {
    max-height:min(88dvh, 760px);
  }

  .safety-brief-handle {
    display:block;
    width:36px;
    height:4px;
    margin:10px auto 0;
    border-radius:999px;
    background:rgba(33,25,20,.18);
  }

  .safety-brief-dialog h2 {
    padding:18px 52px 0 22px;
  }

  .safety-brief-service,
  .safety-brief-body {
    padding-left:22px;
    padding-right:22px;
  }

  .safety-brief-legal {
    margin-left:22px;
    margin-right:22px;
  }

  .safety-brief-done {
    min-height:48px;
    margin:18px 22px calc(18px + env(safe-area-inset-bottom));
  }
}
