/* Auth and quiz geometry follows Безумно.Команда's shared AuthPageFrame. */
.auth-story.auth-story{min-height:380px;display:flex;flex-direction:column;justify-content:center;padding:20px 0}
.auth-story .auth-plaques{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin:0 0 32px;padding:0;position:relative;z-index:1;font-size:clamp(34px,4vw,56px);font-weight:800;line-height:1.08;letter-spacing:-1.5px}
.auth-story .auth-plaques>span{display:block;width:max-content;max-width:100%;padding:16px 24px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:0 6px 18px #0000000a;transform:rotate(-6deg)}
.auth-story .auth-plaques>span:nth-child(2){margin-left:55px;transform:rotate(5deg);background:var(--accent);border-color:transparent;color:#fff;box-shadow:0 8px 24px #e4563a2b}
.auth-story.auth-story>p{max-width:100%;font-size:16px;line-height:1.6;margin:0}
.auth-story .auth-foot{margin:20px 0 0;padding:0;font-size:12px}
.auth-story .auth-illustration{position:relative;inset:auto;height:160px;width:240px;align-self:flex-end;margin:-10px 0 0;pointer-events:none}
.auth-story .auth-illustration>img{width:120px;height:120px;border-radius:34px;transform:rotate(-10deg)}
.auth-story .auth-illustration .orbit{width:200px;height:140px}.auth-story .auth-illustration .orbit-two{width:220px;height:140px}
.auth-panel .auth-import-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.auth-import-actions>.secondary{min-width:0;min-height:54px;padding:12px 10px;font-size:12px;line-height:1.4;gap:7px;text-align:center}
.auth-import-actions svg{flex:none;width:17px}
.auth-panel .auth-new-user{margin-top:4px}
.auth-page:not(.quiz-page){grid-template-rows:auto minmax(0,1fr);row-gap:40px}.auth-page:not(.quiz-page)>header{margin-bottom:0}
.auth-panel .auth-empty-note{margin:0 0 18px;font-size:12px;line-height:1.6;color:var(--muted)}
.auth-page.quiz-page{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;row-gap:18px;padding-block:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-bottom))}
.quiz-page>header{margin:0;width:100%}.quiz-host{min-height:0;height:100%;width:100%;display:grid;justify-items:center}
.quiz-card{align-self:start;width:min(680px,100%);height:min(720px,100%);min-height:0;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:36px;border:1px solid var(--line);border-radius:32px;background:var(--panel);box-shadow:0 16px 50px #60472408;overflow:hidden}
.quiz-top{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:16px;align-items:center}
.quiz-back{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:var(--bg)}
.quiz-progress{display:flex;gap:8px;min-width:0}.quiz-progress i{position:relative;flex:1;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.quiz-progress i:before{content:'';position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform 280ms cubic-bezier(.22,1,.36,1)}.quiz-progress i[data-done=true]:before{transform:scaleX(1)}
.quiz-count{font-size:13px;font-weight:650;color:var(--accent-dark);white-space:nowrap}
#registration-form{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;margin:0;gap:0}
.quiz-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:28px 4px 22px 0}
.quiz-heading{margin:0 0 26px}.quiz-heading h1{font-size:30px;font-weight:800;line-height:1.2;letter-spacing:-.7px;margin:0 0 12px;outline:none}.quiz-heading p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.quiz-fields{display:grid;gap:18px}.quiz-fields>label{margin:0}.quiz-fields input{font-size:16px}.quiz-fields input:disabled{opacity:.5}
.quiz-fields .quiz-option{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px;cursor:pointer;background:var(--bg)}
.quiz-option:has(input:checked){border-color:var(--accent);background:var(--peach)}.quiz-option>svg{color:var(--accent-dark)}.quiz-option input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.quiz-option b{display:block;font-size:16px;line-height:1.4}.quiz-option small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted)}
.quiz-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.quiz-summary{display:flex;align-items:flex-start;gap:10px;padding:14px;border-radius:14px;background:var(--sage);font-size:12px;line-height:1.6}.quiz-summary svg{flex:none;margin-top:2px}
.quiz-actions{padding-top:18px;border-top:1px solid var(--line)}.quiz-actions button{min-height:52px}.quiz-error{margin:18px 0 0}
.quiz-fields .check-label{align-items:flex-start;line-height:1.6;font-size:12px}.quiz-fields .check-label input{flex:none;margin-top:3px}
.quiz-heading,.quiz-fields{animation:quiz-enter 280ms cubic-bezier(.22,1,.36,1) both}.quiz-card[data-direction=backward]{--quiz-enter-x:-12px}
@keyframes quiz-enter{from{opacity:0;transform:translateX(var(--quiz-enter-x,12px))}to{opacity:1;transform:translateX(0)}}
:root[data-theme=dark] .quiz-card{box-shadow:0 20px 60px #0004}
@media(max-width:900px){.auth-story.auth-story{min-height:0;padding:6px 0 0}.auth-story .auth-plaques{font-size:40px;gap:14px;margin:14px 0 25px}.auth-story .auth-plaques>span{padding:12px 18px;border-radius:15px}.auth-story .auth-plaques>span:nth-child(2){margin-left:35px}.auth-story.auth-story>p{font-size:14px;max-width:100%}.auth-story .auth-foot{font-size:11px;margin:12px 0 24px}.auth-story .auth-illustration{display:none}.quiz-card{width:min(460px,100%);padding:28px;border-radius:28px}.quiz-page{max-width:none}.quiz-page>header{max-width:460px;margin-inline:auto}.quiz-heading h1{font-size:27px}.quiz-scroll{padding-top:24px}.auth-panel .local-note{margin-top:18px}}
@media(max-width:480px){.quiz-card{padding:24px 20px}.quiz-top{gap:10px}.quiz-progress{gap:5px}.quiz-heading h1{font-size:25px}.quiz-heading p{font-size:13px}.quiz-fields{gap:16px}.quiz-fields .quiz-option{gap:9px;padding:13px}.quiz-count{font-size:12px}.auth-story .auth-plaques{font-size:36px;letter-spacing:-1px}.auth-import-actions>.secondary{font-size:11px;gap:5px;padding:10px 6px}}
@media(max-width:350px){.auth-import-actions>.secondary{font-size:10px}.auth-import-actions svg{width:15px}.quiz-card{padding:18px 16px}.quiz-heading h1{font-size:23px}.quiz-top{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.quiz-back{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.quiz-heading,.quiz-fields{animation:none}.quiz-progress i:before{transition:none}}
.privacy-button{width:36px;height:36px;flex:none;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--accent-dark)}
.privacy-button:hover{background:var(--peach)}
.auth-header-actions{gap:12px}.privacy-details h3{font-size:16px;color:var(--ink);line-height:1.4;margin-top:24px}.privacy-details h3:first-child{margin-top:0}.privacy-details p{margin:10px 0 20px}
.auth-panel #login-title{margin:0 0 12px}.auth-panel #auth-form{display:grid;gap:14px}.auth-panel .auth-password-label{margin:0;gap:8px}.auth-new-user{margin-top:14px!important}.auth-panel .divider{margin:18px 0 12px}
@media(max-width:900px){
 html:has(.auth-page),body:has(.auth-page){height:100%;overflow:hidden;overscroll-behavior:none}
 .auth-page:not(.quiz-page){height:100dvh;min-height:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:18px;padding:max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));overflow:hidden;align-content:start}
 .auth-page:not(.quiz-page)>header{margin:0;gap:10px}.auth-page .auth-header-actions{gap:8px}.auth-page .brand{font-size:26px;gap:8px}.auth-page .brand img{width:30px;height:30px}.auth-page .privacy-button{width:34px;height:34px}
 .auth-page .auth-story{padding:8px 0 0;justify-content:start}.auth-story .auth-plaques{margin:4px 0 20px}.auth-story.auth-story>p{font-size:13px}
 .auth-panel{align-self:center;min-height:0;padding:24px!important}.auth-panel #login-title{font-size:24px;margin:0 0 8px}.auth-panel .auth-empty-note{font-size:12px;margin-bottom:16px}
 .auth-password-label>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .auth-panel #auth-form{gap:12px}.auth-panel .auth-import-actions{gap:8px;margin-top:0}.auth-panel .auth-import-actions>.secondary{min-height:48px}.auth-panel .divider{margin:16px 0 12px}
 .auth-page .auth-header-actions .theme-selector{--theme-button-size:34px;--theme-gap:0px;--theme-padding:3px}
}
@media(max-width:900px) and (max-height:740px){
 .auth-page:not(.quiz-page){gap:14px;padding-block:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-bottom))}
 .auth-story .auth-plaques{flex-direction:row;gap:10px;font-size:26px;letter-spacing:-.8px;margin:0 0 14px}.auth-story .auth-plaques>span{padding:10px 12px;border-radius:12px}.auth-story .auth-plaques>span:nth-child(2){margin-left:0}
 .auth-story.auth-story>p{font-size:12px}.auth-panel{padding:20px!important}.auth-panel #login-title{font-size:22px}.auth-panel .auth-empty-note{font-size:11px;margin-bottom:12px}
 .auth-panel .divider{margin:12px 0 10px}.auth-panel .auth-new-user{margin-top:10px!important}.auth-panel .primary,.auth-panel .auth-new-user{min-height:44px;padding-block:10px}
}
@media(max-width:350px){.auth-page:not(.quiz-page){padding-inline:14px}.auth-page .brand{font-size:23px;gap:7px}.auth-page .brand img{width:28px;height:28px}.auth-page .auth-header-actions .theme-selector{--theme-button-size:32px}.auth-panel{padding:18px!important}.auth-story .auth-plaques{font-size:24px;gap:8px}.auth-story .auth-plaques>span{padding-inline:10px}}
@media(max-width:900px) and (max-height:500px){
 .auth-page:not(.quiz-page){grid-template-rows:auto minmax(0,1fr);gap:8px;padding-block:8px}
 .auth-page:not(.quiz-page) .auth-story{display:none}.auth-panel{padding:12px 18px!important;align-self:center}
 .auth-panel .auth-empty-note{display:none}.auth-panel .divider{margin:8px 0}.auth-panel .auth-new-user{margin-top:8px!important}
 .auth-panel #auth-form{gap:8px}.auth-panel .auth-import-actions>.secondary{min-height:40px;padding-block:8px}
 .auth-panel #login-title{font-size:20px;margin-bottom:8px}.auth-panel .primary,.auth-panel .auth-new-user{min-height:40px;padding-block:8px}
}
/* ProfilePhoneField: flag selector and phone share one input frame. */
.phone-field{display:flex;align-items:center;gap:0;min-height:46px;min-width:0;width:100%;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:#fcfbf8;color:var(--ink)}
.phone-country-picker{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;flex:none;width:60px;height:42px;margin-right:10px;border-right:1px solid var(--line)}
.phone-country-picker>[data-country-flag]{font-size:21px;line-height:1}.phone-country-picker>svg{width:12px;color:var(--muted);transform:rotate(90deg)}
.phone-field .phone-country-picker select{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;opacity:0;cursor:pointer}
.phone-field input[data-phone-input]{flex:1;width:100%;min-width:0;min-height:44px;padding:9px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:0 solid transparent!important;font-size:16px}
.phone-field input[data-phone-input]::placeholder{font-size:14px}
:root[data-theme=dark] .phone-field{background:#24251f}
.auth-phone-label{margin:0!important;gap:8px}
@media(max-width:900px){.auth-phone-label>span:first-child{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.auth-phone-label .phone-field{margin:0}.auth-panel .auth-empty-note{margin-bottom:12px}}
@media(max-width:900px) and (max-height:740px){.auth-page:not(.quiz-page){gap:10px}.auth-panel{padding:16px 18px!important}.auth-panel #auth-form{gap:9px}.auth-panel .auth-new-user{margin-top:9px!important}.auth-panel .divider{margin:10px 0}.auth-story .auth-plaques{margin-bottom:10px}}
@media(max-width:900px) and (max-height:500px){.auth-panel .auth-empty-note{display:none}.auth-panel{padding:10px 16px!important}.auth-panel .phone-field,.auth-panel input{min-height:40px!important}.auth-panel #auth-form{gap:6px}.auth-panel #login-title{font-size:19px;margin-bottom:6px}.auth-panel .divider{margin:6px 0}.auth-panel .auth-new-user{margin-top:6px!important}}
@media(max-width:900px){
 .auth-page:not(.quiz-page) .auth-story{position:relative;padding-right:104px}
 .auth-story .auth-plaques{font-size:34px;letter-spacing:-1px}
 .auth-story .auth-plaques>span{padding:11px 15px}.auth-story .auth-plaques>span:nth-child(2){margin-left:22px}
 .auth-story .auth-illustration{display:grid;position:absolute;left:auto;right:0;top:26px;bottom:auto;align-self:auto;width:100px;height:120px;margin:0}
 .auth-story .auth-illustration>img{width:82px;height:82px;border-radius:24px}.auth-story .auth-illustration .orbit{width:98px;height:100px}.auth-story .auth-illustration .orbit-two{width:106px;height:92px}.auth-story .auth-illustration .star{font-size:24px;right:0;top:0}
 .auth-story.auth-story>p{width:calc(100% + 104px);max-width:none}
}
@media(max-width:900px) and (max-height:740px){
 .auth-page:not(.quiz-page) .auth-story{padding-right:54px}
 .auth-story .auth-plaques{font-size:22px;gap:8px}.auth-story .auth-plaques>span{padding:9px 10px}.auth-story .auth-plaques>span:nth-child(2){margin-left:0}
 .auth-story .auth-illustration{right:0;top:0;width:48px;height:48px}.auth-story .auth-illustration>img{width:42px;height:42px;border-radius:12px}.auth-story .auth-illustration .orbit{width:48px;height:48px}.auth-story .auth-illustration .orbit-two{width:50px;height:42px}.auth-story .auth-illustration .star{font-size:13px;top:-3px;right:-2px}
 .auth-story.auth-story>p{width:calc(100% + 54px)}
}
@media(max-width:350px) and (min-height:741px){.auth-story .auth-plaques{font-size:26px}.auth-story .auth-plaques>span{padding:10px 12px}.auth-story .auth-plaques>span:nth-child(2){margin-left:12px}.auth-page:not(.quiz-page) .auth-story{padding-right:80px}.auth-story .auth-illustration{width:76px}.auth-story .auth-illustration>img{width:64px;height:64px}.auth-story.auth-story>p{width:calc(100% + 80px)}}
@media(max-width:900px) and (max-height:500px){
 .auth-page:not(.quiz-page){grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .auth-page:not(.quiz-page) .auth-story{display:block;position:absolute;top:7px;left:50%;width:40px;height:40px;padding:0;transform:translateX(-50%);z-index:1}
 .auth-story .auth-plaques,.auth-story.auth-story>p{display:none}.auth-story .auth-illustration{width:38px;height:38px}.auth-story .auth-illustration>img{width:32px;height:32px}.auth-story .auth-illustration .orbit,.auth-story .auth-illustration .star{display:none}
}
/* Caption sits alongside the plaques, as on the reference login screen. */
.auth-story.auth-story{display:grid;grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:auto auto;column-gap:20px;row-gap:18px;align-content:center;align-items:start}
.auth-story .auth-plaques{grid-column:1;grid-row:1/3;margin:0}
.auth-story.auth-story>p{grid-column:2;grid-row:1;position:static;width:auto;max-width:none;font-size:15px;line-height:1.5;margin:0}
.auth-story .auth-illustration{grid-column:2;grid-row:2;position:relative;inset:auto;width:140px;height:150px;align-self:start;margin:0}
.auth-story .auth-illustration .orbit{width:140px}.auth-story .auth-illustration .orbit-two{width:150px}
@media(max-width:900px) and (min-height:501px){
 .auth-page:not(.quiz-page) .auth-story{display:grid;padding:8px 0 0;grid-template-columns:minmax(0,1fr) 110px;column-gap:14px;row-gap:12px;min-height:0}
 .auth-story .auth-plaques{font-size:30px;gap:14px;margin:0;flex-direction:column}.auth-story .auth-plaques>span{padding:10px 12px}.auth-story .auth-plaques>span:nth-child(2){margin-left:12px}
 .auth-story.auth-story>p{width:auto;font-size:12px;line-height:1.5}
 .auth-story .auth-illustration{position:relative;inset:auto;width:94px;height:86px;justify-self:center;align-self:start;margin:0}
 .auth-story .auth-illustration>img{width:72px;height:72px;border-radius:20px}.auth-story .auth-illustration .orbit{width:88px;height:82px}.auth-story .auth-illustration .orbit-two{width:94px;height:76px}.auth-story .auth-illustration .star{font-size:18px}
}
@media(max-width:900px) and (min-height:501px) and (max-height:740px){
 .auth-page:not(.quiz-page) .auth-story{grid-template-columns:minmax(0,1fr) 94px;gap:5px 12px;padding-top:2px}
 .auth-story .auth-plaques{font-size:21px;gap:7px}.auth-story .auth-plaques>span{padding:8px 10px}.auth-story .auth-plaques>span:nth-child(2){margin-left:9px}
 .auth-story.auth-story>p{font-size:10px;line-height:1.4}.auth-story .auth-illustration{width:44px;height:44px}.auth-story .auth-illustration>img{width:38px;height:38px;border-radius:11px}.auth-story .auth-illustration .orbit{width:44px;height:42px}.auth-story .auth-illustration .orbit-two{width:46px;height:40px}.auth-story .auth-illustration .star{font-size:12px}
}
@media(max-width:350px) and (min-height:741px){.auth-story .auth-plaques{font-size:24px}.auth-page:not(.quiz-page) .auth-story{grid-template-columns:minmax(0,1fr) 90px;column-gap:10px}.auth-story.auth-story>p{font-size:11px}}
@media(max-width:900px) and (max-height:500px){.auth-page:not(.quiz-page) .auth-story{display:block}.auth-story .auth-illustration{width:38px;height:38px;position:absolute;inset:0}.auth-story .auth-illustration>img{width:32px;height:32px}}
@media(min-width:901px){.auth-story.auth-story{grid-template-columns:minmax(0,1fr) 160px}.auth-story.auth-story>p{font-size:18px}.auth-story .auth-illustration{width:160px;height:170px}.auth-story .auth-illustration>img{width:140px;height:140px}.auth-story .auth-illustration .orbit{width:160px}.auth-story .auth-illustration .orbit-two{width:170px}}
@media(max-width:900px) and (min-height:741px){
 .auth-page:not(.quiz-page) .auth-story{grid-template-columns:minmax(0,1fr) 118px;column-gap:14px;row-gap:14px;padding-block:12px 4px}
 .auth-story .auth-plaques{font-size:clamp(28px,8.7vw,40px);gap:17px}.auth-story .auth-plaques>span{padding:12px 14px}.auth-story .auth-plaques>span:nth-child(2){margin-left:12px}
 .auth-story.auth-story>p{font-size:14px;line-height:1.45}.auth-story .auth-illustration{width:112px;height:104px}.auth-story .auth-illustration>img{width:94px;height:94px;border-radius:27px}.auth-story .auth-illustration .orbit{width:108px;height:102px}.auth-story .auth-illustration .orbit-two{width:116px;height:96px}.auth-story .auth-illustration .star{font-size:24px}
}
@media(max-width:900px) and (min-height:501px) and (max-height:740px){
 .auth-page:not(.quiz-page) .auth-story{grid-template-columns:minmax(0,1fr) 98px;gap:7px 12px}
 .auth-story .auth-plaques{font-size:24px;gap:8px}.auth-story .auth-plaques>span{padding:9px 11px}.auth-story.auth-story>p{font-size:11px}.auth-story .auth-illustration{width:54px;height:50px}.auth-story .auth-illustration>img{width:46px;height:46px;border-radius:13px}.auth-story .auth-illustration .orbit{width:52px;height:48px}.auth-story .auth-illustration .orbit-two{width:56px;height:46px}
}
@media(max-width:350px) and (min-height:741px){.auth-page:not(.quiz-page) .auth-story{grid-template-columns:minmax(0,1fr) 90px;column-gap:10px}.auth-story .auth-plaques{font-size:25px}.auth-story.auth-story>p{font-size:12px}.auth-story .auth-illustration{width:86px;height:84px}.auth-story .auth-illustration>img{width:72px;height:72px}}

@media(max-width:900px) and (min-height:741px){.auth-page:not(.quiz-page){row-gap:26px}}
@media(max-width:900px) and (min-height:741px){.auth-page:not(.quiz-page){row-gap:32px}.auth-page:not(.quiz-page) .auth-story{padding-block:20px 18px;row-gap:22px}.auth-story .auth-plaques{gap:24px}}

.auth-panel .forgot-password{justify-self:end;font-size:11px;padding:0;min-height:20px;margin:-4px 0 0}.auth-panel #auth-form{row-gap:10px}
.auth-panel .auth-register-divider+.auth-new-user{margin-top:0!important}
.auth-panel #login-title{margin-bottom:24px}
.quiz-card form .quiz-fields>label{margin:0;gap:7px}
.quiz-card[data-step="5"] .quiz-scroll{padding-top:18px;padding-bottom:14px}
.quiz-card[data-step="5"] .quiz-heading{margin-bottom:18px}
.quiz-card[data-step="5"] .quiz-fields{gap:12px}
.quiz-card[data-step="5"] .quiz-hint{font-size:11px;line-height:1.5}
@media(max-height:740px){.quiz-card[data-step="5"] .quiz-heading h1{font-size:23px;margin-bottom:8px}.quiz-card[data-step="5"] .quiz-heading p{font-size:12px}.quiz-card[data-step="5"] .quiz-scroll{padding-top:12px}.quiz-card[data-step="5"] .quiz-fields{gap:10px}}
@media(max-width:900px) and (max-height:600px){
 .auth-panel #login-title{margin-bottom:16px}.auth-page:not(.quiz-page){row-gap:6px}
 .auth-panel{padding:12px 16px!important}.auth-panel .auth-empty-note{font-size:10px;line-height:1.4;margin-bottom:8px}
 .auth-panel #auth-form{row-gap:7px}.auth-panel .forgot-password{min-height:16px;font-size:10px}
 .auth-panel .auth-new-user,.auth-panel .primary{min-height:40px;padding-block:8px}
 .auth-panel .auth-import-actions>.secondary{min-height:40px;font-size:10px;padding-block:7px;line-height:1.2}
 .auth-panel .phone-field,.auth-panel input{min-height:42px}.auth-panel .phone-country-picker{height:38px}
 .auth-panel .divider{margin:8px 0;font-size:10px}
 .auth-panel .auth-register-divider{margin-block:6px}
 .auth-page:not(.quiz-page):has(.field-feedback){grid-template-rows:auto minmax(0,1fr)}
 .auth-page:not(.quiz-page):has(.field-feedback) .auth-story{display:none}
}
@media(max-width:900px) and (max-height:500px){
 .auth-panel{padding-block:8px!important}.auth-panel #login-title{margin-bottom:12px}
 .auth-panel #auth-form{row-gap:5px}.auth-panel .divider{margin-block:5px;line-height:1.2}
 .auth-panel .auth-import-actions>.secondary{min-height:36px;padding-block:5px}
 .auth-panel .auth-new-user,.auth-panel .primary{min-height:36px;padding-block:6px}
}

/* Installed iOS app: size the two entry screens from one fixed viewport shell.
   Avoid separate dvh calculations for the page, quiz and background. */
@media(max-width:900px){
 :root.standalone-app:has(.auth-page),:root.standalone-app body:has(.auth-page){height:100vh;min-height:100vh;overflow:hidden;background:var(--bg)}
 :root.standalone-app body:has(.auth-page){position:relative}
 :root.standalone-app body:has(.auth-page) #app{position:relative;inset:auto;width:100%;height:100dvh;min-height:0;overflow:hidden}
 :root.standalone-app .auth-page:not(.quiz-page),:root.standalone-app .auth-page.quiz-page{height:100%;min-height:0;padding-bottom:max(12px,min(34px,env(safe-area-inset-bottom)))}
 :root.standalone-app .quiz-card{height:100%;max-height:100%}
 :root.standalone-app .quiz-actions{padding-top:12px}
 :root.standalone-app .quiz-scroll{padding-bottom:12px}
}
