html:has(body.compare-app),
body.compare-app {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body.compare-app {
  display: flex;
  flex-direction: column;
  background: #fff;
  background-image: none;
}

.compare-app .staging-banner,
.compare-site-header {
  flex: 0 0 auto;
}

.compare-site-header {
  z-index: 100;
  padding: 10px 0;
}

.compare-site-header .wrap {
  width: 100%;
  max-width: 1440px;
  padding-inline: 20px;
}

.compare-site-header .brand-row {
  flex-wrap: nowrap;
}

.compare-header-start {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.compare-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.compare-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 14px/1 var(--font-display);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.compare-back:hover {
  border-color: rgba(16, 26, 51, 0.28);
  background: var(--paper);
  transform: translateX(-2px);
}

.compare-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
  background: #fff;
}

.compare-workspace {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.compare-workspace .powerhq-embed-shell {
  width: 100%;
  min-height: 0;
  height: 100%;
  contain: layout;
}

.compare-workspace #powerhq-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
}

.compare-site-header a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.78em;
}

@media (max-width: 820px) {
  .compare-site-header .brand {
    font-size: 18px;
  }

}

@media (max-width: 640px) {
  .compare-site-header {
    padding: 8px 0;
  }

  .compare-site-header .wrap {
    padding-inline: 12px;
  }

  .compare-header-start {
    gap: 10px;
  }

  .compare-back {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .compare-site-header .brand {
    gap: 6px;
    font-size: 16px;
  }

  .compare-site-header .brand .bolt {
    font-size: 19px;
  }

  .compare-site-header .brand .star {
    font-size: 10px;
  }

}

@media (max-width: 380px) {
  .compare-site-header .brand {
    font-size: 0;
  }

  .compare-site-header .brand .bolt {
    font-size: 21px;
  }

  .compare-site-header .brand .star {
    display: none;
  }

  .compare-header-actions .compare-enrolled-nav {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-back {
    transition: none;
  }
}
