/* External version: entrance, first-run steps and account box (uses the site's own colours and type) */
.boot { min-height: 60vh; display: grid; place-content: center; text-align: center; color: var(--ink-2); font-family: var(--f-ui); }
.gate { max-width: 980px; margin: 0 auto; padding: 40px 16px 60px; font-family: var(--f-ui); color: var(--ink); }
.gate-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.gate-head h1 { font-family: var(--f-head); font-size: var(--t-3xl); margin: 0; line-height: 1.2; }
.gate-mark .brand-mark { width: 54px; height: 54px; color: var(--primary); }
.gate-tag { margin: 4px 0 0; color: var(--ink-2); }
.gate-lang { margin-inline-start: auto; }
.gate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.gate-card h2 { margin: 0 0 6px; font-family: var(--f-head); font-size: var(--t-xl); }
.gate-card h3 { margin: 14px 0 8px; font-size: var(--t-md); }
.gate-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0 6px; }
.gate-grant { border-top: 4px solid var(--accent); }
.gate-free { border-top: 4px solid var(--primary); }
.gate-row { display: flex; gap: 8px; margin-top: 10px; }
.gate-row .input { flex: 1; min-width: 0; }
.gate-col { display: grid; gap: 10px; max-width: 420px; margin-top: 12px; }
.gate-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.gate-msg { min-height: 1.4em; margin-top: 6px; color: var(--bad); font-size: var(--t-sm); }
.gate-login { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.gate-login summary { cursor: pointer; color: var(--ink-2); }
.gate-note { margin-top: 18px; }
.gate .input, .cl-form .input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; }
@media (max-width: 760px) { .gate-cards { grid-template-columns: 1fr; } .gate-head h1 { font-size: var(--t-2xl); } .gate-row { flex-wrap: wrap; } .gate-row .btn { flex: 1; } }

.cl-account { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cl-me { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.cl-who { display: grid; min-width: 0; }
.cl-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.cl-initial { display: inline-grid; place-content: center; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.cl-meter { height: 5px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.cl-meter i { display: block; height: 100%; background: var(--primary); }
.cl-links { gap: 6px; flex-wrap: wrap; }
.cl-links .count { margin-inline-start: 4px; background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 6px; font-size: var(--t-xs); }
.cl-form { display: grid; gap: 14px; }
.cl-field { display: grid; gap: 6px; }
.cl-label { font-weight: 600; }
.cl-photo-row { display: flex; gap: 16px; align-items: center; }
.cl-pic .cl-avatar { width: 96px; height: 96px; }
.cl-msg { min-height: 1.3em; color: var(--bad); }
.cl-step { margin-bottom: 18px; }
/* first-run steps: only the page itself, without the study navigation */
body.cl-onboarding .rail .nav, body.cl-onboarding .rail .rail-timer, body.cl-onboarding .dock { display: none !important; }
@media (max-width: 680px) { .cl-account { padding: 6px; } .cl-who, .cl-meter { display: none; } }
