/* Scoped phone setup; follows existing skin tokens and leaves sign-in behavior intact. */
.eliteos-phone-setup { margin-top:1.5rem; padding-top:1.1rem; border-top:1px solid var(--es-border,#d6dee8); }
.eliteos-phone-setup h3 { margin:1rem 0 .75rem; font-size:1.08rem; color:var(--es-text,#1c2736); }
.phone-setup-online,.phone-setup-note,.phone-setup-intro { color:var(--es-muted,#5c697a); font-size:.92rem; line-height:1.55; }
.phone-setup-online { margin:0; }
.phone-setup-options,.phone-setup-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.phone-setup-options button,.phone-setup-tabs button { display:flex; gap:.6rem; align-items:center; justify-content:flex-start; min-height:3.5rem; padding:.8rem .85rem; border:1px solid var(--es-input-border,#8493a6); border-radius:10px; background:var(--es-input,#fff); color:var(--es-text,#1c2736); font:inherit; font-size:1rem; font-weight:650; text-align:left; line-height:1.3; cursor:pointer; }
.phone-setup-options svg,.phone-setup-tabs svg { width:1.6rem; height:1.6rem; flex:none; color:var(--es-link,#107867); }
.phone-setup-options span,.phone-setup-tabs span { min-width:0; overflow-wrap:normal; word-break:normal; }
.phone-setup-options button:hover,.phone-setup-tabs button:hover { background:var(--es-soft,#eef4f6); }
.phone-setup-options button:focus-visible,.phone-setup-tabs button:focus-visible,.phone-setup-close:focus-visible,.sidebar-phone-setup:focus-visible { outline:3px solid var(--es-focus,#539af6); outline-offset:3px; }
.sidebar-phone-setup { display:block; grid-column:2 / -1; margin:0; min-height:44px; padding:.3rem 0; color:var(--es-link,#8fddd2); background:transparent; border:0; text-align:left; text-decoration:underline; font:inherit; font-size:.82rem; cursor:pointer; }
.eliteos-setup-dialog { width:min(54rem,calc(100vw - 1.5rem)); max-width:calc(100vw - 1.5rem); max-height:calc(100dvh - 2rem); padding:0; border:1px solid var(--es-border,#b8c5d5); border-radius:16px; background:var(--es-surface,#fff); color:var(--es-text,#1c2736); box-shadow:0 24px 80px #0006; overflow:auto; overscroll-behavior:contain; }
.eliteos-setup-dialog::backdrop { background:#06111eb8; }
.eliteos-phone-setup-open { overflow:hidden; }
.phone-setup-header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 1.4rem; background:var(--es-surface,#fff); border-bottom:1px solid var(--es-border,#d6dee8); }
.phone-setup-header .eyebrow { margin:0 0 .2rem; color:var(--es-link,#107867); }
.phone-setup-header h2 { margin:0; font-size:1.4rem; line-height:1.25; }
.phone-setup-header form,.phone-setup-footer form { margin:0; flex:none; }
.phone-setup-close { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--es-border,#b8c5d5); border-radius:8px; color:inherit; background:var(--es-input,#fff); font-size:1.7rem; cursor:pointer; }
.phone-setup-content { padding:1.2rem 1.4rem; }
.phone-setup-intro { margin:0 0 1rem; }
.phone-setup-tabs { margin-bottom:1.4rem; }
.phone-setup-tabs button[aria-selected=true] { border-color:var(--es-link,#107867); background:var(--es-soft,#e9f4f1); box-shadow:inset 0 0 0 1px var(--es-link,#107867); }
.phone-setup-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; gap:1.3rem; padding:0; margin:0 0 1.4rem; }
.phone-setup-steps li { min-width:0; }
.phone-setup-illustration { display:flex; flex-direction:column; justify-content:space-between; gap:.6rem; min-height:12rem; padding:.65rem; border:2px solid var(--es-input-border,#8493a6); border-radius:16px; background:var(--es-bg,#edf3f8); color:var(--es-text,#1c2736); font-size:.65rem; line-height:1.3; pointer-events:none; }
.phone-setup-address { padding:.4rem; border-radius:6px; background:var(--es-input,#fff); text-align:center; overflow-wrap:anywhere; }
.phone-setup-mini-brand { display:flex; flex-direction:column; gap:.35rem; align-items:center; justify-content:center; padding:.35rem; }
.phone-setup-mini-brand img { width:44px; height:44px; border-radius:10px; }
.phone-setup-highlight { display:flex; align-items:center; justify-content:center; gap:.4rem; min-height:2.3rem; padding:.4rem; border:1px solid var(--es-link,#107867); border-radius:7px; color:var(--es-link,#107867); background:var(--es-soft,#e9f4f1); text-align:center; font-weight:700; }
.phone-setup-highlight svg { width:19px; height:19px; flex:none; }
.phone-setup-mini-toggle { display:flex; align-items:center; justify-content:space-between; gap:.25rem; }
.phone-setup-mini-toggle b { padding:0 .4rem; border-radius:8px; background:var(--es-primary,#107867); color:white; }
.phone-setup-step-number { display:grid; place-items:center; width:26px; height:26px; margin:.9rem 0 .55rem; border-radius:50%; background:var(--es-primary,#107867); color:white; font-weight:750; font-size:.8rem; }
.phone-setup-step-copy h3 { margin:0 0 .4rem; font-size:1.02rem; line-height:1.35; }
.phone-setup-step-copy p { margin:0; color:var(--es-muted,#5c697a); font-size:.92rem; line-height:1.55; }
.phone-setup-footer { position:sticky; bottom:0; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.65rem; padding:.9rem 1.4rem; border-top:1px solid var(--es-border,#d6dee8); background:var(--es-surface,#fff); }
.phone-setup-footer .button { min-height:44px; }
.phone-setup-status { margin:.9rem 0 0; padding:.8rem; border:1px solid var(--es-border,#b8c5d5); border-radius:8px; color:var(--es-text,#1c2736); background:var(--es-soft,#eef4f6); font-size:.92rem; }
.eliteos-setup-dialog [hidden] { display:none!important; }
@media(max-width:600px) {
 .phone-setup-header,.phone-setup-content,.phone-setup-footer { padding:.9rem 1rem; }
 .phone-setup-header h2 { font-size:1.15rem; }
 .phone-setup-tabs { gap:.6rem; }
 .phone-setup-tabs button { padding:.65rem .6rem; font-size:.92rem; }
 .phone-setup-steps { grid-template-columns:minmax(0,1fr); gap:1.3rem; }
 .phone-setup-steps li { display:grid; grid-template-columns:100px minmax(0,1fr); gap:.9rem; align-items:start; }
 .phone-setup-illustration { min-height:10.5rem; padding:.45rem; font-size:.57rem; }
 .phone-setup-highlight { min-height:2rem; }
 .phone-setup-step-number { margin:0 0 .5rem; }
}
@media(max-width:720px) {
 .phone-app-login .auth-shell { min-height:100dvh; grid-template-rows:auto 1fr; }
 .phone-app-login .auth-brand { flex-direction:row; justify-content:flex-start; align-items:center; gap:.85rem; padding:1rem 1.25rem; min-height:auto; }
 .phone-app-login .auth-brand > h1,.phone-app-login .auth-brand > p:not(.eyebrow),.phone-app-login .auth-brand-note { display:none; }
 .phone-app-login .auth-brand .brand-mark { width:44px; height:44px; min-width:44px; margin:0; }
 .phone-app-login .auth-brand .eyebrow { margin:0; font-size:1.1rem; letter-spacing:.035em; }
 .phone-app-login .auth-panel { align-items:start; padding:1rem; }
 .phone-app-login .auth-card { padding:1.25rem; }
 .phone-app-login .auth-card input { font-size:16px; }
 .phone-app-login .eliteos-preference-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
 .phone-app-login .eliteos-skin-control,.phone-app-login .eliteos-language-control { min-width:0; width:100%; }
 .phone-app-login .eliteos-skin-help,.phone-app-login .eliteos-language-help { display:none; }
 .phone-app-login .eliteos-skin-auth { margin-bottom:1.1rem; }
 .phone-app-login .auth-heading { margin-bottom:1.2rem; }
 .phone-app-login .auth-help { margin-top:1rem; padding-top:1rem; font-size:.82rem; }
 .phone-app-login .eliteos-phone-setup { margin-top:1rem; padding-top:.85rem; }
 .phone-app-login .phone-setup-online { font-size:.82rem; }
}
@media print { .eliteos-phone-setup,.eliteos-setup-dialog,.sidebar-phone-setup { display:none!important; } }

/* Compact the phone sign-in page in normal flow; errors, larger text and the
 * on-screen keyboard may still scroll, so no controls are clipped or locked. */
@media screen and (max-width:720px) {
 .phone-app-login .auth-shell { grid-template-rows:auto 1fr; min-height:100svh; min-height:100dvh; }
 .phone-app-login .auth-brand { gap:.6rem; padding:.45rem 1rem; }
 .phone-app-login .auth-brand .brand-mark { width:32px; height:32px; min-width:32px; font-size:.9rem; }
 .phone-app-login .auth-brand .eyebrow { font-size:1rem; line-height:1.2; }
 .phone-app-login .auth-panel { align-content:start; padding:.5rem; }
 .phone-app-login .auth-card { padding:.65rem .875rem; }
 .phone-app-login .eliteos-skin-auth { margin:0 0 .65rem; }
 .phone-app-login .eliteos-preference-controls { gap:.6rem; }
 .phone-app-login .eliteos-preference-controls > :is(.eliteos-skin-control,.eliteos-language-control) { gap:.2rem; }
 .phone-app-login .eliteos-preference-controls label { margin:0; font-size:.75rem; line-height:1.25; }
 .phone-app-login .eliteos-preference-controls select { min-height:44px; height:44px; padding:.35rem 1.65rem .35rem .6rem; font-size:.875rem; line-height:1.2; }
 .phone-app-login .auth-heading { margin:0 0 .6rem; }
 .phone-app-login .auth-heading .eyebrow { margin:0 0 .25rem; font-size:.7rem; line-height:1.2; }
 .phone-app-login .auth-heading h2 { margin:0; font-size:1.4rem; line-height:1.2; }
 .phone-app-login .auth-heading > p:last-child { margin:.35rem 0 0; font-size:.875rem; line-height:1.35; }
 .phone-app-login .stack-form { gap:.65rem; }
 .phone-app-login .stack-form .field { display:grid; gap:.4rem; margin:0; }
 .phone-app-login .stack-form label { margin:0; font-size:.8125rem; line-height:1.3; }
 .phone-app-login .stack-form input { min-height:44px; height:44px; padding:.55rem .7rem; font-size:16px; line-height:1.25; }
 .phone-app-login .stack-form > .button { min-height:44px; padding:.55rem .8rem; font-size:1rem; line-height:1.25; }
 .phone-app-login .auth-help { margin:.65rem 0 0; padding-top:.5rem; font-size:.75rem; line-height:1.4; }
 .phone-app-login .eliteos-phone-setup { display:flex; flex-direction:column; margin-top:.65rem; padding-top:.5rem; gap:0; }
 .phone-app-login .eliteos-phone-setup h3 { order:0; margin:0 0 .4rem; font-size:.875rem; line-height:1.3; }
 .phone-app-login .phone-setup-options { order:1; gap:.6rem; }
 .phone-app-login .phone-setup-options button { min-height:44px; padding:.4rem .6rem; gap:.4rem; font-size:.8125rem; line-height:1.25; }
 .phone-app-login .phone-setup-options svg { width:20px; height:20px; }
 .phone-app-login .phone-setup-online { order:2; margin:.4rem 0 0; font-size:.75rem; line-height:1.35; }
 .phone-app-login .auth-card > .alert { margin:.5rem 0; padding:.55rem .65rem; font-size:.8125rem; line-height:1.35; }
}
