.firebase-login { display:grid; gap:.65rem; color:inherit; }
.firebase-login label:not(.firebase-remember) { display:grid; gap:.25rem; font-weight:650; }
.firebase-login input[type=email], .firebase-login input[type=password] {
  width:100%; min-width:0; padding:.65rem; border:1px solid #9fb6d4; border-radius:.65rem; color:#142443; background:#fff;
}
.firebase-login form { display:grid; gap:.65rem; margin-top:.75rem; }
.firebase-login button { cursor:pointer; padding:.6rem .8rem; border:1px solid #718fc0; border-radius:.65rem; color:#163160; background:#e9f3ff; font-weight:750; }
.firebase-login button:disabled { cursor:wait; opacity:.7; }
.firebase-login .firebase-google, .firebase-email summary {
  min-height:46px; width:100%; display:flex; justify-content:center; align-items:center; gap:10px;
}
.firebase-login .firebase-google {
  background:#fff; color:#1f1f1f; border-color:#747775; padding:10px 12px;
  font:500 .94rem/1.35 "Google Sans", system-ui, sans-serif;
}
.firebase-google img { width:18px; height:18px; object-fit:contain; flex:none; }
.firebase-login .firebase-microsoft {
  min-height:46px; width:100%; display:flex; justify-content:center; align-items:center; gap:10px;
  background:#fff; color:#5e5e5e; border-color:#8c8c8c; padding:10px 12px;
  font:600 .94rem/1.35 "Segoe UI", system-ui, sans-serif;
}
.firebase-microsoft img { width:18px; height:18px; object-fit:contain; flex:none; }
.firebase-login .firebase-microsoft:hover:not(:disabled) { background:#f3f3f3; }
.firebase-login .firebase-google:hover:not(:disabled) { background:#f7f8f8; }
.firebase-divider { display:flex; align-items:center; gap:12px; color:#506782; font-size:.85rem; }
.firebase-divider::before, .firebase-divider::after { content:""; height:1px; background:#ceddeb; flex:1; }
.firebase-email summary {
  box-sizing:border-box; list-style:none; padding:9px 12px; border:1px solid #9cbde1; border-radius:.65rem;
  background:#f6faff; color:#152f55; cursor:pointer; font-weight:700; text-align:center;
}
.firebase-email summary:hover, .firebase-email[open] summary { background:#eaf4ff; }
.firebase-email summary::-webkit-details-marker { display:none; }
.firebase-email summary svg { flex:none; color:#265c9c; }
.firebase-preference { display:grid; gap:.2rem; margin-top:.35rem; }
.firebase-login .firebase-remember { display:flex; align-items:center; gap:.5rem; margin:0; font-size:.91rem; font-weight:650; }
.firebase-remember input { width:1rem; height:1rem; flex:none; accent-color:#1459a2; }
.firebase-login small { display:block; margin-left:1.55rem; color:#49617b; font-size:.81rem; line-height:1.5; }
.firebase-login .firebase-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.firebase-login [hidden] { display:none; }
.firebase-login p { margin:0; }
.firebase-login p:empty { display:none; }
.firebase-login .firebase-error { color:#a0123c; font-weight:650; }
.firebase-login :focus-visible, .welcome-actions :focus-visible, .welcome-auth-close:focus-visible {
  outline:3px solid #1d68b1; outline-offset:3px;
}

/* Signed-out homepage */
body.welcome-mode { background:#f1f8fd; }
.welcome-mode .app-shell { max-width:none; padding:0; }
.welcome-mode .app-shell .top-navbar {
  border:0; border-radius:0; margin:0; padding:12px clamp(18px,3.6vw,60px); box-shadow:none; background:#081f48;
}
.welcome-mode .brand-cluster h1 { font-size:clamp(1.42rem,2.9vw,2.65rem); }
.welcome-hero {
  position:relative; isolation:isolate; display:flex; align-items:center; min-height:clamp(450px,39vw,640px);
  overflow:hidden; background:linear-gradient(105deg,#f3faff 4%,#e2f2fc 52%,#b9e0f7 100%);
}
.welcome-copy { position:relative; z-index:1; width:min(52%,700px); padding:clamp(36px,5vw,84px) 0 clamp(40px,5vw,84px) clamp(20px,4.2vw,76px); }
.welcome-copy h2 { margin:0; color:#081d46; font-size:clamp(2.75rem,6.1vw,6.8rem); line-height:.99; letter-spacing:-.055em; font-weight:900; }
.welcome-copy p { max-width:32rem; margin:1.3rem 0 1.6rem; color:#243f64; font-size:clamp(1rem,1.6vw,1.45rem); line-height:1.45; }
.welcome-actions { display:flex; align-items:center; gap:.9rem 1.35rem; flex-wrap:wrap; }
.welcome-actions .welcome-sign-in {
  color:white; background:#092859; border:1px solid #092859; border-radius:13px; box-shadow:none;
  min-height:48px; padding:.65rem 1.2rem; font-size:1.02rem;
}
.welcome-actions .welcome-sign-in:hover { background:#16417c; }
.welcome-actions a { color:#0d3160; font-weight:750; text-underline-offset:.22em; }
.welcome-mountain {
  position:absolute; right:0; bottom:0; width:min(68%,1120px); height:auto; pointer-events:none;
}
.welcome-steps {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:clamp(16px,2.6vw,42px) clamp(12px,3vw,55px);
  border-bottom:1px solid #d9eaf5; background:#f9fcff;
}
.welcome-step { display:flex; align-items:center; justify-content:center; gap:clamp(10px,2vw,26px); padding:.55rem .75rem; }
.welcome-step + .welcome-step { border-left:1px solid #a7c9e7; }
.welcome-step svg { width:clamp(33px,4.1vw,62px); flex:none; color:#9b5e00; }
.welcome-step h3 { margin:0; font-size:clamp(1rem,2vw,1.8rem); color:#081d46; line-height:1.15; }
.welcome-step p { margin:.25rem 0 0; font-size:.86rem; color:#3e5978; line-height:1.4; }
.welcome-mode .site-information { margin:0; border:0; border-radius:0; box-shadow:none; padding:1.1rem clamp(18px,4.2vw,76px); background:#f1f8fd; }
.welcome-mode .site-information-heading p { color:#385271; }
.welcome-mode .information-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.welcome-mode .information-grid details:not([open]) { border-color:transparent; background:transparent; }
.welcome-mode .information-grid details[open] { grid-column:1/-1; }

/* Homepage sign-in dialog */
#googleAuthModal { background:rgba(7,26,59,.54); backdrop-filter:blur(5px); padding:16px; }
#googleAuthModal .welcome-auth-card {
  position:relative; width:min(100%,760px); max-width:none; max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px); overflow:auto; display:grid; grid-template-columns:32% minmax(0,1fr);
  gap:0; padding:0; border:1px solid #d5e4f2; border-radius:24px; background:#fff; box-shadow:0 20px 60px #091e4a66;
}
.welcome-auth-art {
  display:flex; flex-direction:column; justify-content:space-between; overflow:hidden;
  background:radial-gradient(ellipse at 10% 6%,#1c497b,#0a1f49 70%); color:#a9e1ff;
}
.welcome-auth-art div { display:grid; justify-items:center; padding:clamp(25px,4vw,54px) 10px 12px; text-align:center; }
.welcome-auth-art .climb-mark { width:70px; height:auto; margin-bottom:12px; }
.welcome-auth-art strong { font-size:clamp(1.45rem,3vw,2.2rem); font-weight:900; line-height:1.02; }
.welcome-auth-art img { width:155%; max-width:none; height:auto; margin-left:-55%; }
.welcome-auth-content { position:relative; padding:clamp(24px,3.1vw,46px); }
.welcome-auth-content h2 { margin:0 30px .4rem 0; color:#0b2146; font-size:clamp(1.6rem,3vw,2.4rem); line-height:1.08; letter-spacing:-.035em; }
.welcome-auth-content > p { color:#3d5574; margin:0 0 1.35rem; line-height:1.5; }
.welcome-auth-close {
  position:absolute; inset:10px 10px auto auto; display:grid; place-items:center; width:44px; height:44px; border:0;
  border-radius:50%; background:transparent; color:#314b69; cursor:pointer;
}
.welcome-auth-close:hover { background:#edf6ff; }
.welcome-auth-close svg { width:22px; height:22px; }
@media (max-width:760px) {
  .welcome-mode .app-shell .top-navbar { gap:8px; }
  .welcome-mode .toolbar-cluster { width:auto; justify-content:flex-end; }
  .welcome-mode .top-navbar .btn { min-height:40px; padding:.4rem .65rem; font-size:.84rem; }
  .welcome-hero { display:grid; min-height:auto; }
  .welcome-copy { width:auto; padding:2.25rem clamp(18px,6vw,44px) 0; }
  .welcome-copy h2 { font-size:clamp(2.65rem,9.8vw,4.2rem); }
  .welcome-copy p { margin:1rem 0 1.15rem; }
  .welcome-mountain { position:relative; width:min(100%,570px); justify-self:end; margin-top:-1rem; z-index:-1; }
  .welcome-mode .information-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .welcome-step { align-items:flex-start; justify-content:flex-start; }
  .welcome-step svg { width:31px; }
}
@media (max-width:540px) {
  .welcome-steps { grid-template-columns:1fr; padding:10px 22px; }
  .welcome-step { padding:.8rem 0; align-items:center; }
  .welcome-step + .welcome-step { border-left:0; border-top:1px solid #d4e5f2; }
  #googleAuthModal .welcome-auth-card { grid-template-columns:minmax(0,1fr); }
  .welcome-auth-art { display:none; }
  .welcome-auth-content { padding:32px 20px 24px; }
}
@media (max-width:760px) {
  #googleAuthModal .welcome-auth-card { padding:0!important; }
}
@media (max-width:420px) {
  .welcome-mode .app-shell .top-navbar { flex-wrap:wrap; }
  .welcome-mode .top-navbar .brand-cluster .climb-mark { width:44px; height:auto; }
  .welcome-mode .toolbar-cluster { margin-left:auto; }
}
