
:root{
  --bg:#fffdf5;--card:#fff;--ink:#171717;--muted:#68707e;--yellow:#f6c900;
  --line:#e9e3d1;--good:#16823b;--bad:#c9362b;--soft:#f8f5e8;
  --shadow:0 18px 50px rgba(20,20,20,.08);--purple:#6e58d9;
}
*{box-sizing:border-box}
html,body.beeait-fullscreen-body{margin:0!important;padding:0!important;background:var(--bg)!important}
body.beeait-fullscreen-body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
.beeait-root{min-height:100vh;background:linear-gradient(180deg,#fffef9 0%,#fff9d9 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.beeait-root button,.beeait-root input,.beeait-root select{font:inherit}
.beeait-root button{cursor:pointer}
.beeait-nav{position:sticky;top:0;z-index:80;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:13px 4vw;background:rgba(255,255,255,.93);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.admin-bar .beeait-nav{top:32px}
.beeait-brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em}
.beeait-brand strong{display:block}
.beeait-brand small{display:block;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.10em}
.beeait-logo{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);box-shadow:inset 0 0 0 5px #111;font-size:20px}
.beeait-main-nav{display:flex;justify-content:center;gap:5px}
.beeait-main-nav button,.beeait-mobile-nav button{border:0;background:transparent;padding:10px 13px;border-radius:12px;font-weight:800;color:#3e4147}
.beeait-main-nav button.active,.beeait-main-nav button:hover{background:#111;color:#fff}
.beeait-teacher-link{border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px 13px;font-weight:850;color:#222}
.beeait-teacher-link:hover{background:#111;color:#fff}
.beeait-mobile-menu{display:none;border:0;background:#111;color:#fff;border-radius:11px;width:42px;height:42px;font-size:21px}
.beeait-mobile-nav{position:sticky;top:68px;z-index:70;display:grid;background:#fff;border-bottom:1px solid var(--line);padding:8px 4vw}
.beeait-mobile-nav button{text-align:left}
.beeait-wrap{width:min(1160px,92vw);margin:0 auto;padding:44px 0 72px;min-height:calc(100vh - 150px)}
.beeait-page{display:none}.beeait-page.active{display:block}
.beeait-hero{display:grid;grid-template-columns:1.12fr .88fr;gap:42px;align-items:center;padding:38px 0 32px}
.beeait-kicker{display:inline-flex;gap:8px;align-items:center;background:#111;color:#fff;border-radius:999px;padding:8px 12px;font-weight:850;font-size:13px}
.beeait-hero h1{font-size:clamp(44px,7vw,80px);line-height:.96;letter-spacing:-.055em;margin:20px 0 18px;font-weight:880}
.beeait-hero h1 span{background:linear-gradient(180deg,transparent 58%,var(--yellow) 58%);padding:0 .04em}
.beeait-lead{font-size:clamp(17px,2vw,20px);line-height:1.62;color:#4b5563;max-width:740px}
.beeait-lead.small{font-size:18px}
.beeait-authorline{font-size:13px;color:var(--muted);margin-top:13px}
.beeait-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.beeait-actions.compact{margin:0}
.beeait-btn{border:0;border-radius:15px;padding:14px 18px;font-weight:900;line-height:1.1;transition:.15s ease}
.beeait-btn:hover{transform:translateY(-1px)}
.beeait-btn.dark{background:#111;color:#fff}.beeait-btn.yellow{background:var(--yellow);color:#111}.beeait-btn.outline{background:#fff;border:1px solid var(--line);color:#111}.beeait-btn.full{width:100%;margin-top:14px}
.beeait-mini-points{display:flex;gap:15px;flex-wrap:wrap;color:#575e69;font-size:13px;font-weight:750;margin-top:18px}
.beeait-demo-card{background:#111;color:#fff;border-radius:30px;padding:22px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.beeait-demo-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:var(--yellow);right:-80px;top:-85px;opacity:.95}
.beeait-demo-head{position:relative;z-index:2;display:flex;align-items:center;gap:9px;color:#cfd2d8;font-size:13px;margin-bottom:18px}
.beeait-demo-head b{color:#fff}.beeait-demo-head span:last-child{margin-left:auto}
.beeait-live-dot{width:9px;height:9px;background:#55da77;border-radius:50%;box-shadow:0 0 0 5px rgba(85,218,119,.12)}
.beeait-chat{position:relative;z-index:2;display:grid;grid-template-columns:40px 1fr;gap:10px;padding:13px;border-radius:18px;margin:10px 0}
.beeait-chat.tutor{background:rgba(255,255,255,.09)}.beeait-chat.student{background:#fff;color:#111;margin-left:34px}
.beeait-chat .avatar{width:38px;height:38px;border-radius:12px;background:rgba(246,201,0,.18);display:grid;place-items:center}.beeait-chat p{margin:3px 0 0;line-height:1.45}
.beeait-ai-result{position:relative;z-index:2;background:var(--yellow);color:#111;border-radius:17px;padding:14px;margin-top:13px}
.beeait-ai-result span{display:block;font-size:10px;font-weight:900;letter-spacing:.08em}.beeait-ai-result strong{display:block;font-size:18px;margin:3px 0}.beeait-ai-result p{margin:0;font-size:13px}
.beeait-section-title{font-size:34px;letter-spacing:-.035em;margin:9px 0}.beeait-sub{color:var(--muted);line-height:1.6}
.beeait-feature-grid{display:grid;gap:17px;margin-top:23px}.beeait-feature-grid.two{grid-template-columns:repeat(2,1fr)}.beeait-feature-grid.three{grid-template-columns:repeat(3,1fr)}
.beeait-feature-grid article{background:#fff;border:1px solid var(--line);border-radius:23px;padding:23px;box-shadow:0 10px 30px rgba(20,20,20,.04);position:relative}
.beeait-feature-grid article.featured{border:2px solid #111}
.beeait-feature-grid article.featured:after{content:"AI";position:absolute;top:15px;right:15px;background:var(--yellow);border-radius:999px;padding:5px 9px;font-size:11px;font-weight:950}
.beeait-feature-icon{font-size:29px}.beeait-feature-grid h3{margin:12px 0 8px}.beeait-feature-grid p{color:var(--muted);line-height:1.6}
.beeait-text-link{border:0;background:none;padding:0;font-weight:900;color:#111}
.beeait-how{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:26px}
.beeait-how>div{display:flex;align-items:center;gap:10px;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:13px}
.beeait-how b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#111;color:var(--yellow)}
.beeait-how span{font-size:13px;font-weight:800}
.beeait-panel{background:#fff;border:1px solid var(--line);border-radius:27px;padding:25px;box-shadow:var(--shadow)}
.beeait-setup{max-width:820px;margin:0 auto}
.beeait-mode-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:23px 0}
.beeait-mode-picker button{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;text-align:left;gap:1px 10px;border:1px solid var(--line);background:#fff;border-radius:17px;padding:15px}
.beeait-mode-picker button span{grid-row:1/3;font-size:27px;align-self:center}.beeait-mode-picker button b{font-size:15px}.beeait-mode-picker button small{color:var(--muted)}
.beeait-mode-picker button.active{border:2px solid #111;background:#fff9d9}
.beeait-form-grid{display:grid;grid-template-columns:1.3fr .8fr 1fr;gap:13px}
.beeait-form-grid label{font-weight:850;font-size:13px}
.beeait-form-grid input,.beeait-form-grid select,.beeait-answer-zone input{display:block;width:100%;padding:14px 15px;border:1px solid #ddd5bd;border-radius:14px;background:#fff;font-size:16px;outline:none;margin-top:8px;color:#111}
.beeait-form-grid input:focus,.beeait-form-grid select:focus,.beeait-answer-zone input:focus{border-color:#111;box-shadow:0 0 0 3px rgba(246,201,0,.28)}
.beeait-voice-check{margin-top:14px;background:#f5f3ff;border:1px solid #dcd5ff;border-radius:16px;padding:13px 15px}.beeait-voice-check p{font-size:12px;color:#665f83;margin:6px 0 0}
.beeait-support-row{font-weight:850}
.beeait-session,.beeait-result{max-width:860px;margin:0 auto}
.beeait-session-top{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap}
.beeait-pill{background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-weight:850;font-size:13px}
.beeait-progress{height:12px;border-radius:999px;background:#efe9d3;overflow:hidden;margin:14px 0 25px}.beeait-progress i{display:block;height:100%;width:0;background:#111;transition:.3s}
.beeait-tutor-stage{position:relative;display:grid;grid-template-columns:64px 1fr 54px;gap:14px;align-items:center;background:linear-gradient(135deg,#111,#28282c);border-radius:23px;padding:19px;color:#fff}
.beeait-tutor-avatar{width:60px;height:60px;border-radius:18px;background:var(--yellow);display:grid;place-items:center;font-size:31px}
.beeait-tutor-bubble small{color:var(--yellow);font-weight:900}.beeait-tutor-bubble div{font-size:18px;font-weight:750;margin-top:5px;line-height:1.4}
.beeait-sound-btn{width:52px;height:52px;border:0;border-radius:50%;background:#fff;color:#111;font-size:24px}
.beeait-answer-zone{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:17px}.beeait-answer-zone input{margin:0}
.beeait-voice-zone{text-align:center;margin-top:18px;padding:22px;border:1px dashed #cfc5a8;border-radius:21px;background:#fffdf4}
.beeait-mic-btn{width:92px;height:92px;border-radius:50%;border:0;background:#111;color:#fff;font-size:37px;box-shadow:0 13px 27px rgba(0,0,0,.16);transition:.15s}
.beeait-mic-btn.listening{background:#d83b30;animation:beeaitPulse 1.2s infinite}.beeait-mic-btn:disabled{opacity:.45;cursor:not-allowed}
@keyframes beeaitPulse{50%{box-shadow:0 0 0 13px rgba(216,59,48,.15)}}
.beeait-voice-zone h3{margin:13px 0 5px}.beeait-voice-zone>p{color:var(--muted);font-size:13px;margin:0}
.beeait-transcript{margin:16px auto;background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;font-size:18px;font-weight:800;min-height:53px;max-width:650px}
.beeait-voice-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.beeait-voice-actions button:disabled{opacity:.45}
.beeait-feedback{margin-top:17px;border-radius:18px;padding:18px}.beeait-feedback.good{background:#ecf8ef;border:1px solid #bce1c5;color:#155b2a}.beeait-feedback.bad{background:#fff0ee;border:1px solid #f0c3bc;color:#7a201b}
.beeait-ai-box{margin-top:13px;background:#111;color:#fff;border-radius:17px;padding:17px}.beeait-ai-box>b{color:var(--yellow)}.beeait-ai-box .muted{color:#d4d4d4;font-size:13px}
.beeait-result-grid,.beeait-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0}
.beeait-bigstat{padding:19px;border-radius:18px;background:var(--soft);border:1px solid var(--line)}.beeait-bigstat small{color:var(--muted);font-weight:800}.beeait-bigstat b{display:block;font-size:30px;margin-top:5px}.beeait-bigstat b.smaller{font-size:18px}
.beeait-weak-list{display:grid;gap:9px;margin:14px 0}.beeait-weak{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.beeait-tag{display:inline-block;background:#fff4a8;border:1px solid #e7d367;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:850;margin:3px;color:#111}
.beeait-page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.beeait-focus-card{background:#111;color:#fff;border-radius:22px;padding:20px;margin:17px 0}.beeait-focus-card h3{margin:0 0 8px;color:var(--yellow)}.beeait-focus-card p{margin:0;color:#ddd}
.beeait-list-title{margin-top:24px}.beeait-session-list{display:grid;gap:10px}
.beeait-session-item{display:grid;grid-template-columns:1.3fr .7fr .8fr .9fr;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}
.beeait-session-item small{display:block;color:var(--muted);margin-top:3px}.beeait-session-item .score{font-size:22px;font-weight:900}
.beeait-empty{background:#fff;border:1px dashed #d5cdb5;border-radius:18px;padding:32px;text-align:center;color:var(--muted)}
.beeait-about-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:center}
.beeait-author-card{background:#111;color:#fff;border-radius:23px;padding:24px;box-shadow:var(--shadow)}.beeait-author-card small{display:block;color:var(--yellow);font-weight:900;letter-spacing:.1em}.beeait-author-card strong{display:block;font-size:24px;margin:8px 0}.beeait-author-card span{color:#bbb;font-size:13px}
.beeait-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}.beeait-table-wrap table{width:100%;border-collapse:collapse;background:#fff;min-width:830px}.beeait-table-wrap th,.beeait-table-wrap td{padding:14px 15px;border-bottom:1px solid var(--line);text-align:left}.beeait-table-wrap th{background:#111;color:#fff;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.beeait-table-wrap tr:last-child td{border-bottom:0}
.beeait-scorebar{height:7px;background:#eee6cf;border-radius:999px;overflow:hidden;width:100px;margin-top:5px}.beeait-scorebar i{display:block;height:100%;background:var(--yellow)}
.beeait-note{font-size:12px;color:#766c4d;margin-top:9px}
.beeait-footer{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:24px 4vw;border-top:1px solid var(--line);color:#6b7280;background:#fff;font-size:13px}
.hidden{display:none!important}
@media(max-width:900px){
  .beeait-nav{grid-template-columns:1fr auto}.beeait-main-nav,.beeait-teacher-link{display:none}.beeait-mobile-menu{display:block}
  .beeait-hero,.beeait-about-hero{grid-template-columns:1fr}.beeait-feature-grid.three{grid-template-columns:1fr}.beeait-how{grid-template-columns:repeat(2,1fr)}
  .beeait-form-grid{grid-template-columns:1fr}.admin-bar .beeait-nav{top:46px}.beeait-mobile-nav{top:68px}
}
@media(max-width:650px){
  .beeait-wrap{width:min(94vw,1160px);padding-top:28px}.beeait-hero{padding-top:18px}.beeait-feature-grid.two{grid-template-columns:1fr}.beeait-mode-picker{grid-template-columns:1fr}
  .beeait-answer-zone{grid-template-columns:1fr}.beeait-result-grid,.beeait-stat-row{grid-template-columns:1fr}.beeait-session-item{grid-template-columns:1fr 1fr}.beeait-how{grid-template-columns:1fr}
  .beeait-tutor-stage{grid-template-columns:55px 1fr}.beeait-sound-btn{grid-column:1/3;width:100%;border-radius:13px}.beeait-footer{display:block}.beeait-footer span{display:block;margin:4px 0}
}


/* V3 voice correction */
.beeait-recognition-card{
  margin:16px auto 12px;
  max-width:680px;
  text-align:left;
  background:#fff;
  border:1px solid var(--line);
  border-radius:17px;
  padding:14px;
}
.beeait-recognition-card>small{
  display:block;
  color:#7a7465;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
  margin-bottom:7px;
}
.beeait-edit-wrap{
  max-width:680px;
  margin:12px auto 16px;
  text-align:left;
  background:#fff9d9;
  border:1px solid #e8d56f;
  border-radius:17px;
  padding:15px;
}
.beeait-edit-wrap label{
  display:block;
  font-size:13px;
  font-weight:900;
  margin-bottom:3px;
}
.beeait-edit-wrap p{
  margin:0 0 10px!important;
  color:#6d6549!important;
  font-size:12px!important;
}
.beeait-edit-wrap input{
  width:100%;
  border:1px solid #d6c359;
  background:#fff;
  border-radius:13px;
  padding:13px 14px;
  font-size:19px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  outline:none;
}
.beeait-edit-wrap input:focus{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(246,201,0,.28);
}
.beeait-letter-preview{
  margin-top:10px;
  min-height:28px;
  color:#111;
  font-size:16px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.7;
  word-break:break-word;
}
.beeait-transcript small{
  display:block;
  color:#6b7280;
  font-size:12px;
  margin-top:7px;
}

/* V3.2 always-visible manual fallback */
.beeait-edit-wrap{
  display:block;
}
.beeait-edit-wrap input::placeholder{
  color:#9a937d;
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
}

/* =========================================================
   BeeEnglish AI Tutor V4 — Web App Dashboard
   ========================================================= */
.beeait-v4{
  --v4-green:#23893d;
  --v4-green-dark:#0e5a2c;
  --v4-green-soft:#eef8ee;
  --v4-lime:#74bf45;
  --v4-purple:#7255d9;
  --v4-purple-soft:#f2efff;
  --v4-blue:#4d8ef7;
  --v4-blue-soft:#eef5ff;
  --v4-gold:#f8bf2c;
  --v4-ink:#20242b;
  --v4-muted:#75808d;
  --v4-line:#e6e9e5;
  --v4-card:#fff;
  background:#f7f9f7;
  min-height:100vh;
}
.beeait-v4 .beeait-app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.beeait-v4 .beeait-sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--v4-line);padding:24px 18px 18px;display:flex;flex-direction:column;z-index:90;overflow:auto}
.admin-bar .beeait-v4 .beeait-sidebar{top:32px;height:calc(100vh - 32px)}
.beeait-v4 .beeait-side-brand{padding:5px 5px 25px}
.beeait-v4 .beeait-side-brand .beeait-logo{background:#eaf6e8;box-shadow:none;border-radius:15px;width:45px;height:45px;font-size:26px}
.beeait-v4 .beeait-side-brand strong{font-size:21px;color:var(--v4-ink)}
.beeait-v4 .beeait-side-brand small{color:var(--v4-green);font-size:10px;letter-spacing:.18em;margin-top:2px}
.beeait-v4 .beeait-side-nav{display:grid;gap:5px}
.beeait-v4 .beeait-side-nav button{border:0;background:transparent;border-radius:13px;padding:11px 12px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;gap:1px 8px;text-align:left;color:#3e4650;transition:.16s}
.beeait-v4 .beeait-side-nav button>span{grid-row:1/3;align-self:center;font-size:18px;width:24px;text-align:center}
.beeait-v4 .beeait-side-nav button>b{font-size:14px;line-height:1.2}
.beeait-v4 .beeait-side-nav button>small{font-size:10px;color:#98a0aa}
.beeait-v4 .beeait-side-nav button:hover,.beeait-v4 .beeait-side-nav button.active{background:#edf7eb;color:var(--v4-green-dark)}
.beeait-v4 .beeait-side-nav button.active small{color:#6e9a78}
.beeait-v4 .beeait-side-quote{margin-top:auto;background:linear-gradient(145deg,#f4fbf2,#eef5ec);border:1px solid #dfeadd;border-radius:19px;padding:18px;display:grid;gap:5px;color:var(--v4-green-dark);position:relative;overflow:hidden}
.beeait-v4 .beeait-side-quote b{font-size:16px}.beeait-v4 .beeait-side-quote span{position:absolute;right:13px;bottom:11px;font-size:34px;opacity:.8}
.beeait-v4 .beeait-side-user{display:flex;gap:10px;align-items:center;padding:14px 8px 4px;margin-top:12px;border-top:1px solid var(--v4-line)}
.beeait-v4 .beeait-side-user .beeait-user-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--v4-green);color:#fff;font-weight:900}
.beeait-v4 .beeait-side-user b{display:block;font-size:13px}.beeait-v4 .beeait-side-user small{display:block;color:var(--v4-muted);font-size:11px;margin-top:2px}

.beeait-v4 .beeait-app-main{min-width:0;display:flex;flex-direction:column;min-height:100vh}
.beeait-v4 .beeait-topbar{height:78px;padding:13px 28px;border-bottom:1px solid var(--v4-line);background:rgba(255,255,255,.94);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;z-index:70}
.admin-bar .beeait-v4 .beeait-topbar{top:32px}
.beeait-v4 .beeait-topbar-title strong{display:block;font-size:18px;color:var(--v4-ink)}
.beeait-v4 .beeait-topbar-title small{display:block;color:var(--v4-muted);font-size:12px;margin-top:3px}
.beeait-v4 .beeait-top-actions{display:flex;align-items:center;gap:10px}
.beeait-v4 .beeait-streak-pill,.beeait-v4 .beeait-top-profile{background:#fff;border:1px solid var(--v4-line);box-shadow:0 4px 16px rgba(32,45,38,.04);border-radius:15px;padding:10px 13px;font-size:12px;color:var(--v4-ink)}
.beeait-v4 .beeait-top-profile{font-weight:850}
.beeait-v4 .beeait-mobile-menu{display:none;background:var(--v4-green);border:0;color:#fff}
.beeait-v4 .beeait-mobile-nav{display:none}

.beeait-v4 .beeait-wrap{width:100%;max-width:none;margin:0;padding:28px;min-height:calc(100vh - 135px)}
.beeait-v4 .beeait-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.beeait-v4 .beeait-dashboard-head h1{font-size:31px;margin:8px 0 5px;letter-spacing:-.035em;color:var(--v4-ink)}
.beeait-v4 .beeait-dashboard-head p{margin:0;color:var(--v4-muted);font-size:14px}
.beeait-v4 .beeait-kicker.soft{background:#edf7eb;color:var(--v4-green-dark);border:1px solid #dcebd9;padding:7px 10px;font-size:11px}
.beeait-v4 .beeait-btn.green{background:var(--v4-green);color:#fff}.beeait-v4 .beeait-btn.green:hover{background:var(--v4-green-dark)}
.beeait-v4 .beeait-btn.purple{background:var(--v4-purple);color:#fff}.beeait-v4 .beeait-btn.small{padding:10px 13px;border-radius:11px;font-size:12px}

.beeait-v4 .beeait-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.beeait-v4 .beeait-dashboard-stats article{background:#fff;border:1px solid var(--v4-line);border-radius:18px;padding:17px;box-shadow:0 7px 24px rgba(30,48,35,.045);min-height:132px}
.beeait-v4 .beeait-dashboard-stats article>small{font-size:11px;color:#67727f;font-weight:800}
.beeait-v4 .beeait-level-row,.beeait-v4 .beeait-ring-card,.beeait-v4 .beeait-number-card{display:flex;align-items:center;gap:13px;margin-top:14px}
.beeait-v4 .beeait-level-orb,.beeait-v4 .beeait-ring{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#65bd42,#2a8f38);color:#fff;font-weight:900;font-size:18px;flex:none}
.beeait-v4 .beeait-ring{background:conic-gradient(var(--v4-green) 0 75%,#eef1ed 75% 100%);border:8px solid #f8faf8;color:var(--v4-ink);font-size:14px}
.beeait-v4 .beeait-level-row b,.beeait-v4 .beeait-ring-card b{display:block;font-size:14px}.beeait-v4 .beeait-level-row em,.beeait-v4 .beeait-ring-card em,.beeait-v4 .beeait-number-card em{display:block;font-style:normal;color:var(--v4-muted);font-size:10px;margin-top:3px}
.beeait-v4 .beeait-number-card>span{width:50px;height:50px;border-radius:15px;background:var(--v4-blue-soft);display:grid;place-items:center;font-size:25px}
.beeait-v4 .beeait-number-card b{font-size:25px;color:var(--v4-ink);min-width:58px}

.beeait-v4 .beeait-dashboard-grid{display:grid;grid-template-columns:1.1fr 1.1fr .9fr;gap:14px;align-items:stretch}
.beeait-v4 .beeait-dash-card{background:#fff;border:1px solid var(--v4-line);border-radius:18px;padding:17px;box-shadow:0 7px 24px rgba(30,48,35,.04);min-width:0}
.beeait-v4 .beeait-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.beeait-v4 .beeait-card-head b{font-size:13px;color:var(--v4-ink)}.beeait-v4 .beeait-card-head span{font-size:11px;color:var(--v4-muted)}.beeait-v4 .beeait-card-head button{border:0;background:none;color:var(--v4-green);font-size:11px;font-weight:800;padding:0}
.beeait-v4 .beeait-dash-card h3{font-size:15px;margin:5px 0 10px}.beeait-v4 .beeait-dash-card p{font-size:12px;line-height:1.55;color:var(--v4-muted);margin:7px 0}
.beeait-v4 .beeait-goal-bar{height:8px;background:#edf0ec;border-radius:999px;overflow:hidden;margin:14px 0 8px}.beeait-v4 .beeait-goal-bar i{display:block;width:15%;height:100%;background:linear-gradient(90deg,var(--v4-green),var(--v4-lime));border-radius:inherit;transition:.4s}
.beeait-v4 .beeait-mini-action{border:0;background:none;padding:0;color:var(--v4-green);font-size:11px;font-weight:850}
.beeait-v4 .ai-card{background:linear-gradient(135deg,#fff,#f3f0ff)}
.beeait-v4 .weekly-card{background:linear-gradient(135deg,#fff,#f5fbf3)}
.beeait-v4 .beeait-week-dots{display:flex;gap:7px;margin:16px 0}.beeait-v4 .beeait-week-dots i{width:28px;height:28px;border-radius:50%;background:#eef0ee;color:#a0a5aa;display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:850}.beeait-v4 .beeait-week-dots i.done{background:var(--v4-green);color:#fff}
.beeait-v4 .continue-card{grid-column:1/2}.beeait-v4 .activity-card{grid-column:2/3}.beeait-v4 .achievement-card{grid-column:3/4}
.beeait-v4 .beeait-continue-content{display:grid;grid-template-columns:58px 1fr;gap:13px;align-items:center}.beeait-v4 .beeait-book-icon{width:58px;height:58px;border-radius:15px;background:#edf8e9;display:grid;place-items:center;font-size:32px}.beeait-v4 .beeait-continue-content small{color:var(--v4-muted);font-size:10px}.beeait-v4 .beeait-continue-content h3{margin:4px 0}.beeait-v4 .beeait-continue-content p{margin:0 0 8px}
.beeait-v4 .beeait-dashboard-activity{display:grid;gap:4px}.beeait-v4 .beeait-activity-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #eef0ed}.beeait-v4 .beeait-activity-row:last-child{border-bottom:0}.beeait-v4 .beeait-activity-row>span{width:32px;height:32px;border-radius:10px;background:#eef5ff;display:grid;place-items:center}.beeait-v4 .beeait-activity-row b{display:block;font-size:11px}.beeait-v4 .beeait-activity-row small{display:block;font-size:9px;color:var(--v4-muted);margin-top:2px}.beeait-v4 .beeait-activity-row em{font-style:normal;background:#eaf7e7;color:var(--v4-green-dark);border-radius:999px;padding:4px 7px;font-size:10px;font-weight:900}
.beeait-v4 .beeait-badge-row{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.beeait-v4 .beeait-badge{border:1px solid #e7ebe6;border-radius:13px;padding:10px 7px;text-align:center;background:#fff;font-size:23px}.beeait-v4 .beeait-badge small{display:block;font-size:9px;margin-top:4px;color:#4e5862}.beeait-v4 .beeait-badge.locked{filter:grayscale(.9);opacity:.45}
.beeait-v4 .beeait-dashboard-how{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--v4-line);border-radius:17px;padding:14px;margin-top:14px}.beeait-v4 .beeait-dashboard-how>div{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;gap:1px 8px;padding:5px 12px;border-right:1px solid #edf0ed}.beeait-v4 .beeait-dashboard-how>div:last-child{border:0}.beeait-v4 .beeait-dashboard-how span{grid-row:1/3;width:34px;height:34px;border-radius:10px;background:#edf7eb;color:var(--v4-green-dark);display:grid;place-items:center;font-weight:900}.beeait-v4 .beeait-dashboard-how b{font-size:11px}.beeait-v4 .beeait-dashboard-how small{font-size:9px;color:var(--v4-muted)}

/* Existing practice/progress pages restyled for V4 */
.beeait-v4 .beeait-page:not(#beeait-home){max-width:1120px;margin:0 auto}
.beeait-v4 .beeait-panel,.beeait-v4 .beeait-feature-grid article,.beeait-v4 .beeait-bigstat,.beeait-v4 .beeait-session-item,.beeait-v4 .beeait-table-wrap{border-color:var(--v4-line);box-shadow:0 7px 24px rgba(30,48,35,.04)}
.beeait-v4 .beeait-panel{border-radius:20px}.beeait-v4 .beeait-section-title{color:var(--v4-ink)}
.beeait-v4 .beeait-mode-picker button.active{border-color:var(--v4-green);background:#eef8ed}.beeait-v4 .beeait-progress i{background:var(--v4-green)}
.beeait-v4 .beeait-tutor-stage{background:linear-gradient(135deg,#0c5a2c,#248f42)}.beeait-v4 .beeait-tutor-avatar{background:#f6d84e}
.beeait-v4 .beeait-ai-box{background:#123c25}.beeait-v4 .beeait-ai-box>b{color:#dff6b9}.beeait-v4 .beeait-focus-card{background:linear-gradient(135deg,#0f5b2f,#23893d)}.beeait-v4 .beeait-focus-card h3{color:#e9ffbc}
.beeait-v4 .beeait-table-wrap th{background:#174d2b}.beeait-v4 .beeait-scorebar i{background:var(--v4-green)}
.beeait-v4 .beeait-btn.dark{background:#1d2c23}.beeait-v4 .beeait-btn.yellow{background:#d8f08d;color:#17351e}
.beeait-v4 .beeait-edit-wrap{background:#f2faef;border-color:#c8dfc2}.beeait-v4 .beeait-edit-wrap input{border-color:#a8cfa1}.beeait-v4 .beeait-edit-wrap input:focus{border-color:var(--v4-green);box-shadow:0 0 0 3px rgba(35,137,61,.14)}
.beeait-v4 .beeait-tag.green{background:#e8f6e5;border-color:#c5e4bf;color:#215e2e}
.beeait-v4 .beeait-stat-row.four{grid-template-columns:repeat(4,1fr)}

/* Word bank */
.beeait-v4 .beeait-wordbank-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.beeait-v4 .beeait-wordbank-grid article{background:#fff;border:1px solid var(--v4-line);border-radius:16px;padding:15px;display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center}.beeait-v4 .beeait-word-icon{width:42px;height:42px;border-radius:12px;background:#edf7eb;color:var(--v4-green-dark);display:grid;place-items:center;font-weight:900}.beeait-v4 .beeait-wordbank-grid h3{margin:0;font-size:15px}.beeait-v4 .beeait-wordbank-grid p{margin:3px 0 0;font-size:10px;color:var(--v4-muted)}.beeait-v4 .beeait-wordbank-grid article>span{font-size:10px;background:#f2f5f1;border-radius:999px;padding:5px 7px;color:#67706b;font-weight:850}

/* AI reports */
.beeait-v4 .beeait-report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.beeait-v4 .beeait-report-summary>div{background:#fff;border:1px solid var(--v4-line);border-radius:17px;padding:18px}.beeait-v4 .beeait-report-summary small{color:var(--v4-muted);font-weight:750}.beeait-v4 .beeait-report-summary b{display:block;font-size:27px;margin-top:5px}.beeait-v4 .beeait-report-summary b.smaller{font-size:17px}.beeait-v4 .beeait-report-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.beeait-v4 .beeait-report-patterns{display:grid;gap:8px}.beeait-v4 .beeait-pattern-row{background:#fff;border:1px solid var(--v4-line);border-radius:15px;padding:13px;display:grid;grid-template-columns:1fr 180px;gap:15px;align-items:center}.beeait-v4 .beeait-pattern-row b{display:block;font-size:13px}.beeait-v4 .beeait-pattern-row small{font-size:10px;color:var(--v4-muted)}.beeait-v4 .beeait-pattern-row>span{height:8px;border-radius:999px;background:#edf0ed;overflow:hidden}.beeait-v4 .beeait-pattern-row i{display:block;height:100%;background:linear-gradient(90deg,var(--v4-green),var(--v4-lime));border-radius:inherit}.beeait-v4 .beeait-next-card{background:linear-gradient(145deg,#f8fff7,#eff7ff);border:1px solid #dde8dc;border-radius:19px;padding:20px}.beeait-v4 .beeait-ai-orb{width:58px;height:58px;border-radius:18px;background:#e7f6e3;display:grid;place-items:center;font-size:29px}.beeait-v4 .beeait-next-card>small{display:block;color:#7c8781;margin-top:13px}.beeait-v4 .beeait-next-card h3{font-size:20px;margin:5px 0}.beeait-v4 .beeait-next-card p{font-size:12px;line-height:1.6;color:var(--v4-muted)}

/* Achievements */
.beeait-v4 .beeait-achievement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.beeait-v4 .beeait-achievement-grid article{background:#fff;border:1px solid var(--v4-line);border-radius:18px;padding:22px;text-align:center;position:relative}.beeait-v4 .beeait-achievement-grid article>div{font-size:42px}.beeait-v4 .beeait-achievement-grid h3{margin:10px 0 5px}.beeait-v4 .beeait-achievement-grid p{font-size:12px;color:var(--v4-muted);min-height:38px}.beeait-v4 .beeait-achievement-grid span{display:inline-block;border-radius:999px;background:#e9f7e6;color:var(--v4-green-dark);padding:6px 10px;font-size:10px;font-weight:900}.beeait-v4 .beeait-achievement-grid article.locked{opacity:.55;filter:grayscale(.55)}.beeait-v4 .beeait-achievement-grid article.locked span{background:#eff1ef;color:#778079}.beeait-v4 .beeait-achievement-progress{height:8px;border-radius:999px;background:#eef2ee;overflow:hidden;margin:12px 0 6px}.beeait-v4 .beeait-achievement-progress i{display:block;height:100%;border-radius:inherit;background:var(--v4-green);transition:width .35s ease}.beeait-v4 .beeait-achievement-grid article.locked .beeait-achievement-progress i{background:#aeb7b0}.beeait-v4 .beeait-achievement-count{display:block;color:var(--v4-muted);font-size:11px;margin:0 0 10px;font-weight:700}

.beeait-v4 .beeait-empty.compact{padding:16px;font-size:11px}
.beeait-v4 .beeait-footer{background:#fff;border-top:1px solid var(--v4-line);padding:15px 28px;font-size:11px}
.beeait-v4 .beeait-bottom-nav{display:none}

@media(max-width:1180px){
  .beeait-v4 .beeait-app-shell{grid-template-columns:210px minmax(0,1fr)}
  .beeait-v4 .beeait-dashboard-stats{grid-template-columns:repeat(2,1fr)}
  .beeait-v4 .beeait-dashboard-grid{grid-template-columns:1fr 1fr}.beeait-v4 .achievement-card{grid-column:1/3}.beeait-v4 .continue-card{grid-column:auto}.beeait-v4 .activity-card{grid-column:auto}
  .beeait-v4 .beeait-wordbank-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:850px){
  .beeait-v4 .beeait-app-shell{display:block}.beeait-v4 .beeait-sidebar{display:none}.beeait-v4 .beeait-topbar{height:68px;padding:10px 15px}.beeait-v4 .beeait-mobile-menu{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px}
  .beeait-v4 .beeait-topbar-title{flex:1}.beeait-v4 .beeait-topbar-title small{display:none}.beeait-v4 .beeait-top-profile{display:none}.beeait-v4 .beeait-mobile-nav{position:fixed;top:68px;left:10px;right:10px;z-index:95;background:#fff;border:1px solid var(--v4-line);border-radius:16px;padding:8px;box-shadow:0 18px 40px rgba(0,0,0,.12);grid-template-columns:repeat(2,1fr);gap:5px}.admin-bar .beeait-v4 .beeait-mobile-nav{top:114px}.beeait-v4 .beeait-mobile-nav:not(.hidden){display:grid}.beeait-v4 .beeait-mobile-nav button{border:0;background:#f7f9f7;border-radius:10px;padding:10px;text-align:left;font-weight:800;font-size:12px}.beeait-v4 .beeait-mobile-nav button.active{background:#eaf7e7;color:var(--v4-green-dark)}
  .beeait-v4 .beeait-wrap{padding:18px 14px 88px}.beeait-v4 .beeait-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--v4-line);padding:7px 6px max(7px,env(safe-area-inset-bottom))}.beeait-v4 .beeait-bottom-nav button{border:0;background:transparent;color:#79827d;display:grid;place-items:center;gap:2px;padding:4px;border-radius:10px}.beeait-v4 .beeait-bottom-nav button span{font-size:18px}.beeait-v4 .beeait-bottom-nav button small{font-size:9px;font-weight:800}.beeait-v4 .beeait-bottom-nav button.active{color:var(--v4-green-dark);background:#edf8ea}
  .beeait-v4 .beeait-dashboard-grid{grid-template-columns:1fr}.beeait-v4 .continue-card,.beeait-v4 .activity-card,.beeait-v4 .achievement-card{grid-column:auto}.beeait-v4 .beeait-dashboard-how{grid-template-columns:1fr 1fr}.beeait-v4 .beeait-dashboard-how>div:nth-child(2){border-right:0}.beeait-v4 .beeait-report-layout{grid-template-columns:1fr}.beeait-v4 .beeait-achievement-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .beeait-v4 .beeait-top-actions .beeait-streak-pill{padding:8px 9px;font-size:10px}.beeait-v4 .beeait-topbar-title strong{font-size:15px}.beeait-v4 .beeait-dashboard-head{align-items:stretch;flex-direction:column}.beeait-v4 .beeait-dashboard-head .beeait-btn{width:100%}
  .beeait-v4 .beeait-dashboard-stats{grid-template-columns:1fr 1fr;gap:9px}.beeait-v4 .beeait-dashboard-stats article{padding:13px;min-height:115px}.beeait-v4 .beeait-level-orb,.beeait-v4 .beeait-ring{width:46px;height:46px}.beeait-v4 .beeait-number-card>span{width:43px;height:43px}.beeait-v4 .beeait-number-card b{font-size:20px}.beeait-v4 .beeait-dashboard-how{grid-template-columns:1fr}.beeait-v4 .beeait-dashboard-how>div{border-right:0;border-bottom:1px solid #edf0ed}.beeait-v4 .beeait-dashboard-how>div:last-child{border-bottom:0}
  .beeait-v4 .beeait-wordbank-grid{grid-template-columns:1fr}.beeait-v4 .beeait-stat-row.four,.beeait-v4 .beeait-report-summary{grid-template-columns:1fr 1fr}.beeait-v4 .beeait-achievement-grid{grid-template-columns:1fr}.beeait-v4 .beeait-pattern-row{grid-template-columns:1fr}.beeait-v4 .beeait-pattern-row>span{width:100%}
}

/* =========================================================
   BeeEnglish AI Tutor V4.1 — Secure Student / Teacher Login
   ========================================================= */
.beeait-login-page{min-height:100vh;background:linear-gradient(135deg,#f8fbf7 0%,#fff 55%,#eef8ee 100%);display:grid;place-items:center;padding:34px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242b;box-sizing:border-box}
.beeait-login-shell{width:min(1080px,96vw);display:grid;grid-template-columns:1.12fr .88fr;background:#fff;border:1px solid #e4e9e3;border-radius:32px;overflow:hidden;box-shadow:0 30px 90px rgba(22,70,38,.12)}
.beeait-login-brand{padding:64px 70px;background:linear-gradient(145deg,#0c5f2b 0%,#218a3f 62%,#69b648 100%);color:#fff;position:relative;overflow:hidden}
.beeait-login-brand:after{content:"";position:absolute;width:390px;height:390px;border:1px solid rgba(255,255,255,.14);border-radius:90px;right:-170px;top:-130px;transform:rotate(28deg);box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025)}
.beeait-login-logo{width:60px;height:60px;border-radius:18px;background:#fff;display:grid;place-items:center;font-size:34px;box-shadow:0 12px 30px rgba(0,0,0,.12);position:relative;z-index:2}
.beeait-login-brandname{margin-top:18px;position:relative;z-index:2}.beeait-login-brandname strong{font-size:28px;display:block}.beeait-login-brandname span{font-size:11px;letter-spacing:.19em;color:#e0f5d9;font-weight:900}
.beeait-login-brand h1{font-size:58px;line-height:1.02;letter-spacing:-.045em;margin:58px 0 24px;position:relative;z-index:2}.beeait-login-brand h1 em{font-style:normal;color:#ffe56d}
.beeait-login-brand>p{font-size:17px;line-height:1.7;color:#e8f5e7;max-width:550px;position:relative;z-index:2}
.beeait-login-points{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;margin-top:38px;position:relative;z-index:2}.beeait-login-points span{font-size:13px;font-weight:750;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);padding:12px 13px;border-radius:13px}
.beeait-login-card{padding:68px 62px;align-self:center}.beeait-login-kicker{font-size:11px;letter-spacing:.16em;color:#23893d;font-weight:900}.beeait-login-card h2{font-size:35px;letter-spacing:-.03em;margin:10px 0 8px}.beeait-login-card>p{color:#75808d;line-height:1.6;margin:0 0 28px}
.beeait-login-card form p{margin:0 0 17px}.beeait-login-card label{display:block;font-size:12px;font-weight:850;color:#434b55;margin-bottom:7px}.beeait-login-card input[type=text],.beeait-login-card input[type=password]{width:100%;box-sizing:border-box;border:1px solid #dfe5df;border-radius:14px;padding:14px 15px;font-size:15px;background:#fbfcfb;outline:none}.beeait-login-card input[type=text]:focus,.beeait-login-card input[type=password]:focus{border-color:#3aa357;box-shadow:0 0 0 3px rgba(58,163,87,.12)}
.beeait-login-card .login-remember label{display:flex;align-items:center;gap:8px;font-weight:650;color:#6d7580}.beeait-login-card input[type=submit]{width:100%;border:0;border-radius:14px;background:#23893d;color:#fff;padding:14px;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(35,137,61,.20)}.beeait-login-card input[type=submit]:hover{background:#0e5a2c}
.beeait-forgot{display:inline-block;margin-top:4px;color:#23893d;font-weight:800;text-decoration:none;font-size:13px}.beeait-login-note{margin-top:26px;background:#f1f8ef;border:1px solid #dfeedd;border-radius:14px;padding:13px 14px;color:#5d6c61;font-size:12px;line-height:1.5}
.beeait-v4 .beeait-logout-link{background:#fff;border:1px solid var(--v4-line);border-radius:13px;padding:10px 12px;text-decoration:none;color:#6b7280;font-size:11px;font-weight:850;white-space:nowrap}.beeait-v4 .beeait-logout-link:hover{border-color:#e6aaa5;color:#b3443e;background:#fff7f6}
.beeait-student-account-card{background:#fff;border:1px solid var(--v4-line);border-radius:22px;padding:22px;margin:20px 0;box-shadow:0 8px 25px rgba(40,60,45,.04)}.beeait-student-account-card h3{font-size:20px;margin:9px 0 5px}.beeait-student-account-card p{color:var(--v4-muted);font-size:13px;margin:0 0 18px}
.beeait-student-create-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.beeait-student-create-grid label{font-size:11px;font-weight:900;color:#5f6873}.beeait-student-create-grid input,.beeait-student-create-grid select{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid var(--v4-line);border-radius:12px;background:#fbfcfb;padding:11px 12px;font:inherit;color:var(--v4-ink);outline:none}.beeait-student-create-grid input:focus,.beeait-student-create-grid select:focus{border-color:var(--v4-green);box-shadow:0 0 0 3px rgba(35,137,61,.10)}
.beeait-account-status{font-size:12px;font-weight:800;color:#75808d}.beeait-account-status.success{color:#16763a}.beeait-account-status.error{color:#bd3e36}
@media(max-width:900px){.beeait-login-shell{grid-template-columns:1fr}.beeait-login-brand{padding:40px}.beeait-login-brand h1{font-size:43px;margin-top:35px}.beeait-login-points{grid-template-columns:1fr 1fr}.beeait-login-card{padding:42px}.beeait-student-create-grid{grid-template-columns:1fr 1fr}.beeait-v4 .beeait-top-actions{gap:6px}.beeait-v4 .beeait-top-profile{display:none}}
@media(max-width:620px){.beeait-login-page{padding:14px}.beeait-login-shell{border-radius:22px}.beeait-login-brand{padding:32px 25px}.beeait-login-brand h1{font-size:39px}.beeait-login-brand>p{font-size:14px}.beeait-login-points{grid-template-columns:1fr}.beeait-login-card{padding:34px 25px}.beeait-student-create-grid{grid-template-columns:1fr}.beeait-v4 .beeait-logout-link{padding:8px 10px}.beeait-v4 .beeait-streak-pill{display:none}}

/* V4.2 self-registration */
.beeait-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:28px;background:#f3f7f2;padding:6px;border-radius:15px}
.beeait-auth-tab{border:0;background:transparent;border-radius:11px;padding:11px 10px;font-size:12px;font-weight:900;letter-spacing:.04em;color:#78817a;cursor:pointer}
.beeait-auth-tab.active{background:#fff;color:#167338;box-shadow:0 6px 18px rgba(31,95,49,.10)}
.beeait-auth-panel{display:none}.beeait-auth-panel.active{display:block}
.beeait-register-form label{display:block;margin:0 0 14px;font-size:12px;font-weight:850;color:#434b55}
.beeait-register-form input,.beeait-register-form select{width:100%;box-sizing:border-box;border:1px solid #dfe5df;border-radius:14px;padding:13px 14px;font-size:14px;background:#fbfcfb;outline:none;margin-top:7px}
.beeait-register-form input:focus,.beeait-register-form select:focus{border-color:#3aa357;box-shadow:0 0 0 3px rgba(58,163,87,.12)}
.beeait-register-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.beeait-register-submit{width:100%;border:0;border-radius:14px;background:#23893d;color:#fff;padding:14px;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(35,137,61,.20)}
.beeait-register-submit:hover{background:#0e5a2c}
.beeait-reg-error{background:#fff0f0;border:1px solid #f2caca;color:#a53030;border-radius:12px;padding:11px 13px;margin:0 0 15px;font-size:13px;font-weight:700}
@media(max-width:620px){.beeait-register-row{grid-template-columns:1fr}.beeait-auth-tabs{margin-bottom:20px}}

/* V4.4 Learning Support: hints + corrective pronunciation practice */
.beeait-v4 .beeait-learning-support{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 4px}
.beeait-v4 .beeait-btn.hint{background:#fff6cf;border:1px solid #ecd76d;color:#5b4a00;font-weight:850}
.beeait-v4 .beeait-hint-panel{flex-basis:100%;background:linear-gradient(135deg,#fffdf2,#f7fbf5);border:1px solid #e3dfba;border-radius:16px;padding:14px}
.beeait-v4 .beeait-hint-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.beeait-v4 .beeait-hint-head b{font-size:13px}.beeait-v4 .beeait-hint-head small{font-size:10px;color:var(--v4-muted)}
.beeait-v4 .beeait-hint-actions{display:flex;gap:8px;flex-wrap:wrap}.beeait-v4 .beeait-hint-actions button{border:1px solid #d9dfd6;background:#fff;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:850;color:var(--v4-ink)}.beeait-v4 .beeait-hint-actions button.used{background:#eef4e9;color:#7a8378}.beeait-v4 .beeait-hint-actions button:disabled{opacity:.65}
.beeait-v4 .beeait-hint-text{margin-top:11px;border-left:4px solid var(--v4-green);padding:8px 11px;background:#fff;border-radius:0 10px 10px 0;font-size:12px;line-height:1.55;color:#38443c}
.beeait-v4 .beeait-recovery{margin-top:14px;background:#fff;border:1px solid #dbe5d8;border-radius:17px;padding:14px;box-shadow:0 5px 18px rgba(20,80,40,.05)}
.beeait-v4 .beeait-recovery-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.beeait-v4 .beeait-recovery-head b{font-size:13px}.beeait-v4 .beeait-recovery-head span{font-size:10px;color:var(--v4-muted)}
.beeait-v4 .beeait-recovery-word{display:flex;align-items:baseline;gap:10px;margin:12px 0}.beeait-v4 .beeait-recovery-word strong{font-size:24px;color:var(--v4-ink)}.beeait-v4 .beeait-recovery-word small{background:#eef6ec;color:var(--v4-green-dark);padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800}
.beeait-v4 .beeait-recovery-actions{display:flex;gap:7px;flex-wrap:wrap}.beeait-v4 .beeait-recovery-actions button,.beeait-v4 .beeait-retype-row button{border:1px solid #d8e0d5;background:#f8fbf7;color:#26452e;border-radius:11px;padding:9px 11px;font-weight:800;font-size:11px}
.beeait-v4 .beeait-repeat-status,.beeait-v4 .beeait-retype-status{font-size:10px;color:var(--v4-muted);margin-top:9px;min-height:15px}.beeait-v4 .beeait-retype-status.good{color:#24723b;font-weight:800}.beeait-v4 .beeait-retype-status.bad{color:#a23c32;font-weight:800}
.beeait-v4 .beeait-retype-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:9px}.beeait-v4 .beeait-retype-row input{min-width:0;border:1px solid #cfd9cd;border-radius:11px;padding:10px 12px;font-size:16px;background:#fff}
.beeait-v4 .beeait-result-difficult{margin-top:18px;background:#f9fbf8;border:1px solid var(--v4-line);border-radius:17px;padding:14px}.beeait-v4 .beeait-difficult-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e7ece5;padding:10px 0}.beeait-v4 .beeait-difficult-row:first-of-type{border-top:0}.beeait-v4 .beeait-difficult-row b{font-size:13px}.beeait-v4 .beeait-difficult-row small{display:block;font-size:9px;color:var(--v4-muted);margin-top:2px}.beeait-v4 .beeait-difficult-row button{width:38px;height:36px;border:1px solid #dbe2d9;border-radius:10px;background:#fff;margin-left:5px}
@media(max-width:650px){
 .beeait-v4 .beeait-learning-support>.beeait-btn{flex:1 1 145px}
 .beeait-v4 .beeait-hint-head,.beeait-v4 .beeait-recovery-head{align-items:flex-start;flex-direction:column}
 .beeait-v4 .beeait-recovery-actions{display:grid;grid-template-columns:1fr 1fr}.beeait-v4 .beeait-recovery-actions button{min-height:44px}
 .beeait-v4 .beeait-retype-row{grid-template-columns:1fr}.beeait-v4 .beeait-retype-row button{min-height:44px}
}


/* V4.6 Teacher Portal */
.beeait-auth-tabs.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.beeait-portal-login-form label{display:block;margin:0 0 14px;font-size:12px;font-weight:850;color:#434b55}
.beeait-portal-login-form input[type=text],.beeait-portal-login-form input[type=password]{width:100%;box-sizing:border-box;border:1px solid #dfe5df;border-radius:14px;padding:13px 14px;font-size:14px;background:#fbfcfb;outline:none;margin-top:7px}
.beeait-portal-login-form input[type=text]:focus,.beeait-portal-login-form input[type=password]:focus{border-color:#3aa357;box-shadow:0 0 0 3px rgba(58,163,87,.12)}
.beeait-portal-login-form .beeait-remember{display:flex;align-items:center;gap:8px;color:#6d7580;font-weight:700;margin:2px 0 14px}
.beeait-portal-login-form .beeait-remember input{margin:0}
.beeait-register-submit.teacher{background:#123c27}
.beeait-register-submit.teacher:hover{background:#0b2d1c}
.beeait-teacher-code-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.7fr);gap:20px;align-items:center;background:#fff;border:1px solid var(--v4-line);border-radius:22px;padding:20px 22px;margin:18px 0;box-shadow:0 8px 25px rgba(40,60,45,.04)}
.beeait-teacher-code-card h3{font-size:19px;margin:7px 0 5px}.beeait-teacher-code-card p{margin:0;color:var(--v4-muted);font-size:12px;line-height:1.55}
.beeait-teacher-code-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
.beeait-teacher-code-actions input{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--v4-line);border-radius:12px;background:#fbfcfb;padding:11px 12px;font:inherit;font-size:15px;font-weight:850;letter-spacing:.08em;color:var(--v4-ink);outline:none;text-transform:uppercase}
.beeait-teacher-code-actions input:focus{border-color:var(--v4-green);box-shadow:0 0 0 3px rgba(35,137,61,.10)}
.beeait-teacher-code-actions .beeait-account-status{grid-column:1/-1}
@media(max-width:850px){
  .beeait-v4 .beeait-bottom-nav.teacher-bottom-nav{grid-template-columns:repeat(3,1fr)}
  .beeait-teacher-code-card{grid-template-columns:1fr}
}
@media(max-width:620px){
  .beeait-auth-tabs.three{gap:4px;padding:4px}
  .beeait-auth-tabs.three .beeait-auth-tab{font-size:10px;padding:10px 5px}
  .beeait-teacher-code-actions{grid-template-columns:1fr}
  .beeait-teacher-code-actions .beeait-btn{width:100%}
}
