.gate-mode .sidebar,.gate-mode .topbar,.gate-mode .school-search,.gate-mode #school-chat-root,.gate-mode .teacher-test-banner{display:none!important}.gate-mode .layout{display:block}.gate-mode .main{margin:0;width:100%;max-width:none}.gate-mode .main>:not(#content){display:none!important}.gate-mode .content{max-width:1200px;margin:0 auto;padding:18px}.gate-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.gate-header img{width:80px;height:52px;object-fit:contain}.gate-header h1{font-size:1.35rem;margin:0}.gate-header p{font-size:.75rem;color:var(--muted);margin:5px 0}.gate-header .row{flex-wrap:wrap}.gate-header button{min-height:34px;font-size:.7rem;padding:7px 11px}.gate-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.gate-kinds button{font-size:1.05rem;min-height:54px}.gate-mode-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:12px;flex-wrap:wrap}.gate-mode-heading h2{font-size:1.3rem;margin:0}.gate-mode-heading p{font-size:.8rem;color:var(--muted);margin:0}.gate-camera.camera{max-width:none;height:370px;min-height:300px}.gate-camera .camera-placeholder{padding:20px}.gate-camera-controls{margin:12px 0;flex-wrap:wrap}.gate-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.gate-input-grid h2,.gate-recent h2{font-size:1.1rem}.gate-recent{margin-top:22px}.gate-recent #recent-scans{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.gate-recent .scan-confirm{margin:0;font-size:.75rem;padding:10px;gap:10px}.gate-recent .scan-confirm p{font-size:.7rem!important}.gate-mode #modal{max-width:95vw}.gate-recent .scan-photo-review .avatar{width:45px;height:55px}.gate-recent .scan-photo-review{min-height:55px}.gate-camera video{object-fit:contain;width:100%;height:100%}.gate-camera .scan-identity{min-height:0;height:100%;grid-template-columns:40% 1fr;padding:15px;gap:20px}.gate-camera .scan-identity-photo{min-height:0;height:100%;max-height:330px}.gate-camera .scan-identity-photo img{object-fit:contain;width:100%;height:100%}.gate-camera .scan-identity-details h2{font-size:clamp(1.4rem,3vw,2.6rem);line-height:1.15;margin:9px 0}.gate-camera .scan-identity-status{font-size:1rem}.gate-camera .scan-identity-class{font-size:1.2rem}.gate-camera .scan-identity-details p{margin:8px 0}.gate-camera .scan-identity-details button{min-height:35px;padding:8px 11px;font-size:.75rem}.gate-camera .scan-identity-details small{font-size:.66rem}.gate-camera .scan-identity-result,.gate-camera .scan-identity-instruction,.gate-camera .scan-identity-number{font-size:.75rem}.android-install{padding:25px;border-radius:15px;background:#f4f1fa;border:1px solid #ddd4eb}
@media(max-width:650px){.gate-mode .content{padding:12px}.gate-header{gap:10px}.gate-header h1{font-size:1.1rem}.gate-header img{width:64px;height:45px}.gate-header>.row:last-child{gap:7px;justify-content:flex-end;width:100%}.gate-kinds{gap:7px;margin:13px 0}.gate-kinds button{font-size:.9rem;min-height:48px;padding:10px 5px}.gate-camera.camera{height:340px;min-height:340px}.gate-mode-heading{gap:4px}.gate-mode-heading h2{font-size:1.1rem}.gate-mode-heading p{font-size:.72rem}.gate-camera .scan-identity{grid-template-columns:42% 1fr;gap:10px;padding:10px}.gate-camera .scan-identity-photo{max-height:310px}.gate-camera .scan-identity-details h2{font-size:1.3rem}.gate-camera .scan-identity-details p{margin:6px 0}.gate-camera .scan-identity-details small{font-size:.6rem}.gate-camera .scan-identity-result,.gate-camera .scan-identity-instruction,.gate-camera .scan-identity-number{font-size:.67rem}.gate-input-grid{grid-template-columns:1fr}.gate-camera-controls button{font-size:.7rem;padding:8px 10px;min-height:36px}.gate-recent #recent-scans{grid-template-columns:1fr 1fr}.gate-recent .scan-confirm{gap:7px;padding:8px}.gate-recent .scan-photo-review .avatar{width:34px;height:42px}.gate-recent .scan-photo-review{min-height:42px}}

.android-download-card{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px;margin-top:24px;background:#f4f1fa;border:1px solid #ded5ed;border-radius:14px;color:#342869}.android-download-card strong{font-size:1.02rem}.android-download-card p{font-size:.8rem;line-height:1.5;margin:6px 0 0;color:#6d637d}.android-download-card .row{flex-wrap:wrap;gap:9px}.android-download-card .button{font-size:.82rem}.login-form .android-download-card{padding:15px;margin-top:20px;gap:12px}.login-form .android-download-card .button{font-size:.75rem;padding:10px 12px}
