.xdi-panel {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(35rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  color: #f6f2eb;
  background: #191714;
  border: 1px solid #574c42;
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 6rem #0008;
  text-align: left;
  font: 400 1rem/1.45 'Geist', system-ui, sans-serif;
}
.xdi-panel:not([open]) { display: none; }
.xdi-panel::backdrop { background: rgb(10 9 8 / 82%); }
.xdi-panel *, .xdi-panel *::before, .xdi-panel *::after { box-sizing: border-box; }
.xdi-content { position: relative; padding: clamp(1.25rem, 4vw, 2.5rem); }
.xdi-content h2 {
  margin: 0 2.5rem 0.7rem 0;
  color: #f6f2eb;
  font: 600 clamp(1.8rem, 5vw, 2.7rem)/1.05 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  letter-spacing: -0.045em;
  text-transform: none;
}
.xdi-content p { margin: 0 0 1.5rem; color: #c8bfb4; font-size: 1rem; line-height: 1.5; }
.xdi-close {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f6f2eb;
  background: transparent;
  font: 300 1.75rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.xdi-close:hover { background: #302b26; }
.xdi-form { display: grid; gap: 1.05rem; margin: 0; }
.xdi-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.xdi-form label { display: grid; gap: 0.4rem; color: #f6f2eb; font-size: 0.93rem; font-weight: 500; line-height: 1.4; }
.xdi-form small { color: #c8bfb4; font-size: 0.84rem; font-weight: 400; }
.xdi-form input, .xdi-form select, .xdi-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  color: #f6f2eb;
  background-color: #211e1a;
  border: 1px solid #74685e;
  border-radius: 0.25rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.xdi-form select {
  appearance: none;
  padding-right: 2.3rem;
  background-image: linear-gradient(45deg, transparent 50%, #d4cabe 50%), linear-gradient(135deg, #d4cabe 50%, transparent 50%);
  background-position: calc(100% - 1.02rem) center, calc(100% - 0.72rem) center;
  background-size: 0.32rem 0.32rem;
  background-repeat: no-repeat;
}
.xdi-form textarea { min-height: 5.25rem; resize: vertical; }
.xdi-form textarea::placeholder { color: #a99e92; }
.xdi-continue {
  justify-self: start;
  min-height: 2.85rem;
  padding: 0.73rem 1.15rem;
  border: none;
  border-radius: 2rem;
  background: #ff6037;
  color: #191714;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.xdi-continue:hover { background: #ff7c5b; }
.xdi-panel :focus-visible { outline: 2px solid #ff865f; outline-offset: 3px; }
@media (max-width: 30rem) {
  .xdi-pair { grid-template-columns: 1fr; gap: 1.05rem; }
  .xdi-continue { width: 100%; }
}
@media (forced-colors: active) {
  .xdi-form select { appearance: auto; }
}
