.form-grid .marketing-consent {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
}
.form-grid .marketing-consent input {
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: .1em 0 0;
  padding: 0;
  accent-color: #9f3214;
}
.marketing-preferences {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #dfc3ae;
}
.marketing-preferences h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.marketing-preferences .btn { margin-top: .75rem; }
.marketing-preferences .btn[hidden] { display: none; }

#launch-offer {
  position: fixed;
  inset: 0;
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  box-sizing: border-box;
  margin: auto;
  padding: clamp(1.5rem, 6vw, 2.75rem);
  border: 1px solid #deb8a4;
  border-radius: 1.35rem;
  background: #fcf7ee;
  color: #3e2117;
  box-shadow: 0 22px 70px #3e21174d;
}
#launch-offer::backdrop { background: #2b190f80; }
#launch-offer h2 {
  margin: .6rem 0 .75rem;
  font: 500 clamp(2rem, 6vw, 3rem)/1.05 Georgia, serif;
  letter-spacing: -.04em;
}
#launch-offer p { margin: 0; line-height: 1.5; }
#launch-offer .launch-label {
  color: #842f19;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.launch-dismiss {
  position: absolute;
  top: .625rem;
  right: .625rem;
}
.launch-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 0 .375rem;
  padding: .375rem .45rem .375rem .9rem;
  border: 1px dashed #ac7059;
  border-radius: .625rem;
  background: #f3e5d8;
}
.launch-code code { font-size: clamp(1rem, 5vw, 1.375rem); font-weight: 700; letter-spacing: .08em; user-select: all; }
#launch-offer button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #a87660;
  border-radius: .625rem;
  background: #fffaf4;
  color: #442317;
  cursor: pointer;
}
#launch-offer button:hover { background: #f0ddcb; }
#launch-offer button:focus-visible { outline: 2px solid #842f19; outline-offset: 3px; }
#launch-offer [role="status"] { min-height: 1.5em; font-size: .875rem; }

:is(#auth-form, #setup-form) .host-password-field { position: relative; display: block; }
:is(#auth-form, #setup-form) .host-password-field input { width: 100%; padding-right: 3.25rem; }
:is(#auth-form, #setup-form) .host-password-field button {
  position: absolute;
  top: 50%;
  right: .2rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #654336;
  cursor: pointer;
}
:is(#auth-form, #setup-form) .host-password-field svg { width: 20px; height: 20px; }
:is(#auth-form, #setup-form) [data-eye-slash][hidden] { display: none; }
:is(#auth-form, #setup-form) .host-password-field input[aria-invalid] { border-color: #a32423; }
:is(#auth-form, #setup-form) .host-password-error { display: block; margin-top: .35rem; color: #a32423; font-size: .875rem; }
:is(#auth-form, #setup-form) .host-password-error:empty { display: none; }

/* Edge inserts its own reveal icon into password inputs with a custom eye. */
:is(#auth-form, #setup-form) .host-password-field input::-ms-reveal { display: none; }
#past-event-warning[hidden] { display: none; }
#past-event-warning { padding: 1rem; }
#past-event-warning p { margin: 0 0 .75rem; }
#past-event-warning label { display: flex; align-items: flex-start; gap: .625rem; }
#past-event-warning input {
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  min-height: 0;
  height: 18px;
  margin: .125rem 0 0;
  padding: 0;
  accent-color: #9f3214;
}


/* Keep the native date control inside the modal's content column on iOS. */
#edit-event-field:has(input[type="date"]) {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
}
#edit-event-field:has(input[type="date"]) > label {
  margin-bottom: 17px;
}
#edit-event-field input[type="date"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
}
#edit-event-field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: start;
}
#edit-event-field:has(input[type="date"]) .form-error {
  min-height: 0;
  margin: 0;
}
#edit-event-field:has(input[type="date"]) .form-error:not(:empty) {
  margin-bottom: 12px;
}
