@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/uploads/omgf/et-builder-googlefonts-cached-231/lato-normal-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/uploads/omgf/et-builder-googlefonts-cached-231/lato-normal-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/wp-content/uploads/omgf/et-builder-googlefonts-cached-231/lato-normal-latin-900.woff2") format("woff2");
}

:root {
  color-scheme: light;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7faf4;
  color: #304527;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f7faf4;
}

a { color: #246c50; }

.app-header,
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.install-help {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid #557447;
  background: #fff;
  color: #304527;
  font: inherit;
}

.install-help::backdrop { background: rgb(22 45 32 / 55%); }
.install-help h2 { margin: 0 2rem .75rem 0; color: #246c50; font-size: 1.35rem; }
.install-help p { line-height: 1.55; }

.install-help-close {
  position: absolute;
  top: .5rem;
  right: .65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.7rem;
  cursor: pointer;
}

.install-help-ok {
  min-height: 2.5rem;
  padding: .45rem .85rem;
  border: 0;
  background: #007c5f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.app-header {
  min-height: 4rem;
  padding-top: max(.3rem, env(safe-area-inset-top));
  padding-bottom: .3rem;
  border-bottom: 1px solid #c9d5bf;
  background: #fff;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.app-brand img {
  display: block;
  width: clamp(8.5rem, 18vw, 12.8rem);
  height: auto;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.app-install {
  min-height: 2.35rem;
  padding: .4rem .75rem;
  border: 1px solid #557447;
  background: #92b87a;
  color: #24351e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.app-main {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.passwurzl-mark {
  display: block;
  width: 3.625rem;
  height: 3.625rem;
  object-fit: contain;
}
.app-heading h1 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.app-heading h2 {
  margin: .1rem 0 0;
  color: #304527;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.passwurzl-workspace {
  display: grid;
  grid-template-columns: minmax(18rem, .9fr) minmax(22rem, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.passwurzl-mode,
.passwurzl-options { margin: 0 0 1rem; }

.passwurzl-mode label,
.passwurzl-digit { background: #fff; }

.passwurzl-options {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr);
}

.passwurzl-options .passwurzl-digit {
  grid-column: 1 / -1;
  margin: 0;
}

.passwurzl-more,
.passwurzl-security { margin-top: 1rem; }

.passwurzl-more summary,
.passwurzl-security summary {
  cursor: pointer;
  font-weight: 700;
}

.passwurzl-separators { margin: 1rem 0 0; }
.passwurzl-result { margin-top: 0; }

.passwurzl-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.app-footer {
  min-height: 2.75rem;
  padding-top: .55rem;
  padding-bottom: max(.55rem, env(safe-area-inset-bottom));
  border-top: 1px solid #c9d5bf;
  background: #fff;
  font-size: .82rem;
}

.app-byline { white-space: nowrap; }
.app-byline > span { color: #d94f7c; }

@media (max-width: 47rem) {
  .app-brand img { width: 8.8rem; }
  .app-main { padding: .85rem 1rem; }
  .app-heading { margin-bottom: .6rem; }
  .passwurzl-mark { width: 3rem; height: 3rem; }
  .passwurzl-workspace { grid-template-columns: 1fr; gap: 1rem; }
  .passwurzl-mode { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .passwurzl-mode label { justify-content: center; padding: .6rem .45rem; }
  .passwurzl-options { align-items: center; grid-template-columns: auto 1fr; }
  .passwurzl-options select { width: 100%; }
  .passwurzl-buttons button { width: auto; }
  .passwurzl-security { margin-top: .5rem; }
  .app-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .15rem .75rem;
  }
  .app-footer #offline-status { grid-column: 1 / -1; }
}

@media (max-width: 23rem) {
  .app-brand img { width: 7.4rem; }
  .app-install { padding-inline: .5rem; }
  .passwurzl-buttons { grid-template-columns: 1fr; }
}
