:root {
  --wizard-ink: #182136;
  --wizard-paper: #f5f1e8;
  --wizard-orange: #d66022;
  --wizard-teal: #287d73;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
}

body.stand-wizard-host {
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--wizard-ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 6% 4%, rgba(214, 96, 34, .15), transparent 29rem),
    radial-gradient(circle at 94% 7%, rgba(40, 125, 115, .15), transparent 31rem),
    linear-gradient(135deg, rgba(255,255,255,.48), transparent 55%),
    var(--wizard-paper);
}

.stand-wizard-hostbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(1540px, calc(100% - 28px));
  margin: 14px auto;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 54px rgba(24,33,54,.12);
  backdrop-filter: blur(18px);
}

.stand-wizard-brand { display: inline-flex; gap: 11px; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.stand-wizard-brandmark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#172033,#2d5670 58%,#d66022); font-size: .72rem; font-weight: 900; letter-spacing: .05em; box-shadow: 0 10px 24px rgba(24,33,54,.2); }
.stand-wizard-brand strong, .stand-wizard-brand small { display: block; }
.stand-wizard-brand strong { font-family: "Playfair Display",serif; font-size: 1.1rem; }
.stand-wizard-brand small { margin-top: 2px; color: #697287; font-size: .66rem; }
.stand-wizard-hostbar nav { display: flex; gap: 8px; }
.stand-wizard-hostbar nav a,
.stand-app-menu > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid rgba(24,33,54,.1); border-radius: 999px; color: var(--wizard-ink); background: rgba(255,255,255,.82); font-size: .72rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.stand-wizard-hostbar nav .stand-app-menu + .stand-wizard-link { border-color: transparent; background: transparent; }
.stand-wizard-hostbar nav .stand-wizard-button { border-color: transparent; color: #fff; background: linear-gradient(135deg,#e46b2b,#d28a5f); box-shadow: 0 10px 24px rgba(214,96,34,.2); }
.stand-app-menu { position: relative; }
.stand-app-menu > summary { list-style: none; }
.stand-app-menu > summary::-webkit-details-marker { display: none; }
.stand-app-menu > summary::after { content: "⌄"; margin-left: 7px; font-size: .82rem; }
.stand-app-menu[open] > summary { border-color: rgba(214,96,34,.32); background: #fff4ea; }
.stand-application-deck { position: absolute; z-index: 40; top: calc(100% + 12px); right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: min(720px,calc(100vw - 28px)); max-height: min(70vh,520px); padding: 12px; overflow: auto; border: 1px solid rgba(24,33,54,.1); border-radius: 22px; background: rgba(248,245,239,.98); box-shadow: 0 24px 70px rgba(24,33,54,.2); backdrop-filter: blur(18px); }
.stand-application-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 72px; padding: 10px 12px; border: 1px solid rgba(24,33,54,.1); border-radius: 18px; color: var(--wizard-ink); background: rgba(255,255,255,.78); text-decoration: none; box-shadow: 0 10px 28px rgba(24,33,54,.08); }
.stand-application-card.is-available:hover { transform: translateY(-2px); border-color: rgba(214,96,34,.35); }
.stand-application-card.is-unavailable { opacity: .58; }
.stand-application-card strong,.stand-application-card small { display: block; }
.stand-application-card small { margin-top: 3px; color: #697287; font-size: .62rem; line-height: 1.25; }
.stand-application-card em { color: var(--wizard-teal); font-size: .62rem; font-style: normal; font-weight: 900; }
.stand-application-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#172033,#2d5670 58%,#d66022); font-size: .68rem; font-weight: 900; }
.stand-wizard-frame-shell { width: min(1540px, calc(100% - 28px)); height: calc(100dvh - 102px); min-height: 480px; margin: 0 auto; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.stand-wizard-frame { width: 100%; height: 100%; border: 0; background: transparent; }
.stand-wizard-unavailable { display: grid; place-content: center; height: 100%; padding: 24px; text-align: center; color: #697287; }
.stand-wizard-unavailable strong { color: var(--wizard-ink); }

@media (max-width: 720px) {
  .stand-wizard-hostbar { top: auto; gap: 8px; width: calc(100% - 12px); margin: 6px auto; padding: 8px; }
  .stand-wizard-brandmark { width: 42px; height: 42px; border-radius: 14px; }
  .stand-wizard-brand small, .stand-wizard-hostbar nav .stand-app-menu + .stand-wizard-link { display: none; }
  .stand-wizard-hostbar nav { margin-left: auto; }
  .stand-wizard-hostbar nav a,
  .stand-app-menu > summary { min-height: 38px; padding: 0 10px; font-size: .61rem; }
  .stand-app-menu > summary { font-size: 0; }
  .stand-app-menu > summary::before { content: "Apps"; font-size: .61rem; }
  .stand-application-deck { position: fixed; top: 70px; right: 6px; left: 6px; grid-template-columns: 1fr; width: auto; max-height: calc(100dvh - 82px); }
  .stand-application-card { min-height: 62px; }
  .stand-wizard-frame-shell { width: 100%; height: calc(100dvh - 76px); min-height: 420px; margin-bottom: 0; border-radius: 0; }
}
.stand-google-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(21, 35, 57, 0.14);
  border-radius: 999px;
  color: #172033;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  text-decoration: none;
}

.stand-google-button img {
  height: 20px;
  width: 20px;
}

@media (max-width: 720px) {
  .stand-google-button span {
    display: none;
  }

  .stand-google-button {
    justify-content: center;
    padding-inline: 11px;
  }
}
