/* Adelia Student Clean Shell */
:root{--a:#6847f5;--a2:#7c5cff;--ink:#181a27;--muted:#747b8b;--line:#e7e8ef;--bg:#f5f6fa;--card:#fff;--soft:#f0edff;--ok:#289b64;--warn:#d98c28;--danger:#d75151;--shadow:0 14px 34px rgba(30,24,60,.07)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif}body{font-size:14px}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:16px;padding:15px clamp(16px,4vw,28px);background:rgba(245,246,250,.92);backdrop-filter:blur(20px);border-bottom:1px solid rgba(226,228,236,.9)}.eyebrow{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--a);font-weight:850}#pageTitle{margin:4px 0 0;font-size:clamp(23px,5vw,31px);line-height:1;letter-spacing:-.04em}.avatar-btn{margin-left:auto;width:42px;height:42px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--a2),var(--a));color:#fff;font:inherit;font-weight:850;box-shadow:0 9px 22px rgba(104,71,245,.22);cursor:pointer}.content{width:min(100%,1120px);margin:0 auto;padding:26px clamp(14px,4vw,28px) 112px}.card,.panel,.home-card,.lesson-card,.homework-card,.booking-card,.finance-card,.group-card,.event-card,.student-card,.profile-card,.message-card{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:19px!important;box-shadow:var(--shadow)!important}.card,.panel,.home-card,.lesson-card,.homework-card,.booking-card,.finance-card,.group-card,.event-card,.profile-card{padding:18px!important}.hero,.home-hero,.student-hero,.lesson-hero{background:linear-gradient(135deg,#211c40,#392b75)!important;color:#fff!important;border:0!important;border-radius:22px!important;box-shadow:0 18px 42px rgba(43,32,92,.18)!important}.hero .muted,.home-hero .muted,.student-hero .muted,.lesson-hero .muted{color:rgba(255,255,255,.72)!important}.grid,.home-grid,.lesson-grid,.dashboard-grid{display:grid!important;gap:13px!important}.stats,.home-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(30,24,60,.045)}.stat b,.stat strong{font-size:25px;letter-spacing:-.035em}.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:24px 0 10px}.section-title h2{margin:0;font-size:18px;letter-spacing:-.025em}.muted,small,.subtle{color:var(--muted)}.primary,.btn-primary,button.primary{border:0!important;background:linear-gradient(135deg,var(--a2),var(--a))!important;color:#fff!important;border-radius:12px!important;min-height:40px!important;padding:9px 14px!important;font-weight:780!important;box-shadow:0 7px 18px rgba(104,71,245,.18)!important}.soft,.ghost,.btn-secondary{border:1px solid var(--line)!important;background:#fff!important;color:#4b5260!important;border-radius:12px!important;min-height:39px!important;padding:8px 13px!important;font-weight:720!important}.badge,.chip,.pill{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border:0!important;border-radius:999px!important;background:var(--soft)!important;color:#5d42cd!important;font-size:10px!important;font-weight:820!important}.row,.list-row{padding:12px 0;border-bottom:1px solid #eef0f4}.row:last-child,.list-row:last-child{border-bottom:0}.notice{border:1px solid #d7eee1!important;background:#f1faf5!important;color:#26734e!important;border-radius:12px!important;padding:11px 13px!important}.error{border:1px solid #efd1d1!important;background:#fff1f1!important;color:#a84040!important;border-radius:12px!important;padding:11px 13px!important}.empty,.empty-state{border:1px dashed #dcdfe8!important;background:#fafbfc!important;border-radius:17px!important;padding:26px!important;text-align:center!important;color:var(--muted)!important}input,select,textarea{width:100%;border:1px solid #dfe1e8!important;background:#fff!important;color:var(--ink)!important;border-radius:12px!important;padding:11px 12px!important;font:inherit!important;outline:none!important}input:focus,select:focus,textarea:focus{border-color:#8e76ee!important;box-shadow:0 0 0 3px rgba(104,71,245,.1)!important}.bottom-nav{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;width:min(calc(100% - 24px),650px);display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:7px;background:rgba(255,255,255,.95);backdrop-filter:blur(20px);border:1px solid rgba(222,224,233,.95);border-radius:20px;box-shadow:0 18px 44px rgba(28,30,40,.15)}.nav-item{border:0;background:transparent;color:#7e8492;border-radius:14px;padding:8px 4px;font:inherit;cursor:pointer}.nav-item span{display:block;font-size:18px;line-height:1}.nav-item small{display:block;margin-top:4px;font-size:9px;font-weight:780;color:inherit}.nav-item.active{background:var(--soft);color:var(--a)}.sheet-backdrop{position:fixed;inset:0;background:rgba(18,19,27,.35);z-index:80}.bottom-sheet{position:fixed;z-index:90;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,650px);max-height:84vh;overflow:auto;padding:12px 20px calc(24px + env(safe-area-inset-bottom));background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -20px 50px rgba(20,22,30,.18)}.sheet-handle{width:42px;height:4px;border-radius:4px;background:#d8dbe3;margin:0 auto 18px}.hidden{display:none!important}@media(min-width:760px){.content{padding-top:32px}.grid,.home-grid,.dashboard-grid{grid-template-columns:1.2fr .8fr!important}.bottom-nav{bottom:18px}}@media(max-width:760px){.stats,.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:560px){.topbar{padding:13px 14px}.content{padding:16px 12px 98px}.card,.panel,.home-card,.lesson-card,.homework-card,.booking-card,.finance-card,.group-card,.event-card,.profile-card{padding:15px!important}.bottom-nav{width:calc(100% - 16px);bottom:max(8px,env(safe-area-inset-bottom));border-radius:18px}.nav-item{padding:7px 2px}}

/* Animated role gateway — unauthenticated only */
.adelia-login-gateway{position:relative;isolation:isolate;overflow:hidden;width:min(920px,calc(100vw - 32px));margin:clamp(24px,8vh,90px) auto;padding:clamp(26px,5vw,56px);border:1px solid rgba(104,71,245,.12);border-radius:34px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(249,246,255,.94));box-shadow:0 34px 90px rgba(54,37,91,.13);animation:adeliaGatewayIn .55s cubic-bezier(.2,.8,.2,1) both}.login-aurora{position:absolute;z-index:-1;width:340px;height:340px;border-radius:50%;filter:blur(2px);opacity:.5;pointer-events:none}.login-aurora-a{right:-120px;top:-150px;background:radial-gradient(circle,rgba(112,72,216,.22),transparent 68%);animation:adeliaFloat 7s ease-in-out infinite}.login-aurora-b{left:-170px;bottom:-190px;background:radial-gradient(circle,rgba(92,174,255,.17),transparent 68%);animation:adeliaFloat 9s ease-in-out -2s infinite}.login-intro{max-width:590px;margin-bottom:28px}.login-brand-mark{display:grid;place-items:center;width:54px;height:54px;margin-bottom:18px;border-radius:18px;background:linear-gradient(145deg,#7652e6,#5d3bc8);color:#fff;font-size:22px;font-weight:900;box-shadow:0 14px 34px rgba(104,71,245,.25)}.login-intro h2{margin:7px 0 8px;font-size:clamp(34px,5vw,58px);line-height:.98;letter-spacing:-.055em}.login-intro p{max-width:540px;margin:0;color:#7b7384;font-size:14px;line-height:1.55}.login-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.login-role-card{position:relative;display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:16px;min-height:150px;padding:19px;text-align:left;border:1px solid #e8e2ef;border-radius:23px;background:rgba(255,255,255,.86);color:#30283b;cursor:pointer;box-shadow:0 12px 30px rgba(51,36,79,.045);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease}.login-role-card:hover{transform:translateY(-5px);border-color:#d1c4f3;box-shadow:0 24px 48px rgba(72,49,127,.12);background:#fff}.role-visual{position:relative;width:88px;height:88px;border-radius:22px;background:linear-gradient(145deg,#f4efff,#ebe3ff);overflow:hidden}.parent .role-visual{background:linear-gradient(145deg,#eef7ff,#e6f0ff)}.role-visual i{position:absolute;display:grid;place-items:center;border-radius:50%;font-style:normal;font-weight:850;box-shadow:0 7px 18px rgba(65,43,110,.11);animation:adeliaRoleOrbit 4.8s ease-in-out infinite}.role-visual i:nth-child(1){width:38px;height:38px;left:10px;top:11px;background:#fff;color:#6847f5}.role-visual i:nth-child(2){width:31px;height:31px;right:9px;top:29px;background:#6847f5;color:#fff;animation-delay:-1.5s}.role-visual i:nth-child(3){width:25px;height:25px;left:28px;bottom:7px;background:#fff;color:#6d5c7d;animation-delay:-3s}.role-copy{display:grid;gap:4px}.role-copy small{color:#8a8192;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.role-copy b{font-size:22px;letter-spacing:-.035em}.role-copy em{max-width:230px;color:#81798a;font-size:10px;line-height:1.45;font-style:normal}.role-arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f3effa;color:#6847f5;font-weight:900;transition:transform .2s}.login-role-card:hover .role-arrow{transform:translateX(3px)}.teacher-login-link{display:inline-flex;margin-top:20px;color:#746b7d;font-size:10px;font-weight:800;text-decoration:none}.teacher-login-link:hover{color:#6847f5}.adelia-login-form{max-width:500px;margin:clamp(28px,8vh,90px) auto;animation:adeliaGatewayIn .35s ease both}.auth-back{border:0;background:transparent;color:#776d80;padding:0 0 14px;font:800 10px/1 inherit;cursor:pointer}.auth-leaving .adelia-login-gateway{animation:adeliaGatewayOut .2s ease both}
@keyframes adeliaGatewayIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}@keyframes adeliaGatewayOut{to{opacity:0;transform:translateY(-8px) scale(.99)}}@keyframes adeliaFloat{50%{transform:translate3d(12px,14px,0) scale(1.04)}}@keyframes adeliaRoleOrbit{50%{transform:translateY(-4px) rotate(4deg)}}
@media(max-width:720px){.adelia-login-gateway{margin:16px auto;padding:24px 18px;border-radius:26px}.login-role-grid{grid-template-columns:1fr}.login-role-card{grid-template-columns:72px 1fr 30px;min-height:124px;padding:15px}.role-visual{width:70px;height:70px;border-radius:19px}.role-visual i:nth-child(1){width:31px;height:31px}.role-visual i:nth-child(2){width:27px;height:27px}.role-visual i:nth-child(3){width:22px;height:22px}.login-intro h2{font-size:38px}}
@media(prefers-reduced-motion:reduce){.adelia-login-gateway,.login-aurora,.role-visual i,.auth-leaving .adelia-login-gateway{animation:none!important}.login-role-card,.role-arrow{transition:none!important}}


/* Adelia Student Mobile 2026 — polished compact experience */
@media(max-width:759px){
 html,body{background:#f7f7fb!important}
 .topbar{min-height:72px!important;padding:11px 14px!important;background:rgba(249,249,252,.95)!important;border-bottom:1px solid #ebeaf0!important}
 .eyebrow{font-size:8px!important;letter-spacing:.11em!important;color:#8a7ba5!important}
 #pageTitle{margin-top:3px!important;font-size:25px!important;color:#18152a!important}
 .avatar-btn{width:39px!important;height:39px!important;border-radius:12px!important}
 .content{padding:14px 11px calc(92px + env(safe-area-inset-bottom))!important}
 .card,.panel,.home-card,.lesson-card,.homework-card,.booking-card,.finance-card,.group-card,.event-card,.profile-card,.message-card{border-radius:17px!important;border-color:#ebe9f1!important;box-shadow:0 5px 18px rgba(45,36,72,.04)!important}
 .hero,.home-hero,.student-hero,.lesson-hero{border-radius:19px!important;background:linear-gradient(135deg,#282143,#40327b)!important;box-shadow:0 13px 30px rgba(52,38,100,.14)!important}
 .primary,.btn-primary,button.primary{min-height:43px!important;border-radius:13px!important}
 .soft,.ghost,.btn-secondary{min-height:41px!important;border-radius:13px!important}
 .bottom-nav{width:calc(100% - 14px)!important;bottom:max(7px,env(safe-area-inset-bottom))!important;padding:5px!important;border-radius:18px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 12px 34px rgba(28,26,43,.14)!important}
 .nav-item{min-height:50px!important;padding:6px 2px!important;border-radius:13px!important}
 .nav-item span{font-size:18px!important}.nav-item small{font-size:11px!important;line-height:1.15!important;margin-top:3px!important}
 .nav-item.active{background:#f0ecff!important;color:#6847f5!important}
 .empty,.empty-state{padding:22px 15px!important;border-radius:15px!important}
 .student-chat-card{height:calc(100dvh - 158px)!important;min-height:430px!important;border-radius:18px!important}
 .student-chat-head{padding:12px!important}.student-chat-avatar{width:40px!important;height:40px!important;flex-basis:40px!important;font-size:17px!important}
 .student-chat-history{padding:14px 10px!important}.student-chat-bubble{max-width:88%!important;padding:9px 11px!important}.student-chat-text{font-size:13px!important}
 .student-chat-compose{padding:8px!important}.student-chat-compose textarea{min-height:44px!important;padding:11px 12px!important}.student-chat-compose button{width:44px!important;height:44px!important;flex-basis:44px!important}
 .student-hw-head{padding:16px!important;border-radius:18px!important}.student-hw-head h2{font-size:21px!important}.student-solve-task{padding:14px!important;border-radius:16px!important}
 .student-submit-hw{bottom:76px!important;width:100%!important}
}

/* Browser/PWA shell split: browser navigation belongs under the header; only installed PWA floats at the bottom. */
html.adelia-browser .bottom-nav{position:sticky!important;top:76px!important;left:auto!important;bottom:auto!important;transform:none!important;width:min(calc(100% - 24px),1120px)!important;margin:10px auto 0!important;z-index:35!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(28,30,40,.08)!important}
html.adelia-browser .content{padding-bottom:42px!important}
html.adelia-browser .nav-item{min-height:44px!important}
@media(max-width:560px){html.adelia-browser .bottom-nav{top:65px!important;width:calc(100% - 16px)!important;margin-top:8px!important;padding:4px!important;border-radius:15px!important}html.adelia-browser .content{padding-bottom:34px!important}}

/* Keep the five primary destinations legible on narrow PWA screens. */
.bottom-nav .nav-item:focus-visible{outline:2px solid #6847f5!important;outline-offset:2px!important}
@media(max-width:360px){.bottom-nav .nav-item small{font-size:10px!important}}

.student-offline-note{margin:0 0 16px;padding:12px 14px;border:1px solid #e9ddad;border-radius:14px;background:#fff9e5;color:#554a2b;font-size:13px;line-height:1.4}
