:root{--leh-li:#7F1B50;--leh-blue:#1C3778;--leh-coral:#E55050;--leh-ink:#17213B;--leh-muted:#687386;--leh-bg:#F6F8FB;--leh-line:#E2E7EF;--leh-white:#fff;--leh-shadow:0 14px 38px rgba(29,45,77,.08)}
*{box-sizing:border-box}html{background:var(--leh-bg);scroll-behavior:smooth}body.leh-app-page{margin:0!important;background:var(--leh-bg)!important;color:var(--leh-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;min-height:100vh;min-height:100dvh}body.leh-app-page>*:not(.leh-app):not(script):not(style){max-width:none}.leh-app{min-height:100vh;min-height:100dvh;padding:calc(22px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:radial-gradient(circle at 4% 0%,rgba(127,27,80,.06),transparent 25rem),radial-gradient(circle at 100% 8%,rgba(28,55,120,.065),transparent 28rem),var(--leh-bg)}
.leh-home-header{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;margin:0 auto 22px}.leh-brand-wrap{min-width:0}.leh-primary-logo{display:block;width:min(430px,70vw);height:auto}.leh-brand-wrap p{margin:3px 0 0 94px;color:var(--leh-muted);font-size:12px;font-weight:650}.leh-header-actions{display:flex;gap:8px}.leh-install-button,.leh-icon-button,.leh-header-account{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--leh-line);border-radius:14px;background:rgba(255,255,255,.94);color:var(--leh-blue);box-shadow:0 6px 18px rgba(29,45,77,.05);cursor:pointer;overflow:hidden}.leh-install-button svg,.leh-icon-button svg,.leh-header-account svg{width:20px;height:20px}.leh-header-account img{width:100%;height:100%;object-fit:cover}.leh-home-main{max-width:1100px;margin:auto}.leh-home-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;padding:20px 22px;border:1px solid var(--leh-line);border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,249,253,.96));box-shadow:var(--leh-shadow)}.leh-home-identity.is-member{display:grid;grid-template-columns:64px minmax(0,1fr) auto}.leh-home-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:19px;background:rgba(28,55,120,.08);color:var(--leh-blue);overflow:hidden}.leh-home-avatar img{width:100%;height:100%;object-fit:cover}.leh-home-avatar svg{width:31px;height:31px}.leh-home-identity-copy span,.leh-home-identity.is-guest>div>span{display:block;color:var(--leh-blue);font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.leh-home-identity h2{margin:5px 0 4px;font-size:22px}.leh-home-identity p{margin:0;color:var(--leh-muted);font-size:12px;line-height:1.55}.leh-home-identity.is-guest>div{max-width:690px}.leh-home-identity-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.leh-text-link{color:var(--leh-blue)!important;font-size:12px;font-weight:800;text-decoration:none!important}.leh-text-link:hover{text-decoration:underline!important}.leh-text-link.is-danger{color:#9A3340!important}.leh-home-section{margin-top:25px}.leh-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:12px}.leh-section-heading h2{margin:0;font-size:18px}.leh-section-heading p{margin:4px 0 0;color:var(--leh-muted);font-size:11px}.leh-section-heading>a{display:inline-flex;align-items:center;gap:5px;color:var(--leh-blue)!important;font-size:11px;font-weight:800;text-decoration:none!important}.leh-section-heading>a svg{width:14px;height:14px}.leh-app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.leh-home-section.is-learning .leh-app-grid,.leh-home-section.is-ecosystem .leh-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.leh-app-tile{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) 22px;align-items:center;gap:11px;min-width:0;min-height:88px;padding:14px;border:1px solid var(--leh-line);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 7px 22px rgba(29,45,77,.045);color:var(--leh-ink)!important;text-decoration:none!important;transition:border-color .17s ease,box-shadow .17s ease}.leh-app-tile:hover{border-color:rgba(28,55,120,.24);box-shadow:var(--leh-shadow)}.leh-tile-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:rgba(28,55,120,.075);color:var(--leh-blue)}.leh-app-tile.is-rose .leh-tile-icon{background:rgba(127,27,80,.08);color:var(--leh-li)}.leh-app-tile.is-coral .leh-tile-icon{background:rgba(229,80,80,.08);color:var(--leh-coral)}.leh-tile-icon svg{width:24px;height:24px}.leh-tile-copy{min-width:0}.leh-tile-copy strong,.leh-tile-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-tile-copy strong{font-size:12px}.leh-tile-copy small{margin-top:4px;color:var(--leh-muted);font-size:9px}.leh-tile-open{color:#8A95A6}.leh-tile-open svg{width:16px;height:16px}.leh-app-tile.is-disabled{opacity:.58;cursor:default}.leh-home-footer{display:flex;justify-content:space-between;max-width:1100px;margin:30px auto 0;padding-top:18px;border-top:1px solid var(--leh-line);color:var(--leh-muted);font-size:10px}.leh-home-footer a{color:var(--leh-blue);font-weight:800;text-decoration:none}
.leh-subpage{max-width:none}.leh-subpage-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;max-width:920px;margin:0 auto 24px}.leh-subpage-brand{display:flex;justify-content:center}.leh-compact-logo{display:block;width:min(280px,55vw);height:auto}.leh-subpage-main{max-width:920px;margin:auto}.leh-narrow-main{max-width:760px}.leh-page-heading{display:flex;align-items:center;gap:13px;margin-bottom:20px}.leh-page-heading>span{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border-radius:15px;background:rgba(28,55,120,.08);color:var(--leh-blue)}.leh-page-heading>span svg{width:25px;height:25px}.leh-page-heading h1{margin:0;font-size:27px;line-height:1.15}.leh-page-heading p{margin:4px 0 0;color:var(--leh-muted);font-size:13px}.leh-empty-state,.leh-gateway-card,.leh-form-card,.leh-account-profile{padding:30px;border:1px solid var(--leh-line);border-radius:22px;background:rgba(255,255,255,.96);box-shadow:var(--leh-shadow)}.leh-empty-state,.leh-gateway-card{text-align:center}.leh-empty-icon,.leh-gateway-icon{display:grid;width:64px;height:64px;place-items:center;margin:0 auto 14px;border-radius:20px;background:rgba(28,55,120,.08);color:var(--leh-blue)}.leh-empty-icon svg,.leh-gateway-icon svg{width:31px;height:31px}.leh-empty-state h2,.leh-gateway-card h2{margin:0 0 8px;font-size:21px}.leh-empty-state p,.leh-gateway-card p{max-width:580px;margin:0 auto 20px;color:var(--leh-muted);font-size:14px;line-height:1.65}.leh-button{display:inline-flex;min-height:43px;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border:0;border-radius:13px;background:var(--leh-blue);color:#fff!important;font:inherit;font-size:13px;font-weight:800;text-decoration:none!important;cursor:pointer}.leh-button svg{width:18px;height:18px}.leh-button.is-secondary{background:rgba(28,55,120,.08);color:var(--leh-blue)!important}.leh-button.is-full{width:100%;margin-top:18px}.leh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.leh-field{display:flex;min-width:0;flex-direction:column;gap:7px;color:var(--leh-ink);font-size:12px;font-weight:750}.leh-field input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #DCE3ED;border-radius:12px;background:#fff;color:var(--leh-ink);font:inherit;font-size:14px;outline:none}.leh-field input:focus{border-color:rgba(28,55,120,.55);box-shadow:0 0 0 3px rgba(28,55,120,.08)}.leh-field small{color:var(--leh-muted);font-size:10px;font-weight:500}.leh-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.leh-security-note{display:flex;align-items:flex-start;gap:8px;margin:18px 0 0;color:var(--leh-muted);font-size:11px;line-height:1.5}.leh-security-note svg{width:18px;height:18px;flex:0 0 18px;color:var(--leh-blue)}.leh-notice{margin-bottom:16px;padding:12px 14px;border:1px solid;border-radius:13px;font-size:13px;font-weight:650}.leh-notice.is-success{border-color:#BFE2CC;background:#F0FAF4;color:#21673E}.leh-notice.is-error{border-color:#F0C9C9;background:#FFF5F5;color:#9B3636}.leh-login-intro{display:flex;align-items:center;gap:14px;margin-bottom:18px}.leh-login-intro .leh-gateway-icon{margin:0;width:54px;height:54px;flex:0 0 54px}.leh-login-intro h2{margin:0 0 4px;font-size:20px}.leh-login-intro p{margin:0;color:var(--leh-muted);font-size:12px}.leh-login-card>.leh-form>.leh-field{margin-top:13px}.leh-login-footer{display:flex;justify-content:center;gap:5px;margin-top:16px;color:var(--leh-muted);font-size:11px}.leh-login-footer a{color:var(--leh-blue);font-weight:800;text-decoration:none}.leh-account-profile{padding:0;overflow:hidden}.leh-account-cover{height:118px;background:radial-gradient(circle at 75% 15%,rgba(229,80,80,.24),transparent 32%),linear-gradient(135deg,#1C3778,#405F9A 58%,#EDF1F7)}.leh-account-profile-body{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:end;gap:15px;padding:0 22px 18px}.leh-account-avatar{display:grid;place-items:center;width:92px;height:92px;margin-top:-42px;border:4px solid #fff;border-radius:50%;background:#F0F3F7;color:var(--leh-blue);overflow:hidden}.leh-account-avatar img{width:100%;height:100%;object-fit:cover}.leh-account-avatar svg{width:38px;height:38px}.leh-account-copy{padding-top:13px}.leh-account-copy h2{margin:6px 0 3px;font-size:23px}.leh-account-copy>strong{display:block;font-size:12px}.leh-account-copy p{margin:5px 0 0;color:var(--leh-muted);font-size:11px}.leh-status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:#EDF1F5;color:#5A6677;font-size:8px;font-weight:900;text-transform:uppercase}.leh-status-pill.is-approved{background:#E8F6ED;color:#1E6F43}.leh-account-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 22px 22px;border-top:1px solid var(--leh-line)}.leh-course-grid{display:grid;gap:11px}.leh-course-card{display:grid;grid-template-columns:54px minmax(0,1fr) 42px;align-items:center;gap:14px;padding:15px;border:1px solid var(--leh-line);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(29,45,77,.04)}.leh-course-card-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:16px;background:rgba(28,55,120,.08);color:var(--leh-blue)}.leh-course-card-icon svg{width:27px;height:27px}.leh-course-copy small{display:block;color:var(--leh-blue);font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.leh-course-copy h2{margin:3px 0 7px;font-size:17px}.leh-course-copy p{margin:6px 0 0;color:var(--leh-muted);font-size:10px}.leh-course-progress{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:8px}.leh-course-progress>span{height:6px;border-radius:999px;background:#E6EAF0;overflow:hidden}.leh-course-progress i{display:block;height:100%;background:var(--leh-blue)}.leh-course-progress strong{font-size:10px;text-align:right}.leh-icon-link{display:grid;width:40px;height:40px;place-items:center;border-radius:13px;background:var(--leh-blue);color:#fff!important;text-decoration:none!important}.leh-icon-link svg{width:19px;height:19px}.leh-network-state{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:20;padding:9px 13px;border-radius:999px;background:#17213B;color:#fff;font-size:11px;font-weight:750;box-shadow:var(--leh-shadow)}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.leh-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.leh-home-section.is-learning .leh-app-grid,.leh-home-section.is-ecosystem .leh-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.leh-app{padding-top:calc(16px + env(safe-area-inset-top))}.leh-home-header{margin-bottom:17px}.leh-primary-logo{width:min(350px,68vw)}.leh-brand-wrap p{margin-left:72px;font-size:10px}.leh-home-identity,.leh-home-identity.is-member{display:grid;grid-template-columns:54px minmax(0,1fr);padding:16px;gap:12px}.leh-home-identity.is-guest{grid-template-columns:1fr}.leh-home-avatar{width:54px;height:54px;border-radius:16px}.leh-home-identity-actions{grid-column:1/-1}.leh-home-identity-actions .leh-button{flex:1}.leh-section-heading{align-items:flex-start}.leh-section-heading>a{font-size:9px}.leh-app-grid,.leh-home-section.is-learning .leh-app-grid,.leh-home-section.is-ecosystem .leh-app-grid{grid-template-columns:1fr}.leh-app-tile{min-height:76px}.leh-empty-state,.leh-gateway-card,.leh-form-card{padding:23px 17px}.leh-form-grid{grid-template-columns:1fr}.leh-page-heading h1{font-size:24px}.leh-subpage-header{margin-bottom:20px}.leh-compact-logo{width:min(220px,53vw)}.leh-account-profile-body{grid-template-columns:78px minmax(0,1fr);padding-inline:15px}.leh-account-avatar{width:78px;height:78px;margin-top:-35px}.leh-account-actions{padding-inline:15px}.leh-login-footer{display:block;text-align:center}.leh-login-footer a{display:block;margin-top:4px}}
@media(max-width:390px){.leh-primary-logo{width:min(300px,70vw)}.leh-brand-wrap p{margin-left:60px}.leh-course-card{grid-template-columns:48px minmax(0,1fr) 38px;padding:12px;gap:10px}.leh-course-card-icon{width:48px;height:48px}.leh-icon-link{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.leh-app-tile{transition:none}}

/* LiDia Edu Home v0.3.1 — unified frontend home. */
.leh-home-app{padding-top:calc(18px + env(safe-area-inset-top));background:linear-gradient(180deg,#fbfcfe 0,#f5f7fb 55%,#f7f8fb 100%)}
.leh-home-header,.leh-home-main,.leh-home-footer{max-width:1180px}
.leh-home-header{min-height:76px;margin-bottom:18px;padding:10px 12px 10px 16px;border:1px solid rgba(222,228,238,.92);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 10px 30px rgba(29,45,77,.055);backdrop-filter:blur(14px)}
.leh-brand-wrap{position:relative;display:block;color:inherit;text-decoration:none!important}
.leh-brand-wrap>span{position:absolute;top:3px;left:88px;padding:4px 7px;border:1px solid #dce3ee;border-radius:999px;background:#f6f8fb;color:var(--leh-blue);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.leh-primary-logo{width:min(340px,64vw)}
.leh-brand-wrap p{margin:1px 0 0 75px;font-size:10px;letter-spacing:.015em}
.leh-install-button,.leh-header-account{width:46px;height:46px;border-radius:15px;box-shadow:none}
.leh-header-account.has-member{border-color:#b8d9c5;box-shadow:0 0 0 3px rgba(49,137,83,.08)}
.leh-home-identity{position:relative;overflow:hidden;margin-bottom:14px;padding:26px 28px;border-color:#dde4ee;border-radius:26px;background:#fff;box-shadow:0 18px 48px rgba(28,44,74,.07)}
.leh-home-identity:after{content:"";position:absolute;right:-90px;bottom:-120px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(28,55,120,.11),rgba(127,27,80,.035) 48%,transparent 70%);pointer-events:none}
.leh-home-identity.is-member{grid-template-columns:76px minmax(0,1fr) auto}
.leh-home-avatar,.leh-guest-mark{display:grid;place-items:center;width:76px;height:76px;z-index:1;border-radius:22px;background:linear-gradient(145deg,rgba(28,55,120,.11),rgba(127,27,80,.06));color:var(--leh-blue);overflow:hidden}
.leh-home-avatar img{width:100%;height:100%;object-fit:cover}
.leh-home-avatar svg,.leh-guest-mark svg{width:35px;height:35px}
.leh-home-identity-copy{position:relative;z-index:1;min-width:0}
.leh-home-identity-copy>span,.leh-identity-kicker>span{color:var(--leh-blue);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.leh-identity-kicker{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.leh-home-identity h2{max-width:720px;margin:7px 0 7px;font-size:clamp(22px,3vw,32px);line-height:1.18;letter-spacing:-.02em}
.leh-home-identity p{max-width:710px;font-size:12px;line-height:1.65}
.leh-home-identity.is-member p{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.leh-home-identity.is-member p strong{color:#27344e;font-size:12px}
.leh-home-identity.is-member p span{padding-left:9px;border-left:1px solid #d9e0ea}
.leh-home-identity-actions{position:relative;z-index:1;justify-content:flex-end}
.leh-home-identity-actions .leh-button{min-height:44px;white-space:nowrap}
.leh-home-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:28px}
.leh-home-trust>div{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 15px;border:1px solid #e0e6ef;border-radius:16px;background:rgba(255,255,255,.82)}
.leh-home-trust>div>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:rgba(28,55,120,.075);color:var(--leh-blue)}
.leh-home-trust svg{width:18px;height:18px}
.leh-home-trust p{min-width:0;margin:0}
.leh-home-trust strong,.leh-home-trust small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leh-home-trust strong{color:#26334b;font-size:10px}
.leh-home-trust small{margin-top:3px;color:var(--leh-muted);font-size:8px}
.leh-home-section{margin-top:28px}
.leh-section-heading{margin-bottom:13px}
.leh-section-heading>div>span{display:block;margin-bottom:5px;color:var(--leh-blue);font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.leh-section-heading h2{font-size:19px;letter-spacing:-.01em}
.leh-section-heading p{font-size:10px}
.leh-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.leh-app-grid.has-3-items{grid-template-columns:repeat(3,minmax(0,1fr))}
.leh-app-tile{min-height:96px;padding:15px;border-radius:19px;background:#fff;box-shadow:0 7px 20px rgba(29,45,77,.04)}
.leh-app-tile:hover,.leh-app-tile:focus-visible{border-color:rgba(28,55,120,.28);box-shadow:0 14px 30px rgba(29,45,77,.08);outline:none}
.leh-tile-copy strong{font-size:12px;line-height:1.3}
.leh-tile-copy small{font-size:9px}
.leh-home-footer{align-items:center;margin-top:38px;padding:20px 2px 0}
.leh-home-footer>div strong,.leh-home-footer>div span{display:block}
.leh-home-footer>div strong{color:#25334b;font-size:11px}
.leh-home-footer>div span{margin-top:3px;font-size:9px}
.leh-home-footer nav{display:flex;gap:14px}
.leh-home-footer nav a{font-size:10px}
@media(max-width:900px){
  .leh-home-identity.is-member{grid-template-columns:68px minmax(0,1fr)}
  .leh-home-identity.is-member .leh-home-identity-actions{grid-column:1/-1;justify-content:flex-start}
  .leh-home-avatar,.leh-guest-mark{width:68px;height:68px;border-radius:19px}
  .leh-app-grid,.leh-app-grid.has-3-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .leh-home-app{padding:calc(10px + env(safe-area-inset-top)) 9px calc(24px + env(safe-area-inset-bottom))}
  .leh-home-header{min-height:64px;margin-bottom:12px;padding:8px 9px 8px 12px;border-radius:18px}
  .leh-primary-logo{width:min(255px,61vw)}
  .leh-brand-wrap>span{top:0;left:66px;font-size:6px;padding:3px 5px}
  .leh-brand-wrap p{margin-left:57px;font-size:8px}
  .leh-install-button,.leh-header-account{width:40px;height:40px;border-radius:13px}
  .leh-home-identity,.leh-home-identity.is-member,.leh-home-identity.is-guest{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:18px 15px;border-radius:20px}
  .leh-home-avatar,.leh-guest-mark{width:54px;height:54px;border-radius:16px}
  .leh-home-avatar svg,.leh-guest-mark svg{width:27px;height:27px}
  .leh-home-identity h2{font-size:21px}
  .leh-home-identity p{font-size:11px}
  .leh-home-identity-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .leh-home-identity-actions .leh-button{width:100%;padding:9px 10px;font-size:10px;text-align:center}
  .leh-home-trust{grid-template-columns:1fr;margin-bottom:22px;gap:7px}
  .leh-home-trust>div{padding:10px 12px}
  .leh-home-trust strong,.leh-home-trust small{white-space:normal}
  .leh-home-section{margin-top:22px}
  .leh-app-grid,.leh-app-grid.has-3-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .leh-app-tile{grid-template-columns:42px minmax(0,1fr);min-height:82px;padding:11px 10px;gap:9px;border-radius:16px}
  .leh-tile-icon{width:42px;height:42px;border-radius:13px}
  .leh-tile-icon svg{width:21px;height:21px}
  .leh-tile-open{display:none}
  .leh-tile-copy strong,.leh-tile-copy small{white-space:normal}
  .leh-tile-copy strong{font-size:10px}
  .leh-tile-copy small{font-size:8px;line-height:1.25}
  .leh-home-footer{display:flex;align-items:flex-start;gap:12px;padding-inline:3px}
}
@media(max-width:390px){
  .leh-app-grid,.leh-app-grid.has-3-items{grid-template-columns:1fr 1fr}
  .leh-app-tile{display:flex;flex-direction:column;align-items:flex-start;min-height:116px}
  .leh-home-identity-actions{grid-template-columns:1fr}
}

/* LiDia Edu Home v0.3.2 — unified LiDia Account experience. */
.leh-account-main{max-width:860px}
.leh-account-profile-v2{overflow:hidden;border-radius:24px}
.leh-account-profile-v2 .leh-account-cover{height:132px;background:radial-gradient(circle at 78% 18%,rgba(229,80,80,.22),transparent 31%),radial-gradient(circle at 24% 0,rgba(127,27,80,.18),transparent 34%),linear-gradient(135deg,#1C3778,#405F9A 60%,#EEF2F8)}
.leh-account-profile-v2 .leh-account-profile-body{grid-template-columns:106px minmax(0,1fr);padding:0 24px 20px}
.leh-account-profile-v2 .leh-account-avatar{width:106px;height:106px;margin-top:-48px;border-width:5px;box-shadow:0 9px 22px rgba(24,39,70,.14)}
.leh-account-kicker{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.leh-verified-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;background:#EEF5FF;color:#1C3778;font-size:8px;font-weight:900;text-transform:uppercase}
.leh-verified-pill svg{width:12px;height:12px}
.leh-account-profile-v2 .leh-account-copy h2{font-size:26px}
.leh-account-profile-v2 .leh-account-copy>strong{font-size:13px;letter-spacing:.02em}
.leh-account-profile-v2 .leh-account-copy p{font-size:11px}
.leh-account-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 22px 18px}
.leh-account-facts>div{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #E0E6EF;border-radius:15px;background:#F9FAFC}
.leh-account-facts>div>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:rgba(28,55,120,.075);color:var(--leh-blue)}
.leh-account-facts svg{width:18px;height:18px}
.leh-account-facts p{min-width:0;margin:0}
.leh-account-facts small,.leh-account-facts strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leh-account-facts small{color:var(--leh-muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.leh-account-facts strong{margin-top:4px;color:#29364d;font-size:10px}
.leh-account-completion{margin:0 22px 18px;padding:14px;border:1px solid #DFE5EE;border-radius:15px;background:#fff}
.leh-account-completion>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#536075;font-size:10px;font-weight:800}
.leh-account-completion>div:first-child strong{color:var(--leh-blue);font-size:12px}
.leh-account-completion-track{height:7px;margin-top:9px;border-radius:999px;background:#E6EAF0;overflow:hidden}
.leh-account-completion-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1C3778,#7F1B50)}
.leh-account-completion p{margin:8px 0 0;color:var(--leh-muted);font-size:9px;line-height:1.5}
.leh-account-actions-v2{display:flex;align-items:center;gap:8px;padding:17px 22px 22px}
.leh-account-actions-v2 .leh-button{min-height:41px;font-size:10px}
.leh-account-logout-form{margin-left:auto}
.leh-button.is-danger{background:#FFF1F1;color:#9A3138!important;border:1px solid #F0D1D3}
.leh-button.is-danger:hover,.leh-button.is-danger:focus{background:#FBE5E6;outline:none}
.leh-account-authority{display:flex;align-items:flex-start;gap:12px;margin-top:13px;padding:15px 17px;border:1px solid #DCE4EF;border-radius:17px;background:#F9FBFE}
.leh-account-authority>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:rgba(28,55,120,.08);color:var(--leh-blue)}
.leh-account-authority svg{width:20px;height:20px}
.leh-account-authority strong{display:block;color:#29364d;font-size:11px}
.leh-account-authority p{margin:4px 0 0;color:var(--leh-muted);font-size:9px;line-height:1.55}
.leh-login-card-v2{max-width:620px;margin:0 auto;padding:28px}
.leh-login-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--leh-line)}
.leh-login-logo{display:block;width:210px;height:auto}
.leh-login-brand>span{padding:5px 8px;border-radius:999px;background:#F1F4F8;color:var(--leh-blue);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.leh-field.has-password-toggle{position:relative}
.leh-field.has-password-toggle input{padding-right:68px}
.leh-password-toggle{position:absolute;right:6px;bottom:6px;min-width:54px;height:33px;padding:0 8px;border:0;border-radius:9px;background:#EEF1F5;color:#334156;font:inherit;font-size:9px;font-weight:900;cursor:pointer}
.leh-password-toggle:hover,.leh-password-toggle:focus{background:#E1E6ED;color:#1C3778;outline:none}
@media(max-width:760px){
  .leh-account-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .leh-account-actions-v2{display:grid;grid-template-columns:1fr 1fr}
  .leh-account-logout-form{margin:0}
  .leh-account-logout-form .leh-button{width:100%}
}
@media(max-width:520px){
  .leh-account-profile-v2 .leh-account-cover{height:104px}
  .leh-account-profile-v2 .leh-account-profile-body{grid-template-columns:82px minmax(0,1fr);padding-inline:14px}
  .leh-account-profile-v2 .leh-account-avatar{width:82px;height:82px;margin-top:-37px;border-width:4px}
  .leh-account-profile-v2 .leh-account-copy h2{font-size:21px}
  .leh-account-facts{grid-template-columns:1fr;padding-inline:14px}
  .leh-account-completion{margin-inline:14px}
  .leh-account-actions-v2{grid-template-columns:1fr;padding-inline:14px}
  .leh-login-card-v2{padding:21px 15px}
  .leh-login-brand{align-items:flex-start;flex-direction:column}
  .leh-login-logo{width:min(220px,70vw)}
}

/* LiDia Edu Home v0.3.3 — application gateway and status experience. */
.leh-apply-surface .leh-narrow-main{max-width:820px}.leh-application-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.leh-application-flow>div{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px;border:1px solid var(--leh-line);border-radius:16px;background:rgba(255,255,255,.88)}.leh-application-flow>div>span{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:50%;background:#EEF1F6;color:var(--leh-blue);font-size:11px;font-weight:900}.leh-application-flow>div.is-active>span{background:var(--leh-blue);color:#fff}.leh-application-flow p{margin:0;min-width:0}.leh-application-flow strong,.leh-application-flow small{display:block}.leh-application-flow strong{font-size:11px;color:var(--leh-ink)}.leh-application-flow small{margin-top:3px;color:var(--leh-muted);font-size:9px}.leh-form-card-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.leh-form-card-heading>span{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:14px;background:rgba(28,55,120,.08);color:var(--leh-blue)}.leh-form-card-heading>span svg{width:23px;height:23px}.leh-form-card-heading h2{margin:1px 0 4px;font-size:19px}.leh-form-card-heading p{margin:0;color:var(--leh-muted);font-size:11px;line-height:1.55}.leh-status-check-card{margin-top:16px}.leh-status-check-card .leh-button.is-secondary{border:1px solid rgba(28,55,120,.14)}.leh-application-status{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:15px;margin:0 0 16px;padding:18px;border:1px solid #DCE4EE;border-radius:19px;background:#fff;box-shadow:0 8px 24px rgba(29,45,77,.05)}.leh-application-status-icon{display:grid;width:58px;height:58px;place-items:center;border-radius:18px;background:#EEF2F8;color:var(--leh-blue)}.leh-application-status-icon svg{width:28px;height:28px}.leh-application-status-copy>span{display:inline-flex;padding:5px 8px;border-radius:999px;background:#EEF1F5;color:#5A6677;font-size:8px;font-weight:900;text-transform:uppercase}.leh-application-status-copy h2{margin:7px 0 3px;font-size:19px}.leh-application-status-copy>strong{display:block;font-size:11px}.leh-application-status-copy p{margin:7px 0 0;color:var(--leh-muted);font-size:11px;line-height:1.55}.leh-application-status-copy small{display:block;margin-top:7px;color:#7A8493;font-size:9px}.leh-application-status.is-approved{border-color:#BFE2CC;background:#F8FCF9}.leh-application-status.is-approved .leh-application-status-icon{background:#E8F6ED;color:#1E6F43}.leh-application-status.is-approved .leh-application-status-copy>span{background:#E8F6ED;color:#1E6F43}.leh-application-status.is-hold{border-color:#EAD9A8;background:#FFFCF3}.leh-application-status.is-hold .leh-application-status-icon,.leh-application-status.is-hold .leh-application-status-copy>span{background:#FFF2CC;color:#7B6114}.leh-application-status.is-rejected,.leh-application-status.is-archived{border-color:#F0C9C9;background:#FFF8F8}.leh-application-status.is-rejected .leh-application-status-icon,.leh-application-status.is-rejected .leh-application-status-copy>span,.leh-application-status.is-archived .leh-application-status-icon,.leh-application-status.is-archived .leh-application-status-copy>span{background:#FCE9E9;color:#96383C}
@media(max-width:650px){.leh-application-flow{grid-template-columns:1fr}.leh-application-flow>div{min-height:58px}.leh-application-status{grid-template-columns:48px minmax(0,1fr);padding:15px}.leh-application-status-icon{width:48px;height:48px;border-radius:15px}.leh-application-status>.leh-button{grid-column:1/-1;width:100%}.leh-status-check-card{margin-top:12px}}


/* LiDia Edu Home v0.3.6 — Your Courses student gateway. */
.leh-courses-surface .leh-subpage-main{max-width:980px}
.leh-courses-identity{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:14px;margin:0 0 18px;padding:18px;border:1px solid var(--leh-line);border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(25,39,64,.04)}
.leh-courses-member{display:flex;align-items:center;gap:13px;min-width:0}.leh-courses-avatar{display:grid;width:62px;height:62px;flex:0 0 62px;place-items:center;border-radius:18px;background:rgba(28,55,120,.08);color:var(--leh-blue);overflow:hidden}.leh-courses-avatar img{width:100%;height:100%;object-fit:cover}.leh-courses-avatar svg{width:29px;height:29px}.leh-courses-member>div{min-width:0}.leh-courses-member>div>span{display:block;color:#1E6F43;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.leh-courses-member h2{margin:4px 0 3px;font-size:20px;overflow-wrap:anywhere}.leh-courses-member strong{display:block;color:var(--leh-muted);font-size:11px;overflow-wrap:anywhere}
.leh-course-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.leh-course-summary-grid>div{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:10px;border:1px solid #E1E6ED;border-radius:13px;background:#F8FAFC;text-align:center}.leh-course-summary-grid span{color:var(--leh-muted);font-size:8px;font-weight:850;text-transform:uppercase}.leh-course-summary-grid strong{margin-top:4px;color:var(--leh-blue);font-size:18px}
.leh-courses-surface .leh-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.leh-courses-surface .leh-course-card{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:13px;padding:17px;border-radius:19px}.leh-course-card-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:11px}.leh-courses-surface .leh-course-card-icon{width:48px;height:48px;border-radius:14px}.leh-courses-surface .leh-course-card-icon svg{width:23px;height:23px}.leh-courses-surface .leh-course-copy h2{margin:3px 0 0;font-size:16px;line-height:1.3}.leh-course-status{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:5px 8px;border-radius:999px;background:#EEF1F5;color:#556174;font-size:8px;font-weight:900;text-transform:uppercase;white-space:nowrap}.leh-course-status.is-active,.leh-course-status.is-completed{background:#E8F6ED;color:#1E6F43}.leh-course-status.is-pending{background:#FFF5D9;color:#836100}.leh-course-status.is-suspended,.leh-course-status.is-expired,.leh-course-status.is-revoked{background:#FDEAEA;color:#9A3838}
.leh-courses-surface .leh-course-progress{grid-template-columns:minmax(0,1fr) 42px;margin:0}.leh-course-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.leh-course-facts>div{min-width:0;padding:10px;border:1px solid #E4E8EE;border-radius:12px;background:#FAFBFC}.leh-course-facts span,.leh-course-facts strong{display:block}.leh-course-facts span{color:var(--leh-muted);font-size:8px;font-weight:850;text-transform:uppercase}.leh-course-facts strong{margin-top:4px;color:#2E3B50;font-size:10px;overflow-wrap:anywhere}.leh-course-card-actions{display:flex;align-items:center;margin-top:auto;padding-top:1px}.leh-course-card-actions .leh-button{width:100%}.leh-course-access-state{display:flex;width:100%;min-height:42px;align-items:center;justify-content:center;padding:9px 12px;border-radius:12px;background:#F0F2F5;color:#697586;font-size:10px;font-weight:850;text-transform:uppercase}.leh-course-access-state.is-pending{background:#FFF8E7;color:#80620C}.leh-course-access-state.is-suspended,.leh-course-access-state.is-expired,.leh-course-access-state.is-revoked{background:#FFF0F0;color:#963737}
@media(max-width:760px){.leh-courses-identity{grid-template-columns:1fr}.leh-courses-surface .leh-course-grid{grid-template-columns:1fr}.leh-course-summary-grid{max-width:420px}}
@media(max-width:480px){.leh-courses-identity{padding:14px}.leh-courses-member{align-items:flex-start}.leh-courses-avatar{width:52px;height:52px;flex-basis:52px;border-radius:15px}.leh-course-summary-grid{gap:6px}.leh-course-summary-grid>div{padding:8px 6px}.leh-courses-surface .leh-course-card{padding:14px}.leh-course-card-head{grid-template-columns:44px minmax(0,1fr)}.leh-courses-surface .leh-course-card-icon{width:44px;height:44px}.leh-course-status{grid-column:2;justify-self:start}.leh-course-facts{grid-template-columns:1fr 1fr}}

/* LiDia Edu Home v0.3.7 — PWA and navigation refinement. */
.leh-subpage-header{grid-template-columns:44px minmax(0,1fr) auto}.leh-subpage-actions{display:flex;align-items:center;gap:7px}.leh-subpage-account{overflow:hidden}.leh-subpage-account img{width:100%;height:100%;object-fit:cover}.leh-subpage-account.has-member{border-color:#B8D9C5;box-shadow:0 0 0 3px rgba(49,137,83,.08)}
.leh-mobile-nav{display:none}
@media(max-width:760px){
  .leh-app{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .leh-subpage-header{grid-template-columns:40px minmax(0,1fr) auto;gap:8px}.leh-subpage-actions{gap:5px}.leh-subpage-header .leh-icon-button,.leh-subpage-header .leh-install-button{width:40px;height:40px;border-radius:13px}.leh-subpage-header .leh-install-button svg,.leh-subpage-header .leh-icon-button svg{width:19px;height:19px}
  .leh-mobile-nav{position:fixed;z-index:1000;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(66px + env(safe-area-inset-bottom));padding:0 max(4px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-left));border-top:1px solid rgba(210,218,229,.96);background:rgba(255,255,255,.97);box-shadow:0 -10px 28px rgba(29,45,77,.08);backdrop-filter:blur(16px)}
  .leh-mobile-nav-item{display:flex;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:6px 2px;color:#687386!important;text-decoration:none!important}.leh-mobile-nav-item>span{display:grid;width:30px;height:30px;place-items:center;border-radius:10px}.leh-mobile-nav-item svg{width:19px;height:19px}.leh-mobile-nav-item small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;font-weight:800;line-height:1}.leh-mobile-nav-item.is-active{color:var(--leh-blue)!important}.leh-mobile-nav-item.is-active>span{background:rgba(28,55,120,.09)}
  .leh-network-state{bottom:calc(78px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){.leh-mobile-nav-item small{font-size:7.5px}.leh-mobile-nav-item>span{width:28px;height:28px}.leh-mobile-nav-item svg{width:18px;height:18px}}
@media(display-mode:standalone){body.leh-app-page{overscroll-behavior-y:auto}.leh-mobile-nav{background:rgba(255,255,255,.985)}}


/* LiDia Edu Home v0.4.1 — Smart Support & Communication */
.leh-support-main{width:min(1120px,100%);margin:0 auto;padding-bottom:92px}.leh-support-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(320px,.96fr);gap:18px;align-items:start}.leh-support-compose-card,.leh-support-conversations,.leh-support-thread{border:1px solid #dfe5ed;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(28,55,120,.05)}.leh-support-compose-card,.leh-support-conversations{padding:20px}.leh-support-card-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.leh-support-card-heading>span{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:13px;background:#eaf0fa;color:#1c3778}.leh-support-card-heading>span svg{width:22px;height:22px}.leh-support-card-heading h2,.leh-support-section-heading h2{margin:0;color:#1d293a;font-size:20px}.leh-support-card-heading p,.leh-support-section-heading p{margin:4px 0 0;color:#6c7787;font-size:12px;line-height:1.55}.leh-support-member-identity{display:flex;align-items:center;gap:11px;margin:0 0 15px;padding:12px;border:1px solid #dce4ef;border-radius:14px;background:#f7f9fc}.leh-support-avatar{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:50%;overflow:hidden;background:#e9eef7;color:#1c3778}.leh-support-avatar img{width:100%;height:100%;object-fit:cover}.leh-support-member-identity>div>span,.leh-support-section-heading span{display:block;color:#1c3778;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.leh-support-member-identity strong,.leh-support-member-identity small{display:block}.leh-support-member-identity strong{margin-top:3px;color:#243047;font-size:14px}.leh-support-member-identity small{margin-top:3px;color:#6a7586;font-size:10px}.leh-support-form,.leh-support-reply-form{display:grid;gap:13px}.leh-support-contact-grid,.leh-support-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.leh-support-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.leh-support-form label,.leh-support-reply-form label{display:grid;gap:6px;color:#344257;font-size:11px;font-weight:800}.leh-support-form input,.leh-support-form select,.leh-support-form textarea,.leh-support-reply-form textarea{width:100%;border:1px solid #ccd5e1;border-radius:11px;background:#fff;padding:10px 11px;color:#202b3d;font:13px/1.45 Arial,Helvetica,sans-serif;box-sizing:border-box;outline:none}.leh-support-form input,.leh-support-form select{min-height:42px}.leh-support-form textarea,.leh-support-reply-form textarea{resize:vertical;min-height:110px}.leh-support-form input:focus,.leh-support-form select:focus,.leh-support-form textarea:focus,.leh-support-reply-form textarea:focus{border-color:#708ab7;box-shadow:0 0 0 3px rgba(28,55,120,.09)}.leh-support-attachments{display:grid;grid-template-columns:1fr 1fr;gap:10px}.leh-support-file-control,.leh-audio-recorder{min-height:104px;padding:12px;border:1px solid #dce3ec;border-radius:13px;background:#f8fafc}.leh-support-file-control>span,.leh-audio-label{display:flex!important;align-items:center;gap:7px!important;color:#283750!important;font-size:11px!important;font-weight:900!important}.leh-support-file-control svg,.leh-audio-label svg{width:17px;height:17px;color:#1c3778}.leh-support-file-control input{min-height:36px!important;margin-top:8px;padding:6px!important;font-size:10px!important}.leh-support-file-control small,.leh-audio-recorder small{display:block;margin-top:6px;color:#7a8595;font-size:9px;line-height:1.4}.leh-audio-recorder>div{display:flex;align-items:center;gap:7px;margin-top:9px}.leh-audio-button{min-height:34px;padding:6px 10px;border:1px solid #c9d3df;border-radius:9px;background:#fff;color:#24334a;font-size:10px;font-weight:850;cursor:pointer}.leh-audio-button:hover,.leh-audio-button:focus{border-color:#9aacc3;background:#eef3f9;outline:none}.leh-audio-recorder [data-leh-audio-time]{margin-left:auto;color:#1c3778;font-size:11px;font-weight:900;font-variant-numeric:tabular-nums}.leh-audio-recorder input[type=file]{width:100%;margin-top:8px;font-size:10px}.leh-support-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}.leh-support-ticket-list{display:grid;gap:8px}.leh-support-ticket{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e0e5ec;border-radius:13px;background:#fafbfc;color:#2a3547;text-decoration:none}.leh-support-ticket:hover,.leh-support-ticket:focus{border-color:#9fb2cf;background:#f4f7fb;color:#1c3778;outline:none}.leh-support-ticket.has-unread{border-color:#b9cae4;background:#f4f7fd}.leh-support-ticket>div{min-width:0}.leh-support-ticket>div>span,.leh-support-ticket strong,.leh-support-ticket small{display:block}.leh-support-ticket>div>span{color:#728094;font-size:9px;font-weight:800}.leh-support-ticket>div>span i{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:999px;background:#1c3778;color:#fff;font-size:7px;font-style:normal;text-transform:uppercase}.leh-support-ticket>div>strong{margin-top:4px;overflow:hidden;color:#273247;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.leh-support-ticket>div>small{margin-top:4px;color:#7c8695;font-size:9px}.leh-support-status{display:inline-flex;align-items:center;justify-content:center;min-width:max-content;padding:5px 8px;border-radius:999px;background:#eef1f5;color:#596678;font-size:8px;font-weight:900;text-transform:uppercase}.leh-support-status.is-open{background:#e7f0ff;color:#1c4d91}.leh-support-status.is-replied{background:#e9f7ef;color:#277047}.leh-support-status.is-waiting_student{background:#fff3dc;color:#8a6118}.leh-support-status.is-resolved{background:#e7f7f1;color:#237153}.leh-support-status.is-closed{background:#eef0f3;color:#69717d}.leh-support-empty{display:grid;place-items:center;min-height:190px;padding:22px;text-align:center}.leh-support-empty>span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#edf2fa;color:#1c3778}.leh-support-empty strong{margin-top:11px;color:#2d3849}.leh-support-empty p{max-width:360px;margin:6px auto 0;color:#758090;font-size:11px;line-height:1.5}.leh-support-thread{padding:18px}.leh-support-thread-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:14px;padding-bottom:14px;border-bottom:1px solid #e6eaf0}.leh-support-back{color:#1c3778;font-size:10px;font-weight:850;text-decoration:none}.leh-support-thread-top>div span{color:#718098;font-size:9px;font-weight:900;text-transform:uppercase}.leh-support-thread-top h2{margin:4px 0 0;color:#253248;font-size:21px}.leh-support-thread-top small{display:block;margin-top:4px;color:#6f7a89;font-size:10px}.leh-support-message-list{display:grid;gap:11px;padding:16px 0}.leh-support-message{max-width:min(78%,720px);padding:12px 14px;border:1px solid #dfe4ea;border-radius:15px;background:#f8fafc}.leh-support-message.is-user{margin-left:auto;border-color:#cbd8ec;background:#f2f6fc}.leh-support-message.is-support{margin-right:auto}.leh-support-message header{display:flex;align-items:center;justify-content:space-between;gap:12px}.leh-support-message header strong{color:#27354a;font-size:10px}.leh-support-message header time{color:#8992a0;font-size:8px}.leh-support-message-body{margin-top:7px;color:#374357;font-size:12px;line-height:1.65}.leh-support-message-body p{margin:0 0 7px}.leh-support-message-body p:last-child{margin-bottom:0}.leh-support-message-files{display:grid;gap:6px;margin-top:9px}.leh-support-message-files>a{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#344155;text-decoration:none}.leh-support-message-files>a .dashicons{width:18px;height:18px;color:#1c3778;font-size:18px}.leh-support-message-files>a strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.leh-support-message-files>a small{color:#808997;font-size:8px}.leh-support-audio{padding:8px;border:1px solid #dce3ec;border-radius:10px;background:#fff}.leh-support-audio>span{display:block;margin-bottom:6px;overflow:hidden;color:#566376;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.leh-support-audio audio{width:100%;height:34px}.leh-support-reply-form{padding-top:15px;border-top:1px solid #e6eaf0}.leh-support-closed-note{padding:14px;border:1px solid #e0e4e9;border-radius:12px;background:#f6f7f9;text-align:center}.leh-support-closed-note strong{color:#4f5967}.leh-support-closed-note p{margin:5px 0 0;color:#7b8490;font-size:10px}
@media(max-width:900px){.leh-support-layout{grid-template-columns:1fr}.leh-support-contact-grid{grid-template-columns:1fr 1fr}.leh-support-conversations{order:2}.leh-support-compose-card{order:1}}@media(max-width:650px){.leh-support-main{padding-inline:8px}.leh-support-compose-card,.leh-support-conversations,.leh-support-thread{padding:14px;border-radius:16px}.leh-support-contact-grid,.leh-support-select-grid,.leh-support-attachments{grid-template-columns:1fr}.leh-support-thread-top{grid-template-columns:1fr}.leh-support-thread-top>.leh-support-status{justify-self:start}.leh-support-message{max-width:92%}.leh-support-ticket{align-items:flex-start}.leh-support-file-control,.leh-audio-recorder{min-height:0}.leh-support-card-heading h2,.leh-support-section-heading h2{font-size:18px}}

/* LiDia Edu Home v0.4.2 — clean launcher and unified two-column mobile grids. */
.leh-home-header .leh-brand-wrap>span{display:none!important}
.leh-home-entry{justify-content:center!important;padding:12px 14px!important;box-shadow:none!important;background:transparent!important;border-color:transparent!important}
.leh-home-entry .leh-home-identity-actions{width:100%;justify-content:center}
.leh-home-entry .leh-button{min-width:130px}
.leh-home-section{margin-top:22px}
.leh-home-section .leh-section-heading{margin-bottom:10px}
.leh-home-section .leh-section-heading h2{font-size:17px}
.leh-home-section .leh-section-heading>div>span,.leh-home-section .leh-section-heading p{display:none!important}
.leh-home-section .leh-app-tile{min-height:78px}
.leh-home-section .leh-tile-copy small{display:none!important}
@media(max-width:650px){
  .leh-home-section.is-primary .leh-app-grid,.leh-home-section.is-learning .leh-app-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .leh-home-section.is-primary .leh-app-tile,.leh-home-section.is-learning .leh-app-tile{display:flex;flex-direction:column;align-items:flex-start;min-height:108px}
  .leh-home-section.is-primary .leh-tile-open,.leh-home-section.is-learning .leh-tile-open{display:none}
  .leh-home-entry .leh-home-identity-actions{display:grid;grid-template-columns:1fr 1fr}
  .leh-home-entry .leh-button{min-width:0;width:100%}
}
.leh-home-header .leh-brand-wrap p{margin-left:0!important;text-align:center}
@media(max-width:650px){.leh-home-header .leh-brand-wrap p{margin-left:0!important}}


/* LiDia Edu Home v0.4.3 — unified app navigation, compact login, full-height support, smart audio. */
.leh-app{padding-top:0!important}
.leh-universal-bar{position:sticky;top:0;z-index:1000;margin:0 calc(-1 * max(18px,env(safe-area-inset-right))) 18px;padding:calc(8px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left));border-bottom:1px solid rgba(220,226,235,.92);background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-shadow:0 5px 18px rgba(28,55,120,.04)}
.leh-universal-bar-inner{width:min(1180px,100%);min-height:48px;margin:0 auto;display:grid;grid-template-columns:auto minmax(210px,370px) minmax(0,1fr);align-items:center;gap:14px}
.leh-topbar-brand{display:flex;align-items:center;color:var(--leh-blue);text-decoration:none}.leh-topbar-logo{display:block;width:158px;height:auto}
.leh-topbar-search{position:relative;height:40px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;border:1px solid #dce2ea;border-radius:13px;background:#f4f6f8;overflow:visible}.leh-topbar-search>span{display:grid;place-items:center;color:#687386}.leh-topbar-search>span svg{width:17px;height:17px}.leh-topbar-search input{width:100%;height:38px;border:0!important;background:transparent!important;padding:0 10px 0 2px!important;color:#253248!important;font:12px Arial,Helvetica,sans-serif!important;box-shadow:none!important;outline:0!important}.leh-topbar-search small{position:absolute;top:44px;left:0;z-index:5;width:max-content;max-width:280px;padding:6px 8px;border-radius:8px;background:#fff;color:#a33a3a;font-size:9px;box-shadow:0 8px 20px rgba(25,39,64,.12)}.leh-topbar-search small:empty{display:none}
.leh-topbar-nav{display:flex;align-items:center;justify-content:flex-end;gap:6px}.leh-topbar-action{position:relative;width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border:1px solid #dce2ea;border-radius:12px;background:#fff;color:#4e5a6b!important;text-decoration:none!important;cursor:pointer;box-shadow:none!important}.leh-topbar-action svg{width:19px;height:19px}.leh-topbar-action:hover,.leh-topbar-action:focus{border-color:#b8c7dc;background:#edf2f8;color:var(--leh-blue)!important;outline:0}.leh-topbar-action.is-active{border-color:#b7c8e2;background:#e9eff9;color:var(--leh-blue)!important}.leh-topbar-account{overflow:hidden}.leh-topbar-account img{width:100%;height:100%;object-fit:cover}.leh-topbar-account.has-member{border-color:#b8d9c5}.leh-notification-action b{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#e55050;color:#fff;font-size:8px;line-height:1}.leh-install-button.leh-topbar-action{padding:0!important}
.leh-home-main{padding-top:2px}.leh-home-header{display:none!important}.leh-subpage-header{display:none!important}
.leh-page-heading{margin-top:4px}
.leh-login-card-v3{max-width:480px;margin:7vh auto 0;padding:28px}.leh-login-card-v3>h1{margin:10px 0 20px;text-align:center;font-size:24px}.leh-login-symbol{width:52px;height:52px;display:grid;place-items:center;margin:0 auto;border-radius:16px;background:#edf2f9;color:var(--leh-blue)}.leh-login-symbol svg{width:25px;height:25px}.leh-login-card-v3 .leh-login-footer{margin-top:14px}.leh-login-card-v3 .leh-login-footer a{min-width:48px}.leh-login-card-v3 .leh-button.is-full{margin-top:15px}
.leh-button:hover,.leh-button:focus{background:#142e68!important;color:#fff!important;outline:0}.leh-button.is-secondary:hover,.leh-button.is-secondary:focus{background:#dfe7f3!important;color:var(--leh-blue)!important}.leh-button.is-danger:hover,.leh-button.is-danger:focus{background:#8f2e35!important;color:#fff!important}
.leh-support-main{width:min(1180px,100%);min-height:calc(100dvh - 82px);margin:0 auto;padding:0 0 18px!important}.leh-support-layout{min-height:calc(100dvh - 100px);grid-template-columns:minmax(0,1.06fr) minmax(320px,.94fr);align-items:stretch}.leh-support-compose-card,.leh-support-conversations{height:calc(100dvh - 100px);min-height:560px;overflow:auto}.leh-support-thread{height:calc(100dvh - 100px);min-height:560px;display:flex;flex-direction:column;overflow:hidden}.leh-support-message-list{flex:1;min-height:0;overflow:auto;padding:16px 3px 16px 0;scrollbar-width:thin}.leh-support-reply-form{position:relative;z-index:2;flex:0 0 auto;margin:0 -18px -18px;padding:15px 18px 18px;border-top:1px solid #e6eaf0;background:#fff}.leh-support-thread-top{flex:0 0 auto}
.leh-audio-recorder{min-height:104px}.leh-audio-live{display:flex;align-items:center;gap:8px!important;margin-top:9px}.leh-audio-button{display:inline-flex;align-items:center;gap:6px;min-height:35px;padding:6px 10px;border:1px solid #c9d3df;border-radius:9px;background:#fff!important;color:#24334a!important;font-size:10px;font-weight:850;cursor:pointer}.leh-audio-button svg{width:15px;height:15px}.leh-audio-button:hover,.leh-audio-button:focus{border-color:#8da2bf!important;background:#eaf0f8!important;color:#17366f!important;outline:none!important}.leh-audio-button.is-stop{border-color:#e4b5b5!important;background:#fff5f5!important;color:#9d3333!important}.leh-audio-button.is-stop:hover,.leh-audio-button.is-stop:focus{background:#fbe7e7!important;color:#7f2020!important}.leh-audio-recorder.is-recording{border-color:#e4b7b7;background:#fffafa}.leh-audio-recorder.is-recording [data-leh-audio-time]{color:#b22f2f}.leh-audio-pulse{display:flex;align-items:center;gap:2px;height:18px}.leh-audio-pulse i{width:3px;border-radius:999px;background:#e55050;animation:lehAudioPulse .8s ease-in-out infinite alternate}.leh-audio-pulse i:nth-child(1){height:7px}.leh-audio-pulse i:nth-child(2){height:14px;animation-delay:.1s}.leh-audio-pulse i:nth-child(3){height:10px;animation-delay:.2s}.leh-audio-pulse i:nth-child(4){height:16px;animation-delay:.3s}.leh-audio-pulse i:nth-child(5){height:8px;animation-delay:.4s}@keyframes lehAudioPulse{from{transform:scaleY(.55);opacity:.55}to{transform:scaleY(1);opacity:1}}
.leh-audio-preview{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:8px;margin-top:9px}.leh-audio-preview audio{width:100%;height:34px}.leh-audio-delete{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e4c6c6;border-radius:9px;background:#fff6f6!important;color:#9b3333!important;cursor:pointer}.leh-audio-delete:hover,.leh-audio-delete:focus{background:#f8e3e3!important;color:#7d2424!important;outline:0}.leh-audio-delete svg{width:16px;height:16px}.leh-audio-upload{display:block!important;margin-top:8px!important}.leh-audio-upload>span{display:block;color:#687386;font-size:9px;font-weight:800}.leh-audio-upload input[type=file]{margin-top:5px!important}
@media(max-width:900px){.leh-universal-bar-inner{grid-template-columns:auto minmax(150px,1fr) auto;gap:8px}.leh-topbar-logo{width:130px}.leh-topbar-nav .leh-topbar-action:not(.leh-install-button):not(.leh-topbar-account){display:none}.leh-support-compose-card,.leh-support-conversations,.leh-support-thread{height:auto;min-height:0;max-height:none;overflow:visible}.leh-support-layout{min-height:0}.leh-support-message-list{overflow:visible}.leh-support-reply-form{margin:0;padding:15px 0 0}.leh-login-card-v3{margin-top:4vh}}
@media(max-width:650px){.leh-universal-bar{margin:0 -9px 12px;padding:calc(7px + env(safe-area-inset-top)) 8px 7px}.leh-universal-bar-inner{grid-template-columns:auto minmax(90px,1fr) auto}.leh-topbar-logo{width:104px}.leh-topbar-search{height:38px}.leh-topbar-search input{height:36px;font-size:10px!important}.leh-topbar-nav{gap:4px}.leh-topbar-action{width:38px;height:38px;flex-basis:38px}.leh-login-card-v3{margin-top:18px;padding:22px 15px}.leh-support-main{min-height:0}.leh-support-compose-card,.leh-support-conversations,.leh-support-thread{border-radius:16px}.leh-support-reply-form{position:static}.leh-audio-preview{grid-template-columns:minmax(0,1fr) 34px}}
@media(prefers-reduced-motion:reduce){.leh-audio-pulse i{animation:none}}
/* v0.4.3 compatibility and viewport follow-up. */
.leh-universal-bar{margin-left:-18px;margin-right:-18px}
.admin-bar .leh-universal-bar{top:32px}
@media(max-width:782px){.admin-bar .leh-universal-bar{top:46px}}
@media(max-width:900px){.leh-support-main{padding-bottom:82px!important}}
@media(max-width:650px){.leh-universal-bar{margin-left:-18px;margin-right:-18px}}

/* LiDia Edu Home v0.4.4 — mobile Support workspace and bottom-navigation stability. */
.leh-support-mobile-switch{display:none}
@media(max-width:900px){
  .leh-support-mobile-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 10px;padding:4px;border:1px solid #e1e6ed;border-radius:13px;background:#eef2f6}
  .leh-support-mobile-switch button{min-height:38px;padding:7px 9px;border:0;border-radius:10px;background:transparent;color:#5c6879;font:inherit;font-size:10px;font-weight:850;cursor:pointer}
  .leh-support-mobile-switch button.is-active{background:#fff;color:var(--leh-blue);box-shadow:0 2px 8px rgba(28,55,120,.07)}
  .leh-support-mobile-switch button span{display:inline-grid;min-width:17px;height:17px;margin-left:4px;place-items:center;padding:0 4px;border-radius:999px;background:#e8edf4;color:#596678;font-size:8px}
  .leh-support-mobile-switch button.is-active span{background:#e9eff9;color:var(--leh-blue)}
  .leh-support-main.is-home-view .leh-support-layout>[data-leh-support-panel]{display:none}
  .leh-support-main.is-home-view .leh-support-layout>[data-leh-support-panel].is-mobile-panel-active{display:block}
  .leh-support-main.is-home-view .leh-support-compose-card,.leh-support-main.is-home-view .leh-support-conversations{height:auto;min-height:0;overflow:visible}
  .leh-support-main{padding-bottom:0!important}
}
@media(max-width:760px){
  .leh-app{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .leh-mobile-nav{height:calc(64px + env(safe-area-inset-bottom));border-top:0;background:#fff;box-shadow:0 -4px 14px rgba(29,45,77,.035);backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}
  .leh-network-state{bottom:calc(72px + env(safe-area-inset-bottom))}
  .leh-support-surface.is-home-support{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .leh-support-surface.is-thread-support{padding-bottom:0!important}
  .leh-support-main{padding-inline:4px!important;padding-bottom:0!important}
  .leh-support-main.is-thread-view{width:100%;min-height:0}
  .leh-support-main.is-thread-view .leh-support-thread{height:calc(var(--leh-support-vh,100dvh) - 145px - env(safe-area-inset-bottom));min-height:380px;max-height:none;display:flex;flex-direction:column;overflow:hidden;padding:11px 11px 0;border-radius:15px}
  .leh-support-main.is-thread-view .leh-support-thread-top{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:0 0 9px}
  .leh-support-main.is-thread-view .leh-support-back{width:30px;height:30px;display:grid;place-items:center;overflow:hidden;color:transparent;font-size:0;border-radius:9px;background:#f0f3f7}
  .leh-support-main.is-thread-view .leh-support-back::before{content:'←';color:var(--leh-blue);font-size:16px;font-weight:800}
  .leh-support-main.is-thread-view .leh-support-thread-top h2{margin-top:2px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .leh-support-main.is-thread-view .leh-support-thread-top>div span{font-size:7px}
  .leh-support-main.is-thread-view .leh-support-thread-top>div small{margin-top:2px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .leh-support-main.is-thread-view .leh-support-status{padding:4px 6px;font-size:7px}
  .leh-support-main.is-thread-view .leh-support-message-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 2px 10px 0}
  .leh-support-main.is-thread-view .leh-support-message{max-width:88%;padding:9px 10px;border-radius:13px}
  .leh-support-main.is-thread-view .leh-support-message-body{font-size:11px;line-height:1.55}
  .leh-support-main.is-thread-view .leh-support-reply-form.is-chat-composer{position:relative;z-index:4;flex:0 0 auto;max-height:42vh;overflow-y:auto;margin:0 -11px;padding:9px 11px calc(9px + env(safe-area-inset-bottom));gap:7px;border-top:1px solid #e6eaf0;background:#fff;box-shadow:0 -4px 12px rgba(29,45,77,.035)}
  .leh-support-main.is-thread-view .leh-support-reply-message{gap:4px}
  .leh-support-main.is-thread-view .leh-support-reply-message>span{display:none}
  .leh-support-main.is-thread-view .leh-support-reply-form textarea{min-height:52px;max-height:88px;resize:none;padding:9px 10px;font-size:12px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact{grid-template-columns:1fr 1fr;gap:6px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-support-file-control,.leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-recorder{min-height:0;padding:7px;border-radius:10px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-support-file-control>span,.leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-label{font-size:9px!important}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-support-file-control small,.leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-recorder>small{display:none}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-support-file-control input{margin-top:5px!important;padding:4px!important;font-size:8px!important}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-live{margin-top:5px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-button{min-height:30px;padding:4px 7px;font-size:8px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-upload{margin-top:4px!important}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-upload>span{font-size:8px}
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact .leh-audio-upload input[type=file]{margin-top:3px!important;font-size:8px!important}
  .leh-support-main.is-thread-view .leh-support-send-button{min-height:38px;padding:8px 12px;font-size:11px}
}
@media(max-width:420px){
  .leh-support-main.is-thread-view .leh-support-attachments.is-compact{grid-template-columns:1fr}
  .leh-support-mobile-switch button{font-size:9px}
}


/* LiDia Edu Home v0.4.5 — minimal premium Support UX. */
.leh-support-card-heading{align-items:center;gap:10px;margin-bottom:12px}.leh-support-card-heading>span{width:38px;height:38px;flex-basis:38px;border-radius:12px}.leh-support-card-heading>span svg{width:19px;height:19px}.leh-support-card-heading h2,.leh-support-section-heading h2{font-size:18px;line-height:1.2}.leh-support-member-identity.is-compact{gap:9px;margin-bottom:12px;padding:8px 10px;border-radius:12px;background:#fafbfd}.leh-support-member-identity.is-compact .leh-support-avatar{width:36px;height:36px;flex-basis:36px}.leh-support-member-identity.is-compact strong{margin:0;font-size:12px}.leh-support-member-identity.is-compact small{margin-top:2px;font-size:9px}.leh-support-form.is-minimal{gap:10px}.leh-support-form.is-minimal textarea{min-height:92px;resize:none}.leh-support-form.is-minimal .leh-support-contact-grid,.leh-support-form.is-minimal .leh-support-select-grid{gap:8px}.leh-support-form.is-minimal input,.leh-support-form.is-minimal select,.leh-support-form.is-minimal textarea{border-radius:12px;background:#fbfcfe}.leh-support-tools{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.leh-support-tool-button{position:relative;display:inline-flex!important;min-height:38px;align-items:center!important;justify-content:center;gap:6px!important;padding:7px 10px!important;border:1px solid #d9e0e9!important;border-radius:11px!important;background:#f8fafc!important;color:#344257!important;font:inherit!important;font-size:10px!important;font-weight:800!important;line-height:1!important;cursor:pointer;box-sizing:border-box;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.leh-support-tool-button:hover,.leh-support-tool-button:focus-visible{border-color:#aebed3!important;background:#eef3f9!important;color:#1c3778!important;outline:none}.leh-support-tool-button:active{transform:translateY(1px)}.leh-support-tool-button svg{width:16px;height:16px;color:currentColor}.leh-support-hidden-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.leh-file-state{display:inline-grid;min-width:16px;height:16px;place-items:center;margin-left:1px;padding:0 4px;border-radius:999px;background:#1c3778;color:#fff;font-size:8px;line-height:1}.leh-support-tool-recorder{display:flex;min-width:0;align-items:center;gap:7px;flex:1 1 auto;flex-wrap:wrap}.leh-support-tool-recorder .leh-audio-time{min-width:38px;color:#1c3778;font-size:10px;font-weight:900;font-variant-numeric:tabular-nums;text-align:center}.leh-support-tool-recorder .leh-audio-pulse{display:inline-flex;align-items:center;gap:2px;height:18px}.leh-support-tool-recorder .leh-audio-pulse i{display:block;width:2px;height:6px;border-radius:999px;background:#e55050;animation:leh-audio-wave .8s ease-in-out infinite alternate}.leh-support-tool-recorder .leh-audio-pulse i:nth-child(2),.leh-support-tool-recorder .leh-audio-pulse i:nth-child(4){animation-delay:.15s}.leh-support-tool-recorder .leh-audio-pulse i:nth-child(3){animation-delay:.3s}.leh-support-tool-recorder .leh-audio-preview{display:grid!important;grid-template-columns:minmax(150px,1fr) 34px;align-items:center;gap:7px;flex:1 1 100%;width:100%;margin:2px 0 0!important;padding:7px;border:1px solid #e0e5ec;border-radius:10px;background:#fafbfd}.leh-support-tool-recorder .leh-audio-preview[hidden]{display:none!important}.leh-support-tool-recorder .leh-audio-preview audio{width:100%;height:32px}.leh-support-tool-recorder .leh-audio-delete{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;background:#f1f3f6;color:#657186;cursor:pointer}.leh-support-tool-recorder .leh-audio-delete:hover,.leh-support-tool-recorder .leh-audio-delete:focus-visible{background:#fdeeee;color:#a23d3d;outline:none}.leh-support-tool-recorder .leh-audio-delete svg{width:15px;height:15px}.leh-support-send-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}.leh-support-send-button svg{width:16px;height:16px}.leh-support-form.is-minimal>.leh-support-send-button{justify-self:end;width:auto!important;min-width:104px;margin-top:0}.leh-support-section-heading{align-items:center;margin-bottom:10px}.leh-support-empty{min-height:150px;padding:18px}.leh-support-empty>span{width:42px;height:42px;border-radius:13px}.leh-support-empty>span svg{width:20px;height:20px}.leh-support-empty strong{margin-top:9px;font-size:12px}.leh-support-mobile-switch button svg{width:15px;height:15px}.leh-support-mobile-switch button b{display:inline-grid;min-width:17px;height:17px;place-items:center;padding:0 4px;border-radius:999px;background:#e8edf4;color:#596678;font-size:8px}.leh-support-mobile-switch button.is-active b{background:#e9eff9;color:var(--leh-blue)}
@keyframes leh-audio-wave{from{height:5px;opacity:.65}to{height:15px;opacity:1}}

@media(max-width:650px){
  .leh-support-surface{background:#f6f8fb}.leh-support-main{padding-inline:6px!important}.leh-support-mobile-switch{gap:5px;margin-bottom:7px;padding:3px;border:0;border-radius:12px;background:#e9edf3}.leh-support-mobile-switch button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 7px;border-radius:9px;font-size:10px}.leh-support-compose-card,.leh-support-conversations{padding:11px!important;border:0!important;border-radius:15px!important;box-shadow:0 5px 18px rgba(28,55,120,.045)!important}.leh-support-card-heading{margin-bottom:9px}.leh-support-card-heading>span{width:34px;height:34px;flex-basis:34px;border-radius:10px}.leh-support-card-heading>span svg{width:17px;height:17px}.leh-support-card-heading h2,.leh-support-section-heading h2{font-size:15px}.leh-support-member-identity.is-compact{margin-bottom:9px;padding:6px 8px;border:0;background:#f5f7fa}.leh-support-member-identity.is-compact .leh-support-avatar{width:30px;height:30px;flex-basis:30px}.leh-support-member-identity.is-compact strong{font-size:11px}.leh-support-member-identity.is-compact small{font-size:8px}.leh-support-form.is-minimal{gap:8px}.leh-support-form.is-minimal .leh-support-contact-grid,.leh-support-form.is-minimal .leh-support-select-grid{grid-template-columns:1fr;gap:7px}.leh-support-form.is-minimal input,.leh-support-form.is-minimal select{min-height:40px;padding:9px 10px;font-size:12px}.leh-support-form.is-minimal textarea{min-height:82px;max-height:150px;padding:10px;font-size:12px}.leh-support-tools{gap:6px}.leh-support-tool-button{min-width:40px;min-height:38px;padding:7px 9px!important}.leh-support-tool-button .leh-tool-label{display:none}.leh-support-tool-recorder{flex:1 1 auto;gap:5px}.leh-support-tool-recorder .leh-audio-time{min-width:34px;font-size:9px}.leh-support-form.is-minimal>.leh-support-send-button{min-width:44px;min-height:40px;padding:8px 12px!important;border-radius:12px}.leh-support-form.is-minimal>.leh-support-send-button span{display:none}.leh-support-form.is-minimal>.leh-support-send-button svg{width:17px;height:17px}.leh-support-section-heading{margin-bottom:8px}.leh-support-empty{min-height:130px;padding:15px}.leh-support-ticket{padding:10px 11px}.leh-support-ticket>div>strong{font-size:11px}.leh-support-ticket>div>small{font-size:8px}
  .leh-support-main.is-thread-view .leh-support-thread{padding:8px 8px 0!important;border:0!important;border-radius:14px!important;box-shadow:0 5px 18px rgba(28,55,120,.045)!important}.leh-support-main.is-thread-view .leh-support-thread-top{padding-bottom:7px!important;border-bottom-color:#edf0f4}.leh-support-main.is-thread-view .leh-support-back{width:30px;height:30px;background:#f1f4f8!important}.leh-support-main.is-thread-view .leh-support-back span{display:none}.leh-support-main.is-thread-view .leh-support-message-list{padding:8px 1px 8px 0!important}.leh-support-main.is-thread-view .leh-support-message{padding:8px 9px!important;border-radius:12px!important}.leh-support-main.is-thread-view .leh-support-message-body{font-size:11px!important;line-height:1.5!important}.leh-support-main.is-thread-view .leh-support-reply-form.is-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:6px!important;max-height:none!important;overflow:visible!important;margin:0 -8px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;border-top:1px solid #edf0f4!important;box-shadow:none!important}.leh-support-main.is-thread-view .leh-support-reply-message{grid-column:1/2}.leh-support-main.is-thread-view .leh-support-reply-form textarea{min-height:40px!important;max-height:86px!important;padding:9px 10px!important;border-radius:12px!important}.leh-support-main.is-thread-view .leh-support-tools.is-compact{grid-column:2/3;display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-support-tool-button{width:38px;min-width:38px;height:38px;min-height:38px;padding:0!important;border-radius:11px!important}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-tool-label,.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-time{display:none}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-upload{display:none!important}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-support-tool-recorder{display:flex;flex:0 0 auto;gap:4px}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-pulse{position:absolute;right:52px;bottom:49px;padding:4px 6px;border-radius:999px;background:#fff;box-shadow:0 3px 10px rgba(28,55,120,.08)}.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-preview{position:absolute;right:8px;bottom:56px;left:8px;z-index:5;grid-template-columns:minmax(0,1fr) 32px;margin:0!important;box-shadow:0 5px 18px rgba(28,55,120,.08)}.leh-support-main.is-thread-view .leh-support-send-button{grid-column:3/4;width:40px;min-width:40px;height:40px;min-height:40px;padding:0!important;border-radius:12px!important}.leh-support-main.is-thread-view .leh-support-send-button span{display:none}.leh-support-main.is-thread-view .leh-support-send-button svg{width:17px;height:17px}
  .leh-mobile-nav{border-top:0!important;background:#fff!important;box-shadow:0 -3px 12px rgba(29,45,77,.028)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(max-width:650px){.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-support-tool-recorder.is-unsupported .leh-audio-upload{display:inline-flex!important}}
.leh-support-tool-recorder{min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}.leh-support-file-control>.leh-tool-label{display:inline!important;margin:0!important;padding:0!important;background:transparent!important;color:inherit!important;font-size:10px!important;line-height:1!important}.leh-support-mobile-switch button>span{display:inline!important;min-width:0!important;height:auto!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important;line-height:1!important}.leh-support-mobile-switch button.is-active>span{background:transparent!important;color:inherit!important}
@media(max-width:650px){.leh-support-file-control>.leh-tool-label{display:none!important}}
@media(max-width:650px){.leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-upload{display:inline-flex!important}}


/* LiDia Edu Home v0.4.6 — full-width mobile Support shell. */
@media(max-width:650px){
  .leh-support-surface{
    width:100vw!important;
    width:100dvw!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow-x:clip!important;
  }
  @supports(width:100dvw){
    .leh-support-surface{
      margin-left:calc(50% - 50dvw)!important;
      margin-right:calc(50% - 50dvw)!important;
    }
  }
  .leh-support-surface .leh-universal-bar{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
  }
  .leh-support-main{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow-x:hidden!important;
  }
  .leh-support-mobile-switch{
    width:calc(100% - 16px)!important;
    max-width:none!important;
    margin:0 8px 8px!important;
  }
  .leh-support-layout{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .leh-support-layout>[data-leh-support-panel]{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
  .leh-support-compose-card,.leh-support-conversations{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:12px max(10px,env(safe-area-inset-right)) 12px max(10px,env(safe-area-inset-left))!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .leh-support-form,.leh-support-form>*,.leh-support-contact-grid,.leh-support-select-grid,.leh-support-tools,.leh-support-tool-recorder{
    min-width:0!important;
    max-width:100%!important;
  }
  .leh-support-form input,.leh-support-form select,.leh-support-form textarea{
    max-width:100%!important;
  }
  .leh-support-tool-recorder .leh-audio-preview{
    grid-template-columns:minmax(0,1fr) 32px!important;
    max-width:100%!important;
  }
  .leh-support-main.is-thread-view .leh-support-thread{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .leh-support-main.is-thread-view .leh-support-reply-form.is-chat-composer{
    margin-left:calc(-1 * max(8px,env(safe-area-inset-left)))!important;
    margin-right:calc(-1 * max(8px,env(safe-area-inset-right)))!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
    width:auto!important;
    max-width:none!important;
  }
  .leh-support-main.is-thread-view .leh-support-reply-message,
  .leh-support-main.is-thread-view .leh-support-reply-form textarea,
  .leh-support-main.is-thread-view .leh-support-tools.is-compact{
    min-width:0!important;
  }
  .leh-support-main.is-thread-view .leh-support-tools.is-compact .leh-audio-preview{
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    max-width:none!important;
  }
}


/* LiDia Edu Home v0.4.7 — stable edge-to-edge mobile navigation. */
.leh-mobile-nav-inner{display:contents}
@media(max-width:760px){
  html,body.leh-app-page{max-width:100%!important;overflow-x:hidden!important}
  .leh-mobile-nav{
    position:fixed!important;
    z-index:100000!important;
    inset:auto 0 0 0!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:calc(64px + env(safe-area-inset-bottom))!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    border-radius:0!important;
    outline:0!important;
    background:#fff!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:hidden!important;
    isolation:isolate!important;
    contain:layout paint style!important;
    transform:translate3d(0,0,0)!important;
    -webkit-transform:translate3d(0,0,0)!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
    will-change:auto!important;
  }
  .leh-mobile-nav::before,.leh-mobile-nav::after{content:none!important;display:none!important}
  .leh-mobile-nav-inner{
    position:absolute!important;
    inset:0!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0 max(2px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(2px,env(safe-area-inset-left))!important;
    border:0!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  .leh-mobile-nav-item{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:64px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
    overflow:hidden!important;
    -webkit-tap-highlight-color:transparent;
  }
  .leh-mobile-nav-item::before,.leh-mobile-nav-item::after{content:none!important;display:none!important}
  .leh-mobile-nav-item.is-active{background:#fff!important}
  .leh-mobile-nav-item.is-active>span{background:rgba(28,55,120,.09)!important}
  .leh-home-app,.leh-subpage,.leh-support-surface{max-width:100%!important;overflow-x:clip!important}
  .leh-app{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  .leh-support-surface.is-thread-support{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
}
@media(display-mode:standalone) and (max-width:760px){
  .leh-mobile-nav,.leh-mobile-nav-inner{background:#fff!important}
}


/* LiDia Edu Home v0.4.9 — branded loading and transition layer. */
.leh-transition-loader{font-family:Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent}.leh-transition-retry:hover,.leh-transition-retry:focus{border-color:#9fb0c8;background:#f4f7fb;color:#142f68;outline:none}.leh-transition-loader.is-navigating{pointer-events:all}.leh-transition-loader .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* LiDia Edu Home v0.5.0 — advanced PWA and natural app scrolling. */
html.leh-standalone,html.leh-standalone body.leh-app-page{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-x:none!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
html.leh-standalone body.leh-app-page{min-height:100dvh!important}
html.leh-standalone .leh-app{height:auto!important;min-height:100dvh!important;overflow-y:visible!important;overscroll-behavior-y:auto!important}
html.leh-standalone .leh-home-app,html.leh-standalone .leh-subpage,html.leh-standalone .leh-support-surface{height:auto!important;min-height:0;overflow-y:visible!important}
html.leh-standalone .leh-support-main.is-thread-view .leh-support-thread{overflow:hidden!important}
html.leh-standalone .leh-support-main.is-thread-view .leh-support-message-list{overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important}
html.leh-standalone .leh-universal-bar,html.leh-standalone .leh-mobile-nav{transform:translateZ(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}
@media(max-width:760px){
  html.leh-standalone .leh-app{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  html.leh-standalone .leh-mobile-nav{height:calc(64px + env(safe-area-inset-bottom))!important}
  html.leh-standalone .leh-support-surface.is-thread-support{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
}
@media (display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui){
  html,body.leh-app-page{height:auto!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
  body.leh-app-page,.leh-app{min-height:100dvh!important}
  .leh-home-app,.leh-subpage,.leh-support-surface{height:auto!important;overflow-y:visible!important}
  .leh-support-main.is-thread-view .leh-support-thread{overflow:hidden!important}
  .leh-support-main.is-thread-view .leh-support-message-list{overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important}
}


/* LiDia Edu Home v0.5.12.8 — Home PWA install tile. */
button.leh-app-tile.leh-install-tile{width:100%;text-align:left;font:inherit;cursor:pointer}
button.leh-app-tile.leh-install-tile[hidden]{display:none!important}

/* v0.5.16.5 — compact five-digit Member ID UX. */
.leh-member-id-control{display:grid;grid-template-columns:auto minmax(94px,118px);align-items:center;min-height:45px;border:1px solid #DCE3ED;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.leh-member-id-control:focus-within{border-color:rgba(28,55,120,.55);box-shadow:0 0 0 3px rgba(28,55,120,.08)}.leh-member-id-prefix{display:flex;align-items:center;align-self:stretch;padding:0 11px;background:#F4F6F9;border-right:1px solid #E0E5EB;color:#536071;font-size:13px;font-weight:800;letter-spacing:.01em;white-space:nowrap}.leh-field .leh-member-id-tail{min-height:43px!important;border:0!important;border-radius:0!important;padding:9px 10px!important;box-shadow:none!important;text-align:center;font-size:16px!important;font-weight:900!important;letter-spacing:.22em;font-variant-numeric:tabular-nums}.leh-member-id-tail::placeholder{color:#9AA4B2;opacity:1;letter-spacing:.02em}@media(max-width:430px){.leh-member-id-control{grid-template-columns:minmax(0,1fr) 96px}.leh-member-id-prefix{padding-inline:9px;font-size:12px}}

/* LiDia Edu Home v0.5.16.6 — Apply UX v2: compact journey, concise form hierarchy, collapsible status. */
.leh-apply-surface .leh-page-heading{margin-bottom:14px}.leh-apply-surface .leh-page-heading>span{width:44px;height:44px;flex-basis:44px;border-radius:14px}.leh-apply-surface .leh-page-heading>span svg{width:22px;height:22px}.leh-apply-surface .leh-page-heading h1{font-size:25px}
.leh-application-flow-v2{position:relative;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:0 0 16px!important;padding:6px 8px 2px}.leh-application-flow-v2:before{content:"";position:absolute;left:16.66%;right:16.66%;top:25px;height:2px;border-radius:999px;background:#E1E6ED}.leh-application-flow-v2>div{position:relative;z-index:1;display:grid!important;justify-items:center;align-content:start;gap:7px!important;min-height:0!important;padding:0 6px!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:center}.leh-application-flow-v2>div>span{display:grid!important;width:38px!important;height:38px!important;flex:0 0 38px!important;place-items:center!important;border:4px solid #F7F9FC!important;border-radius:50%!important;background:#EDF1F6!important;color:#718096!important;box-shadow:0 0 0 1px #E1E6ED!important}.leh-application-flow-v2>div>span svg{width:17px;height:17px}.leh-application-flow-v2>div.is-active>span{background:var(--leh-blue)!important;color:#fff!important;box-shadow:0 0 0 1px var(--leh-blue)!important}.leh-application-flow-v2>div strong{font-size:10px!important;line-height:1.2;color:#536071!important}.leh-application-flow-v2>div.is-active strong{color:var(--leh-blue)!important}
.leh-application-card-v2{padding-top:24px}.leh-form-card-heading-v2{align-items:center;margin-bottom:18px}.leh-form-card-heading-v2>span{width:40px;height:40px;flex-basis:40px;border-radius:13px}.leh-form-card-heading-v2>span svg{width:20px;height:20px}.leh-form-card-heading-v2 h2{margin:0;font-size:18px}.leh-security-note-v2{align-items:center;width:max-content;max-width:100%;margin:14px 0 0;padding:7px 10px;border-radius:999px;background:#F5F8FC;color:#667385;font-size:10px;line-height:1.2}.leh-security-note-v2 svg{width:15px;height:15px;flex-basis:15px}.leh-apply-submit{margin-top:14px!important}
.leh-status-drawer{margin-top:14px;border:1px solid var(--leh-line);border-radius:17px;background:rgba(255,255,255,.92);box-shadow:0 6px 20px rgba(29,45,77,.04);overflow:hidden}.leh-status-drawer>summary{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:62px;padding:11px 14px;cursor:pointer;list-style:none;user-select:none}.leh-status-drawer>summary::-webkit-details-marker{display:none}.leh-status-drawer-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:12px;background:rgba(28,55,120,.08);color:var(--leh-blue)}.leh-status-drawer-icon svg{width:18px;height:18px}.leh-status-drawer>summary>span:nth-child(2){min-width:0}.leh-status-drawer>summary strong,.leh-status-drawer>summary small{display:block}.leh-status-drawer>summary strong{color:var(--leh-ink);font-size:12px}.leh-status-drawer>summary small{margin-top:2px;color:var(--leh-blue);font-size:10px;font-weight:800}.leh-status-drawer>summary i{position:relative;width:12px;height:12px}.leh-status-drawer>summary i:before,.leh-status-drawer>summary i:after{content:"";position:absolute;left:1px;top:5px;width:10px;height:1.5px;border-radius:999px;background:#778397;transition:transform .18s ease}.leh-status-drawer>summary i:after{transform:rotate(90deg)}.leh-status-drawer[open]>summary i:after{transform:rotate(0)}.leh-status-drawer[open]>summary{border-bottom:1px solid var(--leh-line)}.leh-status-drawer-body{padding:16px 14px 15px;background:#FBFCFE}.leh-status-drawer .leh-form-grid{gap:12px}.leh-status-drawer .leh-button.is-full{margin-top:13px}.leh-status-drawer:focus-within{border-color:rgba(28,55,120,.24)}
@media(max-width:650px){.leh-apply-surface .leh-page-heading{margin-bottom:12px}.leh-application-flow-v2{padding-inline:0}.leh-application-flow-v2:before{left:17%;right:17%;top:23px}.leh-application-flow-v2>div>span{width:34px!important;height:34px!important;flex-basis:34px!important;border-width:3px!important}.leh-application-flow-v2>div>span svg{width:15px;height:15px}.leh-application-flow-v2>div strong{font-size:9px!important}.leh-application-card-v2{padding:20px 16px}.leh-form-card-heading-v2{margin-bottom:15px}.leh-security-note-v2{width:100%;justify-content:center}.leh-status-drawer{margin-top:12px}.leh-status-drawer>summary{min-height:58px;padding:10px 12px}.leh-status-drawer-body{padding:14px 12px}}

/* LiDia Edu Home v0.5.17.0 — L-AI architecture foundation surface. */
.leh-lai-app{background:linear-gradient(180deg,#f8faff 0,#f6f7fa 34%,#f4f6f9 100%)}.leh-lai-main{width:min(1040px,calc(100% - 28px));margin:0 auto;padding:24px 0 44px}.leh-lai-hero{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px;border:1px solid #dce3ef;border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 14px 38px rgba(28,55,120,.06)}.leh-lai-mark{display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:linear-gradient(145deg,#1C3778,#7F1B50);color:#fff;box-shadow:0 10px 24px rgba(28,55,120,.18)}.leh-lai-mark span,.leh-lai-mark b{display:inline;font-weight:900}.leh-lai-mark span{font-size:28px}.leh-lai-mark b{font-size:20px}.leh-lai-kicker{display:block;margin-bottom:5px;color:#7F1B50;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.leh-lai-hero h1{margin:0;color:#1f2d42;font-size:30px;line-height:1.08}.leh-lai-hero p{max-width:700px;margin:7px 0 0;color:#68778b;font-size:12px;line-height:1.55}.leh-lai-status{display:inline-flex;padding:7px 10px;border-radius:999px;background:#edf3fb;color:#1C3778;font-size:9px;font-weight:900;text-transform:uppercase;white-space:nowrap}
.leh-lai-context-card{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.leh-lai-context-card>div{padding:14px 16px;border:1px solid #e0e5ed;border-radius:15px;background:#fff}.leh-lai-context-card span,.leh-lai-context-card strong,.leh-lai-context-card small{display:block}.leh-lai-context-card span{color:#798699;font-size:9px;font-weight:900;text-transform:uppercase}.leh-lai-context-card strong{margin-top:5px;color:#2b3a50;font-size:13px}.leh-lai-context-card small{margin-top:4px;color:#7a8798;font-size:10px;line-height:1.4}
.leh-lai-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.leh-lai-mode-grid article{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;padding:14px;border:1px solid #e0e5ed;border-radius:15px;background:#fff}.leh-lai-mode-grid .leh-lai-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:#f0f4fa;color:#1C3778}.leh-lai-mode-grid .leh-lai-icon svg{width:20px;height:20px}.leh-lai-mode-grid strong{display:block;color:#2d3b50;font-size:12px}.leh-lai-mode-grid p{margin:4px 0 0;color:#758195;font-size:10px;line-height:1.45}
.leh-lai-chat-shell{overflow:hidden;border:1px solid #dce3ed;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(28,55,120,.05)}.leh-lai-chat-empty{display:grid;justify-items:center;padding:48px 24px 40px;text-align:center}.leh-lai-chat-empty .leh-lai-chat-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:17px;background:#edf3fb;color:#1C3778}.leh-lai-chat-empty .leh-lai-chat-icon svg{width:24px;height:24px}.leh-lai-chat-empty strong{margin-top:13px;color:#26364d;font-size:14px}.leh-lai-chat-empty p{max-width:580px;margin:7px 0 0;color:#758195;font-size:11px;line-height:1.55}.leh-lai-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px;border-top:1px solid #e6eaf0;background:#fafbfd}.leh-lai-composer textarea{resize:none;min-height:52px;border:1px solid #d8dfe9;border-radius:14px;padding:12px;background:#f4f6f9;color:#7e8998;font:12px/1.45 Arial,Helvetica,sans-serif}.leh-lai-composer button{min-width:112px;border:0;border-radius:13px;background:#d7dce5;color:#7d8797;font:800 11px Arial,Helvetica,sans-serif}.leh-lai-privacy-note{max-width:760px;margin:13px auto 0;color:#768396;text-align:center;font-size:9px;line-height:1.55}
@media(max-width:760px){.leh-lai-main{width:min(100% - 18px,1040px);padding:14px 0 28px}.leh-lai-hero{grid-template-columns:58px minmax(0,1fr);gap:13px;padding:16px;border-radius:18px}.leh-lai-mark{width:58px;height:58px;border-radius:17px}.leh-lai-mark span{font-size:22px}.leh-lai-mark b{font-size:16px}.leh-lai-status{grid-column:1/-1;width:max-content;margin-left:71px}.leh-lai-hero h1{font-size:24px}.leh-lai-context-card,.leh-lai-mode-grid{grid-template-columns:1fr}.leh-lai-composer{grid-template-columns:1fr}.leh-lai-composer button{min-height:42px}.leh-lai-chat-empty{padding:36px 18px 30px}}

/* LiDia Edu Home v0.5.17.5 — live Student/General L-AI Chat gateway. */
.leh-lai-hero.is-live .leh-lai-status.is-live{background:#e8f6ee;color:#17683b}.leh-lai-notice{margin:12px 0;padding:11px 13px;border:1px solid #dce3ed;border-radius:13px;background:#f7f9fc;color:#536174;font-size:11px;font-weight:700;line-height:1.5}.leh-lai-notice.is-error{border-color:#efc9c9;background:#fff4f4;color:#8d2d2d}.leh-lai-notice.is-info{margin:0 12px 12px;background:#f5f8fc;color:#53647c}.leh-lai-context-card.is-live-context{grid-template-columns:repeat(3,minmax(0,1fr))}.leh-lai-context-return a{display:block;margin-top:5px;color:#1C3778;font-size:12px;font-weight:850;text-decoration:none}.leh-lai-context-return a:hover,.leh-lai-context-return a:focus{text-decoration:underline;outline:none}
.leh-lai-chat-shell.is-live{position:relative;display:flex;flex-direction:column;min-height:520px;max-height:min(72dvh,760px)}.leh-lai-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid #e7ebf1;background:#fbfcfe}.leh-lai-chat-toolbar strong,.leh-lai-chat-toolbar small{display:block}.leh-lai-chat-toolbar strong{color:#2a3b53;font-size:12px}.leh-lai-chat-toolbar small{margin-top:2px;color:#8290a3;font-size:9px}.leh-lai-text-action{border:0;background:transparent;color:#1C3778;font:850 10px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-text-action:hover,.leh-lai-text-action:focus{text-decoration:underline;outline:none}.leh-lai-message-list{flex:1;min-height:320px;padding:16px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,#fff,#fbfcfe)}.leh-lai-message-list .leh-lai-chat-empty{min-height:310px;align-content:center}.leh-lai-message{display:grid;gap:5px;width:min(82%,760px);margin:0 0 14px}.leh-lai-message.is-user{margin-left:auto}.leh-lai-message-meta{padding:0 4px;color:#7a8799;font-size:9px;font-weight:900;text-transform:uppercase}.leh-lai-message.is-user .leh-lai-message-meta{text-align:right}.leh-lai-message-copy{padding:12px 14px;border:1px solid #e0e5ed;border-radius:15px;background:#fff;color:#2c3a4f;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.leh-lai-message.is-user .leh-lai-message-copy{border-color:#cad8ec;background:#edf3fb;color:#203a68}.leh-lai-message.is-thinking .leh-lai-message-copy{color:#738197;font-style:italic}.leh-lai-message-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 3px}.leh-lai-message-actions button{min-height:28px;padding:4px 9px;border:1px solid #d8e0eb;border-radius:999px;background:#fff;color:#31465f;font:800 9px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-message-actions button:hover,.leh-lai-message-actions button:focus{border-color:#9fb2d0;background:#f5f8fc;color:#1C3778;outline:none}.leh-lai-authenticity{margin-left:auto;color:#748197;font-size:8px;font-weight:850;text-transform:uppercase}.leh-lai-source-panel{position:absolute;z-index:5;inset:48px 0 78px auto;width:min(420px,92%);padding:14px;border-left:1px solid #dde4ed;background:#fff;box-shadow:-14px 0 28px rgba(28,55,120,.08);overflow:auto}.leh-lai-source-panel>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.leh-lai-source-panel>div strong{font-size:12px;color:#2a3b53}.leh-lai-source-panel>div button{border:0;background:transparent;color:#6f7b8d;font-size:22px;cursor:pointer}.leh-lai-source-panel ol{display:grid;gap:10px;margin:14px 0 0;padding-left:19px}.leh-lai-source-panel li{padding-bottom:9px;border-bottom:1px solid #eef1f5}.leh-lai-source-panel a,.leh-lai-source-panel li>strong{display:block;color:#1C3778;font-size:11px;font-weight:800;text-decoration:none}.leh-lai-source-panel a:hover,.leh-lai-source-panel a:focus{text-decoration:underline}.leh-lai-source-panel small{display:block;margin-top:3px;color:#8590a0;font-size:8px;text-transform:capitalize}.leh-lai-chat-shell.is-live .leh-lai-composer{flex:0 0 auto;background:#fff}.leh-lai-chat-shell.is-live .leh-lai-composer textarea{background:#fff;color:#26364d;font-size:13px;line-height:1.5}.leh-lai-chat-shell.is-live .leh-lai-composer textarea:focus{border-color:#9cb2d3;box-shadow:0 0 0 3px rgba(28,55,120,.07);outline:none}.leh-lai-chat-shell.is-live .leh-lai-composer button{background:#1C3778;color:#fff;cursor:pointer}.leh-lai-chat-shell.is-live .leh-lai-composer button:hover,.leh-lai-chat-shell.is-live .leh-lai-composer button:focus{background:#152f68;outline:none}.leh-lai-chat-shell.is-live .leh-lai-composer.is-disabled button,.leh-lai-chat-shell.is-live .leh-lai-composer button:disabled{background:#d7dce5;color:#7d8797;cursor:not-allowed}.leh-lai-composer-note{margin:0;padding:0 14px 11px;color:#8a95a4;font-size:8.5px;line-height:1.45;background:#fff}.is-lai-busy .leh-lai-composer{opacity:.78}
@media(max-width:760px){.leh-lai-context-card.is-live-context{grid-template-columns:1fr}.leh-lai-chat-shell.is-live{min-height:calc(100dvh - 250px);max-height:none;border-radius:17px}.leh-lai-message-list{min-height:360px;padding:12px 10px}.leh-lai-message{width:92%;margin-bottom:12px}.leh-lai-message-copy{padding:11px 12px;font-size:13px}.leh-lai-chat-shell.is-live .leh-lai-composer{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:9px}.leh-lai-chat-shell.is-live .leh-lai-composer button{min-width:82px;min-height:48px}.leh-lai-source-panel{position:fixed;z-index:100010;inset:80px 8px calc(76px + env(safe-area-inset-bottom)) 8px;width:auto;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 50px rgba(22,39,67,.18)}.leh-lai-authenticity{width:100%;margin-left:0}.leh-lai-chat-toolbar{padding:10px 11px}}

/* v0.5.17.6 — L-AI safe learning memory & personalization */
.leh-lai-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.leh-lai-memory-panel{position:absolute;z-index:6;inset:48px 0 78px auto;width:min(470px,94%);padding:14px;border-left:1px solid #dde4ed;background:#fff;box-shadow:-14px 0 28px rgba(28,55,120,.08);overflow:auto}.leh-lai-memory-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.leh-lai-memory-panel-head strong,.leh-lai-memory-panel-head small{display:block}.leh-lai-memory-panel-head strong{color:#2a3b53;font-size:12px}.leh-lai-memory-panel-head small{max-width:340px;margin-top:3px;color:#8290a3;font-size:8.5px;line-height:1.45}.leh-lai-memory-panel-head>button{border:0;background:transparent;color:#6f7b8d;font-size:22px;cursor:pointer}.leh-lai-memory-list{display:grid;gap:8px;margin:13px 0}.leh-lai-memory-empty{margin:0;padding:14px;border:1px dashed #d8e0e9;border-radius:12px;background:#fafbfd;color:#788698;font-size:10px;line-height:1.5}.leh-lai-memory-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e1e6ed;border-radius:12px;background:#fff}.leh-lai-memory-item.is-suggested{border-color:#d7c8ee;background:#fcfaff}.leh-lai-memory-item span,.leh-lai-memory-item strong{display:block}.leh-lai-memory-item span{color:#788598;font-size:8px;font-weight:850;text-transform:capitalize}.leh-lai-memory-item strong{margin-top:4px;color:#2c3a4f;font-size:10.5px;line-height:1.45}.leh-lai-memory-item-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.leh-lai-memory-item-actions button{min-height:28px;padding:4px 8px;border:1px solid #d5ddea;border-radius:9px;background:#fff;color:#2f4562;font:800 9px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-memory-item-actions button:hover,.leh-lai-memory-item-actions button:focus{border-color:#9fb2d0;background:#f4f7fb;color:#1C3778;outline:none}.leh-lai-memory-item-actions small{color:#7f8997;font-size:8px;font-weight:800}.leh-lai-memory-form{display:grid;gap:8px;padding-top:12px;border-top:1px solid #e8ecf2}.leh-lai-memory-form>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.leh-lai-memory-form label{display:grid;gap:4px}.leh-lai-memory-form label>span{color:#6d798b;font-size:8px;font-weight:850;text-transform:uppercase}.leh-lai-memory-form select,.leh-lai-memory-form textarea{width:100%;border:1px solid #d9e0e9;border-radius:10px;background:#fff;color:#2b3b51;font:10.5px/1.45 Arial,Helvetica,sans-serif}.leh-lai-memory-form select{min-height:36px;padding:6px 8px}.leh-lai-memory-form textarea{resize:vertical;min-height:72px;padding:9px 10px}.leh-lai-memory-form>button{min-height:38px;border:1px solid #1C3778;border-radius:10px;background:#1C3778;color:#fff;font:850 10px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-memory-form>button:hover,.leh-lai-memory-form>button:focus{background:#152f68;outline:none}.leh-lai-memory-form>p{min-height:14px;margin:0;color:#6f7c8e;font-size:8.5px;line-height:1.4}
@media(max-width:760px){.leh-lai-toolbar-actions{gap:8px}.leh-lai-memory-panel{position:fixed;z-index:100011;inset:80px 8px calc(76px + env(safe-area-inset-bottom)) 8px;width:auto;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 50px rgba(22,39,67,.18)}.leh-lai-memory-form>div{grid-template-columns:1fr}.leh-lai-memory-item{grid-template-columns:1fr}.leh-lai-memory-item-actions{justify-content:flex-start}}

/* LiDia Edu Home v0.5.18.2 — simplified L-AI identity and question-first chat UX. */
.leh-lai-app.is-simple{background:#f6f8fb}.leh-lai-main.is-simple{width:min(900px,calc(100% - 28px));padding:20px 0 38px}.leh-lai-simple-head{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:10px 2px}.leh-lai-logo-mark,.leh-lai-empty-logo{display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#1C3778,#7F1B50);color:#fff;box-shadow:0 8px 22px rgba(28,55,120,.14)}.leh-lai-logo-mark{width:52px;height:52px}.leh-lai-logo-svg{width:28px;height:28px}.leh-lai-simple-head h1{margin:0;color:#1f2d43;font-size:28px;line-height:1;font-weight:900;letter-spacing:-.04em}.leh-lai-simple-head p{margin:5px 0 0;color:#748196;font-size:10px;font-weight:750}.leh-lai-ready-dot{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #dfe5ed;border-radius:999px;background:#fff;color:#748196;font-size:9px;font-weight:850}.leh-lai-ready-dot i{width:7px;height:7px;border-radius:50%;background:#a8b1bf}.leh-lai-ready-dot.is-ready{color:#17683b}.leh-lai-ready-dot.is-ready i{background:#38a169}.leh-lai-course-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:10px 12px;border:1px solid #dfe5ed;border-radius:13px;background:#fff}.leh-lai-course-strip span,.leh-lai-course-strip strong,.leh-lai-course-strip small{display:block}.leh-lai-course-strip span{color:#7d8999;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.leh-lai-course-strip strong{margin-top:3px;color:#26364d;font-size:11px}.leh-lai-course-strip small{margin-top:2px;color:#8390a1;font-size:8.5px}.leh-lai-course-strip a{flex:0 0 auto;color:#1C3778;font-size:9.5px;font-weight:850;text-decoration:none}.leh-lai-course-strip a:hover,.leh-lai-course-strip a:focus{text-decoration:underline;outline:none}.leh-lai-chat-shell.is-live.is-simple{min-height:500px;max-height:min(76dvh,760px);border-radius:18px;box-shadow:0 10px 30px rgba(28,55,120,.055)}.leh-lai-chat-toolbar.is-simple{min-height:44px;padding:9px 12px;background:#fff}.leh-lai-chat-toolbar.is-simple>strong{font-size:11px}.leh-lai-chat-toolbar.is-simple .leh-lai-text-action{padding:4px 2px;font-size:9px}.leh-lai-chat-empty.is-simple{min-height:300px!important;padding:34px 20px}.leh-lai-empty-logo{width:48px;height:48px}.leh-lai-empty-logo-svg{width:25px;height:25px}.leh-lai-chat-empty.is-simple strong{margin-top:12px;color:#26364d;font-size:17px}.leh-lai-chat-empty.is-simple p{max-width:470px;margin-top:6px;font-size:10.5px}.leh-lai-chat-shell.is-simple .leh-lai-message-list{padding:14px}.leh-lai-chat-shell.is-simple .leh-lai-composer{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px 11px;border-top:1px solid #e5eaf0}.leh-lai-chat-shell.is-simple .leh-lai-composer textarea{min-height:48px;max-height:130px;padding:12px 13px;border-radius:14px;font-size:13px;line-height:1.45;background:#fff}.leh-lai-chat-shell.is-simple .leh-lai-composer button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:78px;min-height:48px;padding:0 13px;border-radius:14px}.leh-lai-send-icon{width:17px;height:17px}.leh-lai-chat-shell.is-simple .leh-lai-composer-note{padding:0 12px 9px;color:#8b95a4;text-align:left;font-size:8px}.leh-lai-main.is-simple>.leh-lai-notice{margin:0 0 10px}.leh-lai-main.is-simple .leh-lai-privacy-note{margin-top:10px;max-width:680px;font-size:8px}
@media(max-width:760px){.leh-lai-main.is-simple{width:min(100% - 14px,900px);padding:10px 0 22px}.leh-lai-simple-head{grid-template-columns:44px minmax(0,1fr) auto;gap:9px;margin-bottom:8px;padding:7px 2px}.leh-lai-logo-mark{width:44px;height:44px;border-radius:14px}.leh-lai-logo-svg{width:23px;height:23px}.leh-lai-simple-head h1{font-size:23px}.leh-lai-simple-head p{font-size:8.5px}.leh-lai-ready-dot{padding:5px 7px;font-size:8px}.leh-lai-ready-dot i{width:6px;height:6px}.leh-lai-course-strip{align-items:flex-start;margin-bottom:8px;padding:9px 10px}.leh-lai-chat-shell.is-live.is-simple{min-height:calc(100dvh - 178px);max-height:none;border-radius:15px}.leh-lai-chat-toolbar.is-simple{min-height:40px;padding:8px 10px}.leh-lai-chat-empty.is-simple{min-height:calc(100dvh - 340px)!important;padding:26px 15px}.leh-lai-chat-shell.is-simple .leh-lai-message-list{padding:10px 8px}.leh-lai-chat-shell.is-simple .leh-lai-composer{grid-template-columns:minmax(0,1fr) 58px;gap:6px;padding:8px}.leh-lai-chat-shell.is-simple .leh-lai-composer button{min-width:58px;min-height:46px;padding:0 9px}.leh-lai-chat-shell.is-simple .leh-lai-composer button span{display:none}.leh-lai-send-icon{width:19px;height:19px}.leh-lai-chat-shell.is-simple .leh-lai-composer-note{padding:0 9px 8px}.leh-lai-main.is-simple .leh-lai-privacy-note{padding:0 7px}}


/* LiDia Edu Home v0.5.18.3 — public General L-AI + desktop viewport-fit chat. */
@media(min-width:761px){
  .leh-lai-main.is-simple{padding:14px 0 22px}
  .leh-lai-simple-head{grid-template-columns:52px minmax(0,1fr);margin-bottom:8px;padding:7px 2px}
  .leh-lai-chat-shell.is-live.is-simple{min-height:clamp(420px,calc(100dvh - 190px),650px);max-height:none;overflow:visible}
  .leh-lai-chat-shell.is-simple .leh-lai-message-list{flex:0 0 auto;min-height:clamp(285px,calc(100dvh - 345px),500px);overflow:visible;overscroll-behavior:auto}
  .leh-lai-chat-empty.is-simple{min-height:clamp(285px,calc(100dvh - 345px),500px)!important}
  .leh-lai-chat-shell.is-simple .leh-lai-composer textarea{max-height:96px;overflow-y:hidden}
  .leh-lai-source-panel,.leh-lai-memory-panel{max-height:none}
}

/* LiDia Edu Home v0.5.18.5 — member-owned Personal Free AI. */
.leh-lai-personal-panel{position:absolute;z-index:7;inset:48px 0 78px auto;width:min(460px,94%);padding:14px;border-left:1px solid #dde4ed;background:#fff;box-shadow:-14px 0 28px rgba(28,55,120,.08)}
.leh-lai-personal-status{display:flex;align-items:center;gap:8px;margin:14px 0 11px;padding:10px 11px;border:1px solid #e1e6ed;border-radius:12px;background:#fafbfd;color:#66758a}
.leh-lai-personal-status strong{font-size:10.5px}.leh-lai-personal-dot{width:8px;height:8px;border-radius:50%;background:#aab3c0}.leh-lai-personal-status.is-connected{border-color:#cde5d6;background:#f7fcf9;color:#17683b}.leh-lai-personal-status.is-connected .leh-lai-personal-dot{background:#38a169}
.leh-lai-personal-connect{display:grid;gap:9px}.leh-lai-personal-connect>p,.leh-lai-personal-note{margin:0;color:#748196;font-size:9px;line-height:1.55}.leh-lai-personal-link{width:max-content;color:#1C3778;font-size:9.5px;font-weight:850;text-decoration:none}.leh-lai-personal-link:hover,.leh-lai-personal-link:focus{text-decoration:underline;outline:none}
.leh-lai-personal-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.leh-lai-personal-key-row input{min-width:0;min-height:40px;padding:9px 10px;border:1px solid #d9e0e9;border-radius:10px;background:#fff;color:#2b3b51;font:10.5px Arial,Helvetica,sans-serif}.leh-lai-personal-key-row input:focus{border-color:#9cb2d3;box-shadow:0 0 0 3px rgba(28,55,120,.07);outline:none}.leh-lai-personal-key-row button,.leh-lai-personal-actions button{min-height:40px;padding:7px 12px;border:1px solid #1C3778;border-radius:10px;background:#1C3778;color:#fff;font:850 9px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-personal-key-row button:disabled,.leh-lai-personal-actions button:disabled{opacity:.55;cursor:wait}
.leh-lai-personal-actions{display:flex;gap:7px;margin-bottom:9px}.leh-lai-personal-actions button{min-height:34px;background:#fff;color:#1C3778}.leh-lai-personal-actions button.is-danger{border-color:#e5cfd6;color:#8a2846}.leh-lai-personal-note{padding-top:9px;border-top:1px solid #edf0f4}
@media(max-width:760px){.leh-lai-personal-panel{position:fixed;z-index:100012;inset:80px 8px calc(76px + env(safe-area-inset-bottom)) 8px;width:auto;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 50px rgba(22,39,67,.18);overflow:auto}.leh-lai-personal-key-row{grid-template-columns:1fr}.leh-lai-personal-key-row button{min-height:42px}}
@media(min-width:761px){.leh-lai-source-panel,.leh-lai-memory-panel,.leh-lai-personal-panel{max-height:none}}

/* LiDia Edu Home v0.5.19.4 — automatic LiDia identity + optional L-AI settings. */
.leh-lai-settings-panel{position:absolute;z-index:8;inset:48px 0 78px auto;width:min(430px,94%);padding:14px;border-left:1px solid #dde4ed;background:#fff;box-shadow:-14px 0 28px rgba(28,55,120,.08)}
.leh-lai-account-state{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px;margin:13px 0;padding:10px 11px;border:1px solid #d9e8de;border-radius:12px;background:#f8fcf9}.leh-lai-account-state>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8f6ed;color:#17683b;font-size:13px;font-weight:900}.leh-lai-account-state strong,.leh-lai-account-state small{display:block}.leh-lai-account-state strong{color:#244533;font-size:10.5px}.leh-lai-account-state small{margin-top:3px;color:#6f7f74;font-size:8.7px;line-height:1.45}
.leh-lai-settings-actions{display:grid;gap:8px}.leh-lai-settings-actions>button{display:block;width:100%;padding:10px 11px;border:1px solid #e0e5ec;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.leh-lai-settings-actions>button:hover,.leh-lai-settings-actions>button:focus{border-color:#b7c5da;background:#f8fafd;outline:none}.leh-lai-settings-actions strong,.leh-lai-settings-actions small{display:block}.leh-lai-settings-actions strong{color:#2a3b53;font:850 10px Arial,Helvetica,sans-serif}.leh-lai-settings-actions small{margin-top:3px;color:#7c899a;font:8.5px/1.45 Arial,Helvetica,sans-serif}
@media(max-width:760px){.leh-lai-settings-panel{position:fixed;z-index:100013;inset:80px 8px calc(76px + env(safe-area-inset-bottom)) 8px;width:auto;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 50px rgba(22,39,67,.18);overflow:auto}}
@media(min-width:761px){.leh-lai-settings-panel{max-height:none}}


/* v0.5.19.6 — direct Course L-AI UX: one compact context header, no duplicate controls/cards. */
.leh-lai-simple-head.is-course{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;margin-bottom:9px;padding:6px 2px}
.leh-lai-simple-head.is-course .leh-lai-logo-mark{width:42px;height:42px;border-radius:13px;box-shadow:0 6px 18px rgba(28,55,120,.12)}
.leh-lai-simple-head.is-course .leh-lai-logo-svg{width:22px;height:22px}
.leh-lai-simple-head.is-course h1{font-size:21px;letter-spacing:-.03em}
.leh-lai-course-context-line{max-width:640px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;color:#66758a!important;font-size:9.5px!important;font-weight:800!important}
.leh-lai-head-actions{display:flex;align-items:center;gap:10px}.leh-lai-head-actions .leh-lai-text-action{padding:4px 0;font-size:9px}.leh-lai-back-topic{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #dbe2eb;border-radius:10px;background:#fff;color:#1c3778;font-size:9px;font-weight:850;text-decoration:none}.leh-lai-back-topic:hover,.leh-lai-back-topic:focus{border-color:#aabbd4;background:#f7f9fc;outline:none}
.leh-lai-chat-shell.is-course-chat{min-height:clamp(390px,calc(100dvh - 180px),620px);max-height:none;border-radius:16px;overflow:visible}
.leh-lai-chat-shell.is-course-chat .leh-lai-message-list{flex:0 0 auto;min-height:clamp(275px,calc(100dvh - 325px),490px);overflow:visible;overscroll-behavior:auto;padding:12px}
.leh-lai-chat-empty.is-course-empty{min-height:clamp(275px,calc(100dvh - 325px),490px)!important;padding:30px 18px}.leh-lai-chat-empty.is-course-empty strong{margin-top:0;font-size:16px}.leh-lai-chat-empty.is-course-empty p{max-width:430px;margin-top:5px;font-size:10px}
.leh-lai-chat-shell.is-course-chat .leh-lai-composer{border-top:1px solid #e8ecf1;padding:9px 10px}.leh-lai-chat-shell.is-course-chat .leh-lai-composer textarea{min-height:46px;max-height:92px;overflow-y:hidden}.leh-lai-chat-shell.is-course-chat .leh-lai-composer button{min-height:46px}
@media(max-width:760px){.leh-lai-simple-head.is-course{grid-template-columns:38px minmax(0,1fr) auto;gap:8px;padding:4px 1px}.leh-lai-simple-head.is-course .leh-lai-logo-mark{width:38px;height:38px;border-radius:12px}.leh-lai-simple-head.is-course .leh-lai-logo-svg{width:20px;height:20px}.leh-lai-simple-head.is-course h1{font-size:19px}.leh-lai-course-context-line{max-width:54vw;font-size:8.8px!important}.leh-lai-head-actions{gap:8px}.leh-lai-head-actions .leh-lai-text-action{display:none}.leh-lai-back-topic{min-height:30px;padding:5px 9px;font-size:8.5px}.leh-lai-chat-shell.is-course-chat{min-height:calc(100dvh - 150px);border-radius:14px}.leh-lai-chat-shell.is-course-chat .leh-lai-message-list{min-height:calc(100dvh - 285px);padding:9px 8px}.leh-lai-chat-empty.is-course-empty{min-height:calc(100dvh - 285px)!important;padding:24px 14px}.leh-lai-chat-shell.is-course-chat .leh-lai-composer{padding:8px}}


/* v0.5.20.1 — public connection state: no provider/setup failure sentence in chat. */
.leh-lai-connection-state{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:calc(100% - 20px);margin:3px 10px 0;padding:5px 8px;border-radius:999px;background:#f6f8fb;color:#6d7888;font-size:8.5px;font-weight:800;line-height:1}.leh-lai-connection-state[hidden]{display:none!important}.leh-lai-connection-spinner{display:inline-block;width:10px;height:10px;border:2px solid #cfd7e2;border-top-color:#1C3778;border-radius:50%;animation:leh-lai-connect-spin .8s linear infinite}@keyframes leh-lai-connect-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.leh-lai-connection-state{margin:2px 8px 0;padding:5px 7px;font-size:8px}.leh-lai-connection-spinner{width:9px;height:9px}}

/* LiDia Edu Home v0.5.25.3 — compact General L-AI viewport-fit UX.
 * General/Home chat only. Course L-AI keeps its paired layout unchanged. */
.leh-lai-main.is-simple.is-general-main{width:min(780px,calc(100% - 24px));padding:10px 0 18px}
.leh-lai-simple-head:not(.is-course){grid-template-columns:42px minmax(0,1fr) auto;gap:9px;margin-bottom:7px;padding:5px 1px}
.leh-lai-simple-head:not(.is-course) .leh-lai-logo-mark{width:42px;height:42px;border-radius:13px;box-shadow:0 5px 16px rgba(28,55,120,.11)}
.leh-lai-simple-head:not(.is-course) .leh-lai-logo-svg{width:22px;height:22px}
.leh-lai-simple-head:not(.is-course) h1{font-size:22px;letter-spacing:-.03em}
.leh-lai-simple-head:not(.is-course) p{margin-top:3px;font-size:8.7px}
.leh-lai-simple-head:not(.is-course) .leh-lai-ready-dot{padding:5px 7px;font-size:8px}
.leh-lai-chat-shell.is-live.is-simple:not(.is-course-chat){height:clamp(390px,58dvh,540px);min-height:0;max-height:calc(100dvh - 150px);overflow:hidden;border-radius:15px;box-shadow:0 8px 24px rgba(28,55,120,.05)}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-toolbar{min-height:38px;padding:7px 10px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message-list{flex:1 1 auto;min-height:0;padding:10px 11px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty{min-height:100%!important;padding:22px 16px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-empty-logo{width:40px;height:40px;border-radius:13px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-empty-logo-svg{width:21px;height:21px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty strong{margin-top:9px;font-size:15px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty p{margin-top:4px;font-size:9.5px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message{width:min(88%,650px);margin-bottom:10px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message-copy{padding:10px 12px;font-size:12px;line-height:1.55}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer{gap:6px;padding:7px 8px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer textarea{min-height:42px;max-height:82px;padding:10px 11px;border-radius:12px;font-size:12px;overflow-y:auto}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer button{min-width:66px;min-height:42px;padding:0 10px;border-radius:12px}
.leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer-note{padding:0 9px 6px;font-size:7.5px}
.leh-lai-main.is-simple.is-general-main>.leh-lai-privacy-note{margin-top:7px;max-width:620px;font-size:7.5px}
@media(max-width:760px){
  .leh-lai-main.is-simple.is-general-main{width:calc(100% - 10px);padding:5px 0 12px}
  .leh-lai-simple-head:not(.is-course){grid-template-columns:36px minmax(0,1fr) auto;gap:7px;margin-bottom:5px;padding:3px 1px}
  .leh-lai-simple-head:not(.is-course) .leh-lai-logo-mark{width:36px;height:36px;border-radius:11px}
  .leh-lai-simple-head:not(.is-course) .leh-lai-logo-svg{width:19px;height:19px}
  .leh-lai-simple-head:not(.is-course) h1{font-size:19px}
  .leh-lai-simple-head:not(.is-course) p{font-size:7.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .leh-lai-simple-head:not(.is-course) .leh-lai-ready-dot{padding:4px 6px;font-size:7.5px}
  .leh-lai-chat-shell.is-live.is-simple:not(.is-course-chat){height:clamp(340px,60dvh,490px);max-height:calc(100dvh - 162px);border-radius:13px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-toolbar{min-height:34px;padding:6px 8px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message-list{padding:8px 7px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty{padding:18px 12px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-empty-logo{width:36px;height:36px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty strong{font-size:14px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-chat-empty p{font-size:9px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message{width:94%;margin-bottom:9px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-message-copy{padding:9px 10px;font-size:11.5px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer{grid-template-columns:minmax(0,1fr) 48px;gap:5px;padding:6px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer textarea{min-height:40px;max-height:72px;padding:9px 10px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer button{min-width:48px;min-height:40px;padding:0 7px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-send-icon{width:17px;height:17px}
  .leh-lai-chat-shell.is-simple:not(.is-course-chat) .leh-lai-composer-note{padding:0 7px 5px}
  .leh-lai-main.is-simple.is-general-main>.leh-lai-privacy-note{margin-top:5px;padding:0 5px;font-size:7px}
}


/* LiDia Edu Home v0.5.25.4 — advanced L-AI reply typography and rich content renderer.
 * Shared by General and Course conversations because Home owns the L-AI chat surface. */
.leh-lai-message.is-assistant{width:min(94%,780px)}
.leh-lai-message.is-user{width:min(76%,620px)}
.leh-lai-message.is-assistant .leh-lai-message-meta{display:flex;align-items:center;gap:6px;color:#5f6f84;letter-spacing:.055em}
.leh-lai-message.is-assistant .leh-lai-message-meta:before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:linear-gradient(145deg,#1C3778,#7F1B50)}
.leh-lai-message.is-assistant .leh-lai-message-copy{padding:15px 16px;border-color:#dce3ed;border-radius:16px;background:linear-gradient(180deg,#fff 0,#fdfdff 100%);box-shadow:0 5px 18px rgba(28,55,120,.045);color:#26364b;font-size:13.2px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.leh-lai-message.is-user .leh-lai-message-copy{padding:10px 12px;border-radius:14px;box-shadow:none;white-space:pre-wrap}
.leh-lai-rich>*:first-child{margin-top:0!important}.leh-lai-rich>*:last-child{margin-bottom:0!important}
.leh-lai-rich p{margin:0 0 10px;color:#2c394c;line-height:1.72}
.leh-lai-rich h2,.leh-lai-rich h3,.leh-lai-rich h4{margin:17px 0 7px;color:#172740;font-weight:900;letter-spacing:-.012em;line-height:1.25}
.leh-lai-rich h2{padding-bottom:6px;border-bottom:1px solid #e8ecf2;font-size:17px}.leh-lai-rich h3{font-size:15px}.leh-lai-rich h4{font-size:13.5px}
.leh-lai-rich strong{color:#1C3778;font-weight:900}.leh-lai-rich em{color:#495b72;font-style:italic}
.leh-lai-rich a{color:#1457a6;font-weight:800;text-decoration:underline;text-decoration-color:rgba(20,87,166,.34);text-decoration-thickness:1.5px;text-underline-offset:2px;transition:color .15s ease,text-decoration-color .15s ease}
.leh-lai-rich a:hover,.leh-lai-rich a:focus{color:#7F1B50;text-decoration-color:#7F1B50;outline:none}
.leh-lai-rich .leh-lai-inline-code{display:inline;padding:2px 5px;border:1px solid #e5dbe3;border-radius:6px;background:#faf5f8;color:#7F1B50;font:800 .91em/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;overflow-wrap:anywhere}
.leh-lai-rich ul,.leh-lai-rich ol{margin:8px 0 12px;padding-left:22px}.leh-lai-rich li{margin:5px 0;padding-left:2px;line-height:1.62}.leh-lai-rich li::marker{color:#7F1B50;font-weight:900}
.leh-lai-rich blockquote{margin:12px 0;padding:10px 12px;border-left:3px solid #7F1B50;border-radius:0 10px 10px 0;background:#fbf7fa;color:#435168;line-height:1.65}
.leh-lai-rich hr{height:1px;margin:15px 0;border:0;background:#e7ebf1}
.leh-lai-code-block{margin:12px 0;border:1px solid #d8e0ea;border-radius:13px;background:#172235;overflow:hidden;box-shadow:0 4px 14px rgba(20,35,58,.08)}
.leh-lai-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:6px 9px;border-bottom:1px solid rgba(255,255,255,.1);background:#202f46;color:#c7d2e1}
.leh-lai-code-toolbar span{font:800 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.06em;text-transform:uppercase}.leh-lai-code-toolbar button{min-height:24px;padding:3px 8px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:rgba(255,255,255,.07);color:#f2f5f9;font:800 8.5px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-code-toolbar button:hover,.leh-lai-code-toolbar button:focus{background:rgba(255,255,255,.14);outline:none}
.leh-lai-code-block pre{max-width:100%;margin:0;padding:12px 13px;overflow:auto;background:transparent;color:#eef3f8;font:12px/1.58 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;tab-size:2;white-space:pre}.leh-lai-code-block code{font:inherit;color:inherit}
.leh-lai-table-wrap{max-width:100%;margin:12px 0;overflow:auto;border:1px solid #dfe5ed;border-radius:12px;background:#fff}.leh-lai-table{width:100%;min-width:420px;border-collapse:collapse;color:#33445a;font-size:11.5px;line-height:1.5}.leh-lai-table th,.leh-lai-table td{padding:9px 10px;border-right:1px solid #e8ecf1;border-bottom:1px solid #e8ecf1;text-align:left;vertical-align:top}.leh-lai-table th:last-child,.leh-lai-table td:last-child{border-right:0}.leh-lai-table tr:last-child td{border-bottom:0}.leh-lai-table th{background:#f5f8fc;color:#1C3778;font-weight:900}.leh-lai-table tbody tr:nth-child(even){background:#fbfcfe}
.leh-lai-message.is-thinking .leh-lai-message-copy{padding:11px 13px;box-shadow:none;white-space:pre-wrap}.leh-lai-message.is-thinking .leh-lai-message-copy p{margin:0;color:#738197;font-style:italic}
@media(max-width:760px){
  .leh-lai-message.is-assistant{width:97%}.leh-lai-message.is-user{width:86%}
  .leh-lai-message.is-assistant .leh-lai-message-copy{padding:12px 12px;border-radius:14px;font-size:12.4px;line-height:1.66}
  .leh-lai-rich p{margin-bottom:8px;line-height:1.67}.leh-lai-rich h2,.leh-lai-rich h3,.leh-lai-rich h4{margin-top:14px;margin-bottom:6px}.leh-lai-rich h2{font-size:15.5px}.leh-lai-rich h3{font-size:14px}.leh-lai-rich h4{font-size:13px}
  .leh-lai-rich ul,.leh-lai-rich ol{margin:7px 0 10px;padding-left:20px}.leh-lai-rich li{margin:4px 0}
  .leh-lai-rich blockquote{margin:10px 0;padding:9px 10px}.leh-lai-code-block{margin:10px 0;border-radius:11px}.leh-lai-code-block pre{padding:10px 11px;font-size:10.8px;line-height:1.55}
  .leh-lai-table{min-width:360px;font-size:10.5px}.leh-lai-table th,.leh-lai-table td{padding:8px}
}
@media(prefers-reduced-motion:reduce){.leh-lai-rich a{transition:none}}

/* LiDia Edu Home v0.5.26.0 — Stage 1 full-screen L-AI workspace.
 * Replaces the compact card shell with one ChatGPT-like, LiDia-branded workspace.
 * Provider, privacy, Course evidence and request semantics are unchanged. */
body.leh-lai-page{overflow:hidden!important;background:#fff!important}
body.leh-lai-page .leh-mobile-nav{display:none!important}
.leh-lai-app.is-workspace{width:100%;height:100dvh;min-height:100dvh!important;padding:0!important;overflow:hidden;background:#fff!important}
.leh-lai-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);width:100%;height:100dvh;min-height:0;background:#fff}
.leh-lai-sidebar{position:relative;z-index:30;display:flex;flex-direction:column;min-width:0;height:100dvh;padding:12px 10px 10px;border-right:1px solid #e7e9ee;background:#f4f5f7;color:#26364a;overflow:hidden;transition:width .18s ease,transform .22s ease}
.leh-lai-side-brand{display:grid;grid-template-columns:40px minmax(0,1fr) 30px;align-items:center;gap:9px;min-height:48px;padding:3px 2px 10px}
.leh-lai-side-logo{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#1C3778,#7F1B50);color:#fff;box-shadow:0 6px 16px rgba(28,55,120,.12)}
.leh-lai-side-logo-svg{width:20px;height:20px}.leh-lai-side-brand-copy{min-width:0}.leh-lai-side-brand-copy strong,.leh-lai-side-brand-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-side-brand-copy strong{color:#1e2b3c;font-size:14px;font-weight:900;letter-spacing:-.02em}.leh-lai-side-brand-copy small{margin-top:2px;color:#7b8592;font-size:8px;font-weight:700}
.leh-lai-sidebar-collapse{display:grid;width:30px;height:30px;place-items:center;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#697585;font:600 21px/1 Arial,sans-serif;cursor:pointer}.leh-lai-sidebar-collapse:hover,.leh-lai-sidebar-collapse:focus{border-color:#dde2e9;background:#fff;color:#1C3778;outline:none}
.leh-lai-new-chat,.leh-lai-side-link,.leh-lai-current-chat{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;width:100%;min-width:0;border-radius:11px;color:#2d3949;text-decoration:none}
.leh-lai-new-chat{min-height:42px;margin:2px 0 14px;padding:6px 9px;border:1px solid #dfe3e9;background:#fff;font:800 10.5px Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}.leh-lai-new-chat:hover,.leh-lai-new-chat:focus{border-color:#bcc7d7;background:#fff;color:#1C3778;outline:none;box-shadow:0 4px 14px rgba(28,55,120,.05)}
.leh-lai-train-entry{margin-top:-7px;background:#f8f9fc;border-color:#d8dfeb;color:#314968}.leh-lai-train-entry:hover,.leh-lai-train-entry:focus{background:#fff;color:#7F1B50;border-color:#c9b8c3}
.leh-lai-side-icon{width:17px;height:17px;justify-self:center}.leh-lai-side-section{min-width:0}.leh-lai-side-kicker{display:block;padding:0 9px 7px;color:#8a93a0;font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.leh-lai-current-chat{min-height:47px;padding:7px 8px;background:#e9ebef}.leh-lai-current-chat>span{min-width:0}.leh-lai-current-chat strong,.leh-lai-current-chat small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-current-chat strong{font-size:10.5px;font-weight:850;color:#2a3544}.leh-lai-current-chat small{margin-top:2px;color:#7b8593;font-size:8px}.leh-lai-side-spacer{flex:1 1 auto;min-height:18px}
.leh-lai-side-footer{display:grid;gap:3px;padding-top:9px;border-top:1px solid #e1e4e9}.leh-lai-side-link{min-height:38px;padding:5px 8px;border:0;background:transparent;font:800 9.5px Arial,Helvetica,sans-serif;cursor:pointer}.leh-lai-side-link.is-button{text-align:left}.leh-lai-side-link:hover,.leh-lai-side-link:focus{background:#e9ebef;color:#1C3778;outline:none}
.leh-lai-sidebar-scrim{display:none}
.leh-lai-main.is-workspace-main{display:flex!important;flex-direction:column;width:auto!important;max-width:none!important;height:100dvh;min-height:0;margin:0!important;padding:0!important;background:#fff;overflow:hidden}
.leh-lai-workspace-topbar{position:relative;z-index:20;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;padding:8px 18px;border-bottom:1px solid #eceef2;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.leh-lai-menu-button{display:none;width:36px;height:36px;padding:8px;border:0;border-radius:10px;background:transparent;cursor:pointer}.leh-lai-menu-button span{display:block;width:18px;height:1.5px;margin:3px auto;border-radius:99px;background:#344154}.leh-lai-menu-button:hover,.leh-lai-menu-button:focus{background:#f1f3f6;outline:none}
.leh-lai-workspace-title{min-width:0}.leh-lai-workspace-title strong,.leh-lai-workspace-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-workspace-title strong{color:#222f3e;font-size:12px;font-weight:850}.leh-lai-workspace-title small{margin-top:2px;color:#7d8795;font-size:8.5px}.leh-lai-workspace-actions{display:flex;align-items:center;gap:7px}.leh-lai-top-new,.leh-lai-top-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #dfe3e9;border-radius:10px;background:#fff;color:#314055;font:800 9px Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}.leh-lai-top-new:hover,.leh-lai-top-new:focus,.leh-lai-top-back:hover,.leh-lai-top-back:focus{border-color:#b8c5d7;color:#1C3778;outline:none}.leh-lai-top-icon{width:14px;height:14px}
.leh-lai-main.is-workspace-main>.leh-lai-notice{flex:0 0 auto;width:min(900px,calc(100% - 32px));margin:10px auto 0!important}
.leh-lai-chat-shell.is-live.is-simple.is-workspace-chat{position:relative;display:flex;flex:1 1 auto;min-height:0!important;max-height:none!important;height:auto!important;width:100%;border:0!important;border-radius:0!important;background:#fff;box-shadow:none!important;overflow:hidden!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{flex:1 1 auto!important;min-height:0!important;padding:28px max(24px,calc((100% - 860px)/2)) 24px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;background:#fff!important;scrollbar-gutter:stable}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty{min-height:100%!important;padding:48px 24px!important;align-content:center}.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo{width:50px;height:50px;border-radius:15px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty strong{margin-top:14px;font-size:22px;letter-spacing:-.025em}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty p{max-width:560px;margin-top:7px;font-size:11px;line-height:1.55}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message{width:100%;max-width:820px;margin:0 auto 22px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{width:max-content;max-width:min(74%,680px);margin-right:max(0px,calc((100% - 820px)/2));margin-left:auto}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-meta{padding:0 2px 6px;font-size:8.5px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#293548;font-size:14px;line-height:1.72}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{padding:10px 13px;border:0;border-radius:16px;background:#f0f1f3;color:#253246;font-size:13px;line-height:1.55;box-shadow:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{max-width:820px;padding:2px 0 0}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button{background:#fff}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{flex:0 0 auto;grid-template-columns:minmax(0,1fr) 44px!important;align-items:end;width:min(880px,calc(100% - 32px));margin:0 auto 8px;padding:8px 8px 8px 14px!important;border:1px solid #dcdfe5!important;border-radius:22px!important;background:#fff!important;box-shadow:0 8px 24px rgba(25,39,61,.07)}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{min-height:46px!important;max-height:150px!important;padding:11px 3px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#27364a;font:13px/1.48 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:none!important;overflow-y:auto!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea:focus{border:0!important;box-shadow:none!important;outline:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer button{align-self:end;width:38px;min-width:38px!important;height:38px;min-height:38px!important;padding:0!important;border-radius:50%!important;background:#1C3778!important;color:#fff}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer button:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer button:focus{background:#7F1B50!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer button span{display:none!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-send-icon{width:17px;height:17px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer-note{flex:0 0 auto;width:min(880px,calc(100% - 32px));margin:0 auto!important;padding:0 8px 5px!important;background:#fff!important;color:#9098a3;text-align:center;font-size:7.5px}
.leh-lai-main.is-workspace-main>.leh-lai-privacy-note{flex:0 0 auto;width:min(860px,calc(100% - 32px));max-width:none!important;margin:0 auto 8px!important;padding:0!important;color:#949ba5;text-align:center;font-size:7.5px;line-height:1.4}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-source-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-memory-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-personal-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-settings-panel{inset:0 0 0 auto;max-height:none;width:min(450px,92%);border-left:1px solid #e3e6eb;box-shadow:-12px 0 30px rgba(22,39,67,.08)}
.leh-lai-app.is-sidebar-collapsed .leh-lai-workspace{grid-template-columns:76px minmax(0,1fr)}.leh-lai-app.is-sidebar-collapsed .leh-lai-sidebar{padding-inline:9px;overflow:visible}.leh-lai-app.is-sidebar-collapsed .leh-lai-side-brand{grid-template-columns:40px;justify-content:center}.leh-lai-app.is-sidebar-collapsed .leh-lai-side-brand-copy,.leh-lai-app.is-sidebar-collapsed .leh-lai-side-kicker,.leh-lai-app.is-sidebar-collapsed .leh-lai-new-chat span,.leh-lai-app.is-sidebar-collapsed .leh-lai-current-chat>span,.leh-lai-app.is-sidebar-collapsed .leh-lai-side-link span{display:none}.leh-lai-app.is-sidebar-collapsed .leh-lai-sidebar-collapse{position:absolute;z-index:35;top:10px;right:-17px;width:34px;height:34px;padding:6px;background:#fff;border-color:#dfe3e9;border-radius:10px;box-shadow:0 4px 12px rgba(28,55,120,.09)}.leh-lai-app.is-sidebar-collapsed .leh-lai-sidebar-collapse span{transform:rotate(180deg)}.leh-lai-app.is-sidebar-collapsed .leh-lai-new-chat,.leh-lai-app.is-sidebar-collapsed .leh-lai-current-chat,.leh-lai-app.is-sidebar-collapsed .leh-lai-side-link{grid-template-columns:1fr;justify-items:center;padding-inline:0}

@media(max-width:860px){
  body.leh-lai-page{height:100dvh;overflow:hidden!important}
  .leh-lai-workspace{grid-template-columns:1fr;height:100dvh}
  .leh-lai-sidebar{position:fixed;z-index:100030;inset:0 auto 0 0;width:min(82vw,300px);height:100dvh;transform:translateX(-104%);box-shadow:18px 0 42px rgba(23,38,62,.16);transition:transform .22s ease}
  .leh-lai-app.is-sidebar-open .leh-lai-sidebar{transform:translateX(0)}
  .leh-lai-sidebar-collapse{display:none}
  .leh-lai-sidebar-scrim{position:fixed;z-index:100020;inset:0;display:block;border:0;background:rgba(18,28,43,.28);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .leh-lai-app.is-sidebar-open .leh-lai-sidebar-scrim{opacity:1;pointer-events:auto}
  .leh-lai-main.is-workspace-main{height:100dvh}
  .leh-lai-workspace-topbar{min-height:52px;padding:6px 10px;gap:8px}.leh-lai-menu-button{display:block}.leh-lai-workspace-title strong{font-size:11.5px}.leh-lai-workspace-title small{font-size:7.8px}.leh-lai-top-new{width:34px;min-height:34px;padding:0}.leh-lai-top-new span{display:none}.leh-lai-top-back{min-height:32px;padding:5px 8px;font-size:8.5px}
  .leh-lai-main.is-workspace-main>.leh-lai-notice{width:calc(100% - 20px);margin-top:7px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding:20px 13px 18px!important;scroll-padding-bottom:12px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty{padding:34px 16px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo{width:44px;height:44px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty strong{font-size:19px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty p{font-size:10px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message{max-width:100%;margin-bottom:19px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{max-width:86%;margin-right:0}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:13.2px;line-height:1.68}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{font-size:12.5px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{grid-template-columns:minmax(0,1fr) 42px!important;width:calc(100% - 18px);margin-bottom:6px;padding:6px 7px 6px 12px!important;border-radius:20px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{min-height:44px!important;max-height:120px!important;font-size:12.5px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer button{width:36px;min-width:36px!important;height:36px;min-height:36px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer-note{width:calc(100% - 22px);padding-bottom:4px!important;font-size:7px}.leh-lai-main.is-workspace-main>.leh-lai-privacy-note{width:calc(100% - 22px);margin-bottom:calc(6px + env(safe-area-inset-bottom))!important;font-size:6.8px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-source-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-memory-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-personal-panel,.leh-lai-chat-shell.is-workspace-chat .leh-lai-settings-panel{position:fixed;z-index:100040;inset:58px 8px 8px 8px;width:auto;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 50px rgba(22,39,67,.18);overflow:auto}
}
@media(max-width:430px){.leh-lai-sidebar{width:min(88vw,292px)}.leh-lai-workspace-topbar{padding-inline:8px}.leh-lai-workspace-title small{max-width:48vw}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding-inline:10px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{max-width:90%}}
@media(prefers-reduced-motion:reduce){.leh-lai-sidebar,.leh-lai-sidebar-scrim{transition:none}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scroll-behavior:auto}}

/* LiDia Edu Home v0.5.26.1 — Stage 2 advanced reply/action UX.
 * Reading-first typography, per-message Copy and long-answer action polish.
 * Provider, privacy and Course evidence semantics are unchanged. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{color:#263243;font-size:14.2px;line-height:1.74;letter-spacing:-.002em}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{background:#f1f2f4;color:#222f40}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-meta{color:#929aa5;font-weight:750;letter-spacing:.045em;text-transform:none}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p{margin:0 0 12px;color:#2c3747;line-height:1.74}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{color:#1f2b3a;font-weight:760;letter-spacing:-.018em}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin:23px 0 9px;padding-bottom:7px;border-bottom:1px solid #eceef2;font-size:18px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin:19px 0 8px;font-size:15.5px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{margin:16px 0 7px;font-size:14px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich strong{color:#202b39;font-weight:720}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich em{color:#536175}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a{color:#1C3778;font-weight:650;text-decoration-color:rgba(28,55,120,.34);text-decoration-thickness:1px;text-underline-offset:3px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a:focus{color:#7F1B50;text-decoration-color:#7F1B50}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-inline-code{padding:2px 5px;border-color:#e2e4e9;background:#f5f6f8;color:#6e274f;font-weight:650}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ul,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ol{margin:9px 0 14px;padding-left:23px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li{margin:5px 0;color:#2c3747;line-height:1.66}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li::marker{color:#7F1B50;font-weight:750}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote{margin:15px 0;padding:11px 14px;border-left:3px solid #7F1B50;border-radius:0 11px 11px 0;background:#f8f7f9;color:#435064}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich hr{margin:19px 0;background:#e8ebef}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block{margin:15px 0;border:1px solid #dfe3e8;border-radius:13px;background:#f7f8fa;box-shadow:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar{min-height:36px;padding:6px 10px;border-bottom:1px solid #e2e5e9;background:#eef1f4;color:#617084}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar span{color:#1C3778;font-weight:760}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar button{border-color:#d5dbe3;background:#fff;color:#33445b;font-weight:700}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar button:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar button:focus{border-color:#b8c4d5;background:#f7f9fc;color:#1C3778}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre{padding:14px 15px;background:#f8f9fb;color:#263448;font-size:12px;line-height:1.62;scrollbar-width:thin}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-table-wrap{margin:15px 0;border-color:#e0e4ea;border-radius:12px;background:#fff;box-shadow:0 1px 0 rgba(30,45,65,.02)}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table{color:#344256;font-size:11.7px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table th{background:#f3f5f7;color:#1C3778;font-weight:760}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table tbody tr:nth-child(even){background:#fafbfc}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{display:flex;align-items:center;gap:4px;min-height:30px;margin-top:3px;padding:0;opacity:.18;transform:translateY(-2px);transition:opacity .16s ease,transform .16s ease}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:hover .leh-lai-message-actions,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:focus-within .leh-lai-message-actions{opacity:1;transform:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-actions{justify-content:flex-end}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 7px;border:0!important;border-radius:8px!important;background:transparent!important;color:#707b89;font:650 9px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button:focus{background:#f1f3f6!important;color:#1C3778;outline:none;text-decoration:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button.is-copied{color:#17683b;background:#eef8f2!important}
.leh-lai-action-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:currentColor;font-size:14px;line-height:1}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-authenticity{margin-left:auto;color:#9aa2ad;font-size:7.6px;font-weight:700;letter-spacing:.04em}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scroll-padding-top:18px;scroll-padding-bottom:18px;scrollbar-width:thin;scrollbar-color:#d8dce2 transparent}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list::-webkit-scrollbar{width:8px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list::-webkit-scrollbar-track{background:transparent}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#d8dce2;background-clip:padding-box}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list::-webkit-scrollbar-thumb:hover{background:#c7ccd4;background-clip:padding-box}

@media(max-width:860px){
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:13.4px;line-height:1.7}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p{margin-bottom:10px;line-height:1.7}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin-top:19px;font-size:16px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin-top:16px;font-size:14.4px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{font-size:13.2px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block{margin:12px 0;border-radius:11px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre{padding:12px;font-size:10.9px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-table{font-size:10.7px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{min-height:32px;margin-top:2px;opacity:1;transform:none}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{min-height:30px;padding:4px 6px;font-size:8.8px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scrollbar-width:none}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list::-webkit-scrollbar{display:none}
}
@media(prefers-reduced-motion:reduce){.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{transition:none;transform:none}}

/* LiDia Edu Home v0.5.26.3 — Stage 3 conversation architecture retained.
 * Real recent-chat navigation with member-synced history and short-lived guest/browser history.
 * Course history remains scoped to the exact verified Course/topic context. */
.leh-lai-side-section.is-history{display:flex;flex-direction:column;min-height:0;max-height:min(42vh,360px);margin-top:13px}
.leh-lai-history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding-right:5px}.leh-lai-history-heading .leh-lai-side-kicker{padding-bottom:5px}.leh-lai-history-heading small{max-width:126px;padding-bottom:5px;overflow:hidden;color:#929aa5;font-size:7.2px;font-weight:700;line-height:1.25;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.leh-lai-history-search{display:block;margin:0 4px 7px}.leh-lai-history-search input{width:100%;height:31px;padding:5px 9px;border:1px solid #e0e4e9;border-radius:9px;background:#fff;color:#2d3949;font:650 9px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:none;outline:none}.leh-lai-history-search input::placeholder{color:#9aa2ad}.leh-lai-history-search input:focus{border-color:#b9c5d7;box-shadow:0 0 0 2px rgba(28,55,120,.06)}
.leh-lai-history-list{min-height:0;overflow-y:auto;padding:0 2px 4px;scrollbar-width:thin;scrollbar-color:#d8dce2 transparent}.leh-lai-history-list::-webkit-scrollbar{width:6px}.leh-lai-history-list::-webkit-scrollbar-thumb{border-radius:999px;background:#d8dce2}
.leh-lai-history-empty{margin:5px 8px;color:#9aa2ad;font:650 8px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-history-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 26px;align-items:center;gap:2px;margin:1px 0;border-radius:9px}.leh-lai-history-item:hover,.leh-lai-history-item:focus-within{background:#e9ebef}
.leh-lai-history-open{display:block;width:100%;min-width:0;padding:7px 6px 7px 8px;border:0;border-radius:9px;background:transparent;color:#344152;text-align:left;cursor:pointer;outline:none}.leh-lai-history-open.is-active{background:#e4e7ec;color:#1C3778}.leh-lai-history-open:focus-visible{box-shadow:inset 0 0 0 2px rgba(28,55,120,.16)}
.leh-lai-history-copy{display:block;min-width:0}.leh-lai-history-copy strong,.leh-lai-history-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-history-copy strong{color:inherit;font-size:9.3px;font-weight:760;letter-spacing:-.005em}.leh-lai-history-copy small{margin-top:2px;color:#929aa5;font-size:7.2px;font-weight:650}
.leh-lai-history-archive{display:grid;width:24px;height:24px;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:#a1a8b1;font:500 16px/1 Arial,sans-serif;cursor:pointer;opacity:0;transition:opacity .14s ease,background .14s ease,color .14s ease}.leh-lai-history-item:hover .leh-lai-history-archive,.leh-lai-history-item:focus-within .leh-lai-history-archive{opacity:1}.leh-lai-history-archive:hover,.leh-lai-history-archive:focus{background:#fff;color:#7F1B50;outline:none}
.leh-lai-app.is-sidebar-collapsed .leh-lai-side-section.is-history{display:none}
@media(max-width:860px){.leh-lai-side-section.is-history{max-height:min(44vh,390px);margin-top:12px}.leh-lai-history-heading small{max-width:145px;font-size:7.5px}.leh-lai-history-search input{height:34px;font-size:10px}.leh-lai-history-copy strong{font-size:10px}.leh-lai-history-copy small{font-size:7.6px}.leh-lai-history-archive{width:28px;height:28px;opacity:1}.leh-lai-history-item{grid-template-columns:minmax(0,1fr) 30px}}
@media(prefers-reduced-motion:reduce){.leh-lai-history-archive{transition:none}}

/* LiDia Edu Home v0.5.26.3 — Stage 4 language intelligence.
 * Per-conversation Auto / Bangla / English reply control. Auto follows the
 * learner question in General L-AI and the verified lesson evidence in Course L-AI. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{grid-template-columns:minmax(0,1fr) 44px!important}
.leh-lai-composer-main{display:flex;min-width:0;flex-direction:column}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer-main textarea{width:100%}
.leh-lai-composer-toolbar{display:flex;align-items:center;gap:8px;min-height:28px;padding:0 2px 1px}
.leh-lai-language-picker{display:inline-flex;align-items:center;gap:6px;min-width:0;color:#7d8794;font:700 8px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;white-space:nowrap}
.leh-lai-language-picker>span{color:#8b94a0;font-weight:720}
.leh-lai-language-picker select{height:26px;min-width:76px;padding:3px 24px 3px 8px;border:1px solid #e0e4e9;border-radius:8px;background:#f7f8fa;color:#334154;font:750 9px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:none;outline:none;cursor:pointer}
.leh-lai-language-picker select:hover{border-color:#c9d1dc;background:#fff}.leh-lai-language-picker select:focus{border-color:#aab9cd;background:#fff;box-shadow:0 0 0 2px rgba(28,55,120,.07)}
.leh-lai-language-picker select:disabled{cursor:default;opacity:.6}
.leh-lai-language-hint{min-width:0;overflow:hidden;color:#9aa2ad;font:620 7.4px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:860px){
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{grid-template-columns:minmax(0,1fr) 42px!important}
  .leh-lai-composer-toolbar{gap:6px;min-height:27px;padding-bottom:1px}
  .leh-lai-language-picker>span{display:none}
  .leh-lai-language-picker select{height:27px;min-width:72px;padding-left:7px;font-size:9px}
  .leh-lai-language-hint{font-size:7px}
}
@media(max-width:430px){.leh-lai-language-hint{max-width:145px}.leh-lai-language-picker select{min-width:70px}}

/* LiDia Edu Home v0.5.26.4 — Stage 5 bounded multimodal input.
 * One compact attachment control for ephemeral image/document/audio/video turns.
 * Attachment binaries are not persisted in chat history or WordPress Media. */
.leh-lai-attachment-tray{display:flex;align-items:stretch;gap:7px;max-width:100%;padding:2px 2px 6px;overflow-x:auto;scrollbar-width:none}.leh-lai-attachment-tray::-webkit-scrollbar{display:none}.leh-lai-attachment-tray[hidden]{display:none!important}
.leh-lai-attachment-chip{display:grid;grid-template-columns:34px minmax(0,1fr) 24px;align-items:center;gap:7px;min-width:185px;max-width:250px;padding:5px 6px;border:1px solid #e0e4e9;border-radius:11px;background:#f7f8fa;color:#344154;box-shadow:0 1px 0 rgba(26,40,60,.02)}
.leh-lai-attachment-chip img,.leh-lai-attachment-mark{width:34px;height:34px;border-radius:8px}.leh-lai-attachment-chip img{display:block;object-fit:cover;background:#eef1f5}.leh-lai-attachment-mark{display:grid;place-items:center;background:#eceff4;color:#1C3778;font:800 10px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-attachment-chip.is-audio .leh-lai-attachment-mark{color:#7F1B50}.leh-lai-attachment-chip.is-video .leh-lai-attachment-mark{color:#E55050}
.leh-lai-attachment-copy{min-width:0}.leh-lai-attachment-copy strong,.leh-lai-attachment-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-attachment-copy strong{font:740 8.8px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-attachment-copy small{margin-top:2px;color:#9199a5;font:620 6.9px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attachment-remove{align-self:center!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#8a939f!important;font:400 17px/1 Arial,sans-serif!important;box-shadow:none!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attachment-remove:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attachment-remove:focus{background:#eceff3!important;color:#7F1B50!important;outline:none}
.leh-lai-attach-control{position:relative;display:inline-flex;flex:0 0 auto;align-items:center}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{align-self:center!important;display:grid!important;width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;place-items:center;padding:0!important;border:1px solid #e0e4e9!important;border-radius:8px!important;background:#f7f8fa!important;color:#667282!important;box-shadow:none!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle:focus,.leh-lai-app.is-attach-menu-open .leh-lai-attach-toggle{border-color:#c5cfdd!important;background:#fff!important;color:#1C3778!important;outline:none}.leh-lai-attach-icon{width:14px;height:14px}
.leh-lai-attach-menu{position:absolute;z-index:100060;left:0;bottom:34px;width:224px;padding:6px;border:1px solid #dfe4eb;border-radius:13px;background:#fff;box-shadow:0 14px 38px rgba(24,39,62,.16)}.leh-lai-attach-menu[hidden]{display:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button{display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:8px 9px!important;border:0!important;border-radius:9px!important;background:#fff!important;color:#344154!important;text-align:left!important;box-shadow:none!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button:focus{background:#f2f4f7!important;color:#1C3778!important;outline:none}.leh-lai-attach-menu button strong,.leh-lai-attach-menu button small{display:block}.leh-lai-attach-menu button strong{font:760 9.4px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-attach-menu button small{margin-top:2px;color:#929aa5;font:620 7.2px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-attachment-note{margin-left:auto;min-width:0;overflow:hidden;color:#a0a7b0;font:610 6.9px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.leh-lai-message-attachments{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;margin-top:5px}.leh-lai-message-attachments span{display:inline-flex;max-width:240px;overflow:hidden;padding:4px 7px;border:1px solid #e0e4e9;border-radius:999px;background:#fafbfc;color:#747f8d;font:650 7.5px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.leh-lai-app.is-lai-busy .leh-lai-attachment-chip{opacity:.72}.leh-lai-app.is-lai-busy .leh-lai-attachment-remove{pointer-events:none}
@media(max-width:860px){
  .leh-lai-attachment-tray{gap:6px;padding-bottom:5px}.leh-lai-attachment-chip{grid-template-columns:30px minmax(0,1fr) 22px;min-width:168px;max-width:220px;padding:4px 5px}.leh-lai-attachment-chip img,.leh-lai-attachment-mark{width:30px;height:30px;border-radius:7px}.leh-lai-attachment-copy strong{font-size:8.3px}.leh-lai-attachment-copy small{font-size:6.5px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important}.leh-lai-attach-menu{position:fixed;z-index:100080;left:9px;right:9px;bottom:78px;width:auto;padding:7px;border-radius:15px;box-shadow:0 18px 45px rgba(20,33,52,.2)}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button{padding:10px!important}.leh-lai-attach-menu button strong{font-size:10px}.leh-lai-attach-menu button small{font-size:7.5px}
  .leh-lai-attachment-note{display:none}.leh-lai-message-attachments span{max-width:190px;font-size:7.2px}
}
@media(max-width:430px){.leh-lai-composer-toolbar{gap:5px}.leh-lai-language-hint{max-width:112px}.leh-lai-attachment-chip{min-width:158px;max-width:200px}}
@media(prefers-reduced-motion:reduce){.leh-lai-attach-menu{scroll-behavior:auto}}
.leh-lai-attachment-note.is-error{color:#9b3c47;font-weight:720}


/* LiDia Edu Home v0.5.26.5 — Stage 6 output actions / ephemeral Gemini TTS. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action{position:relative}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action:before{content:"";width:11px;height:11px;display:inline-block;background:currentColor;opacity:.78;clip-path:polygon(0 35%,28% 35%,55% 10%,55% 90%,28% 65%,0 65%)}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action.is-playing{color:#7F1B50;background:#f7eef3!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action.is-playing:before{clip-path:none;border-radius:2px;width:8px;height:8px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action.is-loading{color:#667282}
@media(max-width:760px){.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action:before{width:10px;height:10px}}
\n\n/* LiDia Edu Home v0.5.26.6 — Stage 7 public/member architecture and capability controls.\n * No fixed LiDia daily message counter: only invisible short-window abuse safeguards. */\n.leh-lai-access-card{display:grid;grid-template-columns:30px minmax(0,1fr) 24px;align-items:center;gap:7px;margin:10px 0 5px;padding:8px 7px;border:1px solid #e1e5ea;border-radius:12px;background:#fff;color:#344154;box-shadow:0 2px 10px rgba(25,39,61,.025)}\n.leh-lai-access-card.is-member{border-color:#dbe3ef;background:#fdfefe}.leh-lai-access-card.is-public{background:#fafbfc}\n.leh-lai-access-mark{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#eef1f5;color:#1C3778}.leh-lai-access-card.is-member .leh-lai-access-mark{background:#edf2fa;color:#7F1B50}\n.leh-lai-access-card>div{min-width:0}.leh-lai-access-card strong,.leh-lai-access-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-lai-access-card strong{font:790 9.2px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-access-card small{margin-top:2px;color:#8c95a1;font:620 6.9px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}\n.leh-lai-access-card button,.leh-lai-access-card a{display:grid;width:24px;height:24px;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:#88919d;font:700 16px/1 Arial,sans-serif;text-decoration:none;cursor:pointer}.leh-lai-access-card button:hover,.leh-lai-access-card button:focus,.leh-lai-access-card a:hover,.leh-lai-access-card a:focus{background:#eef1f5;color:#1C3778;outline:none}\n.leh-lai-chat-shell.is-workspace-chat .leh-lai-capabilities-panel{position:absolute;z-index:80;inset:0 0 0 auto;width:min(470px,94%);max-height:none;padding:18px;border-left:1px solid #e3e6eb;background:#fff;box-shadow:-12px 0 30px rgba(25,39,61,.09);overflow:auto}\n.leh-lai-capabilities-panel[hidden]{display:none!important}.leh-lai-capability-grid{display:grid;gap:8px;margin-top:14px}.leh-lai-capability-grid article{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:start;gap:9px;padding:10px;border:1px solid #e4e7eb;border-radius:12px;background:#fafbfc}.leh-lai-capability-grid article>span{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#edf2fa;color:#1C3778;font:850 10px/1 Inter,sans-serif}.leh-lai-capability-grid article.is-neutral>span{background:#f0f1f3;color:#8f97a2}.leh-lai-capability-grid strong,.leh-lai-capability-grid small{display:block}.leh-lai-capability-grid strong{color:#2e3a4a;font:790 10px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-capability-grid small{margin-top:3px;color:#818b98;font:620 8px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}\n.leh-lai-access-note{margin-top:13px;padding:11px 12px;border:1px solid #e0e5ec;border-radius:12px;background:#f7f8fa}.leh-lai-access-note strong{display:block;color:#2d3948;font:800 9px/1.25 Inter,sans-serif}.leh-lai-access-note p{margin:4px 0 0;color:#788391;font:620 8px/1.5 Inter,sans-serif}.leh-lai-access-note a{display:inline-flex;margin-top:8px;color:#1C3778;font:780 8px/1.2 Inter,sans-serif;text-decoration:none}.leh-lai-access-note a:hover,.leh-lai-access-note a:focus{color:#7F1B50;text-decoration:underline;outline:none}\n.leh-lai-member-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.leh-lai-member-benefits article{padding:9px;border:1px solid #e4e7eb;border-radius:10px;background:#fafbfc}.leh-lai-member-benefits strong,.leh-lai-member-benefits small{display:block}.leh-lai-member-benefits strong{font:780 9px/1.2 Inter,sans-serif;color:#314052}.leh-lai-member-benefits small{margin-top:3px;color:#858f9c;font:620 7.4px/1.42 Inter,sans-serif}\n.leh-lai-app.is-sidebar-collapsed .leh-lai-access-card{grid-template-columns:1fr;justify-items:center;padding:6px 0;border-color:transparent;background:transparent;box-shadow:none}.leh-lai-app.is-sidebar-collapsed .leh-lai-access-card>div,.leh-lai-app.is-sidebar-collapsed .leh-lai-access-card>button,.leh-lai-app.is-sidebar-collapsed .leh-lai-access-card>a{display:none}.leh-lai-app.is-sidebar-collapsed .leh-lai-access-mark{width:34px;height:34px}\n@media(max-width:860px){.leh-lai-access-card{margin-top:9px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-capabilities-panel{position:fixed;z-index:100090;inset:52px 0 0 auto;width:min(94vw,470px);padding:14px;box-shadow:-16px 0 38px rgba(20,33,52,.16)}.leh-lai-member-benefits{grid-template-columns:1fr 1fr}.leh-lai-capability-grid article{padding:9px}.leh-lai-capability-grid strong{font-size:9.6px}.leh-lai-capability-grid small{font-size:7.8px}}\n@media(max-width:430px){.leh-lai-member-benefits{grid-template-columns:1fr}.leh-lai-chat-shell.is-workspace-chat .leh-lai-capabilities-panel{width:100vw;inset:52px 0 0 0;border-left:0}.leh-lai-capability-grid{gap:7px}}\n
/* LiDia Edu Home v0.5.27.0 — Stage 8 final production readability/accessibility freeze. */
.leh-lai-workspace{grid-template-columns:272px minmax(0,1fr)}
.leh-lai-side-brand-copy small,.leh-lai-side-kicker,.leh-lai-current-chat small,.leh-lai-history-heading small,.leh-lai-history-copy small,.leh-lai-history-empty,.leh-lai-workspace-title small,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-meta,.leh-lai-chat-shell.is-workspace-chat .leh-lai-authenticity,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer-note,.leh-lai-main.is-workspace-main>.leh-lai-privacy-note,.leh-lai-language-hint,.leh-lai-attachment-copy small,.leh-lai-attach-menu button small,.leh-lai-attachment-note,.leh-lai-message-attachments span,.leh-lai-access-card small,.leh-lai-capability-grid small,.leh-lai-access-note p,.leh-lai-access-note a,.leh-lai-member-benefits small{font-size:10px!important;line-height:1.4!important}
.leh-lai-side-brand-copy strong{font-size:14px!important}.leh-lai-new-chat,.leh-lai-current-chat,.leh-lai-side-link{font-size:12px!important;min-height:40px}.leh-lai-side-kicker{font-weight:760!important;letter-spacing:.04em}
.leh-lai-history-search input{height:36px!important;font-size:12px!important}.leh-lai-history-copy strong{font-size:12px!important}.leh-lai-history-archive{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
.leh-lai-workspace-title strong{font-size:13px!important}.leh-lai-top-new,.leh-lai-top-back{min-height:40px!important;padding:8px 11px!important;font-size:11px!important}.leh-lai-menu-button{width:40px!important;height:40px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:15px!important;line-height:1.72!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{font-size:14px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty p{font-size:12px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{opacity:.34}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{min-height:32px!important;padding:6px 8px!important;font-size:10.5px!important}.leh-lai-action-icon{width:16px;height:16px;font-size:15px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar span{font-size:10.5px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar button{min-height:32px!important;padding:5px 9px!important;font-size:10.5px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre{font-size:12.5px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-table{font-size:12px!important}
.leh-lai-language-picker{font-size:10.5px!important}.leh-lai-language-picker select{height:34px!important;min-width:84px!important;font-size:12px!important}.leh-lai-composer-toolbar{min-height:36px!important}
.leh-lai-attachment-chip{grid-template-columns:36px minmax(0,1fr) 34px!important;min-height:48px}.leh-lai-attachment-copy strong{font-size:11px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attachment-remove{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}.leh-lai-attach-menu{bottom:43px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button{min-height:44px!important;padding:9px 10px!important}.leh-lai-attach-menu button strong{font-size:11.5px!important}
.leh-lai-access-card{grid-template-columns:34px minmax(0,1fr) 36px!important;gap:9px!important}.leh-lai-access-mark{width:34px!important;height:34px!important}.leh-lai-access-card strong{font-size:11.5px!important}.leh-lai-access-card button,.leh-lai-access-card a{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.leh-lai-capability-grid strong{font-size:11.5px!important}.leh-lai-access-note strong,.leh-lai-member-benefits strong{font-size:11px!important}
.leh-lai-memory-panel-head small,.leh-lai-memory-item span,.leh-lai-memory-item-actions small,.leh-lai-memory-form label>span,.leh-lai-memory-form>p,.leh-lai-settings-actions small,.leh-lai-account-state small,.leh-lai-personal-connect>p,.leh-lai-personal-note{font-size:10px!important;line-height:1.45!important}.leh-lai-memory-item-actions button,.leh-lai-personal-actions button,.leh-lai-memory-form>button{min-height:36px!important;font-size:10.5px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{font-size:14px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
.leh-lai-workspace button:focus-visible,.leh-lai-workspace a:focus-visible,.leh-lai-workspace input:focus-visible,.leh-lai-workspace select:focus-visible,.leh-lai-workspace textarea:focus-visible{outline:2px solid #1C3778!important;outline-offset:2px!important;box-shadow:0 0 0 4px rgba(28,55,120,.12)!important}
.leh-lai-settings-panel:focus,.leh-lai-capabilities-panel:focus,.leh-lai-source-panel:focus,.leh-lai-memory-panel:focus,.leh-lai-personal-panel:focus,.leh-lai-sidebar:focus{outline:none}

@media(max-width:860px){
  .leh-lai-sidebar{width:min(88vw,320px)}
  .leh-lai-menu-button{width:44px!important;height:44px!important}.leh-lai-top-new,.leh-lai-top-back{min-width:44px!important;min-height:44px!important}.leh-lai-workspace-title strong{font-size:13px!important}.leh-lai-workspace-title small{font-size:10.5px!important}
  .leh-lai-new-chat,.leh-lai-current-chat,.leh-lai-side-link{min-height:44px!important;font-size:13px!important}.leh-lai-history-search input{height:44px!important;font-size:13px!important}.leh-lai-history-open{min-height:44px!important}.leh-lai-history-archive{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:14.5px!important;line-height:1.7!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{font-size:14px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{min-height:40px!important;padding:8px 10px!important;font-size:11px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-code-toolbar button{min-height:40px!important;font-size:11px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre{font-size:12px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-table{font-size:11.5px!important}
  .leh-lai-language-picker select{height:40px!important;min-width:82px!important;font-size:13px!important}.leh-lai-language-hint{font-size:10px!important}.leh-lai-composer-toolbar{min-height:42px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attachment-remove{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-menu button{min-height:48px!important}.leh-lai-attach-menu button strong{font-size:12px!important}.leh-lai-attach-menu button small{font-size:10.5px!important}.leh-lai-attachment-copy strong{font-size:11.5px!important}.leh-lai-attachment-copy small{font-size:10px!important}.leh-lai-message-attachments span{font-size:10px!important}
  .leh-lai-access-card button,.leh-lai-access-card a{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.leh-lai-access-card strong{font-size:12px!important}.leh-lai-access-card small{font-size:10.5px!important}.leh-lai-capability-grid strong{font-size:12px!important}.leh-lai-capability-grid small,.leh-lai-access-note p,.leh-lai-member-benefits small{font-size:10.5px!important}
  .leh-lai-memory-item-actions button,.leh-lai-personal-actions button,.leh-lai-memory-form>button{min-height:44px!important;font-size:11px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{font-size:16px!important;line-height:1.45!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer-note,.leh-lai-main.is-workspace-main>.leh-lai-privacy-note{font-size:10px!important;line-height:1.4!important}
}
@media(max-width:430px){.leh-lai-sidebar{width:min(92vw,320px)}.leh-lai-language-hint{max-width:150px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding-inline:12px!important}}

/* LiDia Edu Home v0.5.27.1 — Stage 9A reading-first L-AI visual workspace.
 * Presentation-only: quieter graphical navigation, real prose paragraph rhythm,
 * icon-led message actions and a narrower reading/composer measure. */
.leh-lai-workspace .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.leh-lai-workspace{grid-template-columns:236px minmax(0,1fr)!important}
.leh-lai-sidebar{padding:12px 10px 11px!important;background:#f6f7f8!important;border-right-color:#e8eaee!important}
.leh-lai-side-brand{grid-template-columns:40px minmax(0,1fr) 30px!important;min-height:50px!important;padding:2px 2px 12px!important}
.leh-lai-side-logo{border-radius:13px!important;box-shadow:0 5px 14px rgba(28,55,120,.10)!important}
.leh-lai-side-brand-copy strong{font-size:15px!important;font-weight:820!important;letter-spacing:-.025em!important}
.leh-lai-new-chat{min-height:44px!important;margin:1px 0 15px!important;padding:7px 10px!important;border-color:#e0e3e8!important;border-radius:13px!important;background:#fff!important;font:760 12px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;box-shadow:0 1px 2px rgba(25,39,61,.025)!important}
.leh-lai-new-chat:hover,.leh-lai-new-chat:focus{border-color:#c8d0db!important;box-shadow:0 5px 16px rgba(28,55,120,.055)!important}
.leh-lai-side-section.is-history{max-height:none!important;flex:1 1 auto!important;margin-top:0!important}
.leh-lai-history-heading{align-items:center!important;padding:0 5px 6px 7px!important}
.leh-lai-history-heading .leh-lai-side-kicker{padding:0!important;color:#7f8894!important;font-size:10.5px!important;font-weight:740!important;letter-spacing:.015em!important;text-transform:none!important}
.leh-lai-history-search{margin:0 2px 8px!important}
.leh-lai-history-search input{height:38px!important;padding:7px 11px!important;border-color:#e2e5e9!important;border-radius:11px!important;background:#fbfbfc!important;font-size:12px!important;font-weight:560!important}
.leh-lai-history-search input:focus{background:#fff!important;border-color:#bdc7d5!important;box-shadow:0 0 0 3px rgba(28,55,120,.055)!important}
.leh-lai-history-list{padding:0 1px 5px!important}
.leh-lai-history-item{grid-template-columns:minmax(0,1fr) 32px!important;margin:2px 0!important;border-radius:10px!important}
.leh-lai-history-open{min-height:42px!important;padding:8px 7px 8px 9px!important;border-radius:10px!important}
.leh-lai-history-open.is-active{background:#e9ebef!important}
.leh-lai-history-copy strong{font-size:11.5px!important;font-weight:650!important;color:#344052!important}
.leh-lai-history-copy small{margin-top:3px!important;font-size:9.5px!important;color:#9299a4!important}
.leh-lai-history-empty{margin:8px 9px!important;font-size:10.5px!important;color:#9aa1ab!important}
.leh-lai-history-archive{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;opacity:.45!important}
.leh-lai-history-item:hover .leh-lai-history-archive,.leh-lai-history-item:focus-within .leh-lai-history-archive{opacity:1!important}
.leh-lai-side-spacer{display:none!important}
.leh-lai-side-footer{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;padding-top:10px!important;border-top-color:#e4e6ea!important}
.leh-lai-side-footer .leh-lai-side-link{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;min-height:42px!important;padding:0!important;border:1px solid transparent!important;border-radius:11px!important}
.leh-lai-side-footer .leh-lai-side-link:hover,.leh-lai-side-footer .leh-lai-side-link:focus{border-color:#e0e3e8!important;background:#fff!important;color:#1C3778!important}
.leh-lai-side-footer .leh-lai-side-icon{width:18px!important;height:18px!important}
.leh-lai-app.is-sidebar-collapsed .leh-lai-workspace{grid-template-columns:70px minmax(0,1fr)!important}
.leh-lai-app.is-sidebar-collapsed .leh-lai-sidebar{padding-inline:8px!important}
.leh-lai-app.is-sidebar-collapsed .leh-lai-side-footer{grid-template-columns:1fr!important;gap:3px!important}
.leh-lai-app.is-sidebar-collapsed .leh-lai-side-footer .leh-lai-side-link{min-height:42px!important}
.leh-lai-app.is-sidebar-collapsed .leh-lai-new-chat{grid-template-columns:1fr!important;justify-items:center!important;padding-inline:0!important}

.leh-lai-workspace-topbar{min-height:54px!important;padding:6px 16px!important;border-bottom-color:#eef0f3!important;background:rgba(255,255,255,.975)!important}
.leh-lai-workspace-title strong{font-size:13.5px!important;font-weight:720!important;letter-spacing:-.012em!important;color:#263244!important}
.leh-lai-workspace-actions{gap:5px!important}
.leh-lai-top-new,.leh-lai-top-back{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-color:transparent!important;border-radius:11px!important;background:transparent!important}
.leh-lai-top-new:hover,.leh-lai-top-new:focus,.leh-lai-top-back:hover,.leh-lai-top-back:focus{border-color:#e1e4e8!important;background:#f6f7f9!important}
.leh-lai-top-icon{width:17px!important;height:17px!important}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding:34px max(22px,calc((100% - 790px)/2)) 30px!important;scroll-padding-top:24px!important;scroll-padding-bottom:26px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty{padding:52px 24px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo{width:54px!important;height:54px!important;border-radius:17px!important;background:linear-gradient(145deg,#f2f5fa,#faf6f8)!important;color:#1C3778!important;box-shadow:inset 0 0 0 1px #e8eaf0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty strong{margin-top:16px!important;font-size:22px!important;font-weight:700!important;letter-spacing:-.03em!important;color:#263244!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message{max-width:790px!important;margin-bottom:30px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{max-width:min(72%,650px)!important;margin-right:max(0px,calc((100% - 790px)/2))!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-meta{padding:0 1px 8px!important;color:#8c94a0!important;font-size:10px!important;font-weight:680!important;letter-spacing:.02em!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-meta:before{width:5px!important;height:5px!important;flex-basis:5px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:15.5px!important;line-height:1.76!important;letter-spacing:-.004em!important;color:#2a3444!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{padding:11px 14px!important;border-radius:17px!important;background:#f1f2f4!important;font-size:14.25px!important;line-height:1.58!important;color:#273243!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p{margin:0 0 16px!important;line-height:1.76!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p:last-child{margin-bottom:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin:29px 0 12px!important;padding-bottom:8px!important;font-size:19px!important;font-weight:720!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin:24px 0 10px!important;font-size:16.5px!important;font-weight:720!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{margin:20px 0 9px!important;font-size:15px!important;font-weight:700!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich strong{font-weight:700!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ul,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ol{margin:12px 0 18px!important;padding-left:24px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li{margin:7px 0!important;line-height:1.7!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote{margin:18px 0!important;padding:11px 15px!important;border-left:3px solid #d2d9e5!important;background:#fafbfc!important;border-radius:0 10px 10px 0!important}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{max-width:790px!important;gap:3px!important;min-height:34px!important;margin-top:6px!important;opacity:.22!important;transform:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:hover .leh-lai-message-actions,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:focus-within .leh-lai-message-actions{opacity:1!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{display:inline-grid!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;place-items:center!important;padding:0!important;border-radius:9px!important;font-size:15px!important;line-height:1!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-copy-action{display:inline-grid!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action{font-size:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action:before{width:13px!important;height:13px!important;margin:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-more-action,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-memory-action{font-size:16px!important;font-weight:500!important}
.leh-lai-action-icon{width:16px!important;height:16px!important;font-size:16px!important}
.leh-lai-action-count{margin-left:-2px;color:#7b8491;font-size:9px;font-weight:750;line-height:1}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-sources-action{grid-template-columns:16px auto!important;width:auto!important;min-width:40px!important;padding:0 7px!important;column-gap:3px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-authenticity{display:grid!important;width:28px!important;height:28px!important;place-items:center!important;margin-left:auto!important;border-radius:50%!important;background:#f4f7f5!important;color:#3d7458!important;font-size:11px!important;letter-spacing:0!important}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{width:min(820px,calc(100% - 30px))!important;margin-bottom:12px!important;padding:8px 8px 8px 13px!important;border-color:#dfe2e7!important;border-radius:23px!important;box-shadow:0 10px 30px rgba(25,39,61,.075)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{min-height:48px!important;padding:11px 3px 8px!important;font-size:15px!important;line-height:1.5!important}
.leh-lai-composer-toolbar{min-height:34px!important;gap:7px!important;padding:0 1px 1px!important}
.leh-lai-language-picker select{height:34px!important;min-width:76px!important;padding:4px 24px 4px 9px!important;border-color:#e1e4e8!important;border-radius:10px!important;background:#f8f9fa!important;font-size:11.5px!important;font-weight:680!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-color:#e1e4e8!important;border-radius:10px!important;background:#f8f9fa!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;box-shadow:0 4px 10px rgba(28,55,120,.16)!important}

@media(max-width:860px){
  .leh-lai-workspace{grid-template-columns:minmax(0,1fr)!important}
  .leh-lai-sidebar{width:min(88vw,300px)!important;padding:10px 10px 12px!important}
  .leh-lai-side-brand{padding-bottom:10px!important}
  .leh-lai-side-footer{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .leh-lai-workspace-topbar{min-height:54px!important;padding:5px 10px!important}
  .leh-lai-menu-button{width:44px!important;height:44px!important}
  .leh-lai-workspace-title strong{font-size:13.5px!important}
  .leh-lai-top-new,.leh-lai-top-back{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding:25px 14px 24px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message{margin-bottom:25px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{max-width:88%!important;margin-right:0!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:15px!important;line-height:1.74!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p{margin-bottom:15px!important;line-height:1.74!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin-top:25px!important;font-size:17.5px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin-top:21px!important;font-size:16px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{font-size:14.5px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{opacity:1!important;min-height:42px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions button,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-action{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;border-radius:11px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-sources-action{width:auto!important;min-width:46px!important;padding:0 8px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{width:calc(100% - 18px)!important;margin-bottom:9px!important;padding:7px 7px 7px 11px!important;border-radius:21px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer textarea{font-size:16px!important;line-height:1.48!important}
  .leh-lai-composer-toolbar{min-height:42px!important}
  .leh-lai-language-picker select{height:40px!important;font-size:13px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important}
}
@media(max-width:430px){
  .leh-lai-sidebar{width:min(92vw,300px)!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{padding-inline:12px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{max-width:91%!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:14.75px!important}
}
@media(prefers-reduced-motion:reduce){.leh-lai-sidebar,.leh-lai-message-actions{transition:none!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scroll-behavior:auto!important}}


/* LiDia Edu Home v0.5.27.2 — Stage 9B graphical conversation flow.
 * Presentation-only: progressive chat search, symbolic speaker identity,
 * long-thread latest control and a calmer LiDia-accented composer. */
.leh-lai-history-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;gap:6px!important}
.leh-lai-history-search-toggle{display:grid;width:32px;height:32px;min-width:32px;min-height:32px;place-items:center;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#7b8490;cursor:pointer}
.leh-lai-history-search-toggle:hover,.leh-lai-history-search-toggle:focus,.is-history-search-open .leh-lai-history-search-toggle{border-color:#e0e3e8;background:#fff;color:#1C3778;outline:none}
.leh-lai-history-search-icon{width:15px;height:15px}
.leh-lai-history-search[hidden]{display:none!important}.leh-lai-history-search{animation:lehLaiSearchIn .14s ease-out both}
@keyframes lehLaiSearchIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-meta{display:flex!important;align-items:center!important;min-height:22px!important;font-size:0!important;padding-bottom:9px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-meta:before{content:"✦"!important;display:grid!important;width:22px!important;height:22px!important;flex:0 0 22px!important;place-items:center!important;border:1px solid #e2e5eb!important;border-radius:8px!important;background:linear-gradient(145deg,#f6f8fc,#fbf7f9)!important;color:#7F1B50!important;font-size:11px!important;line-height:1!important;box-shadow:0 2px 8px rgba(28,55,120,.045)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-meta{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant{position:relative}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant:after{content:"";position:absolute;left:0;bottom:-15px;width:46px;height:1px;background:linear-gradient(90deg,rgba(127,27,80,.24),rgba(28,55,120,.12),rgba(229,80,80,0));pointer-events:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{position:relative;border-bottom:0!important;padding-bottom:10px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2:after{content:"";position:absolute;left:0;bottom:0;width:64px;height:2px;border-radius:999px;background:linear-gradient(90deg,#7F1B50,#1C3778 62%,#E55050);opacity:.52}

.leh-lai-latest{position:absolute;z-index:12;left:50%;bottom:92px;display:grid;width:38px;height:38px;place-items:center;transform:translateX(-50%);border:1px solid #dfe3e9;border-radius:999px;background:rgba(255,255,255,.96);color:#334154;box-shadow:0 8px 24px rgba(25,39,61,.11);font:700 17px/1 Arial,sans-serif;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.leh-lai-latest[hidden]{display:none!important}.leh-lai-latest:hover,.leh-lai-latest:focus{border-color:#c8d0dc;color:#1C3778;box-shadow:0 10px 28px rgba(28,55,120,.14);outline:none}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{position:relative;overflow:visible!important;background:rgba(255,255,255,.985)!important;transition:border-color .16s ease,box-shadow .16s ease!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer:before{content:"";position:absolute;top:-1px;left:22px;right:22px;height:1px;border-radius:999px;background:linear-gradient(90deg,rgba(127,27,80,0),rgba(127,27,80,.28),rgba(28,55,120,.30),rgba(229,80,80,.22),rgba(229,80,80,0));pointer-events:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer:focus-within{border-color:#cbd3de!important;box-shadow:0 13px 34px rgba(25,39,61,.095),0 0 0 3px rgba(28,55,120,.035)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{background:linear-gradient(145deg,#1C3778,#3b3f82 58%,#7F1B50)!important;border:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button:focus{background:linear-gradient(145deg,#172f69,#343873 58%,#711746)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button:disabled{background:#d7dce5!important}

@media(max-width:860px){
  .leh-lai-history-heading{grid-template-columns:minmax(0,1fr) 40px!important}.leh-lai-history-search-toggle{width:40px;height:40px;min-width:40px;min-height:40px}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant:after{bottom:-12px}
  .leh-lai-latest{bottom:88px;width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){.leh-lai-history-search{animation:none}.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{transition:none!important}}

/* LiDia Edu Home v0.5.27.3 — Stage 9C answer presentation intelligence.
 * Presentation-only semantic hierarchy for provider text already present in the answer.
 * No new content is invented and provider/Course/identity authority remains unchanged. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich{--lai-reading:#2c3747;--lai-muted:#657185;--lai-border:#e5e8ed}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p{max-width:74ch}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p+ul,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p+ol{margin-top:-2px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout{position:relative;display:grid;gap:6px;margin:16px 0;padding:12px 14px 12px 15px;border:1px solid var(--lai-border);border-left-width:3px;border-radius:0 12px 12px 0;background:#fafbfc;color:var(--lai-reading);box-shadow:0 1px 0 rgba(25,39,61,.018)}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout-head{display:flex;align-items:center;gap:8px;min-height:20px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout-head strong{color:#273548;font-size:11.5px;font-weight:760;letter-spacing:.005em}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout-mark{display:grid;width:20px;height:20px;flex:0 0 20px;place-items:center;border-radius:7px;background:#eef1f5;color:#536175;font:800 10px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout>p{margin:0!important;color:#3d4959;line-height:1.67}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-key{border-left-color:#7F1B50;background:#fbf8fa}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-key .leh-lai-callout-mark{background:#f6edf2;color:#7F1B50}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-important{border-left-color:#1C3778;background:#f8f9fc}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-important .leh-lai-callout-mark{background:#eef2f9;color:#1C3778}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-tip{border-left-color:#486b5a;background:#f8fbf9}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-tip .leh-lai-callout-mark{background:#edf5f0;color:#355c49}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-example{border-left-color:#8b6a37;background:#fcfaf6}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-example .leh-lai-callout-mark{background:#f7f0e5;color:#76582e}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-warning{border-left-color:#b65151;background:#fff9f8}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-warning .leh-lai-callout-mark{background:#faecea;color:#9d3f3f}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-source{border-left-color:#58708c;background:#f8fafc}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout.is-source .leh-lai-callout-mark{background:#eef2f6;color:#455f7b}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2.is-example-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3.is-example-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4.is-example-heading{color:#6f542f}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2.is-source-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3.is-source-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4.is-source-heading{color:#425d7a}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2.is-warning-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3.is-warning-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4.is-warning-heading{color:#934747}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2.is-key-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3.is-key-heading,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4.is-key-heading{color:#6f214b}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote{position:relative;padding:13px 15px 13px 17px!important;border-left-width:2px!important;background:#faf9fb!important;font-style:normal}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote:before{content:"“";position:absolute;top:2px;right:10px;color:#d9d1d8;font:700 30px/1 Georgia,serif}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table-wrap{overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.leh-lai-chat-shell.is-workspace-chat .leh-lai-table{min-width:520px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-table td,.leh-lai-chat-shell.is-workspace-chat .leh-lai-table th{padding:9px 10px;vertical-align:top;line-height:1.5}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre{tab-size:2}.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>ul,.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>ol{max-width:72ch}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li+li{margin-top:6px}
@media(max-width:860px){
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout{margin:14px 0;padding:11px 12px 11px 13px;border-radius:0 10px 10px 0}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout-head strong{font-size:11.5px}.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout>p{font-size:14.5px;line-height:1.66}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-table{min-width:470px}
}
@media(prefers-reduced-motion:reduce){.leh-lai-chat-shell.is-workspace-chat .leh-lai-table-wrap{scroll-behavior:auto}}


/* LiDia Edu Home v0.5.27.4 — Stage 9D unified graphical interaction controls.
 * Presentation-only control grammar: composer tools, attachment palette,
 * message action dock, top-bar/sidebar actions and mobile touch parity. */
.leh-lai-composer-toolbar{display:flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;padding:3px!important;border:1px solid #e5e8ed!important;border-radius:13px!important;background:#f7f8fa!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.84)!important}
.leh-lai-tool-control{position:relative!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#5f6a79!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle{border:0!important;background:transparent!important;border-radius:9px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer .leh-lai-attach-toggle:focus,.is-attach-menu-open .leh-lai-attach-toggle{background:#fff!important;color:#1C3778!important;box-shadow:0 1px 5px rgba(25,39,61,.08)!important}
.leh-lai-language-picker{display:flex!important;align-items:center!important;gap:4px!important;height:34px!important;min-height:34px!important;padding:0 4px 0 7px!important;border-left:1px solid #e2e5e9!important;border-radius:0 9px 9px 0!important}
.leh-lai-language-symbol{display:grid;width:17px;height:17px;place-items:center;color:#7F1B50;font:760 11px/1.1 Georgia,"Noto Serif Bengali",serif;opacity:.82}
.leh-lai-language-picker select{height:28px!important;min-width:62px!important;padding:2px 20px 2px 3px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#4e5b6d!important;box-shadow:none!important;font-size:11px!important;font-weight:720!important}
.leh-lai-language-picker:focus-within{background:#fff!important;box-shadow:0 1px 5px rgba(25,39,61,.07)!important}.leh-lai-language-picker:focus-within select{outline:none!important;color:#1C3778!important}
[data-lai-language-active="bn"] .leh-lai-language-symbol{color:#1C3778}[data-lai-language-active="en"] .leh-lai-language-symbol{color:#E55050}
.leh-lai-attach-menu{display:grid!important;grid-template-columns:repeat(2,minmax(92px,1fr))!important;gap:5px!important;width:216px!important;padding:7px!important;border:1px solid #dfe3e9!important;border-radius:15px!important;background:rgba(255,255,255,.985)!important;box-shadow:0 16px 40px rgba(25,39,61,.14)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.leh-lai-attach-menu[hidden]{display:none!important}.leh-lai-attach-menu button{display:grid!important;grid-template-rows:27px auto!important;justify-items:center!important;align-content:center!important;gap:3px!important;min-height:64px!important;padding:7px 6px!important;border:1px solid transparent!important;border-radius:11px!important;background:#f8f9fa!important;color:#4e5968!important;text-align:center!important}
.leh-lai-attach-menu button:hover,.leh-lai-attach-menu button:focus{border-color:#dce2ea!important;background:#fff!important;color:#1C3778!important;outline:none!important;box-shadow:0 3px 10px rgba(25,39,61,.07)!important}
.leh-lai-attach-menu-icon{display:grid;width:27px;height:27px;place-items:center;border-radius:9px;background:#eef1f5;color:#59677a;font:760 15px/1 Arial,sans-serif}.leh-lai-attach-menu button[data-lai-attach-kind="image"] .leh-lai-attach-menu-icon{background:#f6edf2;color:#7F1B50}.leh-lai-attach-menu button[data-lai-attach-kind="document"] .leh-lai-attach-menu-icon{background:#eef2f9;color:#1C3778}.leh-lai-attach-menu button[data-lai-attach-kind="audio"] .leh-lai-attach-menu-icon{background:#f7f0e8;color:#805d32}.leh-lai-attach-menu button[data-lai-attach-kind="video"] .leh-lai-attach-menu-icon{background:#faeeee;color:#a34c4c}
.leh-lai-attach-menu button strong{font-size:10.5px!important;font-weight:720!important;line-height:1.2!important}
.leh-lai-attachment-chip{border-color:#e2e6eb!important;background:#fafbfc!important;border-radius:12px!important;box-shadow:none!important}.leh-lai-attachment-chip:hover{border-color:#d4dae2!important;background:#fff!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{width:max-content!important;padding:2px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;transition:opacity .16s ease,border-color .16s ease,background .16s ease!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:hover .leh-lai-message-actions,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message:focus-within .leh-lai-message-actions{border-color:#e7e9ed!important;background:#f8f9fa!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-tool-action{border:0!important;background:transparent!important;color:#667181!important;box-shadow:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-tool-action:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .is-tool-action:focus{background:#fff!important;color:#1C3778!important;box-shadow:0 1px 5px rgba(25,39,61,.07)!important;outline:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action.is-playing{background:#fff5f8!important;color:#7F1B50!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-listen-action.is-loading{opacity:.62}
.leh-lai-workspace-actions{padding:2px!important;border:1px solid #e7e9ed!important;border-radius:12px!important;background:#f8f9fa!important}.leh-lai-top-new,.leh-lai-top-back{border:0!important;background:transparent!important;box-shadow:none!important}.leh-lai-top-new:hover,.leh-lai-top-new:focus,.leh-lai-top-back:hover,.leh-lai-top-back:focus{background:#fff!important;color:#1C3778!important;box-shadow:0 1px 5px rgba(25,39,61,.07)!important}
.leh-lai-side-footer{padding:3px!important;border:1px solid #e7e9ed!important;border-radius:13px!important;background:#f7f8fa!important;gap:2px!important}.leh-lai-side-link{border:0!important;background:transparent!important}.leh-lai-side-link:hover,.leh-lai-side-link:focus{background:#fff!important;box-shadow:0 1px 5px rgba(25,39,61,.07)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-composer>button{border-radius:14px!important}.leh-lai-send-icon{width:18px!important;height:18px!important}
@media(max-width:860px){
  .leh-lai-composer-toolbar{min-height:44px!important;padding:3px!important;border-radius:14px!important}.leh-lai-language-picker{height:40px!important;min-height:40px!important;padding-left:8px!important}.leh-lai-language-picker select{height:34px!important;min-width:66px!important;font-size:12.5px!important}
  .leh-lai-attach-menu{grid-template-columns:repeat(2,minmax(104px,1fr))!important;width:min(244px,calc(100vw - 36px))!important}.leh-lai-attach-menu button{min-height:70px!important}.leh-lai-attach-menu button strong{font-size:11.5px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{border-color:#e8eaee!important;background:#f8f9fa!important;padding:2px!important}.leh-lai-workspace-actions{border-color:transparent!important;background:transparent!important;padding:0!important}
  .leh-lai-side-footer{padding:3px!important}
}
@media(prefers-reduced-motion:reduce){.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions{transition:none!important}}


/* LiDia Edu Home v0.5.27.5 — Stage 9E final conversation composition.
 * Presentation-only: minimal new-chat state, quiet thinking indicator,
 * turn rhythm, fresh-answer entrance and mobile visual-viewport continuity. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty{position:relative;display:grid!important;justify-items:center!important;align-content:center!important;gap:0!important;min-height:100%!important;text-align:center!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo{display:grid!important;place-items:center!important;position:relative!important;width:58px!important;height:58px!important;border:1px solid #e4e7ec!important;border-radius:19px!important;background:linear-gradient(145deg,#f6f8fc 0%,#fbf8fa 58%,#fff 100%)!important;color:#1C3778!important;box-shadow:0 12px 32px rgba(28,55,120,.07),inset 0 0 0 1px rgba(255,255,255,.72)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo:after{content:"";position:absolute;inset:-9px;border:1px solid rgba(127,27,80,.07);border-radius:25px;pointer-events:none}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo-svg{width:28px!important;height:28px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-signal{display:flex;align-items:center;gap:5px;height:8px;margin-top:18px}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-signal i{display:block;width:4px;height:4px;border-radius:999px;background:#7F1B50;opacity:.72}.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-signal i:nth-child(2){background:#1C3778}.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-signal i:nth-child(3){background:#E55050}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty strong{margin-top:11px!important;font-size:20px!important;font-weight:690!important;letter-spacing:-.025em!important;color:#2a3443!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty.is-course-empty .leh-lai-empty-logo{color:#7F1B50!important;background:linear-gradient(145deg,#faf7f9,#f5f7fb)!important}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{margin-bottom:18px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant{margin-bottom:38px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user+.leh-lai-message.is-assistant{margin-top:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant:after{bottom:-19px!important;width:38px!important;opacity:.75}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-actions{margin-top:10px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-fresh{animation:lehLaiTurnIn .24s cubic-bezier(.2,.72,.28,1) both}
@keyframes lehLaiTurnIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-thinking{margin-bottom:24px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-thinking:after{display:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-thinking .leh-lai-message-copy{display:flex!important;align-items:center!important;min-height:28px!important}
.leh-lai-thinking-dots{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 2px}
.leh-lai-thinking-dots i{display:block;width:5px;height:5px;border-radius:999px;background:#7F1B50;animation:lehLaiThinking 1.08s ease-in-out infinite;opacity:.34}
.leh-lai-thinking-dots i:nth-child(2){background:#1C3778;animation-delay:.14s}.leh-lai-thinking-dots i:nth-child(3){background:#E55050;animation-delay:.28s}
@keyframes lehLaiThinking{0%,62%,100%{transform:translateY(0);opacity:.28}31%{transform:translateY(-4px);opacity:.9}}

.leh-lai-app.is-composer-focused .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{border-color:#cbd3de!important;box-shadow:0 10px 28px rgba(25,39,61,.085),0 0 0 3px rgba(28,55,120,.03)!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scroll-padding-bottom:34px!important}
.leh-lai-latest{bottom:98px!important}

@media(max-width:860px){
  .leh-lai-workspace,.leh-lai-main.is-workspace-main{height:var(--leh-lai-visual-height,100dvh)!important;max-height:var(--leh-lai-visual-height,100dvh)!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty{padding:30px 16px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo{width:54px!important;height:54px!important;border-radius:18px!important}.leh-lai-chat-shell.is-workspace-chat .leh-lai-empty-logo-svg{width:26px!important;height:26px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-chat-empty strong{font-size:18px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user{margin-bottom:15px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant{margin-bottom:32px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant:after{bottom:-16px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message-list{scroll-padding-bottom:28px!important}
  .leh-lai-latest{bottom:106px!important}
  .leh-lai-app.is-keyboard-open .leh-lai-latest{bottom:96px!important}
}
@media(prefers-reduced-motion:reduce){.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-fresh{animation:none!important}.leh-lai-thinking-dots i{animation:none!important;opacity:.62!important}}

/* LiDia Edu Home v0.5.27.6 — mobile composer safe-area anchor.
 * Keep the flex-owned composer (not position:fixed), use the device safe area at rest,
 * and collapse to a small natural gap while the software keyboard owns the lower viewport. */
@media(max-width:860px){
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{margin-bottom:max(9px,env(safe-area-inset-bottom))!important}
  .leh-lai-app.is-keyboard-open .leh-lai-chat-shell.is-workspace-chat .leh-lai-composer{margin-bottom:6px!important}
  .leh-lai-attach-menu{bottom:calc(78px + env(safe-area-inset-bottom))!important}
  .leh-lai-app.is-keyboard-open .leh-lai-attach-menu{bottom:72px!important}
  .leh-lai-latest{bottom:calc(97px + max(9px,env(safe-area-inset-bottom)))!important}
  .leh-lai-app.is-keyboard-open .leh-lai-latest{bottom:96px!important}
}

/* LiDia Edu Home v0.5.27.7+ — multilingual direction compatibility only.
 * Typography is owned by the current Premium Academic Reply Renderer below;
 * keep this layer limited to bidi/script flow so old weight rules cannot compete. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich [dir="auto"],
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy[dir="auto"]{text-align:start;unicode-bidi:plaintext}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich [dir="rtl"],
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy[dir="rtl"]{text-align:right;unicode-bidi:plaintext;font-family:"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich [dir="ltr"],
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy[dir="ltr"]{text-align:left;unicode-bidi:plaintext}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-inline-code{direction:ltr;text-align:left;unicode-bidi:isolate}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich [dir="auto"]:dir(rtl),
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy[dir="auto"]:dir(rtl){font-family:"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote[dir="auto"]:dir(rtl){border-left:0!important;border-right:2px solid #d2d9e5!important;border-radius:10px 0 0 10px!important;padding:13px 17px 13px 15px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote[dir="auto"]:dir(rtl):before{right:auto;left:10px}

/* LiDia Edu Home v0.5.28.1 — Premium Academic Reply Renderer.
 * Reading-first hierarchy: black prose at normal weight, selective emphasis,
 * restrained LiDia/blue accents, generous paragraph rhythm and multilingual flow. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich td{
  color:#111318!important;
  font-weight:400!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{
  font-size:15.5px!important;
  line-height:1.74!important;
  letter-spacing:-.002em!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p{
  max-width:72ch!important;
  margin:0 0 20px!important;
  line-height:1.76!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p:last-child{margin-bottom:0!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p+p{margin-top:2px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich strong{
  color:#080a0d!important;
  font-weight:700!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich em{
  color:#292f38!important;
  font-weight:400!important;
  font-style:italic!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{
  color:#090b0f!important;
  font-weight:700!important;
  line-height:1.32!important;
  letter-spacing:-.014em!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin:31px 0 13px!important;font-size:19px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin:25px 0 11px!important;font-size:16.5px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{margin:21px 0 9px!important;font-size:15px!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a{
  color:#1859c9!important;
  font-weight:600!important;
  text-decoration-color:rgba(24,89,201,.30)!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a:hover,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich a:focus{color:#123f94!important;text-decoration-color:#123f94!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ul,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ol{
  max-width:70ch!important;
  margin:12px 0 20px!important;
  padding-inline-start:25px!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li{
  margin:7px 0!important;
  line-height:1.7!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li::marker{color:#7F1B50!important;font-weight:650!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote{
  margin:19px 0!important;
  padding:13px 16px 13px 17px!important;
  border-left:2px solid #cfd5de!important;
  border-radius:0 10px 10px 0!important;
  background:#f8f9fa!important;
  color:#343a44!important;
  line-height:1.7!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table th{
  color:#0e1116!important;
  font-weight:650!important;
  background:#f3f5f7!important;
}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-table td{color:#171a20!important;font-weight:400!important;line-height:1.6!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout-head strong{font-weight:700!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-callout>p{color:#242a32!important;font-weight:400!important;line-height:1.68!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich .leh-lai-inline-code{font-weight:550!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block pre,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-code-block code{font-weight:400!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{color:#15191f!important;font-weight:450!important}

@media(max-width:860px){
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy{font-size:15px!important;line-height:1.72!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p,
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li,
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote,
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich td{font-weight:400!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich>p{margin-bottom:18px!important;line-height:1.74!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2{margin-top:27px!important;font-size:17.5px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3{margin-top:22px!important;font-size:16px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{margin-top:19px!important;font-size:14.5px!important}
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ul,
  .leh-lai-chat-shell.is-workspace-chat .leh-lai-rich ol{margin-bottom:17px!important;padding-inline-start:22px!important}
}

/* v0.5.29.0 — member capacity continuity + public search CTA */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-message-cta{display:inline-flex!important;width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;align-items:center!important;justify-content:center!important;padding:0 12px!important;border:1px solid #cfd9e8!important;border-radius:9px!important;background:#fff!important;color:#1C3778!important;font:700 11px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-message-cta:hover,.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-message-cta:focus{border-color:#9fb2d0!important;background:#f4f7fb!important;color:#162f69!important;outline:none!important}
.leh-lai-app[data-lai-access-type="public"] .leh-lai-composer-toolbar{min-height:8px}
.leh-lai-app[data-lai-access-type="public"] .leh-lai-message.is-assistant .leh-lai-authenticity{color:#5f6c7d}
@media(max-width:760px){.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-actions .leh-lai-message-cta{height:42px!important;min-height:42px!important;padding:0 13px!important;font-size:12px!important}}


/* v0.5.31.0 — capacity continuity + advanced manual Personal AI */
.leh-lai-message.is-capacity-notice{max-width:720px;margin-top:4px;padding:10px 12px;border:1px solid #e3e6eb;border-radius:12px;background:#fafbfc}.leh-lai-message.is-capacity-notice .leh-lai-message-copy{font-size:13px;color:#515966;line-height:1.5}.leh-lai-message.is-capacity-notice .leh-lai-message-actions{margin-top:7px}.leh-lai-personal-advanced{margin-top:10px;border:1px solid #e2e5ea;border-radius:12px;background:#fbfbfc}.leh-lai-personal-advanced>summary{cursor:pointer;padding:11px 12px;font-weight:600;color:#313842}.leh-lai-personal-advanced>div{padding:0 12px 12px}


/* v0.5.31.1 — provider-independent Personal AI connection framework */
.leh-lai-personal-provider-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;padding:10px;border:1px solid #e2e5ea;border-radius:12px;background:#fff}.leh-lai-personal-provider-card>div{display:flex;min-width:0;flex-direction:column;gap:2px}.leh-lai-personal-provider-card small{font-size:10.5px;color:#6a7280}.leh-lai-personal-provider-card strong{font-size:12.5px;font-weight:600;color:#1b2027;overflow-wrap:anywhere}@media(max-width:560px){.leh-lai-personal-provider-card{grid-template-columns:1fr}}

/* v0.5.31.2 — direct Google account authorization */
.leh-lai-google-direct{display:grid;gap:11px;margin-top:10px;padding:14px;border:1px solid #dfe4ea;border-radius:14px;background:#fff}
.leh-lai-google-direct-copy{display:flex;align-items:flex-start;gap:11px;min-width:0}
.leh-lai-google-direct-copy>div{display:grid;gap:3px;min-width:0}
.leh-lai-google-direct-copy strong{color:#171a20;font-size:13.5px;font-weight:650;line-height:1.3}
.leh-lai-google-direct-copy small{color:#626b77;font-size:11.5px;line-height:1.55}
.leh-lai-google-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #d9dee6;border-radius:10px;background:#fafbfc;color:#1c3778;font-size:14px;font-weight:750}
.leh-lai-google-age{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:10px;background:#f7f8fa;color:#4b535e;font-size:11px;line-height:1.45;cursor:pointer}
.leh-lai-google-age input{flex:0 0 auto;margin-top:2px}
.leh-lai-google-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:42px!important;padding:0 14px!important;border:1px solid #cfd6df!important;border-radius:11px!important;background:#fff!important;color:#20252c!important;font-size:12px!important;font-weight:650!important;box-shadow:0 1px 2px rgba(26,36,49,.04)!important;cursor:pointer!important}
.leh-lai-google-button:hover,.leh-lai-google-button:focus-visible{border-color:#aeb9c8!important;background:#f8fafc!important;outline:none!important}
.leh-lai-google-button:focus-visible{box-shadow:0 0 0 3px rgba(28,55,120,.12)!important}
.leh-lai-google-button:disabled{opacity:.55!important;cursor:not-allowed!important}
.leh-lai-google-button>span{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#f2f4f7;color:#1c3778;font-size:11px;font-weight:750}
.leh-lai-google-connector-state{display:block;color:#78818e;font-size:10.5px;line-height:1.45}
.leh-lai-personal-account{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:11px 12px;border:1px solid #dce5df;border-radius:12px;background:#f7fbf8}
.leh-lai-personal-account>div{display:grid;gap:2px;min-width:0}
.leh-lai-personal-account small{color:#6d7885;font-size:10px}
.leh-lai-personal-account strong{overflow:hidden;color:#1f2925;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.leh-lai-personal-account>span{flex:0 0 auto;padding:5px 8px;border-radius:8px;background:#fff5df;color:#85631a;font-size:9.5px;font-weight:650;white-space:nowrap}
@media(max-width:560px){.leh-lai-google-direct{padding:12px}.leh-lai-google-button{min-height:46px!important}.leh-lai-personal-account{align-items:flex-start;flex-direction:column}.leh-lai-personal-account>span{white-space:normal}}

/* v0.5.31.3 — Personal Google AI capacity activation */
.leh-lai-google-activation{display:grid;gap:10px;margin:10px 0;padding:12px;border:1px solid #dfe5ec;border-radius:12px;background:#fbfcfd}
.leh-lai-google-activation>div:first-child{display:grid;gap:3px}.leh-lai-google-activation strong{color:#1d2630;font-size:12px;font-weight:600}.leh-lai-google-activation small{color:#687585;font-size:10.5px;line-height:1.5}
.leh-lai-google-activation-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.leh-lai-google-activation-actions button,.leh-lai-google-activation-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #1C3778;border-radius:10px;background:#fff;color:#1C3778;font:600 10.5px Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}.leh-lai-google-activation-actions button:hover,.leh-lai-google-activation-actions button:focus,.leh-lai-google-activation-actions a:hover,.leh-lai-google-activation-actions a:focus{background:#1C3778;color:#fff;outline:none}.leh-lai-google-activation-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.leh-lai-google-activation-actions{display:grid;grid-template-columns:1fr}.leh-lai-google-activation-actions button,.leh-lai-google-activation-actions a{min-height:44px;width:100%}}

/* v0.5.31.5 public Personal AI entry */
.leh-lai-google-side-mark{display:grid;place-items:center;width:22px;height:22px;border:1px solid #d9e0ea;border-radius:7px;background:#fff;color:#1c3778;font:700 12px Arial,Helvetica,sans-serif}.leh-lai-access-note>button{border:1px solid #cfd9e8;border-radius:10px;background:#fff;color:#1c3778;padding:8px 11px;font:700 10px Arial,Helvetica,sans-serif;cursor:pointer;margin-right:7px}.leh-lai-access-note>button:hover,.leh-lai-access-note>button:focus{background:#f5f8fc;outline:none}


/* LiDia Edu Home v0.5.32.1 — shared General/Course L-AI typography integrity.
 * Final cascade owner for learner questions and academic reply prose. Provider
 * emphasis cannot turn ordinary paragraphs into a bold wall; semantic headings
 * and short <strong> emphasis remain intentionally distinct. */
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message-copy{font-weight:400!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-user .leh-lai-message-copy{font-weight:400!important;color:#15191f!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-message.is-assistant .leh-lai-message-copy,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich{font-weight:400!important;white-space:normal!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich p,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich li,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich blockquote,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich td{font-weight:400!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich strong{font-weight:700!important}
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h2,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h3,
.leh-lai-chat-shell.is-workspace-chat .leh-lai-rich h4{font-weight:700!important}

/* LiDia Edu Home Dual-AI Academic Gateway — Google AI primary, L-AI secondary. */
.leh-dual-ai-tabs{display:flex;align-items:center;gap:6px;padding:8px 16px;border-bottom:1px solid #e7e9ed;background:#fff;position:relative;z-index:6}
.leh-dual-ai-tabs button{display:grid;grid-template-columns:auto auto;align-items:center;gap:6px;min-height:38px;padding:7px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:#667284;cursor:pointer;font:inherit}
.leh-dual-ai-tabs button strong{font-size:12px;font-weight:700;color:inherit}.leh-dual-ai-tabs button small{padding:2px 6px;border-radius:999px;background:#f1f3f6;color:#7a8492;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.leh-dual-ai-tabs button:hover,.leh-dual-ai-tabs button:focus-visible{background:#f6f7f9;color:#24344a;outline:none}.leh-dual-ai-tabs button.is-active{border-color:#d8deea;background:#f7f9fc;color:#1c3778}.leh-dual-ai-tabs button.is-active small{background:#eaf0fa;color:#1c3778}
.leh-ai-academic-rail{display:grid;gap:4px;margin:8px 10px 12px;padding:10px;border:1px solid #e0e5ec;border-radius:12px;background:#fafbfc;min-width:0}
.leh-ai-academic-rail>span{color:#7a8595;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.leh-ai-academic-rail>strong{overflow:hidden;color:#2d3a4d;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.leh-ai-academic-rail>small{overflow:hidden;color:#6d7888;font-size:9px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.leh-ai-academic-rail>a{margin-top:5px;color:#1c3778;font-size:9px;font-weight:800;text-decoration:none}
.leh-gai-panel{flex:1 1 auto;min-height:0;overflow:auto;padding:clamp(24px,5vh,54px) max(18px,calc((100% - 860px)/2)) 44px;background:linear-gradient(180deg,#fbfcfd 0%,#f7f8fa 100%)}
.leh-gai-panel[hidden]{display:none!important}.leh-gai-card{width:min(820px,100%);margin:0 auto;padding:clamp(22px,4vw,38px);border:1px solid #e0e4ea;border-radius:24px;background:#fff;box-shadow:0 18px 52px rgba(31,45,67,.07)}
.leh-gai-card-head{display:flex;align-items:center;gap:13px;margin-bottom:16px}.leh-gai-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#f4f6fa,#f9f2f5);color:#1c3778;font-size:20px;font-weight:800;box-shadow:inset 0 0 0 1px #e6e9ef}.leh-gai-card-head small{display:block;color:#7a8494;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.leh-gai-card h2{margin:3px 0 0;color:#263449;font-size:clamp(21px,3vw,28px);line-height:1.15;letter-spacing:-.03em}.leh-gai-card>p{max-width:690px;margin:0 0 18px;color:#5e6b7d;font-size:13px;line-height:1.7}
.leh-gai-context-mini{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}.leh-gai-context-mini span{max-width:100%;padding:6px 9px;border:1px solid #e0e5eb;border-radius:999px;background:#f8fafc;color:#4f5d71;font-size:9px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leh-gai-question{display:grid;gap:7px}.leh-gai-question>span{color:#47556a;font-size:10px;font-weight:850}.leh-gai-question textarea{width:100%;min-height:150px;max-height:320px;padding:15px 16px;border:1px solid #d7dde6;border-radius:17px;background:#fbfcfd;color:#263449;font:inherit;font-size:14px;line-height:1.6;resize:vertical;box-sizing:border-box}.leh-gai-question textarea:focus{border-color:#9fb1ce;box-shadow:0 0 0 3px rgba(28,55,120,.07);outline:none}
.leh-gai-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:13px}.leh-gai-actions button,.leh-gai-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 15px;border-radius:12px;font-size:11px;font-weight:850;text-decoration:none;box-sizing:border-box}.leh-gai-copy{border:1px solid #1c3778;background:#1c3778;color:#fff;cursor:pointer}.leh-gai-copy:hover,.leh-gai-copy:focus-visible{background:#25478f;outline:none}.leh-gai-copy:disabled{opacity:.55;cursor:wait}.leh-gai-open{border:1px solid #d6dce5;background:#fff;color:#34445a}.leh-gai-open:hover,.leh-gai-open:focus-visible{border-color:#aebbd0;background:#f7f9fc;outline:none}
.leh-gai-state{margin:11px 0 0!important;color:#748093!important;font-size:9.5px!important;line-height:1.5!important}.leh-gai-manual{display:grid;gap:6px;margin-top:12px}.leh-gai-manual[hidden]{display:none!important}.leh-gai-manual span{color:#5f6c7e;font-size:9px;font-weight:800}.leh-gai-manual textarea{width:100%;padding:11px;border:1px solid #dce2ea;border-radius:12px;background:#f8fafc;color:#334157;font-size:11px;line-height:1.5;box-sizing:border-box}
.leh-ai-mobile-bar{display:none}
@media(max-width:860px){
  .leh-dual-ai-tabs{padding:7px 10px}.leh-dual-ai-tabs button{flex:1 1 0;grid-template-columns:auto;justify-items:center;gap:2px;min-height:44px;padding:5px 8px}.leh-dual-ai-tabs button small{font-size:7px}
  .leh-gai-panel{padding:18px 12px calc(102px + env(safe-area-inset-bottom))}.leh-gai-card{padding:20px 16px;border-radius:19px;box-shadow:0 10px 30px rgba(31,45,67,.055)}.leh-gai-card-head{margin-bottom:13px}.leh-gai-mark{width:40px;height:40px}.leh-gai-card>p{font-size:12.5px}.leh-gai-question textarea{min-height:132px;font-size:16px}.leh-gai-actions{display:grid;grid-template-columns:1fr 1fr}.leh-gai-actions button,.leh-gai-actions a{width:100%;min-height:46px}
  .leh-ai-mobile-bar{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:10030;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;border:1px solid rgba(210,216,225,.92);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(27,40,61,.16);backdrop-filter:blur(14px)}
  .leh-ai-mobile-bar .leh-ai-mobile-context{grid-column:1/-1;display:flex;align-items:center;gap:6px;min-width:0;padding:4px 8px 2px}.leh-ai-mobile-context strong,.leh-ai-mobile-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leh-ai-mobile-context strong{max-width:46%;color:#354359;font-size:9px}.leh-ai-mobile-context span{flex:1;color:#768194;font-size:8px}
  .leh-ai-mobile-bar>button,.leh-ai-mobile-bar>a{display:grid;grid-template-rows:18px auto;place-items:center;min-width:0;min-height:46px;padding:4px 3px;border:0;border-radius:12px;background:transparent;color:#667286;text-decoration:none;font:inherit;cursor:pointer}.leh-ai-mobile-bar>button strong,.leh-ai-mobile-bar>a strong{font-size:13px;line-height:1}.leh-ai-mobile-bar>button span,.leh-ai-mobile-bar>a span{max-width:100%;overflow:hidden;font-size:7.5px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.leh-ai-mobile-bar>button.is-active{background:#eef3fb;color:#1c3778}
  .leh-lai-chat-shell.is-workspace-chat{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  .leh-ai-academic-rail{display:none}.leh-lai-app.is-ai-context-open .leh-gai-context-mini{padding:10px;border:1px solid #dce2eb;border-radius:12px;background:#f8fafc}
}
@media(max-width:430px){.leh-gai-actions{grid-template-columns:1fr}.leh-ai-mobile-bar{left:7px;right:7px}.leh-gai-card{padding:18px 14px}}

/* Dual-AI continuity — keep L-AI useful when shared capacity/evidence is unavailable. */
.leh-lai-continuity-card{max-width:760px!important;margin:8px 0!important;padding:18px 18px 16px!important;border:1px solid #d9e1ec!important;border-radius:18px!important;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important;box-shadow:0 12px 30px rgba(24,43,76,.07)}
.leh-lai-continuity-card .leh-lai-message-meta{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;background:#edf2f8;color:#1C3778;font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.leh-lai-continuity-card .leh-lai-message-copy{margin-top:10px;color:#344156!important;font-size:14px!important;line-height:1.65!important}
.leh-lai-continuity-card .leh-lai-message-actions{margin-top:13px!important;padding-top:11px;border-top:1px solid #e5e9ef}
.leh-lai-continuity-card .leh-lai-message-action{display:none!important}
.leh-lai-continuity-card .leh-lai-message-cta.is-google-continuity{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 16px;border:0;border-radius:12px;background:#1C3778;color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.leh-lai-continuity-card.is-capacity{border-left:4px solid #7F1B50!important}
.leh-lai-continuity-card.is-temporary{border-left:4px solid #1C3778!important}
.leh-lai-continuity-card.is-evidence{border-left:4px solid #E55050!important}
@media(max-width:860px){.leh-lai-continuity-card{margin:8px 8px!important;padding:15px!important;border-radius:15px!important}.leh-lai-continuity-card .leh-lai-message-cta.is-google-continuity{width:100%;min-height:46px}}

/* LiDia Edu Home v0.5.43.11 — Restored Course Context + Premium Google AI Workspace.
 * Google Primary presentation only. L-AI conversation UX above remains unchanged. */
[data-ai-panel="lai"][hidden]{display:none!important}
.leh-dual-ai-tabs{justify-content:center;gap:12px;padding:11px 18px 12px;border-bottom:1px solid #eceef1;background:#fff;box-shadow:0 1px 0 rgba(31,35,41,.02)}
.leh-dual-ai-tabs button{position:relative;display:flex;grid-template-columns:none;align-items:center;justify-content:flex-start;gap:10px;width:min(238px,calc(50% - 6px));min-height:54px;padding:8px 14px;border:1px solid #e2e5e9;border-radius:16px;background:#fff;color:#535b66;box-shadow:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}
.leh-dual-ai-tabs button:hover,.leh-dual-ai-tabs button:focus-visible{border-color:#cfd4db;background:#fff;color:#20242a;box-shadow:0 6px 20px rgba(32,39,49,.06);outline:none}
.leh-dual-ai-tabs button.is-active{border-color:#cfd5de;background:#fff;color:#20242a;box-shadow:0 8px 24px rgba(31,38,48,.075)}
.leh-dual-ai-tabs button.is-active::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;border-radius:999px;background:#1c3778}
.leh-dual-ai-tabs button[data-ai-tab="gai"].is-active::after{background:linear-gradient(90deg,#4285F4 0 25%,#34A853 25% 50%,#FBBC05 50% 75%,#EA4335 75%)}
.leh-dual-ai-tab-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#fff}
.leh-dual-ai-google-mark svg{width:25px;height:25px;display:block}.leh-dual-ai-lai-mark{border:1px solid #ebe3e8;background:#fcfafb}.leh-dual-ai-lai-icon{width:22px;height:22px;display:block}
.leh-dual-ai-tab-copy{display:grid;min-width:0;gap:1px;text-align:left}.leh-dual-ai-tabs button .leh-dual-ai-tab-copy strong{color:#20242a;font-size:12px;font-weight:760;line-height:1.25}.leh-dual-ai-tabs button .leh-dual-ai-tab-copy small{padding:0;background:transparent;color:#9298a1;font-size:8px;font-weight:760;letter-spacing:.055em;line-height:1.25;text-transform:uppercase}
.leh-dual-ai-tabs button.is-active .leh-dual-ai-tab-copy small{background:transparent;color:#68717d}

.leh-gai-panel{display:flex;flex:1 1 auto;align-items:center;justify-content:center;min-height:0;overflow:auto;padding:clamp(18px,2.8vh,30px) max(22px,calc((100% - 900px)/2)) 28px!important;background:#fff!important}
.leh-gai-panel[hidden]{display:none!important}
.leh-gai-focus{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(780px,100%);min-height:0;margin:auto;text-align:center}
.leh-gai-focus-head{display:grid;justify-items:center;gap:7px;margin-bottom:10px}.leh-gai-mark{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:0;background:transparent;box-shadow:none}.leh-gai-mark svg{display:block;width:39px;height:39px}.leh-gai-focus-head h2{margin:0;color:#202124;font-size:clamp(21px,2.35vw,27px);font-weight:620;line-height:1.15;letter-spacing:-.025em}
.leh-gai-course-ready{display:inline-flex;align-items:center;gap:7px;min-height:28px;margin:0 0 10px;padding:5px 10px;border:1px solid #e4e7eb;border-radius:999px;background:#fafafa;color:#68707b;font-size:8.7px;line-height:1.2}.leh-gai-course-ready span{width:7px;height:7px;border-radius:50%;background:#9aa0a6;box-shadow:0 0 0 3px rgba(154,160,166,.09)}.leh-gai-course-ready strong{font-weight:760}.leh-gai-course-ready.is-ready{border-color:#dce8df;background:#fbfdfb;color:#3f6650}.leh-gai-course-ready.is-ready span{background:#34a853;box-shadow:0 0 0 3px rgba(52,168,83,.1)}.leh-gai-course-ready.is-preparing span{animation:leh-gai-pulse 1.1s ease-in-out infinite}.leh-gai-course-ready.is-error{border-color:#efdede;background:#fffafa;color:#9a4d4d}.leh-gai-course-ready.is-error span{background:#d65a5a;box-shadow:0 0 0 3px rgba(214,90,90,.08)}
@keyframes leh-gai-pulse{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1)}}
.leh-gai-context-mini{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;min-height:0;margin:0 0 14px}.leh-gai-context-mini:empty{display:none}.leh-gai-context-mini span{max-width:220px;padding:5px 9px;border:1px solid #e4e7eb;border-radius:999px;background:#fff;color:#68707b;font-size:8.5px;font-weight:720;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leh-gai-question{display:block;width:100%;max-width:760px}.leh-gai-composer-shell{display:block;width:100%;padding:12px 17px;border:1px solid #d9dde3;border-radius:24px;background:#fff;box-shadow:0 10px 34px rgba(31,35,41,.075);box-sizing:border-box;transition:border-color .16s ease,box-shadow .16s ease}
.leh-gai-composer-shell:focus-within{border-color:#bcc3cc;box-shadow:0 0 0 3px rgba(28,55,120,.045),0 13px 36px rgba(31,35,41,.085)}
.leh-gai-question textarea{width:100%;min-height:50px;max-height:126px;padding:6px 0;border:0!important;border-radius:0!important;background:transparent!important;color:#202124;font:inherit;font-size:14px;line-height:1.5;resize:none!important;box-shadow:none!important;outline:none!important;box-sizing:border-box;overflow-y:auto}.leh-gai-question textarea::placeholder{color:#8d949d}
.leh-gai-context-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}.leh-gai-context-actions>*{box-sizing:border-box}
.leh-gai-copy,.leh-gai-open.is-main{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 14px;border-radius:14px;font:inherit;font-size:10px;font-weight:790;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:none;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}
.leh-gai-copy{border:1px solid #202124;background:#202124;color:#fff;cursor:pointer}.leh-gai-copy:hover,.leh-gai-copy:focus-visible{background:#303134;outline:none}.leh-gai-copy:active{transform:translateY(1px)}.leh-gai-copy:disabled{opacity:.52;cursor:wait;transform:none}
.leh-gai-open.is-main{border:1px solid #d8dde3;background:#fff;color:#303740}.leh-gai-open.is-main:hover,.leh-gai-open.is-main:focus-visible{border-color:#bfc7d0;background:#fafafa;outline:none}
.leh-gai-back-course{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px;color:#69727e;font-size:9.5px;font-weight:740;text-decoration:none}.leh-gai-back-course:hover,.leh-gai-back-course:focus-visible{color:#1c3778;text-decoration:underline;outline:none}
.leh-gai-state{max-width:680px;margin:8px auto 0!important;color:#777f89!important;font-size:9px!important;line-height:1.45!important;text-align:center}.leh-gai-state:empty{display:none}.leh-gai-state.is-quiet{font-weight:620}
.leh-gai-manual{display:grid;width:min(680px,100%);gap:6px;margin-top:10px;text-align:left}.leh-gai-manual[hidden]{display:none!important}.leh-gai-manual span{color:#666e79;font-size:8.5px;font-weight:760}.leh-gai-manual textarea{width:100%;max-height:170px;padding:11px 12px;border:1px solid #e0e3e7;border-radius:13px;background:#fafafa;color:#343a42;font-size:10px;line-height:1.5;box-sizing:border-box}

@media(max-width:860px){
  .leh-dual-ai-tabs{gap:7px;padding:7px 10px 8px}.leh-dual-ai-tabs button{width:calc(50% - 4px);min-height:48px;padding:6px 9px;border-radius:14px}.leh-dual-ai-tab-mark{flex-basis:29px;width:29px;height:29px;border-radius:9px}.leh-dual-ai-google-mark svg{width:22px;height:22px}.leh-dual-ai-lai-icon{width:19px;height:19px}.leh-dual-ai-tabs button .leh-dual-ai-tab-copy strong{font-size:10.5px}.leh-dual-ai-tabs button .leh-dual-ai-tab-copy small{font-size:7px}
  .leh-gai-panel{align-items:flex-start;padding:clamp(24px,5vh,46px) 14px calc(96px + env(safe-area-inset-bottom))!important}.leh-gai-focus{justify-content:flex-start}.leh-gai-focus-head{gap:6px;margin-bottom:9px}.leh-gai-mark{width:42px;height:42px}.leh-gai-mark svg{width:35px;height:35px}.leh-gai-focus-head h2{font-size:22px}.leh-gai-course-ready{margin-bottom:9px}.leh-gai-context-mini{margin-bottom:12px}.leh-gai-composer-shell{padding:10px 14px;border-radius:21px}.leh-gai-question textarea{min-height:48px;max-height:116px;font-size:16px}.leh-gai-context-actions{gap:7px}.leh-gai-copy,.leh-gai-open.is-main{min-height:40px;padding:8px 12px;border-radius:13px}
}
@media(max-width:430px){
  .leh-dual-ai-tabs{gap:5px;padding-left:8px;padding-right:8px}.leh-dual-ai-tabs button{padding:5px 7px}.leh-dual-ai-tab-mark{flex-basis:27px;width:27px;height:27px}.leh-gai-panel{padding-left:11px!important;padding-right:11px!important}.leh-gai-focus-head h2{font-size:20px}.leh-gai-context-mini span{max-width:155px}.leh-gai-context-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:760px}.leh-gai-copy,.leh-gai-open.is-main{width:100%}.leh-gai-back-course{grid-column:1/-1}
}

/* LiDia Edu Home v0.5.44.1 — governed Train L-AI member doorway.
 * Brain owns submissions/review/publication; Home exposes only member-safe input and status. */
.leh-lai-training-panel{position:absolute;z-index:82;inset:0 0 0 auto;width:min(500px,94%);padding:18px;border-left:1px solid #e3e6eb;background:#fff;box-shadow:-12px 0 30px rgba(22,39,67,.09);overflow:auto}
.leh-lai-training-panel[hidden]{display:none!important}.leh-lai-training-governance{margin:14px 0;padding:11px 12px;border:1px solid #dfe5ed;border-radius:12px;background:#f8f9fb}.leh-lai-training-governance strong{display:block;color:#2e3a4a;font:800 10px/1.25 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-training-governance p{margin:4px 0 0;color:#778393;font:620 9px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-training-form{display:grid;gap:10px}.leh-lai-training-form label{display:grid;gap:5px}.leh-lai-training-form label>span{color:#6b7787;font:800 9px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.leh-lai-training-form textarea,.leh-lai-training-form input,.leh-lai-training-form select{width:100%;border:1px solid #d9e0e9;border-radius:11px;background:#fff;color:#2c3b50;font:500 11px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;outline:none}.leh-lai-training-form textarea{min-height:72px;padding:10px 11px;resize:vertical}.leh-lai-training-form input,.leh-lai-training-form select{min-height:40px;padding:7px 10px}.leh-lai-training-form textarea:focus,.leh-lai-training-form input:focus,.leh-lai-training-form select:focus{border-color:#a9b9d2;box-shadow:0 0 0 2px rgba(28,55,120,.06)}.leh-lai-training-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);gap:9px}.leh-lai-training-form>button{min-height:40px;border:1px solid #1C3778;border-radius:11px;background:#1C3778;color:#fff;font:800 10.5px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer}.leh-lai-training-form>button:hover,.leh-lai-training-form>button:focus{background:#152f68;outline:none}.leh-lai-training-form>button:disabled{opacity:.55;cursor:wait}.leh-lai-training-state{min-height:16px;margin:0;color:#657386;font:650 9px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.leh-lai-training-history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:15px 0 8px;padding-top:13px;border-top:1px solid #e8ecf2}.leh-lai-training-history-head strong,.leh-lai-training-history-head small{display:block}.leh-lai-training-history-head strong{color:#2d3949;font:800 10px/1.2 Inter,sans-serif}.leh-lai-training-history-head small{margin-top:3px;color:#838d9b;font:620 8.5px/1.35 Inter,sans-serif}.leh-lai-training-history-head button{min-height:30px;padding:5px 9px;border:1px solid #d7dee8;border-radius:9px;background:#fff;color:#42536a;font:750 9px/1 Inter,sans-serif;cursor:pointer}.leh-lai-training-history{display:grid;gap:7px}.leh-lai-training-empty{margin:0;padding:13px;border:1px dashed #d8e0e9;border-radius:11px;background:#fafbfd;color:#798697;font:620 9px/1.5 Inter,sans-serif}.leh-lai-training-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e2e7ed;border-radius:11px;background:#fff}.leh-lai-training-item strong,.leh-lai-training-item small{display:block}.leh-lai-training-item strong{overflow:hidden;color:#2f3d50;font:760 10px/1.35 Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap}.leh-lai-training-item small{margin-top:3px;color:#87919f;font:620 8px/1.35 Inter,sans-serif}.leh-lai-training-status{display:inline-flex;align-items:center;min-height:24px;padding:4px 7px;border-radius:999px;background:#f0f2f5;color:#677386;font:800 8px/1 Inter,sans-serif;white-space:nowrap}.leh-lai-training-status.is-approved{background:#edf7f0;color:#2d6b42}.leh-lai-training-status.is-rejected{background:#fff0f0;color:#9a4545}.leh-lai-training-status.is-hold{background:#fff7e8;color:#8a651b}.leh-lai-training-status.is-submitted{background:#eef3fa;color:#385b83}
.leh-lai-settings-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.leh-lai-settings-actions>button{height:100%}
@media(max-width:860px){.leh-lai-training-panel{position:fixed;z-index:100092;inset:52px 0 0 auto;width:min(94vw,500px);padding:14px;border-left:1px solid #dce3ed;box-shadow:-16px 0 38px rgba(20,33,52,.16)}.leh-lai-training-grid{grid-template-columns:1fr}}
@media(max-width:430px){.leh-lai-training-panel{width:100vw;inset:52px 0 0 0;border-left:0}.leh-lai-training-item{grid-template-columns:1fr}.leh-lai-training-status{justify-self:start}.leh-lai-settings-actions{grid-template-columns:1fr}}

/* LiDia Edu Home v0.5.44.7 — L-AI sidebar expand-control polish.
 * v0.5.44.6 stable-primary behavior remains unchanged; only the collapsed expand control is made fully visible and padded.
 */

/* LiDia Edu Home v0.5.44.6 — L-AI stable-primary sidebar refinement.
 * Full sidebar remains the primary/default desktop state. Collapsed mode is a clean icon-only rail. */
.leh-lai-app.is-sidebar-collapsed .leh-ai-academic-rail{display:none!important}

