main.sz1-main {
  padding-top: 0;
  min-width: 0;
}
main.sz1-main > .sz1 {
  width: min(100%, 52rem);
  max-width: 52rem;
  margin-inline: auto;
}
.sz1 {
  --sz-border: #d8d3c7;
  --sz-muted: #535061;
  --sz-paper: #fffdf7;
  --sz-accent: #30305e;
  --sz-text: #212033;
  color: var(--ink, var(--sz-text));
  padding: .15rem 0 1rem;
  overflow-wrap: anywhere;
}
.sz1 [hidden] { display: none !important; }
main .sz1 h1,
main.tool-page .sz1 h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}
main .sz1 p { margin: .25rem 0; }
.sz1 .sz1-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .25rem 0 0;
  margin: 0;
  color: var(--ink, var(--sz-text));
}
.sz1-language {
  display: flex;
  justify-content: flex-end;
  gap: 0 .65rem;
  flex-wrap: wrap;
}
.sz1-language a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink, var(--sz-text));
}
.sz1-language [aria-current] { font-weight: 700; }
.sz1-intro { color: var(--muted, var(--sz-muted)); }
.sz1 form, .sz1-result {
  box-sizing: border-box;
  min-width: 0;
  background: var(--sz-paper);
  color: var(--sz-text);
  border: 1px solid var(--sz-border);
  border-radius: .75rem;
  padding: .75rem;
  margin: .75rem 0 0;
}
.sz1-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .3rem;
}
.sz1 button {
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--sz-border);
  border-radius: .45rem;
  background: #fff;
  color: var(--sz-text);
  font: inherit;
  line-height: 1.15;
  padding: .25rem;
  width: 100%;
  white-space: normal;
  cursor: pointer;
}
.sz1 .sz1-types button {
  background: #fff !important;
  border-color: var(--sz-border) !important;
  color: var(--sz-text) !important;
  font-size: .8em;
  padding-inline: .16rem;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.sz1 .sz1-types button[aria-pressed="true"] {
  border-color: var(--sz-accent) !important;
  background: #eeedf9 !important;
  color: #262350 !important;
  font-weight: 700;
}
@media (max-width: 450px) {
  html[lang="en"] .sz1 .sz1-types button { font-size: .76rem; }
}
main .sz1 #sz1-help {
  margin: .55rem 0 .35rem;
  color: var(--sz-muted);
  font-size: .9em;
}
.sz1 label {
  display: block;
  margin-bottom: .18rem;
  font-weight: 650;
}
.sz1 #sz1-raw {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .4rem .6rem;
  border: 1px solid #797586;
  border-radius: .45rem;
  background: #fff;
  color: var(--sz-text);
  font: inherit;
  font-size: max(16px, 1em);
}
.sz1 #sz1-raw[aria-invalid="true"] { border-color: #a42f29; }
.sz1-error { color: #a42f29; font-size: .92em; }
main .sz1 #sz1-error:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.sz1 form .sz1-preview { min-height: 1.4em; }
.sz1-preview { color: var(--sz-muted); font-size: .92em; }
.sz1-preview:not(.has-digits) .sz1-preview-label,
.sz1-preview.has-digits .sz1-preview-empty { display: none; }
.sz1-preview bdi:not(:empty) { margin-inline-start: .25rem; font-weight: 700; }
.sz1 #sz1-calculate {
  margin-top: .48rem;
  background: var(--sz-accent);
  border-color: var(--sz-accent);
  color: #fff;
  font-weight: 700;
}
.sz1 #sz1-calculate:disabled { opacity: .65; cursor: default; }
.sz1 :focus-visible { outline: 2px solid #5b4aa3; outline-offset: 3px; }
main .sz1 .sz1-result h2 {
  font-size: 1.15em;
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.sz1-result h2 strong { font-size: 1.35em; }
.sz1-label {
  display: inline-block;
  padding: .2rem .65rem;
  border: 1px solid var(--sz-border);
  border-radius: .4rem;
  background: #f0edf3;
  color: var(--sz-text);
  font-weight: 700;
}
.sz1-small { color: var(--sz-muted); font-size: .83em; }
.sz1 .sz1-privacy { color: var(--muted, var(--sz-muted)); }
body:has(.sz1-main) .vf-theme-hint {
  position: static;
  margin: .5rem auto;
}
.sz1-faq { margin-top: .9rem; }
main .sz1 .sz1-faq h2 { font-size: 1.15em; margin: 0 0 .25rem; }
.sz1-faq details { border-top: 1px solid var(--sz-border); }
.sz1-faq summary {
  box-sizing: border-box;
  min-height: 44px;
  display: list-item;
  align-content: center;
  cursor: pointer;
}
main .sz1 .sz1-faq details p { margin: 0 0 .65rem; }

.sz1-star-result { border-top: 1px solid var(--sz-border); margin-top: .65rem; padding-top: .65rem; }
.sz1 .sz1-star-result ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.1rem, 1fr)); gap: .3rem .6rem; padding: 0; list-style: none; }
.sz1 .sz1-star-result ul[hidden] { display: none; }
.sz1-star-result li { min-width: 0; overflow-wrap: anywhere; }
.sz1-star-result bdi { font-variant-numeric: tabular-nums; font-weight: 700; }
.sz1-star-info summary { min-height: 44px; align-content: center; cursor: pointer; }
.sz1-star-info dt { font-weight: 700; }
.sz1-star-info dd { margin: 0 0 .5rem; }
.sz1 .sz1-source a { display: inline-block; min-height: 44px; align-content: center; }
