/* Purple Prospect app only: the sign-in page and the map's top-left menu. Everything else (the map, sheet, chips,
   buttons, colors) is the dashboard's css/site.css, linked into this app. */
body.app-page {
  margin: 0; min-height: 100dvh; background: var(--purple-900); color: var(--text);
  padding: calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 24px);
  box-sizing: border-box; display: grid; place-items: center;
}
.app-signin {
  width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 24px 20px; box-sizing: border-box;
  background: var(--card); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); text-align: center;
}
.app-signin h1 { margin: 0; font-size: 24px; color: var(--purple-900); }
.app-signin p { margin: 0; }
.app-logo { justify-self: center; border-radius: 16px; }
.app-form { display: grid; gap: 12px; text-align: left; }
.app-form input { font-size: 18px; }
.app-form .button { width: 100%; }
.app-microsoft { width: 100%; box-sizing: border-box; gap: 10px; background: #fff; color: #5e5e5e; border: 1px solid #8c8c8c; }
.app-signin .app-microsoft + p { margin-top: -8px; }
.app-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.app-or::before, .app-or::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .4; }
.app-pin { text-align: left; display: grid; gap: 12px; }
.app-pin summary { cursor: pointer; color: var(--purple-700); font-weight: 600; font-size: 14px; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; }
.app-pin[open] { gap: 12px; }
.app-pin[open] summary { margin-bottom: 4px; }
.app-install { text-align: left; display: grid; gap: 8px; }
.app-install[hidden] { display: none; }
.app-install svg { vertical-align: -3px; }

.app-menu {
  position: absolute; z-index: 6; left: var(--safe-left); top: calc(env(safe-area-inset-top) + 66px);
  width: min(320px, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px; box-sizing: border-box;
  background: var(--card); color: var(--text); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.app-menu[hidden] { display: none; }
.app-menu form, .app-menu .button { margin: 0; width: 100%; }
