/* A05: isolated staging login, styled to match A04; never added to public A04. */
#secure-gate{max-width:1150px;margin:0 auto;padding:55px 24px 85px;scroll-margin-top:24px}
#secure-gate[hidden],#stage-signed[hidden],#stage-guest[hidden]{display:none!important}
.stage-secure-head{max-width:790px;margin:0 auto 30px;text-align:center}
.stage-secure-head h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,48px);font-weight:500;letter-spacing:-.025em;margin:11px auto}
.stage-secure-head p{color:#b5bfd5;line-height:1.65;margin:0 auto}
.stage-warning{border:1px solid #d5b98f75;padding:10px 15px;border-radius:13px;background:linear-gradient(135deg,#b9955231,#41354970);color:#f6dcb4;font-size:13px;margin:0 0 22px}
.stage-console{border:1px solid #b8b9e158;background:linear-gradient(145deg,#282e4bf2,#151f34f5);box-shadow:0 25px 50px #05081593,inset 0 1px #ffffff27;border-radius:25px;padding:clamp(18px,3vw,34px);position:relative;overflow:hidden}
.stage-console::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 88% 0%,#ae9fe51e,transparent 37%)}
.stage-console>*{position:relative}
.stage-connection{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;color:#adb8d5;margin-bottom:20px}
.stage-connection i{width:8px;height:8px;display:inline-block;background:#a8b4ce;border-radius:50%;box-shadow:0 0 10px #ced1e355}
.stage-connection.online i{background:#81e3ba;box-shadow:0 0 12px #81e3ba77}
.stage-console h3{font-family:Georgia,serif;font-size:26px;font-weight:500;margin:10px 0;color:#f1eef7}
.stage-console p{color:#c0c9db;font-size:14px;line-height:1.65}
.stage-console label{display:block;color:#ebdfc9;font-size:13px;font-weight:650;margin-bottom:9px}
.stage-form{display:grid;gap:12px;max-width:610px}
.stage-form input{width:100%;border:1px solid #c8c7e36a;border-radius:12px;background:#121c32;color:#fff7e9;padding:13px 14px;font:15px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;outline-offset:3px}
.stage-form input:focus{border-color:#f4d7aa;outline:2px solid #e7d5a13a}
.stage-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px}
.stage-buttons button,.stage-lessons button{cursor:pointer;border-radius:12px;padding:12px 16px;border:1px solid #f2d1a77d;background:linear-gradient(115deg,#edd09f,#dbb578);color:#2a2632;font:700 13px/1.3 Inter,"Segoe UI",sans-serif;transition:filter .15s,transform .15s}
.stage-buttons button:hover,.stage-lessons button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.stage-buttons button:focus-visible,.stage-lessons button:focus-visible{outline:3px solid #f5d6a5;outline-offset:3px}
.stage-buttons .stage-secondary{background:#303c5a;color:#e4dfef;border-color:#b9b8dd5c}
.stage-feedback{margin-top:16px;min-height:27px;font-size:14px;color:#e9d2ab}
.stage-feedback.error{color:#f3a9b0}
.stage-identity{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.stage-identity-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(140deg,#5b5778,#292d46);box-shadow:inset 0 1px #fff4;color:#f1d6a3;font-size:25px}
.stage-identity h3{margin:0}
.stage-meta{color:#9faec6;font-size:12px}
.stage-lessons{margin:25px 0 0}
.stage-lessons h4{font-size:15px;color:#eed2a0;margin:0 0 13px}
.stage-lessons ul{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.stage-lessons li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #d6d7ee2d;background:#b9c4ff0a;border-radius:13px}
.stage-lessons li span{font-size:13px;line-height:1.45;color:#e0e5ee}
.stage-lessons li small{display:block;font-size:11px;color:#a5b5d1;margin-top:3px}
.stage-lessons button{font-size:11px;min-width:125px;background:#424466;color:#f1e5d3}
.stage-result{margin-top:19px;border:1px solid #9ab5d747;border-radius:14px;padding:17px;color:#d9e0ef;background:#1422378c}
.stage-result h4{color:#f6dbb1;margin:0 0 7px}
.stage-result p{margin:0}
.stage-result[hidden]{display:none!important}
@media(max-width:760px){.stage-lessons ul{grid-template-columns:1fr}#secure-gate{padding:35px 3px 70px}}
@media(max-width:420px){.stage-lessons li{flex-direction:column;align-items:flex-start}.stage-lessons button{width:100%}}
@media(prefers-reduced-motion:reduce){.stage-buttons button,.stage-lessons button{transition:none}}

#stage-guest[hidden], #android-install[hidden], #android-download[hidden] { display: none; }

#bookmark-step { display: block; width: 100%; max-width: 100%; margin: .5rem 0; padding: .6rem; font: inherit; }
