/* The gate page is an ordinary scrolling page: with many stores, or a short window, the card's lower part (the last stores, Sign
   out, Open the console) must be reachable. The store page's one-window body is in store-page.css, which the gate never loads. */
body.hosted-shell {
  box-sizing: border-box;
  height: auto;
  min-height: 100dvh;
  margin: 0;
  overflow: visible;
  display: flow-root;
}
.hosted-gate {
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.hosted-gate .identity {
  margin-bottom: 32px;
}
.hosted-gate h1 {
  font-size: var(--text-2xl);
  margin-bottom: 16px;
}
.hosted-gate p {
  color: var(--fg-muted);
  line-height: 1.6;
}
.hosted-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
#hosted-view {
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}
#hosted-view iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  color-scheme: light dark;
}
.hosted-shell [hidden] {
  display: none !important;
}
@media (max-width: 540px) {
  .hosted-actions .px-btn {
    min-height: var(--control-h);
  }
}
#hosted-stores {
  margin-top: 20px;
}
.hosted-stores {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hosted-stores li + li {
  border-top: 1px solid var(--line);
}
.hosted-store {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  color: var(--fg);
  text-decoration: none;
}
.hosted-store:hover {
  background: var(--surface-2);
}
.hosted-store:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.hosted-store-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.hosted-store-name {
  font-size: var(--text-lg);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hosted-store-detail {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.5;
}
.hosted-store-detail > span {
  white-space: nowrap;
}
.hosted-gate .hosted-stores-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.hosted-gate .hosted-stores-note[role="alert"] {
  color: var(--fg);
}
@media (max-width: 540px) {
  .hosted-store {
    padding: 14px;
  }
}
/* The gate's actions are one button shape at the shared height, links included: all outlined alike, the one that moves
   you on (Sign in, Try again) filled. */
.hosted-actions .px-btn {
  box-sizing: border-box;
  height: var(--control-h);
  min-height: var(--control-h);
  padding: 0 14px;
  font-size: var(--text-md);
  line-height: 1;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}
.hosted-actions .px-btn:not(.px-btn-primary):hover:not(:disabled) {
  background: var(--surface-2);
}
/* The workbench's fit-the-window layout (main as a full-height column, full width) does not apply to the sign-in gate:
   it is one centred card, as tall as what it says, and the same width from "Checking sign-in…" to the store list so it
   never jumps when the stores arrive. */
.hosted-shell .hosted-gate {
  flex: none;
  display: block;
  width: min(100% - 48px, 680px);
  max-width: none;
  height: auto;
  min-height: 0;
  margin: clamp(48px, 14vh, 160px) auto;
  padding: 32px;
}
@media (max-width: 540px) {
  .hosted-shell .hosted-gate {
    width: calc(100% - 32px);
    margin: 40px auto;
    padding: 24px;
  }
}
