.demo-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(15, 30, 74, 0.3);
}
.demo-dialog::backdrop {
  background: rgba(10, 24, 63, 0.62);
}
.demo-dialog__content {
  position: relative;
  padding: 32px;
  overflow-y: auto;
}
.demo-dialog__content h2 {
  margin-top: 8px;
  font-size: clamp(26px, 5vw, 34px);
}
.demo-dialog__intro {
  margin: 8px 0 22px;
  color: var(--mut);
}
.demo-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
#demo-form {
  display: grid;
  gap: 14px;
}
#demo-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
#demo-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}
#demo-form input:focus-visible {
  outline: 3px solid rgba(31, 111, 224, 0.35);
  border-color: var(--blue);
}
.demo-dialog__note,
.demo-dialog__status {
  font-size: 13px;
  line-height: 1.5;
}
.demo-dialog__note {
  color: var(--mut);
}
.demo-dialog__note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}
.demo-dialog__status:empty {
  display: none;
}
.demo-dialog__status {
  color: var(--ink);
}
#demo-form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 520px) {
  .demo-dialog__content {
    padding: 28px 20px;
  }
}
