:root{color-scheme:light;--ink:#122b3b;--muted:#526778;--cyan:#00d9ec;--yellow:#ffce28;--coral:#ff525f}
html{background:#075471}body{color:var(--ink);background:#075471!important}
body:before{background:url('background.jpg') center top/cover no-repeat!important;filter:saturate(1.12) contrast(1.05)!important;transform:scale(1.01)!important}
.shell{background:transparent!important;box-shadow:none!important}
.top{align-items:center;gap:10px}
.top h1,.top .kicker,.shell>.page-title,.shell>.section-title{background:#092f43ed!important;color:#fff!important;border-radius:12px;padding:5px 10px!important;box-shadow:none!important}
.top h1,.page-title{letter-spacing:-.65px}.top .kicker{color:#aaf8ff!important}.tag{color:#bffaff!important;letter-spacing:.07em}
.study-card .tag,.exam-section .tag{color:#087b8e!important}
.lead{display:inline-block;max-width:100%;padding:8px 12px;border-radius:10px;background:#082d42e8;color:#fff!important;line-height:1.45;text-shadow:none;margin-bottom:22px}
.avatar{background:transparent url('logo-neon-v31.png') center/contain no-repeat!important;width:75px!important;height:75px!important;filter:none;flex:none}
.lesson-card{background:linear-gradient(130deg,#0c304a,#163b64 72%,#262e67);border:1px solid #48e1f7aa;box-shadow:0 14px 30px #06253559}.lesson-card p{color:#e1f5fa}.lesson-card:after{color:#ffffff0e}
.level,.study-card,.row,.number-row,.calendar-card,.free-numbers,.stats,.exam-section,.word-card,.option,.exam-option,.checkpoint{background:#fffffff5!important;color:var(--ink)!important;border:1px solid #dce8ed!important;box-shadow:0 8px 20px #092b3e2b!important}
.level{cursor:pointer;transition:transform .18s,box-shadow .18s}.level:hover{box-shadow:0 10px 24px #092b3e40,0 0 0 2px var(--cyan)!important}.level:active,.free-numbers:active{transform:scale(.98)}
.level small,.stat small,.exam-level small,.calendar-card small,.calendar-row small,.free-numbers small,.sq,.muted{color:var(--muted)!important}.level .track{background:#dce5e8}.level .fill{box-shadow:none}.badge{filter:saturate(1.35);box-shadow:none}
.primary,.range-buttons button,.next-number,.submit-exam{background:#1be4ee!important;color:#073247!important;border:1px solid #11bcca!important;box-shadow:0 5px 12px #05527e37!important;font-weight:900}.primary:active,.range-buttons button:active{transform:translateY(1px)}
.danger{background:#fff;color:#ad274c;border-color:#da738d}.sound{background:#d9f8fc;color:#075773;border:1px solid #9edfe7;box-shadow:none;cursor:pointer}
.search,.exam-textarea,.answer-input{background:#fff;color:var(--ink);border:1px solid #b7cad2}.search::placeholder,.exam-textarea::placeholder{color:#617989}.search:focus,.exam-textarea:focus{outline:2px solid #06cdda;outline-offset:2px}
.nav{background:#fcfffff7!important;border-top:1px solid #cee0e7;box-shadow:0 -6px 20px #062a3640;backdrop-filter:blur(14px)}.nav-item{color:#526777}.nav-item.active{color:#0a899b;text-shadow:none;font-weight:900}
.free-numbers span{background:#ffde40;color:#102d3c;box-shadow:none}.free-numbers>b{color:#07879b}
.calendar-card summary{color:var(--ink)}.calendar-card summary>b,.calendar-index{color:#088ba0}.calendar-row{border-top:1px solid #e7edef}.number-row>strong,.number-challenge{color:#0c849a}
.feedback{background:#123e53;border:1px solid #14c7d5;color:#fff}.option.good,.input-good,.exam-result.pass{background:#e0f7eb!important;border-color:#45bb85!important}.option.bad,.input-bad,.exam-result.retry{background:#ffebee!important;border-color:#e37890!important}
.grammar,.dialogue,.reading,.practice{border-left-width:5px!important}.grammar{border-left-color:#4f89e6!important}.dialogue{border-left-color:#f2bc34!important}.reading{border-left-color:#a979d6!important}.practice{border-left-color:#32af8c!important}
.exam-timer{background:#123e53;color:#fff;border:1px solid #1bd9e5}.exam-option{display:block}.self-check{color:var(--ink)}.divider{background:#d8e4e9}
@media(max-width:420px){.top h1,.page-title{font-size:clamp(23px,6vw,30px)}.avatar{width:65px!important;height:65px!important}.shell{padding-left:17px;padding-right:17px}}
.profile-hero{margin:18px 0 22px;padding:20px;border:1px solid #b8e8f1;border-radius:24px;background:linear-gradient(155deg,#ffffff 0%,#f0fcff 100%);box-shadow:0 14px 28px #042c4155;color:#123249}
.profile-identity{display:flex;gap:16px;align-items:center;min-width:0;padding-bottom:16px;border-bottom:1px solid #d9ecf1}
.profile-picture{width:88px;height:88px;border-radius:50%;flex:none;overflow:hidden;display:grid;place-items:center;background:linear-gradient(140deg,#03cedf,#2264c8 70%,#d3479d);color:#fff;font-size:40px;font-weight:900;box-shadow:0 0 0 4px #e3f9ff,0 8px 18px #0d76a847}
.profile-picture img{width:100%;height:100%;object-fit:cover;display:block}
.profile-intro{min-width:0}.profile-intro small{font-size:11px;letter-spacing:.09em;color:#137e9c;font-weight:900}.profile-intro h2{margin:5px 0;font-size:clamp(20px,5vw,27px);line-height:1.2;overflow-wrap:anywhere}.profile-intro p{margin:0;color:#506779;font-size:14px;overflow-wrap:anywhere}
.profile-form{margin-top:18px}.profile-form>label{display:block;font-weight:850;margin-bottom:8px}.profile-name-row{display:flex;gap:8px}.profile-name-row .search{min-width:0;flex:1;margin:0;padding:12px;border-radius:12px}.profile-name-row .primary{width:auto;margin:0;padding:10px 18px;border-radius:12px}
.photo-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px}.photo-button{display:inline-flex;align-items:center;cursor:pointer;background:#123e53;color:#fff;border-radius:12px;padding:11px 15px;font-weight:800}.photo-button:active{transform:scale(.98)}.photo-controls small{font-size:12px;color:#607889}
@media(max-width:360px){.profile-hero{padding:15px}.profile-picture{width:72px;height:72px}.profile-identity{gap:11px}.profile-name-row .primary{padding:10px 12px}}
.profile-edit-toggle{display:block;margin:16px 0 0;padding:9px 13px;border:1px solid #69cbd9;border-radius:11px;color:#076d81;background:#e6faff;font-weight:850;cursor:pointer}.profile-edit-toggle:focus-visible,.photo-button:focus-visible{outline:3px solid #0ac5da;outline-offset:3px}.profile-editor[hidden]{display:none}.profile-editor{border-top:1px solid #d9ecf1;margin-top:16px}.profile-editor .profile-form{margin-top:16px}.profile-empty{padding:20px;border-radius:18px;background:#fffffff5;color:#233d4c;line-height:1.5}.profile-empty button{display:block;margin-top:10px;border:0;border-radius:10px;background:#18dfea;color:#08374c;padding:10px 13px;font-weight:850;cursor:pointer}
/* Floating glass navigation over the existing coastal background. */
.nav{height:calc(84px + env(safe-area-inset-bottom))!important;padding:7px 8px calc(8px + env(safe-area-inset-bottom))!important;gap:3px;background:linear-gradient(118deg,#e7fdffe0,#ffffffba 42%,#d7f5ffe0 100%)!important;border:1px solid #ffffffc9!important;border-bottom:0!important;border-radius:23px 23px 0 0;box-shadow:0 -8px 28px #052d4852,inset 0 2px 1px #fff, inset 0 -1px 0 #a6e7ed7a!important;-webkit-backdrop-filter:blur(23px) saturate(1.8);backdrop-filter:blur(23px) saturate(1.8);isolation:isolate}
.nav:before{content:"";position:absolute;inset:1px 1px auto;height:30px;border-radius:22px 22px 45% 45%;background:linear-gradient(180deg,#ffffff9c,#ffffff05);pointer-events:none;z-index:-1}
.nav-item{width:25%!important;max-width:112px;min-width:0;border-radius:17px;gap:3px!important;font-size:12px!important;font-weight:750;color:#365769!important;transition:background .2s,transform .2s,color .2s}
.nav-item:active{transform:scale(.94)}.nav-item.active{color:#075c76!important;background:linear-gradient(150deg,#c7fbffdb,#9de9f5a8 70%,#e4ffffb8);box-shadow:inset 0 1px 0 #fff,0 3px 11px #027b9d2b!important}
.nav-icon{display:grid!important;place-items:center;width:34px;height:34px;line-height:1!important}.nav-icon svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #fff8)}.nav-item.active .nav-icon{color:#008da7}.nav-label{font-size:12px!important;line-height:1.2!important}.nav-item:focus-visible{outline:2px solid #009fb9;outline-offset:-2px}
@media(min-width:700px){.nav{border-radius:23px 23px 0 0}}
