/* Happy Valley Ops portal. Light, professional, phone first. */
:root {
  --bg: #f4f6f9; --panel: #fff; --raised: #f1f4f8; --hover: #e7ecf2;
  --line: #e2e7ee; --line-strong: #cfd6e0;
  --text: #111827; --dim: #4b5563; --faint: #6b7280;
  --accent: #1f5fbf; --accent-hover: #1a4fa0; --navy: #0f1b33;
  --danger: #b42318; --ok: #1e8e3e;
  --r: 14px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 17px; font-weight: 650; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.boot { padding: 30vh 20px; text-align: center; color: var(--faint); }
svg { width: 20px; height: 20px; flex: none; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--dim); }
.btn.ghost:hover { background: var(--raised); }
.btn.sm { min-height: 36px; padding: 0 10px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.si-google { border: 1px solid var(--line-strong); }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; font-size: 16px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,95,191,.15); }
.si-code { letter-spacing: .3em; font-size: 22px; text-align: center; }
.warnbox { border-radius: 11px; padding: 10px 12px; background: #fdecea; border: 1px solid #f5c2c0; color: #8a1c1c; font-size: 14px; }
.si-err:empty { display: none; }
.si-err { color: var(--danger); font-size: 14px; }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.si-note { text-align: center; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--raised); color: var(--dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg,#94a3b8,#64748b); color: #fff; font-weight: 650; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.card.pad { padding: 18px; }
.empty { text-align: center; display: grid; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--text); color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgba(16,24,40,.18); z-index: 50; }
.toast.err { background: var(--danger); }

/* logos: most are light-on-dark, so they sit on a dark tile */
.logo-tile { display: inline-grid; place-items: center; height: 56px; min-width: 84px; padding: 8px 12px; border-radius: 12px; background: #1f2937; }
.logo-tile img { max-height: 40px; max-width: 130px; object-fit: contain; display: block; }
.logo-tile.lg { height: 72px; min-width: 110px; } .logo-tile.lg img { max-height: 54px; max-width: 170px; }
.logowall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.logowall span { height: 62px; border-radius: 12px; display: grid; place-items: center; padding: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.logowall img { max-width: 100%; max-height: 42px; object-fit: contain; display: block; }

/* sign in */
.si { min-height: 100dvh; display: flex; flex-direction: column; }
.si-brand { background: linear-gradient(160deg, var(--navy), #1f2f52); color: #fff; padding: calc(28px + var(--safe-t)) 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.si-brand .eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #c7d2fe; font-weight: 600; }
.si-brand h1 { font-size: 26px; max-width: 520px; }
.si-brand-note { color: #c7cfdc; font-size: 14px; max-width: 460px; }
.si-form { flex: 1; display: grid; place-items: start center; padding: 26px 20px calc(30px + var(--safe-b)); }
.si-in { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.si-in h2 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.testpick { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.testpick summary { cursor: pointer; color: var(--dim); font-size: 14px; font-weight: 600; }
.testpick .list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 10px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: inherit; }
.item:first-child { border-top: 0; }
.item:hover { background: var(--raised); }
.item b { display: block; font-size: 15px; } .item small { display: block; color: var(--faint); font-size: 13px; }
.item svg { color: var(--faint); }
@media (min-width: 900px) {
  .si { flex-direction: row; }
  .si-brand { flex: 1.1; justify-content: center; padding: 64px 56px; gap: 28px; }
  .si-brand h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
  .logowall span { height: 96px; } .logowall img { max-height: 64px; }
  .si-form { flex: 1; place-items: center; padding: 40px; }
}

/* shell */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { color: var(--text); font-size: 16px; letter-spacing: -.01em; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.page { max-width: 1100px; margin: 0 auto; padding: 22px 16px calc(40px + var(--safe-b)); display: grid; gap: 18px; }
.page-head { display: grid; gap: 4px; }
.section-h { margin-top: 6px; }
@media (max-width: 520px) { .hide-sm, .who-name { display: none; } }

/* venue picker */
.vgroup { display: grid; gap: 10px; }
.vgroup-h { font-size: 15px; color: var(--text); padding-left: 10px; border-left: 3px solid var(--line-strong); }
.vgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 16px; border-radius: 16px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-top: 4px solid var(--vc); box-shadow: 0 1px 3px rgba(16,24,40,.06); transition: box-shadow .15s, border-color .15s; }
.vcard:hover { box-shadow: 0 6px 18px rgba(16,24,40,.09); border-color: var(--line-strong); border-top-color: var(--vc); }
.vcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vcard-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.vcard-tools { margin-top: 3px; font-size: 14px; color: var(--dim); }
.vcard-go { position: absolute; right: 14px; bottom: 16px; color: var(--faint); }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } .page { padding: 32px 28px 48px; gap: 22px; } h1 { font-size: 34px; } }

/* toolbox */
.vband { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--vc); box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.vband h1 { font-size: 24px; }
.tgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tcard { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.tcard:hover { border-color: var(--accent); }
.tcard b { display: block; font-size: 16px; } .tcard small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.tcard > svg { color: var(--faint); }
.tcard-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf1fb; color: var(--accent); flex: none; }
.tcard-ic svg { width: 22px; height: 22px; }
@media (min-width: 700px) { .tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; } .tcard { min-height: 92px; } .vband h1 { font-size: 30px; } }
