:root{--navy:#081b30;--dark:#09263d;--teal:#06aebc;--teal2:#40d4d2;--ink:#132f45;--muted:#73899c;--line:#dce9ef;--bg:#f3f8fa}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{min-height:100%;margin:0;background:var(--bg);font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.hidden{display:none!important}.wrap{width:min(1360px,calc(100% - 56px));margin:auto}.top{height:76px;background:#fff;border-bottom:1px solid #dcebf2;position:sticky;top:0;z-index:10}.top-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{text-decoration:none;display:flex;align-items:center;gap:11px;color:var(--navy)}.brand b{font-size:23px;font-weight:850;letter-spacing:-1px}.brand b span{color:var(--teal)}.brand small{display:block;font-size:9px;letter-spacing:.17em;font-weight:800;color:#738ba0;text-transform:uppercase}.mark{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(135deg,#064b80,#02afbf);box-shadow:0 8px 20px #008aa52c}.top-nav,.top-actions{display:flex;align-items:center;gap:18px}.nav-link{background:none;border:0;color:#50697a;font-weight:650;padding:12px 5px}.nav-link.active{color:#087f94}.ghost{background:white;border:1px solid #ccdee7;border-radius:11px;padding:12px 18px;color:#1a4155;font-weight:750}.ghost.small{padding:9px 14px;font-size:13px}.primary{background:linear-gradient(110deg,#006e9b,#07b6c0);color:white;border:0;border-radius:11px;padding:12px 20px;font-weight:780;box-shadow:0 9px 22px #0392b61b}.primary.big{width:100%;padding:16px}.primary.big span{float:right}.primary.dark{background:#0a314e}.main-layout{display:grid;grid-template-columns:228px minmax(0,1fr);gap:30px;padding:30px 0 96px}.left-nav{align-self:start;background:#08263e;border-radius:18px;padding:20px 12px;position:sticky;top:106px;color:white;min-height:570px}.nav-head{color:#87acbe;font-size:10px;letter-spacing:.16em;font-weight:900;margin:16px 13px 12px}.side-link{display:flex;align-items:center;gap:14px;width:100%;color:#bbd6df;text-align:left;background:none;border:0;border-radius:12px;padding:13px 15px;font-weight:650}.side-link span{font-size:22px;width:24px;text-align:center}.side-link.active{background:linear-gradient(110deg,#086a91,#007e91);color:white}.side-bottom{border-top:1px solid #20465b;margin:85px 10px 0;padding-top:24px;color:#afc9d5;font-size:13px}.tiny-pill{background:#123f58;border-radius:20px;padding:8px 10px;font-weight:700}.content,.screen{min-width:0}.screen{display:none}.screen.active{display:block}.screen-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 27px}.overline{font-size:11px;font-weight:850;letter-spacing:.15em;color:#168fa0}.screen-title h1{font-size:clamp(32px,3.2vw,52px);line-height:1.13;letter-spacing:-.055em;margin:11px 0}.screen-title h1 em{font-style:normal;color:#00a6b5}.screen-title p{margin:0;color:#687f8e;font-size:16px;max-width:610px}.orb{font-size:58px;border-radius:50%;width:118px;height:118px;display:grid;place-items:center;background:linear-gradient(135deg,#e3fbfc,#e8f3fa);color:#169baa}.card{background:white;border-radius:19px;border:1px solid var(--line);padding:25px;box-shadow:0 18px 50px #0e49600b;margin:0 0 20px}.language-row{display:flex;justify-content:center;align-items:center;gap:16px;margin-bottom:20px}.lang{border:1px solid #daebef;background:#f0f8fa;color:#12405a;border-radius:12px;padding:11px 19px;font-weight:760;min-width:180px}.swap{border:0;background:#e4f5f7;border-radius:50%;width:43px;height:43px;font-size:24px;color:#007e96}.translation-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.translation-box{min-width:0;display:flex;flex-direction:column;background:#f8fbfc;border:1px solid var(--line);border-radius:14px;padding:19px;min-height:240px}.output-box{background:#f1fbfb}.box-label{font-size:11px;font-weight:850;color:#618699;letter-spacing:.12em;margin-bottom:12px}.translation-box textarea{flex:1;resize:vertical;outline:none;border:0;background:none;color:#1b3a4d;font-size:17px;min-width:0;width:100%}.translation-result{flex:1;font-size:17px;white-space:pre-wrap;overflow-wrap:anywhere}.box-footer{display:flex;align-items:center;gap:9px;margin-top:10px;color:#7f98a4;font-size:12px}.box-footer span:last-child{margin-left:auto}.circle-icon{display:grid;place-items:center;border:1px solid #d7edf0;background:#e9f7f8;color:#006c85;width:36px;height:36px;border-radius:10px}.translate-card>.primary{margin-top:18px}.status{color:#a53b3b;margin:10px 0 0;min-height:0;font-size:13px}.status:empty{display:none}.explain-card{display:flex;align-items:center;gap:15px;padding:20px}.explain-card div{flex:1}.explain-card p{margin:4px 0 0;color:#78909d;font-size:13px}.feature-icon{background:#d9f7f7;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#128e9b;font-size:26px}.dual-talk{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}.talk-side{border:1px solid #dcebf2;background:#f5fafc;border-radius:15px;padding:18px;display:grid;gap:14px}.talk-side span{font-size:12px;font-weight:800;color:#3e738c}#talkText{width:100%;border:1px solid var(--line);border-radius:12px;resize:vertical;padding:15px;font-size:16px;min-height:120px;display:block;margin-bottom:12px}.talk-result{padding:20px;background:#e5f6f6;border-radius:12px;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere}.small-note{font-size:12px;color:#7b909c}.tutor-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:20px}.tutor-avatar{background:linear-gradient(150deg,#083858,#027b89);border-radius:15px;padding:26px 20px;color:white;text-align:center}.tutor-face{margin:10px auto;width:105px;height:105px;border:5px solid #8fe8e2;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#187caa,#40c6c5);font-size:58px}.tutor-avatar h2{margin:12px 0 0;font-size:27px}.tutor-avatar p{margin:5px 0 23px;color:#c4e8ed}.tutor-avatar label{display:block;text-align:left;font-size:12px;margin:13px 0 6px}.tutor-avatar select{width:100%;padding:11px;border-radius:10px;border:0}.setting-row{display:flex!important;align-items:center;gap:8px}.tutor-work{min-width:0;display:flex;flex-direction:column}.tutor-history{min-height:220px;max-height:340px;overflow-y:auto;background:#f6fafb;border-radius:13px;padding:16px}.bot-msg,.you-msg{padding:12px 14px;border-radius:13px;max-width:90%;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}.bot-msg{background:#dff4f4;margin-right:auto}.you-msg{background:#cde9ff;margin-left:auto}.quick-prompts{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.quick-prompts button{border:1px solid #d7e9ef;background:#fff;border-radius:20px;padding:7px 10px;color:#24627a;font-size:12px}.compose{display:flex;gap:8px}.compose input{min-width:0;flex:1;border-radius:11px;border:1px solid #d7e8ed;padding:11px;font-size:16px}.levels{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.level{padding:10px 17px;border-radius:11px;background:#e2e9ed;color:#7b8892;font-weight:750;font-size:13px}.level.active{background:#d5f6f7;color:#007f8a}.lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.lesson-tile{border:1px solid #d9e7ed;border-radius:16px;padding:20px;text-align:left;background:#fff}.lesson-tile h3{font-size:18px;margin:7px 0}.lesson-tile p{font-size:13px;color:#79909d;margin:0}.lesson-tile .tag{font-size:12px;font-weight:800;color:#009ca9}.lesson-tile.done{border-color:#37bec3}.lesson-content{padding:10px 0}.lesson-content ul{padding-left:21px}.lesson-content li{margin:8px 0}.modal{position:fixed;inset:0;background:#051d2fbb;z-index:50;display:grid;place-items:center;padding:15px}.modal-card{background:white;border-radius:20px;width:min(430px,100%);padding:29px;position:relative}.modal-mark{width:50px;height:50px;margin-bottom:15px;font-size:28px}.modal-card h2{font-size:28px;margin:0}.modal-card p{color:#738996;margin:6px 0 19px}.modal-card label{display:block;font-weight:700;font-size:13px;margin:12px 0}.modal-card input{display:block;width:100%;padding:13px;border:1px solid #d8e5ea;border-radius:10px;margin-top:6px;font-size:16px}.modal-card .close{position:absolute;right:17px;top:12px;border:0;background:none;font-size:20px}.linkbtn{background:none;border:0;color:#008ca0;margin:14px 0;font-weight:750}.toast{position:fixed;bottom:92px;left:50%;transform:translateX(-50%);background:#092d40;color:white;border-radius:14px;padding:12px 20px;box-shadow:0 10px 45px #09273e3a;z-index:60;display:none;max-width:90vw}.bottom-nav{display:none}#lessonPanel{margin-top:20px}@media(max-width:1050px){.wrap{width:min(100% - 30px,1050px)}.top-nav{display:none}.main-layout{grid-template-columns:185px minmax(0,1fr);gap:18px}.left-nav{padding:12px 7px}.tutor-layout{grid-template-columns:210px 1fr}}
@media(max-width:720px){html,body{width:100%;overflow-x:hidden}.wrap{width:calc(100% - 28px)}.top{height:auto;min-height:calc(60px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}.top-inner{height:60px}.brand b{font-size:20px}.brand small{font-size:8px}.mark{width:37px;height:37px}.top-actions{gap:5px}.top-actions .small{padding:8px 9px;font-size:12px}.main-layout{display:block;padding:17px 0 calc(98px + env(safe-area-inset-bottom,0px))}.left-nav{display:none}.screen-title{margin:4px 0 18px}.screen-title h1{font-size:34px;line-height:1.13;margin:8px 0}.screen-title p{font-size:14px}.orb{display:none}.card{padding:16px;margin-bottom:14px;border-radius:16px}.language-row{gap:8px;margin-bottom:14px}.lang{min-width:0;flex:1;padding:10px 8px;font-size:12px}.swap{flex:0 0 37px;width:37px;height:37px}.translation-grid{grid-template-columns:minmax(0,1fr)}.translation-box{min-height:170px;padding:14px}.translation-box textarea{font-size:16px;min-height:110px}.translation-result{min-height:85px}.explain-card{align-items:flex-start;flex-wrap:wrap}.explain-card .ghost{margin-left:58px}.dual-talk{grid-template-columns:1fr}.tutor-layout{grid-template-columns:1fr}.tutor-avatar{padding:17px}.tutor-face{width:65px;height:65px;font-size:39px;margin:4px auto}.tutor-avatar h2{font-size:21px}.tutor-avatar p{margin-bottom:10px}.tutor-avatar label{margin:7px 0}.tutor-history{min-height:200px;max-height:40dvh}.lesson-grid{grid-template-columns:1fr}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;height:calc(64px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;box-shadow:0 -2px 16px #0a354019;border-top:1px solid #dceaf0;justify-content:space-around;align-items:stretch}.bottom-nav button{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;border:0;background:none;color:#657f92;font-size:10px;gap:1px;font-weight:700}.bottom-nav button span{font-size:24px;line-height:1.2}.bottom-nav button.active{color:#008c9e}.compose input{font-size:16px}.modal{align-items:center;overflow-y:auto}.modal-card{max-height:90dvh;overflow-y:auto}}

/* EDU V2: visual refinement and administration; no changes to mobile viewport behavior. */
:root { --edu-shadow: 0 16px 45px rgba(12,49,71,.09); }
.card{box-shadow:var(--edu-shadow)}
.primary{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.primary:hover{filter:brightness(1.04);box-shadow:0 9px 24px rgba(2,155,165,.19)}
.primary:active{transform:translateY(1px)}
.pricing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 20px}
.plan-card{min-width:0;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.plan-card h2{font-size:clamp(1.75rem,3vw,2.7rem);margin:0}
.plan-card p{line-height:1.65}.plan-card.highlighted{border:1px solid #34bec9;background:linear-gradient(145deg,#f3ffff,#fff)}
.admin-block{margin-top:18px}.admin-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #d8e9ee;overflow-wrap:anywhere}
.admin-row>div{flex:1;min-width:160px}.admin-row .ghost{white-space:normal}
@media(max-width:720px){.pricing{grid-template-columns:1fr}.plan-card{gap:12px}.admin-row{align-items:stretch}.admin-row .ghost{max-width:100%}}

/* ROConnect EDU 3: visual upgrade – preserves existing mobile viewport positioning */
:root{--navy:#081d32;--teal:#00aeba;--bg:#eef5f9;--line:#d4e4ec}
body{background:radial-gradient(ellipse at 100% -15%,rgba(0,197,208,.10),transparent 42%),linear-gradient(180deg,#f4fafc 0%,#edf5f9 100%)}
.top{background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}
.mark{border-radius:16px;background:linear-gradient(145deg,#073b65,#01b4bc);box-shadow:0 12px 24px rgba(4,116,149,.24)}
.left-nav{background:linear-gradient(155deg,#071a2e,#0a3450 65%,#0c4859);box-shadow:0 20px 60px rgba(5,30,51,.16)}
.side-link.active{background:linear-gradient(100deg,#0788a0,#00afb8)}
.card{border:1px solid rgba(190,218,232,.72);box-shadow:0 13px 40px rgba(9,54,75,.065);border-radius:22px}
.screen-title h1{font-weight:840;letter-spacing:-.045em}.screen-title p{line-height:1.6}
.translate-card{background:linear-gradient(170deg,#fff,#f9fdfe)}
.translation-box{border-radius:19px;background:#f5f9fc;border-color:#d9e8ee}
.output-box{background:linear-gradient(145deg,#e9f8f9,#f6fdfd);border-color:#bee5e7}
.lang{border-radius:999px}.swap{box-shadow:0 5px 16px #009baa20}
.primary{border-radius:14px;background:linear-gradient(105deg,#057d9e,#07b4b7);box-shadow:0 12px 25px rgba(0,143,174,.20)}
.tutor-avatar{border-radius:19px;background:linear-gradient(145deg,#08253f,#08788e)}
.tutor-face{box-shadow:0 0 35px rgba(82,227,227,.27)}.tutor-history{border:1px solid #e0eff3;background:linear-gradient(180deg,#f7fbfd,#eff8fa)}
.premium-payment-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.payment-verify{display:grid;gap:9px;width:100%;padding-top:15px;border-top:1px solid #cbe7e9}
.payment-verify label{font-size:13px;font-weight:700;color:#3b6371}
.payment-verify input{width:100%;border:1px solid #d0e6eb;border-radius:12px;padding:12px;font-size:16px}
.plan-card small{font-size:14px;font-weight:500;color:#647c8b}
#tutorVoiceTurn{white-space:nowrap}
@media(max-width:720px){.top{backdrop-filter:none}.main-layout{padding-top:14px}.card{border-radius:17px}.screen-title h1{font-size:clamp(29px,8vw,36px)}.translation-box{border-radius:14px}.tutor-layout{gap:12px}.compose{flex-wrap:wrap}.compose #tutorInput{flex-basis:100%;width:100%}.compose .primary{flex:1}.compose #tutorVoiceTurn{font-size:12px;padding:9px}.premium-payment-link{width:100%}}

/* V4: premium benefits readable on desktop and mobile */
.plan-features{margin:0;padding-left:20px;display:grid;gap:11px;color:#12364e;line-height:1.52}
.plan-features li::marker{color:#009da9}
.plan-card{justify-content:flex-start}.plan-card .premium-payment-link{margin-top:auto}
.plan-card.highlighted{box-shadow:0 20px 44px rgba(1,122,153,.11)}
.plan-card .small-note{font-size:12.5px;line-height:1.65}
@media(max-width:720px){.plan-features{gap:9px}.plan-card{padding:22px 19px}}

/* ROConnect EDU 1.1 — desktop, phone and installed PWA */
:root{--navy:#05263f;--dark:#062840;--teal:#03adbf;--teal2:#48d5d4;--bg:#f4f9fc;--line:#dae8f0}
html{scroll-padding-top:94px}body{background:radial-gradient(circle at 93% 8%,rgba(14,192,211,.12),transparent 32%),linear-gradient(180deg,#f4fafc 0%,#f7fbfd 100%);-webkit-tap-highlight-color:transparent}body,input,textarea,button{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(4,176,193,.45);outline-offset:3px}.top{box-shadow:0 3px 18px rgba(8,54,77,.035)}.top-inner{max-width:1450px}.brand b{letter-spacing:-.055em}.brand .mark{border-radius:50%;background:linear-gradient(140deg,#00619c,#00bfd0)}.top-nav .nav-link.active{color:#008da3;border-bottom:3px solid #00aebd}.main-layout{width:min(1450px,calc(100% - 52px));grid-template-columns:238px minmax(0,1fr);gap:26px}.left-nav{border-radius:19px;background:linear-gradient(160deg,#063a59,#061f36 78%);box-shadow:0 18px 46px rgba(4,38,56,.12)}.side-link.active{background:linear-gradient(115deg,#0076a5,#00a9b6);box-shadow:0 5px 20px rgba(0,140,171,.22)}.screen-title{margin-top:9px}.screen-title h1{font-weight:850;letter-spacing:-.052em}.screen-title p{line-height:1.65}.card{border:1px solid #dceaf2;box-shadow:0 14px 42px rgba(14,65,93,.07)}.primary{transition:transform .18s ease,box-shadow .18s ease}.primary:hover{transform:translateY(-1px);box-shadow:0 12px 29px rgba(3,146,182,.22)}.translation-box{background:#fff;min-height:255px}.output-box{background:linear-gradient(145deg,#ecfbfd,#f7fbff)}.translate-card{border-radius:22px}.language-row{gap:12px}.lang{background:#f8fbfe}.bottom-nav{box-shadow:0 -7px 24px rgba(6,46,73,.1)}
/* Academy level selection modeled after approved 4-level design */
.academy-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 30px;margin:0 0 19px;border-radius:21px;color:white;background:radial-gradient(circle at 94% 15%,rgba(68,223,233,.37),transparent 32%),linear-gradient(115deg,#073d60,#008fa4);box-shadow:0 16px 35px rgba(3,77,112,.16)}.academy-badge{font-size:11px;font-weight:850;letter-spacing:.14em;color:#a9fcfa}.academy-hero h2{color:white;font-size:clamp(24px,2.5vw,34px);margin:7px 0}.academy-hero p{margin:0;color:#d9f5f8;max-width:600px}.academy-counter{flex:0 0 auto;display:grid;place-items:center;text-align:center;min-width:139px;border:1px solid rgba(255,255,255,.23);background:rgba(255,255,255,.1);border-radius:18px;padding:12px}.academy-counter strong{font-size:43px;line-height:1.2}.academy-counter span{font-size:11px;color:#d2f9f9;font-weight:700}.level-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:30px}.level-choice{position:relative;min-height:147px;text-align:left;border:2px solid transparent;border-radius:20px;color:#fff;padding:21px;display:flex;flex-direction:column;gap:2px;box-shadow:0 10px 25px rgba(15,92,126,.12);transition:transform .18s,border-color .18s,box-shadow .18s}.level-choice:hover{transform:translateY(-3px)}.level-choice.active{border-color:#fff;outline:3px solid rgba(0,175,192,.38);box-shadow:0 12px 30px rgba(0,135,158,.18)}.level-choice[data-level="A1"]{background:linear-gradient(125deg,#007a93,#25c4c0)}.level-choice[data-level="A2"]{background:linear-gradient(125deg,#225cbd,#4ab2ec)}.level-choice[data-level="B1"]{background:linear-gradient(125deg,#624bc3,#9273f0)}.level-choice[data-level="B2"]{background:linear-gradient(125deg,#f17622,#ffaf55)}.level-choice strong{font-size:32px;line-height:1.1;letter-spacing:-.05em}.level-choice span{font-weight:800;font-size:14px}.level-choice small{font-size:12px;opacity:.92}.lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 13px}.lesson-heading h2{font-size:24px;letter-spacing:-.04em;margin:0}.lesson-heading p{margin:4px 0 0;color:#688299;font-size:13px}.progress-pill{white-space:nowrap;color:#057c8b;background:#dcf8f8;padding:7px 12px;border-radius:20px;font-weight:800}.lesson-progress-track{height:8px;background:#e4eef3;border-radius:10px;overflow:hidden;margin-bottom:16px}.lesson-progress-track div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#0098b5,#31ced0);transition:width .2s}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lesson-tile{display:flex;gap:13px;align-items:center;min-height:80px;border:1px solid #e0ebf1;border-radius:15px;background:#fff;padding:13px 15px;text-align:left;box-shadow:0 3px 9px rgba(15,64,89,.025);color:var(--ink)}.lesson-tile:hover{border-color:#3cbdc9;background:#f5fdfe}.lesson-number{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:50%;background:#eaf2f6;font-weight:850;color:#45778f}.lesson-tile.done .lesson-number{background:#dcf9f5;color:#007c79}.lesson-label{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.lesson-label strong{font-size:14px;line-height:1.26}.lesson-label small{color:#8398a8;font-size:11px}.lesson-arrow{color:#009bab;font-size:23px;font-weight:850}.lesson-detail{margin-top:24px;padding:28px;scroll-margin-top:100px}.lesson-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.lesson-detail-head h2{margin:6px 0 0;font-size:26px}.lesson-examples{display:grid;gap:9px;margin:21px 0}.lesson-phrase{display:flex;gap:12px;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#f0fbfd,#f8fcff);border:1px solid #d6edf1;border-radius:14px;padding:15px}.lesson-phrase>div{display:flex;flex-direction:column;gap:5px}.lesson-phrase strong{font-size:17px}.lesson-phrase span{font-size:13px;color:#537c8e}.lesson-phrase .circle-icon{flex:0 0 39px}.lesson-quiz{padding:19px;border:1px solid #dcebf1;background:#f8fcfd;border-radius:15px}.lesson-quiz h3{margin:0 0 8px}.lesson-quiz input{width:100%;height:49px;border:1px solid #cddfe8;border-radius:10px;padding:12px;background:#fff;min-width:0}.lesson-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}.lesson-feedback{min-height:17px;font-size:13px;font-weight:700}.lesson-feedback.success{color:#008271}.lesson-feedback.error{color:#a24b38}
@media(max-width:1000px){.main-layout{grid-template-columns:210px minmax(0,1fr);gap:17px}.level-picker{gap:9px}.level-choice{padding:15px;min-height:136px}.lesson-grid{grid-template-columns:1fr}.top-nav{gap:7px}}
@media(max-width:760px){html{scroll-padding-top:72px}.top{height:calc(58px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);background:#06324f;border:0}.top-inner{width:calc(100% - 26px);padding:0}.brand{color:#fff}.brand b{color:white;font-size:20px}.brand b span{color:#59dce0}.brand small{color:#b8deec;font-size:8px}.brand .mark{width:37px;height:37px}.top-nav{display:none}.top-actions .ghost{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.25);padding:8px 9px;font-size:11px}.top-actions{gap:5px}.main-layout{width:100%;display:block;padding:19px 12px calc(115px + env(safe-area-inset-bottom,0px))}.left-nav{display:none}.content{width:100%}.screen-title{margin:2px 0 17px}.screen-title h1{font-size:clamp(29px,8vw,39px);margin:6px 0}.screen-title p{font-size:14px}.overline{font-size:10px}.orb{display:none}.card{border-radius:18px;padding:17px}.translation-grid{grid-template-columns:1fr}.translation-box{min-height:165px;padding:14px}.translation-box textarea{min-height:126px}.language-row{gap:6px}.lang{min-width:0;flex:1;padding:12px 6px;font-size:12px}.swap{width:38px;height:38px;flex:0 0 38px}.bottom-nav{height:calc(67px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;z-index:20}.bottom-nav button{font-size:10px;min-width:0;line-height:1.25}.bottom-nav button.active{color:#0095ac}.academy-hero{padding:21px;gap:15px}.academy-hero h2{font-size:24px}.academy-hero p{font-size:12px}.academy-counter{min-width:82px;padding:9px}.academy-counter strong{font-size:29px}.academy-counter span{font-size:10px}.level-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:24px}.level-choice{min-height:126px;border-radius:16px;padding:16px}.level-choice strong{font-size:30px}.lesson-grid{grid-template-columns:1fr;gap:9px}.lesson-tile{min-height:70px}.lesson-detail{scroll-margin-top:75px;padding:16px}.lesson-detail-head h2{font-size:21px}.lesson-heading h2{font-size:20px}.lesson-heading p{font-size:12px}.lesson-phrase strong{font-size:15px}.lesson-quiz{padding:13px}.lesson-actions>*{flex:1}.modal-card{max-height:calc(100dvh - 35px);overflow-y:auto}input,textarea,select{font-size:16px}.screen.active{animation:pageenter .16s ease}@keyframes pageenter{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media(max-width:380px){.academy-hero{flex-direction:column;align-items:stretch}.academy-counter{display:flex;gap:8px;justify-content:center}.level-choice{min-height:118px}.bottom-nav button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ROConnect 1.2 — dedicated home screen based on approved screen layout */
.home-hero{min-height:475px;position:relative;overflow:hidden;border-radius:23px;background:linear-gradient(94deg,rgba(2,24,46,.9),rgba(4,61,88,.46)),url('/assets/roconnect-city.svg') center 57%/cover no-repeat;color:white;box-shadow:0 18px 48px rgba(6,48,79,.14)}.home-hero-inner{max-width:660px;position:relative;z-index:1;padding:50px 56px 48px}.home-eyebrow{display:inline-flex;color:#a7f8fa;background:#072d4799;border:1px solid #8adce250;font-weight:850;font-size:10px;letter-spacing:.16em;padding:9px 13px;border-radius:20px}.home-bigmark{width:61px;height:61px;margin-top:24px;border-radius:50%;display:grid;place-items:center;font-size:40px;background:linear-gradient(135deg,#0d729f,#00c1c4);border:3px solid #ffffff66;box-shadow:0 12px 30px #001b397d}.home-hero h1{color:white;font-size:clamp(40px,4.5vw,65px);letter-spacing:-.06em;margin:7px 0 0;line-height:1.12}.home-hero h1 span{color:#6bf0eb}.home-sub{font-size:18px;color:#dceff9;margin:3px 0 18px}.home-tagline{font-size:23px;line-height:1.35;margin:0 0 20px;font-weight:680}.home-bullets{display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;font-size:12px;color:#e2f9fd;margin-bottom:23px}.home-bullets span::first-letter{color:#40e1e1}.home-start{padding:14px 32px!important;min-width:200px}.home-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0 4px}.home-feature{background:white;border:1px solid #d7e8f0;border-radius:16px;min-width:0;min-height:105px;padding:13px 9px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;box-shadow:0 8px 27px #0c415e0e;color:#0d3753}.home-feature:hover{border-color:#00b4c4;transform:translateY(-2px)}.hf-icon{height:42px;width:42px;border-radius:13px;background:linear-gradient(135deg,#dffafd,#dbedff);color:#008ca9;font-size:26px;display:grid;place-items:center}.home-feature:nth-child(3) .hf-icon{background:#eee7ff;color:#7e51ce}.home-feature:nth-child(4) .hf-icon{background:#fff0df;color:#ed8528}.home-feature b{font-size:14px}.home-feature small{font-size:11px;color:#6e8799}.home-footnote{text-align:center;color:#8197a3;font-size:12px;margin:18px 0}.more-menu{display:none}
/* Translator: refined vertical spacing & full width actions */
#translate .translate-card{padding:27px}#translate .translation-box textarea{resize:vertical}#translate .circle-icon:hover,.quick-prompts button:hover{background:#c9f4f3}#tutor .bot-msg{line-height:1.68}#tutor .tutor-history{scrollbar-color:#b4cfd4 transparent}#tutor .tutor-face{box-shadow:inset 0 2px 22px #ffffff24,0 8px 26px #00263f35}
@media(max-width:760px){.main-layout:has(#home.active){padding-top:0}.home-hero{border-radius:0;min-height:calc(100dvh - 144px - env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(0,27,53,.3),rgba(1,22,40,.33) 35%,rgba(1,19,34,.87) 90%),url('/assets/roconnect-city.svg') center/cover}.home-hero-inner{text-align:center;max-width:100%;padding:27px 19px 32px;display:flex;align-items:center;flex-direction:column}.home-bigmark{margin-top:23px;width:66px;height:66px}.home-hero h1{font-size:47px;margin-top:9px}.home-sub{font-size:15px;margin-bottom:21px}.home-tagline{font-size:18px;line-height:1.45;margin-bottom:23px}.home-bullets{display:none}.home-start{margin-top:19px;width:100%;max-width:360px}.home-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:-205px 12px 0;position:relative;z-index:2}.home-feature{min-height:87px;border-radius:13px;box-shadow:0 9px 18px #03233b50;padding:10px 5px}.hf-icon{width:35px;height:35px;font-size:23px}.home-feature b{font-size:13px}.home-feature small{font-size:10px}.home-footnote{position:relative;z-index:2;margin:17px 9px 0;color:#527185}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.bottom-nav button span{font-size:22px}.more-menu{position:fixed;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;bottom:calc(73px + env(safe-area-inset-bottom,0px));left:12px;right:12px;z-index:22;background:white;border:1px solid #d7eaf0;border-radius:17px;padding:13px;box-shadow:0 12px 50px #001a3360}.more-menu button{border:1px solid #dae9ef;border-radius:10px;background:#f7fbfc;color:#104160;font-weight:750;min-height:47px;text-align:left;padding:12px;font-size:13px}.more-menu button:active{background:#def5f5}#translate .translate-card{padding:14px}#tutor .tutor-avatar{display:grid;grid-template-columns:64px minmax(0,1fr);gap:3px 12px;align-items:center;text-align:left}#tutor .tutor-face{grid-row:span 2;margin:0;width:62px;height:62px;font-size:35px}#tutor .tutor-avatar h2{margin:0;font-size:22px}#tutor .tutor-avatar p{margin:0}#tutor .tutor-avatar label:not(.setting-row),#tutor .tutor-avatar select,#tutor .tutor-avatar .setting-row{grid-column:1/-1}#tutor .tutor-avatar select{max-width:100%}.home-hero+.home-features{margin-top:-185px}}
@media(max-width:365px){.home-hero h1{font-size:39px}.home-features{margin-top:-165px!important}.home-feature{min-height:79px}.home-hero{min-height:620px}}

/* V7 — mobile bottom navigation readability and touch targets */
@media (max-width:760px){
  .bottom-nav{height:calc(78px + env(safe-area-inset-bottom,0px));padding:4px 3px env(safe-area-inset-bottom,0px);gap:0;align-items:stretch;background:#fff;border-top:1px solid #d5e7ee;}
  .bottom-nav button{min-width:0;min-height:64px;padding:7px 1px 6px;gap:3px;font-size:clamp(10px,2.7vw,13px);line-height:1.15;font-weight:800;letter-spacing:-.02em;color:#37576e;text-align:center;border-radius:10px;overflow-wrap:normal;white-space:nowrap;}
  .bottom-nav button span{font-size:24px;line-height:1;display:block;color:inherit;font-weight:650;}
  .bottom-nav button.active{background:#e8f8f9;color:#006b84;}
  .bottom-nav button:focus-visible{outline:2px solid #049aac;outline-offset:-2px;}
  .main-layout{padding-bottom:calc(130px + env(safe-area-inset-bottom,0px));}
  .more-menu{bottom:calc(85px + env(safe-area-inset-bottom,0px));}
  .toast{bottom:calc(93px + env(safe-area-inset-bottom,0px));}
}
@media(max-width:380px){.bottom-nav button{font-size:10px;letter-spacing:-.035em}.bottom-nav button span{font-size:22px}}


/* ROConnect EDU V8 — narrowly scoped iPhone Safari/PWA corrections */
@media (max-width:760px) {
  /* iOS web-app overscroll: keep the app's navy backdrop behind the top safe area.
     The background is a fallback for WebKit versions that still expose rubber-band motion. */
  html { background-color:#06324f; overscroll-behavior-y:none; }
  body { overscroll-behavior-y:none; }

  /* Home cards stay in document flow rather than overlapping the CTA/hero. */
  #home .home-hero { min-height:0; height:auto; }
  #home .home-hero-inner { padding-bottom:24px; }
  #home .home-features,
  #home .home-hero + .home-features { margin:16px 12px 0; }
}
@media (max-width:365px) {
  #home .home-hero { min-height:0; }
  #home .home-features,
  #home .home-hero + .home-features { margin-top:16px!important; }
}

/* V12: legal navigation and consistent small-screen bottom clearance */
.site-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;padding:1.25rem 1rem 6rem;color:#57778a;font-size:.85rem}.site-legal-links a{color:#007e9b;text-decoration:underline}.legal-page{max-width:840px;margin:2rem auto;padding:2rem;background:white;border-radius:20px;line-height:1.7;color:#153148}.legal-page h1{line-height:1.2}.legal-page section{margin:1.5rem 0}.legal-page a{color:#00879c}@media(min-width:950px){.site-legal-links{padding-bottom:1.5rem}}
