/* Culmen app · shared styles (Night Summit) */
:root {
  --bg: #06140b; --raised: #0b2112; --deep: #030d07; --field: #17512b;
  --green: #237a3a; --green-press: #1b6630; --signal: #4fcf74;
  --snow: #eef5f0; --mint: #b7d2bf; --mint-dim: #8fb09a;
  --line: rgba(238,245,240,.12); --line-strong: rgba(238,245,240,.24);
  --warn: #e8c27a; --alert: #ff9b8a; --serif: Besley, Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--snow); min-height: 100vh; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--signal); }
[hidden] { display: none !important; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background:
  radial-gradient(1200px 500px at 50% -10%, rgba(35,122,58,.35), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-logo img { height: 34px; }
.auth-logo { justify-content: center; }
.auth-logo img.full { height: auto; width: 168px; max-width: 50vw; }
.auth-logo b { font-weight: 800; letter-spacing: .22em; font-size: .86rem; }
.panel { background: var(--raised); border: 1px solid var(--line); padding: 26px 22px; }
.lbl { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-dim); }
h1 { font-family: var(--serif); font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 6px; }
.sub { color: var(--mint); font-size: .92rem; margin-bottom: 18px; }
label.f { display: block; margin-top: 14px; }
label.f > span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-dim); margin-bottom: 6px; }
.box { width: 100%; background: var(--deep); border: 1px solid var(--line-strong); padding: 12px 13px; font-size: 1rem; color: var(--snow); outline: none; border-radius: 0; }
.box:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(79,207,116,.18); }
.box.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.btn { display: block; width: 100%; margin-top: 18px; background: var(--green); color: #fff; border-radius: 999px; padding: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.btn:hover { background: var(--green-press); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--snow); }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: .86rem; }
.links button, .linkish { color: var(--signal); font-weight: 600; font-size: .86rem; }
.msg { margin-top: 14px; font-size: .88rem; padding: 10px 12px; border-left: 3px solid var(--alert); background: rgba(255,155,138,.08); color: var(--snow); }
.msg.ok { border-left-color: var(--signal); background: rgba(79,207,116,.08); }
.hint { font-size: .8rem; color: var(--mint-dim); margin-top: 6px; }
.qrbox { background: #fff; padding: 12px; width: 220px; max-width: 70vw; margin: 14px auto 6px; }
.qrbox svg { display: block; width: 100%; height: auto; }
.keybox { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; background: var(--deep); border: 1px dashed var(--line-strong); padding: 12px; text-align: center; word-break: break-all; margin-top: 8px; }
.steps { margin: 10px 0 0 18px; font-size: .9rem; color: var(--mint); line-height: 1.7; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: .98rem; background: var(--deep); border: 1px solid var(--line-strong); padding: 14px; margin-top: 12px; }
.foot { text-align: center; color: var(--mint-dim); font-size: .76rem; margin-top: 18px; }
.foot a { color: var(--mint); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .88rem; color: var(--mint); }
.check input { accent-color: var(--signal); width: 18px; height: 18px; margin-top: 2px; }

/* ---- app pages (profile and onward) ---- */
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 0 20px 48px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.topbar a { font-size: .86rem; font-weight: 600; text-decoration: none; }
.topbar img { height: 28px; display: block; }
.hero { height: 190px; margin: 0 -20px; position: relative; background: url(img/sport-volleyball.jpg) 40% 55%/cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,11,.2), var(--bg) 96%); }
.avatar { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; border: 4px solid var(--bg); outline: 2px solid var(--green); margin-top: -60px; position: relative; z-index: 1;
  background: var(--mint); color: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 2.2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pname { font-family: var(--serif); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; margin-top: 12px; line-height: 1.1; }
.psub { color: var(--mint); font-size: .92rem; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.facts div { padding: 12px 14px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts b { display: block; font-size: 1.02rem; font-weight: 600; margin-top: 5px; }
.facts .empty { color: var(--mint-dim); font-weight: 400; }
.lock { font-size: .78rem; color: var(--mint-dim); margin-top: 8px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(3,13,7,.72); z-index: 20; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; z-index: 21;
  background: var(--raised); border-top: 1px solid var(--line-strong); padding: 22px 20px 30px; }
.sheet h2 { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }
.photo-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.photo-row .avatar { width: 72px; height: 72px; margin: 0; font-size: 1.5rem; border-width: 2px; }
.photo-row .btn { width: auto; margin: 0; padding: 9px 16px; font-size: .88rem; }
select.box { appearance: auto; }
