html {
  font-size: clamp(100%, calc(85% + 0.35vw), 125%);
}

body {
  max-width: 48em;
  font-size: 1rem;
  line-height: 1.55;
  padding-inline: 1rem;
  overflow-wrap: anywhere;
}

p, ul, ol, li, .table th, .table td { line-height: inherit; }
h2, h3, h4 { line-height: 1.25; margin-block: 0.75em 0.4em; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
code { font-size: 0.9em; white-space: normal; }
#footer { font-size: 0.875rem; }

.navbar-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.25rem 1rem;
}
.brand {
  grid-row: span 2;
  align-self: center;
  font-size: 2.25rem;
  line-height: 1.2;
}
.brand img { width: 1.75em; margin-right: 0.25em; top: -0.08em; }
.newnav.small {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.25em;
  margin: 0;
}
.newnav.small li { margin: 0; min-width: 0; }
.newnav.small a, .newnav.small .nav-link { padding: 0.15em 0.55em; }
.navbar-top form { margin: 0; }
.nav-link { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#breadcrumbs { grid-column: 1 / -1; }

@media (max-width: 46em) {
  .navbar-top { grid-template-columns: minmax(0, 1fr); }
  .brand { grid-row: auto; }
  .newnav.small { justify-content: flex-start; }
}

label, button, input, select, textarea, .btn {
  font-size: 1rem;
  line-height: 1.5;
}
input:not([type=hidden]), select, textarea {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.3em 0.5em;
}
input:not([type]), input[type=text], input[type=email], input[type=password], select { width: 15em; }
#support-form input[type=email] { width: 30em; }
.btn { padding: 0.3em 0.8em; }
.btn-big { font-size: 1.2rem; }
.btn-small { font-size: 0.9rem; }
.btn-mini { font-size: 0.8rem; line-height: 1.5; padding: 0.1em 0.5em; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { overflow-wrap: normal; }

#pricing #pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
#pricing .plan { width: auto; margin: 0; padding: 1rem; }
#pricing .plan h2 { font-size: 1.7rem; }

#new-gate {
  box-sizing: border-box;
  width: 100%;
  max-width: 39rem;
  padding: clamp(1rem, 4%, 2rem);
  float: none;
  display: flow-root;
}
#new-gate > div[class^="page-"] { width: auto; }
#new-gate input { width: 100%; }
#new-gate button.opt { display: block; width: 100%; text-align: left; color: inherit; font: inherit; }
#new-gate button.opt span { display: block; margin: 0.4em 0; }

[hidden] { display: none !important; }
dialog { box-sizing: border-box; padding: 1.25rem; max-width: min(32rem, 90%); border: 1px solid #999; border-radius: 5px; }
dialog::backdrop { background: rgb(0 0 0 / 40%); }
dialog form { margin: 0; }
dialog textarea, dialog input:not([type=hidden]) { display: block; width: 100%; }
#action-error, #wizard-error { color: #902323; }
#iam-policy-text:not([hidden]) { display: block; }
