
/* /styles.css */
:root{--hero-image:url('/assets/hero-approved.png');--navy:#17388f;--navy2:#0d2d78;--navy3:#09255f;--blue:#1d63d7;--red:#eb1b2e;--yellow:#ffcc2f;--green:#10a35a;--ink:#13316b;--text:#17233d;--muted:#78869d;--bg:#f7f9fc;--card:#fff;--line:#e4eaf2;--shadow:0 10px 26px rgba(23,56,143,.08);--radius:15px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Cairo",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:12px}.full{width:100%}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stack{display:grid;gap:14px}.spacer{flex:1}
.primary-btn,.secondary-btn,.soft-btn,.round-btn,.btn-sm,.danger-btn{border:0;font-weight:800;transition:.18s}.primary-btn{background:var(--red);color:#fff;padding:11px 18px;border-radius:9px;box-shadow:0 7px 18px rgba(235,27,46,.18)}.primary-btn:hover{transform:translateY(-1px)}.secondary-btn{background:var(--navy);color:#fff;padding:11px 18px;border-radius:9px}.soft-btn{background:#eef4ff;color:var(--navy);padding:10px 15px;border-radius:10px}.round-btn{width:44px;height:44px;border-radius:50%;background:#fff;color:var(--navy);border:1px solid var(--line);display:grid;place-items:center}.btn-sm{padding:8px 11px;border-radius:8px;background:#eef4ff;color:var(--navy);font-size:12px}.btn-sm.success{background:#e8f8ef;color:#148145}.btn-sm.danger,.danger-btn{background:#fff0f1;color:var(--red)}.xl{padding:14px 25px;font-size:15px}
.marketing-header{height:88px;background:#fff;display:flex;align-items:center;gap:25px;padding:8px 5vw;border-top:4px solid var(--navy);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand-image img{width:165px;display:block}.landing-search{flex:1;max-width:520px;border:1px solid #d8e0eb;border-radius:10px;padding:12px 16px;color:#98a3b4;background:#fff}.marketing-actions{display:flex;align-items:center;gap:10px}.phone-compact{display:grid;grid-template-columns:auto auto;gap:0 8px;text-decoration:none;color:#121c2e;direction:ltr;align-items:center}.phone-compact>span{grid-row:1/3;background:#26282b;color:#fff;width:43px;height:43px;border-radius:8px;display:grid;place-items:center;font-size:22px}.phone-compact b{font-size:22px;color:var(--navy);line-height:1.1}.phone-compact small{font-size:11px;color:#68748a}
.landing-view{max-width:1480px;margin:auto;padding-bottom:50px}.landing-nav{margin:12px 2.2%;height:58px;border-radius:12px;background:linear-gradient(90deg,#243c9c,#143181);display:flex;align-items:center;justify-content:center;gap:12px;padding:8px}.landing-nav button{border:0;background:transparent;color:#fff;font-weight:800;padding:10px 15px}.approved-hero{margin:0 2.2%;height:310px;background:var(--hero-image) center/cover no-repeat;border-radius:4px;position:relative;overflow:hidden}.landing-hero-actions{position:absolute;bottom:20px;right:62%;display:flex;gap:10px}.landing-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 2.2%}.landing-cards article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow)}.landing-cards article>span{width:50px;height:50px;border-radius:13px;background:#eef4ff;display:grid;place-items:center;font-size:24px}.landing-cards b,.landing-cards small{display:block}.landing-cards b{color:var(--navy);font-size:15px}.landing-cards small{font-size:12px;color:var(--muted);margin-top:3px}
.app-shell{display:flex;min-height:100vh;background:#fff}.sidebar{width:205px;min-width:205px;background:linear-gradient(180deg,#17388f 0%,#0b2c73 70%,#09255f 100%);color:#fff;display:flex;flex-direction:column;padding:0 11px 18px;position:sticky;top:0;height:100vh;z-index:40}.side-brand{height:104px;background:#fff;margin:0 -11px 10px;display:grid;place-items:center;border-left:1px solid var(--line)}.side-brand img{width:145px}.mobile-close{display:none}.role-chip{display:none}.side-nav{display:grid;gap:6px;padding-top:6px;overflow:auto}.nav-item{border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:10px;text-align:right;font-weight:700;opacity:.96}.nav-item:hover{background:rgba(255,255,255,.08)}.nav-item.active{background:#fff;color:var(--navy);box-shadow:0 8px 20px rgba(0,0,0,.1)}.nav-icon{width:24px;text-align:center;font-size:17px}.sidebar-support{margin-top:auto;border:1px solid rgba(255,255,255,.25);border-radius:15px;padding:13px 9px;text-align:center;background:rgba(0,50,130,.45)}.sidebar-support .support-headset{font-size:30px}.sidebar-support b,.sidebar-support small{display:block}.sidebar-support small{opacity:.8;font-size:11px}.sidebar-support a{display:block;margin-top:10px;background:var(--red);color:#fff;text-decoration:none;border-radius:9px;padding:9px 4px;font-size:15px;font-weight:900;direction:ltr}.logout-btn{margin-top:10px;border:0;background:rgba(255,255,255,.1);color:#fff;padding:10px;border-radius:9px;font-weight:800}
.app-main{flex:1;min-width:0;background:#fff}.app-header{height:98px;background:#fff;border-top:4px solid var(--navy);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:8px 28px;position:sticky;top:0;z-index:30}.profile-block{display:flex;align-items:center;gap:9px;min-width:230px}.menu-btn{display:none;border:0;background:#eef4ff;color:var(--navy);border-radius:8px;width:40px;height:40px}.profile-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d9e6ff,#f5f8ff);border:2px solid #fff;box-shadow:0 0 0 1px #dce4ef;color:var(--navy);font-weight:900}.profile-block b,.profile-block small{display:block}.profile-block b{font-size:13px;color:var(--navy)}.profile-block small{font-size:10px;color:var(--muted)}.profile-chevron{color:#111}.app-logo img{width:145px}.header-center{flex:1;display:flex;justify-content:center}.search-box{min-width:300px;max-width:470px;width:100%;height:44px;border:1px solid #dce3ed;background:#fff;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 13px;color:var(--navy)}.search-box input{border:0;outline:0;width:100%;background:transparent;color:var(--text)}.app-header-actions{display:flex;align-items:center;gap:8px}.notification-btn{position:relative}.notification-btn i{position:absolute;top:-4px;right:-2px;background:var(--red);color:#fff;border-radius:50%;font-size:9px;min-width:18px;height:18px;display:grid;place-items:center;font-style:normal}.account-button{background:var(--navy)}.student-button{background:var(--red)}.phone-box{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);direction:ltr;margin-left:4px}.phone-box .phone-icon{width:43px;height:43px;background:#282a2e;color:#fff;border-radius:8px;display:grid;place-items:center;font-size:22px}.phone-box b,.phone-box small{display:block}.phone-box b{font-size:19px;color:var(--navy);line-height:1}.phone-box small{font-size:9px;color:#66748a;margin-top:4px}
.top-quick-nav{height:60px;margin:12px 18px 0;border-radius:12px;background:linear-gradient(90deg,#263f9f,#14317f);display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 10px;box-shadow:0 6px 16px rgba(18,48,123,.15);overflow:auto}.topnav-item{border:0;background:transparent;color:#fff;padding:10px 13px;white-space:nowrap;border-radius:8px;font-weight:800;font-size:12px}.topnav-item.active,.topnav-item:hover{background:rgba(255,255,255,.13)}
.page-content{padding:0 18px 28px;background:#fff;min-height:calc(100vh - 170px)}.student-hero{height:245px;margin-top:0;border-radius:0;background:var(--hero-image) center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}.student-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.student-stat{min-height:122px;border:1px solid var(--line);border-radius:14px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 5px 14px rgba(21,55,135,.04)}.student-stat .stat-copy{text-align:right}.student-stat small,.student-stat b{display:block}.student-stat small{font-weight:800;color:var(--navy)}.student-stat b{font-size:29px;color:var(--red);line-height:1.25}.student-stat p{margin:2px 0 0;font-size:11px;color:var(--muted)}.student-stat .big-ico{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:28px}.student-stat.green{background:linear-gradient(135deg,#fbfffd,#eafbf1)}.student-stat.green .big-ico{background:#cff5dd}.student-stat.blue{background:linear-gradient(135deg,#fff,#edf6ff)}.student-stat.blue .big-ico{background:#d9ebff}.student-stat.yellow{background:linear-gradient(135deg,#fff,#fff8dc)}.student-stat.yellow .big-ico{background:#fff0b4}.student-stat.pink{background:linear-gradient(135deg,#fff,#fff0f3)}.student-stat.pink .big-ico{background:#ffdbe2}.student-grid{display:grid;grid-template-columns:1.05fr 1.05fr 1.25fr;gap:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;box-shadow:0 5px 15px rgba(31,58,111,.035);margin-bottom:12px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.panel-head h3{margin:0;color:var(--navy);font-size:15px}.panel-head p{margin:2px 0 0;font-size:11px;color:var(--muted)}.panel-head button{border:0;background:transparent;color:#1b67df;font-weight:800;font-size:11px}.schedule-item,.announcement-item,.homework-line{border:1px solid var(--line);border-radius:10px;padding:10px 11px;margin-top:8px;display:flex;align-items:center;gap:10px}.schedule-item .schedule-icon{width:45px;height:45px;border-radius:9px;background:#ffedb5;display:grid;place-items:center;font-size:20px}.schedule-item b,.schedule-item small,.announcement-item b,.announcement-item small{display:block}.schedule-item b,.announcement-item b{font-size:12px;color:var(--navy)}.schedule-item small,.announcement-item small{font-size:10px;color:var(--muted)}.schedule-time{margin-right:auto;text-align:left;font-size:10px;color:#7c8aa1}.live-pill{display:inline-block;background:var(--red);color:#fff;border-radius:8px;padding:2px 7px;font-size:9px;font-weight:800}.announcement-item{background:#fff}.announcement-item.important{background:#fff0f2}.announcement-icon{width:42px;height:42px;border-radius:9px;background:#eaf1ff;display:grid;place-items:center}.announcement-item.important .announcement-icon{background:#ffdbe1}.quick-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-action{border:1px solid var(--line);background:#fff;border-radius:11px;padding:14px 10px;text-align:center;color:var(--navy);font-weight:800}.quick-action span{display:block;width:48px;height:48px;border-radius:11px;margin:0 auto 7px;display:grid;place-items:center;background:#eef4ff;font-size:24px}.quick-action.red span{background:#ffe3e6}.quick-action.green span{background:#def8e7}.quick-action:hover{transform:translateY(-1px);box-shadow:var(--shadow)}.progress-line{height:9px;border-radius:10px;background:#edf0f4;overflow:hidden}.progress-line i{display:block;height:100%;background:var(--navy);border-radius:10px}.progress-circle-row{display:flex;justify-content:space-around;gap:10px;text-align:center}.mini-ring{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--p)*1%),#e8eef5 0);position:relative}.mini-ring:after{content:"";position:absolute;inset:7px;background:#fff;border-radius:50%}.mini-ring b{z-index:1;color:var(--navy);font-size:12px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 4px 14px}.page-title h1{margin:0;color:var(--navy);font-size:25px}.page-title p{margin:4px 0 0;color:var(--muted);font-size:12px}.page-actions{display:flex;gap:8px;align-items:center}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between}.stat-icon{font-size:23px}.stat-card h3{font-size:25px;margin:7px 0 2px;color:var(--navy)}.stat-card p{margin:0;color:var(--muted);font-size:11px}.delta{color:var(--green);font-size:11px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:13px}.quick-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px;text-align:right;box-shadow:var(--shadow)}.quick-card span{font-size:26px}.quick-card b,.quick-card small{display:block}.quick-card b{color:var(--navy);margin-top:4px}.quick-card small{font-size:10px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:13px}.activity-item{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eef1f5;padding:10px 0}.activity-item:last-child{border-bottom:0}.activity-icon{width:38px;height:38px;border-radius:50%;background:#eef4ff;display:grid;place-items:center}.activity-item b,.activity-item small{display:block}.activity-item b{font-size:12px;color:var(--navy)}.activity-item small,.activity-time{font-size:10px;color:var(--muted)}.activity-time{margin-right:auto}.metric-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef1f5}.metric-row b{color:var(--navy)}.hero-panel{background:linear-gradient(135deg,#f0f5ff,#fff);border-right:4px solid var(--red)}.hero-panel h2{color:var(--navy)}.hero-panel p{font-size:12px;color:var(--muted)}.course-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.course-tile{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;box-shadow:var(--shadow)}.course-tile h3{color:var(--navy);font-size:15px}.course-tile p{color:var(--muted);font-size:11px}.tag{display:inline-block;padding:4px 8px;border-radius:20px;background:#eef4ff;color:var(--navy);font-size:10px;font-weight:800}.tag.red{background:#fff0f1;color:var(--red)}.tag.green{background:#eaf8ef;color:#138348}.tag.yellow{background:#fff6d6;color:#9d7600}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th,.data-table td{padding:11px;border-bottom:1px solid #edf1f5;text-align:right}.data-table th{color:var(--navy);background:#f8faff}.field{display:grid;gap:6px}.field input,.field textarea,input,select,textarea{border:1px solid #dce3ec;border-radius:9px;padding:10px 11px;background:#fff;outline:none}.inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inline-form .full{grid-column:1/-1}.lesson-item,.plan-row,.event-row,.notification-item{padding:11px;border:1px solid var(--line);border-radius:10px;margin-top:8px}.plan-row,.event-row,.notification-item{display:flex;align-items:center;gap:10px}.plan-row small,.notification-item small{display:block;font-size:10px;color:var(--muted)}.time,.event-date{font-size:10px;background:#eef4ff;color:var(--navy);padding:7px;border-radius:8px}.notice,.auth-note,.success-box,.error-box,.plan-ok,.plan-risk{padding:11px 13px;border-radius:9px;font-size:11px}.notice,.auth-note{background:#fff7d9;color:#7f6500}.success-box,.plan-ok{background:#eaf8ef;color:#176f3d}.error-box,.plan-risk{background:#fff0f1;color:#a92131}.file-link{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px;margin:3px}.thumbs{display:flex;gap:6px;flex-wrap:wrap}.thumbs img{width:70px;height:70px;object-fit:cover;border-radius:8px}.question{border:1px solid var(--line);border-radius:10px;padding:13px;margin:10px 0}.question label{display:block;padding:7px}.empty-state{text-align:center;padding:35px 15px;color:var(--muted)}.empty-icon{font-size:36px}.loading-state{min-height:300px;display:grid;place-items:center}.loader{width:35px;height:35px;border:4px solid #e5eaf1;border-top-color:var(--navy);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;bottom:25px;left:25px;background:#112c6f;color:#fff;border-radius:9px;padding:12px 16px;z-index:200;transform:translateY(100px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}.dialog-card{border:0;border-radius:16px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.25);max-width:620px;width:min(92vw,620px);color:var(--text)}.wide-dialog{max-width:880px;width:min(94vw,880px)}dialog::backdrop{background:rgba(10,28,70,.55)}.dialog-close{float:left;border:0;background:#eef2f7;border-radius:50%;width:34px;height:34px}.auth-brand{text-align:center}.auth-brand img{width:140px}.auth-brand h2{color:var(--navy)}.auth-form{display:grid;gap:11px}.auth-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:var(--navy)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.demo-box{background:#f6f8fb;border:1px solid var(--line);border-radius:10px;padding:11px;margin-top:12px;text-align:center}.demo-box small{display:block;color:var(--muted)}.demo-accounts{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:7px}.demo-accounts button{border:1px solid #dce3ed;background:#fff;border-radius:8px;padding:6px 9px}.auth-switch{text-align:center;font-size:11px}.auth-switch button{border:0;background:transparent;color:var(--red);font-weight:900}.otp-wrap{text-align:center}.otp-icon{font-size:40px}
body.dark{--bg:#0a1020;--card:#111a2c;--text:#eef3ff;--muted:#9eabc0;--line:#24324a}body.dark .app-main,body.dark .page-content,body.dark .app-header,body.dark .panel,body.dark .course-tile,body.dark .quick-card,body.dark .stat-card,body.dark .search-box,body.dark input,body.dark select,body.dark textarea{background:var(--card);color:var(--text)}
@media(max-width:1180px){.phone-box,.student-button,.account-button{display:none}.student-grid{grid-template-columns:1fr 1fr}.student-grid>.panel:first-child{grid-column:1/-1}.course-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{position:fixed;right:-220px;transition:.25s}.sidebar.open{right:0}.mobile-close{display:block;position:absolute;left:8px;top:8px;border:0;background:#fff;color:var(--navy);border-radius:50%;width:30px;height:30px}.menu-btn{display:block}.app-header{padding:8px 12px}.app-logo{display:none}.profile-block{min-width:auto}.profile-block>div,.profile-chevron{display:none}.header-center{min-width:0}.top-quick-nav{justify-content:flex-start}.student-stats{grid-template-columns:1fr 1fr}.student-grid,.dashboard-grid{grid-template-columns:1fr}.landing-cards{grid-template-columns:1fr 1fr}.marketing-header{padding:8px 15px}.landing-search,.phone-compact{display:none}.approved-hero{height:250px;background-position:center}.landing-hero-actions{right:20px}.quick-grid,.stats-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.student-stats,.stats-grid,.quick-grid,.course-list,.landing-cards{grid-template-columns:1fr}.top-quick-nav{margin:8px 8px 0}.page-content{padding:0 8px 20px}.student-hero{height:160px}.app-header{height:76px}.search-box{min-width:0}.notification-btn{display:none}.landing-nav{overflow:auto;justify-content:flex-start}.approved-hero{height:210px}.landing-hero-actions{bottom:10px;right:10px}.two-col,.inline-form{grid-template-columns:1fr}}

/* v5 visual refinement — approved Bebasata identity */
body{background:#f7f9fd}.app-main{background:#f8faff}.page-content{background:#f8faff;padding:0 20px 34px}.app-header{box-shadow:0 2px 8px rgba(15,45,110,.04)}
.top-quick-nav{background:linear-gradient(90deg,#24419e 0%,#15327f 100%);min-height:58px;height:auto;border-radius:12px;margin:12px 14px 0;box-shadow:0 7px 18px rgba(18,48,123,.16)}
.topnav-item{font-size:12px;padding:10px 14px}.topnav-item.active{background:rgba(255,255,255,.14);box-shadow:inset 0 -3px 0 #ef2235}
.student-hero.identity-hero,.student-hero{height:236px;margin-top:0;border-radius:0 0 3px 3px;background-position:center;background-size:cover;box-shadow:0 8px 22px rgba(18,48,123,.06)}
.student-stats{gap:12px;margin:14px 0}.student-stat{border-radius:14px;min-height:116px;padding:15px 18px}.clickable-stat{width:100%;border:1px solid var(--line);text-align:inherit;font:inherit;cursor:pointer}.clickable-stat:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(24,57,141,.1)}
.student-grid{grid-template-columns:1.08fr 1.08fr 1.15fr;gap:12px}.admin-home-grid{align-items:start}.panel{border-radius:13px;box-shadow:0 5px 17px rgba(31,58,111,.045)}
.quick-action{min-height:105px}.quick-action small{display:block;color:#8b97a9;font-size:10px;margin-top:4px;font-weight:600}.wide-action{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:right;padding:12px 14px;margin-top:9px;color:var(--navy);transition:.18s}.wide-action:hover{border-color:#b8c7e4;box-shadow:var(--shadow)}.wide-action b,.wide-action small{display:block}.wide-action small{color:var(--muted);font-size:10px;margin-top:3px}
.sidebar{width:210px;min-width:210px}.nav-item{font-size:12px}.side-brand img{width:150px}.sidebar-support a{letter-spacing:.1px}
.app-header{min-height:94px;height:94px}.app-logo img{width:150px}.phone-box b{font-size:18px}.student-button,.account-button{min-width:105px}.search-box{height:42px}
.page-title{padding:20px 3px 12px}.page-title h1{font-size:22px}.course-tile,.stat-card,.quick-card{border-radius:13px}.data-table th{background:#f4f7fc}
@media(max-width:1180px){.student-grid{grid-template-columns:1fr 1fr}.student-grid>div:last-child{grid-column:1/-1}.student-hero.identity-hero,.student-hero{height:205px}}


/* v13 — simplified administration and homework control */
.role-fields{display:grid;gap:10px;padding:10px 0 2px}.grade-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}.grade-checks label{display:flex!important;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;padding:8px 9px;color:var(--text)!important;font-weight:600!important;background:#fff}.grade-checks input{width:auto;margin:0}
.account-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 12px}.filter-chip{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:22px;padding:8px 13px;font-size:11px;font-weight:800}.filter-chip.active{background:var(--navy);border-color:var(--navy);color:#fff}.user-search{min-width:310px}.action-cluster{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.ghost-danger{background:#fff!important;border:1px solid #ffd5da!important}.accounts-table td:last-child{min-width:225px}
.homework-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:13px}.homework-summary>.stat-card,.homework-summary>div>.stat-card{height:100%}.homework-card{border-right:4px solid var(--navy)}.upload-zone{display:grid;place-items:center;gap:4px;border:2px dashed #c9d6ea;border-radius:13px;background:#f8fbff;padding:18px;text-align:center;cursor:pointer;color:var(--navy)}.upload-zone small{color:var(--muted);font-size:10px}.upload-zone input{width:100%;margin-top:7px;background:#fff}.submission-card{border-right:4px solid var(--yellow)}.submission-files{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.submission-preview{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto;border-radius:13px;box-shadow:var(--shadow)}
.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:24px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 5px 18px rgba(22,54,125,.05);display:grid;gap:13px}.settings-card.settings-full{grid-column:1/-1}.settings-card-title{display:flex;align-items:center;gap:11px;border-bottom:1px solid #edf1f6;padding-bottom:12px}.settings-card-title>span{width:44px;height:44px;border-radius:12px;background:#eef4ff;display:grid;place-items:center;font-size:22px}.settings-card-title h3{margin:0;color:var(--navy);font-size:16px}.settings-card-title p{margin:2px 0 0;color:var(--muted);font-size:10px}.color-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.color-field{border:1px solid var(--line);border-radius:11px;padding:10px;text-align:center;display:grid;gap:6px}.color-field span{font-size:10px;color:var(--navy);font-weight:800}.color-field input[type=color]{width:100%;height:52px;padding:3px;border-radius:9px;cursor:pointer}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:11px;padding:12px}.toggle-row b,.toggle-row small{display:block}.toggle-row b{font-size:12px;color:var(--navy)}.toggle-row small{font-size:9px;color:var(--muted);margin-top:3px}.toggle-row input{appearance:none;width:48px!important;height:26px;border-radius:20px;background:#dfe5ed;position:relative;flex:0 0 auto;padding:0!important;transition:.2s}.toggle-row input:after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.2s}.toggle-row input:checked{background:var(--green)}.toggle-row input:checked:after{right:25px}.danger-toggle input:checked{background:var(--red)}.settings-savebar{display:flex;align-items:center;justify-content:space-between;gap:15px}.settings-saved{color:#16814a;font-weight:800}.settings-unsaved{color:#a67800;font-weight:800}
.maintenance-screen{position:fixed;inset:0;background:linear-gradient(135deg,#edf4ff,#fff);z-index:999;display:grid;place-items:center;padding:20px}.maintenance-card{width:min(92vw,520px);background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;text-align:center;box-shadow:0 25px 70px rgba(14,42,100,.14)}.maintenance-card img{width:170px;max-height:85px;object-fit:contain;margin-bottom:14px}.maintenance-card>span{font-size:46px;display:block}.maintenance-card h1{color:var(--navy);margin:7px 0}.maintenance-card p{color:var(--muted);font-size:13px}.maintenance-card a{display:inline-block;margin-top:12px;background:var(--red);color:#fff;text-decoration:none;padding:11px 18px;border-radius:10px;font-weight:900;direction:ltr}
body.dark .settings-card,body.dark .filter-chip,body.dark .grade-checks label,body.dark .upload-zone{background:var(--card);color:var(--text)}
@media(max-width:900px){.settings-layout{grid-template-columns:1fr}.settings-card.settings-full{grid-column:auto}.homework-summary{grid-template-columns:1fr}.user-search{min-width:0}.accounts-table td:last-child{min-width:185px}.grade-checks{grid-template-columns:1fr}}

/* v14 media + full-banner controls */
:root{--landing-image:url('/assets/banner-1.png');--banner-fit:contain}
.approved-hero{
  background-image:var(--landing-image)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
  background-color:#f4f7fb!important;
  width:auto;
  height:auto!important;
  aspect-ratio:16/9;
}
.student-hero.identity-hero,.student-hero{
  position:relative;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-color:#f4f7fb!important;
  width:100%;
  max-width:none;
  margin:0;
  height:250px!important;
  aspect-ratio:auto;
  min-height:0!important;
  border-radius:0;
}
.page-content{padding:0 0 34px}
.page-content>*:not(.student-hero){margin-left:20px;margin-right:20px}
.page-content>.student-hero+*{margin-top:0}
.banner-dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:7px;padding:7px 9px;border-radius:20px;background:rgba(255,255,255,.86);box-shadow:0 3px 12px rgba(0,0,0,.1);z-index:3}
.banner-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#b8c3d8;cursor:pointer}
.banner-dots button.active{background:var(--red);transform:scale(1.2)}
.media-settings-card{align-content:start}
.media-preview{border:1px solid var(--line);border-radius:14px;background:#f6f8fc;display:grid;place-items:center;overflow:hidden;min-height:190px}
.media-preview img{display:block;width:100%;height:100%;max-height:310px;object-fit:contain;padding:10px}
.logo-preview{min-height:170px}.logo-preview img{max-width:360px;max-height:190px}
.hero-preview{aspect-ratio:16/9}.hero-preview img{max-height:none;padding:0}
.upload-drop{border:2px dashed #cfd9ea;border-radius:13px;padding:16px;text-align:center;cursor:pointer;background:#fbfcff;color:var(--navy);font-weight:800;display:grid;gap:5px}
.upload-drop:hover{border-color:var(--navy);background:#f4f8ff}
.upload-drop input{display:none}.upload-drop small{font-size:10px;color:var(--muted);font-weight:500}.upload-drop.wide{padding:20px}
.banner-manager{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:4px}
.banner-admin-item{border:1px solid var(--line);border-radius:13px;padding:9px;background:#fff;box-shadow:0 3px 12px rgba(27,55,120,.04)}
.banner-admin-item.primary{outline:2px solid var(--yellow);outline-offset:1px}
.banner-admin-item img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#f4f7fb;border-radius:9px;display:block}
.banner-admin-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.banner-admin-actions button{flex:1 1 auto}
.banner-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
@media(max-width:900px){.banner-manager{grid-template-columns:1fr 1fr}.banner-controls{grid-template-columns:1fr}.approved-hero{aspect-ratio:16/9!important}}
@media(max-width:1180px){.student-hero.identity-hero,.student-hero{height:210px!important}}
@media(max-width:600px){.banner-manager{grid-template-columns:1fr}.approved-hero{aspect-ratio:16/9!important}.landing-hero-actions{bottom:8px;right:8px}.page-content>*:not(.student-hero){margin-left:8px;margin-right:8px}.student-hero.identity-hero,.student-hero{height:180px!important}}
body.dark .media-preview,body.dark .upload-drop{background:#10192a}body.dark .banner-admin-item{background:var(--card)}
n/* v15 — full banner control from Admin > Settings */
:root{
  --banner-desktop-height:250px;
  --banner-mobile-height:180px;
  --banner-width-percent:100;
  --banner-fit:cover;
  --banner-position:center;
  --banner-bg:#ffffff;
  --banner-radius:0px;
  --banner-display:block;
}
.student-hero.identity-hero,.student-hero{
  display:var(--banner-display,block)!important;
  width:calc(var(--banner-width-percent,100) * 1%)!important;
  max-width:100%!important;
  height:var(--banner-desktop-height,250px)!important;
  aspect-ratio:auto!important;
  margin:0 auto!important;
  background-image:var(--hero-image)!important;
  background-size:var(--banner-fit,cover)!important;
  background-position:var(--banner-position,center)!important;
  background-repeat:no-repeat!important;
  background-color:var(--banner-bg,#fff)!important;
  border-radius:var(--banner-radius,0px)!important;
  overflow:hidden!important;
  box-shadow:0 8px 22px rgba(18,48,123,.06);
}
.banner-live-wrap{border:1px solid var(--line);border-radius:14px;padding:12px;background:#f8faff;display:grid;gap:9px}
.banner-live-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.banner-live-head b{color:var(--navy);font-size:12px}.banner-live-head small{color:var(--muted);font-size:10px}
.banner-settings-preview{width:100%;height:250px;margin-inline:auto;background-position:center;background-repeat:no-repeat;background-size:cover;background-color:#fff;border:1px solid #e5ebf4;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);transition:height .18s,width .18s,border-radius .18s}
.banner-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.banner-controls{grid-template-columns:1fr}}
@media(max-width:600px){
  .student-hero.identity-hero,.student-hero{height:var(--banner-mobile-height,180px)!important;aspect-ratio:auto!important}
  .banner-settings-preview{max-height:360px}
  .banner-live-head{align-items:flex-start;flex-direction:column}
}
body.dark .banner-live-wrap{background:#10192a}
\n\n/* v16 — Facebook-style manual banner positioning + moving cards */
.banner-settings-preview{position:relative;cursor:grab;touch-action:none;user-select:none;background-position:var(--banner-position-x,50%) var(--banner-position-y,50%)}
.banner-settings-preview.dragging{cursor:grabbing;outline:3px solid rgba(23,56,143,.18);outline-offset:2px}
.banner-settings-preview:after{content:"اسحب الصورة لتحديد الجزء الظاهر";position:absolute;right:12px;bottom:12px;background:rgba(10,28,70,.78);color:#fff;padding:7px 10px;border-radius:8px;font-size:10px;pointer-events:none;backdrop-filter:blur(4px)}
.banner-drag-help{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed #bfd0eb;background:#f6f9ff;border-radius:12px;padding:11px 12px;color:var(--navy)}
.banner-drag-help span{font-size:11px;color:var(--muted);flex:1;min-width:220px}.banner-drag-help .secondary-btn{margin-inline-start:auto}
.student-hero.identity-hero,.student-hero{background-position:var(--banner-position-x,50%) var(--banner-position-y,50%)!important}
.cards-motion .stat-card,.cards-motion .quick-card,.cards-motion .course-tile{animation:cardFloat 5.2s ease-in-out infinite;will-change:transform}
.cards-motion .stat-card:nth-child(2n),.cards-motion .quick-card:nth-child(2n),.cards-motion .course-tile:nth-child(2n){animation-delay:-1.3s}
.cards-motion .stat-card:nth-child(3n),.cards-motion .quick-card:nth-child(3n),.cards-motion .course-tile:nth-child(3n){animation-delay:-2.6s}
.cards-motion .stat-card:hover,.cards-motion .quick-card:hover,.cards-motion .course-tile:hover{animation-play-state:paused;transform:translateY(-7px) scale(1.012);box-shadow:0 15px 30px rgba(20,48,115,.12)}
@keyframes cardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.cards-motion .stat-card,.cards-motion .quick-card,.cards-motion .course-tile{animation:none!important}}
body.dark .banner-drag-help{background:#10192a;border-color:#294063}


/* v17 — Facebook-style cover editor: preview and live banner use the same image geometry */
.student-hero.identity-hero,.student-hero{position:relative!important;background-image:none!important;background-size:auto!important;background-position:center!important}
.hero-banner-img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:var(--banner-fit,cover);object-position:var(--banner-position-x,50%) var(--banner-position-y,50%);transform:scale(var(--banner-scale,1));transform-origin:var(--banner-position-x,50%) var(--banner-position-y,50%);transition:transform .18s ease,object-position .18s ease;user-select:none;pointer-events:none}
.banner-settings-preview{position:relative!important;overflow:hidden!important;background-image:none!important}
.banner-settings-preview-img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 50%;transform:scale(1);transform-origin:50% 50%;pointer-events:none;user-select:none;transition:transform .08s linear,object-position .08s linear}
.banner-settings-preview:before{content:"";position:absolute;inset:0;border:2px solid rgba(255,255,255,.85);box-shadow:inset 0 0 0 1px rgba(23,56,143,.08);border-radius:inherit;z-index:2;pointer-events:none}
.banner-settings-preview:after{z-index:4}
.banner-dots{z-index:5}
.cards-motion .stat-card,.cards-motion .quick-card,.cards-motion .course-tile{animation:cardFloat 4.4s ease-in-out infinite;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.cards-motion .stat-card:hover,.cards-motion .quick-card:hover,.cards-motion .course-tile:hover{transform:translateY(-9px) scale(1.018)!important;box-shadow:0 18px 36px rgba(20,48,115,.16)!important;border-color:rgba(23,56,143,.18)}
@keyframes cardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
n
/* v18 — platform-fit banner: full width + full image, no crop */
.student-hero.identity-hero,
.student-hero {
  width: 100% !important;
  max-width: 100% !important;
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
}
@media (max-width: 600px) {
  .student-hero.identity-hero,
  .student-hero {
    height: 160px !important;
    min-height: 160px !important;
    background-size: 100% 100% !important;
  }
}
n

/* v19 — force full image visible across full platform width */
.student-hero.identity-hero,
.student-hero{
  width:100%!important;
  max-width:100%!important;
  height:250px!important;
  min-height:250px!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:0!important;
}
.student-hero.identity-hero .hero-banner-img,
.student-hero .hero-banner-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  object-position:center center!important;
  transform:none!important;
  transform-origin:center center!important;
}
@media(max-width:600px){
  .student-hero.identity-hero,
  .student-hero{
    height:160px!important;
    min-height:160px!important;
  }
}
n

/* v20 — restore yesterday's wide banner look */
.student-hero.identity-hero.reference-wide-banner,
.student-hero.reference-wide-banner{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1414 / 249!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.student-hero.reference-wide-banner .hero-banner-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
@media(max-width:600px){
  .student-hero.identity-hero.reference-wide-banner,
  .student-hero.reference-wide-banner{
    aspect-ratio:1414 / 249!important;
    height:auto!important;
    min-height:0!important;
  }
}


/* /visual-experience.css */
/* Shared card language for the existing academy, including empty classrooms. */
body.visual-refresh{--muted:#66758e;--vx-surface:#fff;--vx-soft:#f0f4fc;--vx-ink:#17305d;--vx-border:#e3e9f2;--vx-shadow:0 5px 20px rgba(24,48,93,.045);background:#f5f7fb}
body.visual-refresh .app-main,body.visual-refresh .page-content{background:#f5f7fb}
body.visual-refresh .app-main{min-width:0}
body.visual-refresh .app-header{border-bottom:1px solid var(--vx-border);box-shadow:none}
body.visual-refresh .top-quick-nav{border-radius:16px;box-shadow:0 5px 15px rgba(23,56,143,.12);padding:7px}
body.visual-refresh .topnav-item{border-radius:10px}
body.visual-refresh .nav-item{border-radius:12px}
.vx-icon{display:block;width:24px;height:24px;flex:0 0 auto}
body.visual-refresh .nav-icon .vx-icon{width:20px;height:20px}.topnav-item>span{display:inline-flex;vertical-align:middle;margin-left:5px}.topnav-item .vx-icon{width:17px;height:17px}.landing-cards .vx-icon{width:26px;height:26px}.sx-kpi-icon .vx-icon{width:23px;height:23px}
.vx-symbol{width:48px;height:48px;border-radius:15px;background:#edf2ff;color:var(--navy);display:grid;place-items:center;flex:0 0 auto}
.vx-symbol.vx-write{background:#fff0e9;color:#b8582b}.vx-symbol.vx-check{background:#eaf5ef;color:#23835c}.vx-symbol.vx-calendar{background:#fff6db;color:#927015}
body.visual-refresh #pageContent :is(.panel,.settings-card,.sx-section,.sx-kpi,.cc-manage-card,.cc-student-course,.sx-course-card,.tp-plan-card,.course-tile,.pro-course-info-card,.pro-review-card,.pro-lessons-panel){border:1px solid var(--vx-border);border-radius:20px;box-shadow:var(--vx-shadow);background:var(--vx-surface)}
body.visual-refresh #pageContent :is(.panel,.settings-card,.sx-section){padding:22px}
body.visual-refresh #pageContent :is(.panel-head h3,.cc-manage-card h3,.cc-student-body h3,.sx-section-head h3){font-size:16px;line-height:1.7;color:var(--vx-ink)}
body.visual-refresh #pageContent :is(.panel-head p,.cc-manage-card p,.cc-student-body p,.sx-section-head p){font-size:12px;line-height:1.9;color:var(--muted)}
body.visual-refresh #pageContent .page-title{padding-top:25px;padding-bottom:18px;align-items:flex-start;flex-wrap:wrap}
body.visual-refresh #pageContent .page-title h1{font-size:25px;line-height:1.6;color:var(--vx-ink)}
body.visual-refresh #pageContent .page-title p{font-size:13px;line-height:1.9}
body.visual-refresh .primary-btn,body.visual-refresh .secondary-btn{border-radius:12px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
body.visual-refresh .primary-btn .vx-icon{width:18px;height:18px}
body.visual-refresh .btn-sm{border-radius:10px;min-height:38px}
body.visual-refresh :is(button,a,input,select,textarea):focus-visible{outline:3px solid #d79b13;outline-offset:3px}
body.visual-refresh button:disabled{cursor:wait;opacity:.65}
body.visual-refresh #pageContent :is(.stats-grid,.quick-grid){gap:16px}
body.visual-refresh #pageContent .stat-card.vx-stat{display:flex;position:relative;align-items:center;gap:15px;overflow:hidden;border:1px solid var(--vx-border);border-radius:18px;background:var(--vx-surface);padding:21px;box-shadow:var(--vx-shadow);min-height:112px}
body.visual-refresh .vx-stat h3{font-size:29px;line-height:1.4;margin:4px 0 0;color:var(--vx-ink);font-variant-numeric:tabular-nums}
body.visual-refresh .vx-stat p{font-size:12px;margin:0;color:var(--muted);font-weight:600}
.vx-stat-dots{position:absolute;left:8px;bottom:8px;width:33px;height:25px;background:radial-gradient(circle,#dbe3f0 1px,transparent 1.5px) 0 0/8px 8px;opacity:.65}
body.visual-refresh .quick-card.vx-quick{position:relative;display:block;text-align:right;border:1px solid var(--vx-border);border-radius:18px;padding:19px;background:var(--vx-surface);box-shadow:var(--vx-shadow);transition:transform .18s,border-color .18s,box-shadow .18s}
body.visual-refresh .vx-quick b{font-size:14px;margin:13px 0 4px;color:var(--vx-ink)}
body.visual-refresh .vx-quick small{font-size:11px;line-height:1.8;color:var(--muted);padding-left:16px}
body.visual-refresh .vx-quick .vx-quick-arrow{position:absolute;left:19px;top:31px;color:#95a3ba}
.vx-quick-arrow .vx-icon{width:19px;height:19px}
body.visual-refresh .vx-quick:hover{transform:translateY(-3px);border-color:#bbcbe4;box-shadow:0 12px 24px rgba(24,48,93,.09)}
.vx-teacher-dashboard{padding-top:22px;max-width:1450px}
.vx-welcome{position:relative;display:grid;grid-template-columns:1fr 300px;align-items:center;gap:20px;border:1px solid #dce5f5;border-radius:24px;background:#eaf0fd;overflow:hidden;padding:28px 32px}
.vx-welcome:after{content:"";position:absolute;left:-60px;bottom:-115px;width:245px;height:245px;border:32px solid rgba(23,56,143,.035);border-radius:50%;pointer-events:none}
.vx-eyebrow{display:block;font-size:11px;letter-spacing:.15px;color:var(--navy);font-weight:800;margin-bottom:8px}
.vx-welcome .vx-eyebrow{display:flex;align-items:center;gap:7px}
.vx-eyebrow i{width:7px;height:7px;background:var(--red);border-radius:50%}
.vx-welcome h1{font-size:27px;color:var(--vx-ink);line-height:1.7;margin:3px 0 7px}
.vx-welcome p{font-size:13px;line-height:2;color:#546680;margin:0;max-width:590px}
.vx-welcome-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}
.vx-welcome-actions .primary-btn{font-size:12px}
.vx-subject{font-size:12px;color:var(--navy);font-weight:700}
.vx-welcome-art{position:relative;z-index:1;display:grid;justify-items:center;color:var(--navy)}
.vx-art{width:100%;max-width:300px;height:auto;display:block}
.vx-welcome-art>span{font-size:11px;color:#536887;font-weight:700;margin-top:-3px}
.vx-section-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:27px 0 13px}
.vx-section-label h2{font-size:16px;line-height:1.8;color:var(--vx-ink);margin:0}
.vx-section-label>span{font-size:11px;color:var(--muted)}
.vx-teacher-dashboard .quick-grid{margin-top:16px}
.vx-workspace{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:22px;align-items:stretch}
.vx-column{display:grid;grid-template-rows:auto 1fr;gap:20px;min-width:0}.vx-column:last-child{grid-template-rows:auto auto 1fr}
.vx-card{border:1px solid var(--vx-border);border-radius:20px;background:var(--vx-surface);padding:23px;box-shadow:var(--vx-shadow);min-width:0}
.vx-card-head{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.vx-card-head .vx-symbol{width:42px;height:42px;border-radius:13px}
.vx-card-head h2{font-size:15px;line-height:1.8;margin:0;color:var(--vx-ink)}
.vx-card-head p{margin:2px 0 0;font-size:11px;line-height:1.8;color:var(--muted)}
.vx-ready{display:flex;align-items:center;gap:15px;background:var(--vx-soft);border-radius:11px;padding:12px 14px;margin-bottom:9px}
.vx-ready>span{white-space:nowrap;font-size:11px;color:var(--navy);font-weight:700}
.vx-progress{height:6px;background:#dce4f1;border-radius:6px;flex:1;overflow:hidden}
.vx-progress i{height:100%;display:block;background:var(--navy);border-radius:6px}
.vx-step{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--vx-border)}
.vx-step:last-child{border-bottom:0;padding-bottom:0}
.vx-step-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 auto;background:var(--vx-soft);color:#7586a5;border-radius:50%}
.vx-step-icon .vx-icon{width:20px;height:20px}
.vx-step.is-done .vx-step-icon{background:#eaf5ef;color:#23835c}
.vx-step h3{font-size:12px;color:var(--vx-ink);margin:0;line-height:1.8}
.vx-step p{font-size:10px;line-height:1.8;color:var(--muted);margin:2px 0 0}
.vx-step .btn-sm{margin-right:auto;flex:0 0 auto;font-size:11px}
.vx-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--vx-soft);color:var(--navy);border:1px solid #dfe7f6;border-radius:11px;padding:10px 15px;font-size:11px;font-weight:800;min-height:42px}
.vx-link .vx-icon{width:17px;height:17px}
.vx-link:hover{border-color:#a8bbdb;background:#e5ecfa}
.vx-session{padding:17px;border-radius:16px;background:#fff8e6;border:1px solid #f0e6c8}
.vx-session-date{display:flex;align-items:center;gap:8px;font-size:11px;color:#8c6a1b;font-weight:800}
.vx-session-date .vx-icon{width:18px;height:18px}
.vx-session>.vx-symbol{background:#ffedbd;color:#977018;width:39px;height:39px}
.vx-session h3{font-size:14px;color:var(--vx-ink);line-height:1.8;margin:13px 0 5px}
.vx-session p{font-size:11px;line-height:1.9;color:#786949;margin:0 0 16px}
.vx-session .vx-link{background:#fff;border-color:#eadcba;color:#7f6019}
.vx-milestone{position:relative;background:#edf6f1;border-color:#d7e9df;overflow:hidden}
.vx-milestone>.vx-symbol{background:#daece2;color:#23835c;margin-bottom:14px}
.vx-milestone .vx-eyebrow{color:#327154}
.vx-milestone h2{font-size:17px;color:#204e39;margin:0 0 8px;line-height:1.8}
.vx-milestone p{font-size:12px;color:#4e6a5d;line-height:2;margin:0}
.vx-mini-stars{display:flex;gap:5px;margin-top:16px;color:#659f7e}
.vx-mini-stars .vx-icon{width:15px;height:15px}
.vx-submission{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--vx-border)}
.vx-submission:last-child{border-bottom:0}
.vx-student-letter{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:var(--vx-soft);color:var(--navy);font-size:16px;font-weight:800;flex:0 0 auto}
.vx-submission h3{font-size:12px;line-height:1.8;margin:0;color:var(--vx-ink)}
.vx-submission p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}
.vx-submission .tag{margin-right:auto;white-space:nowrap}
.vx-submissions+.vx-link{margin-top:15px}
.vx-review-card{display:flex;flex-direction:column}.vx-review-card>.vx-link{align-self:start}.vx-review-guide{display:flex;align-items:center;gap:10px;border-top:1px solid var(--vx-border);padding-top:16px;margin-top:20px;color:#8b752f}.vx-review-guide p{font-size:11px;line-height:1.9;color:var(--muted);margin:0}.vx-review-guide .vx-icon{width:20px;height:20px}
.vx-publication-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vx-publication-counts>div{border:1px solid var(--vx-border);background:var(--vx-soft);border-radius:13px;padding:12px 14px}.vx-publication-counts b{display:block;font-size:23px;line-height:1.6;color:var(--vx-ink)}.vx-publication-counts span{font-size:10px;color:var(--muted)}.vx-publication>p{font-size:11px;line-height:1.9;color:var(--muted);margin:13px 0}
.vx-footer-note{display:flex;justify-content:center;align-items:center;gap:9px;color:var(--muted);font-size:11px;margin:27px 0 2px;line-height:1.9}
.vx-footer-note .vx-icon{color:#b08a25;width:17px;height:17px}
body.visual-refresh .empty-state.vx-empty,.vx-empty{width:100%;min-width:0;text-align:center;border:1px dashed #d3dfee;border-radius:18px;background:#f8fafd;padding:28px 20px;grid-column:1/-1;color:var(--text)}
body.visual-refresh #pageContent>.vx-empty{width:auto}
.vx-empty-art{width:88px;height:77px;position:relative;margin:0 auto 12px}
.vx-empty-art>span{position:absolute;inset:6px 13px 9px;border-radius:20px;display:grid;place-items:center;background:#e8eefb;color:var(--navy);transform:rotate(-8deg)}
.vx-empty-art .vx-icon{width:32px;height:32px;transform:rotate(8deg)}
.vx-empty-art i{position:absolute;border-radius:50%;width:9px;height:9px;background:var(--yellow);top:0;right:0}
.vx-empty-art i:nth-of-type(2){width:6px;height:6px;background:#eeb7ae;left:0;right:auto;top:40px}
.vx-empty-art i:nth-of-type(3){width:5px;height:5px;background:#b8c9e8;top:auto;bottom:1px;right:17px}
body.visual-refresh .vx-empty h3{font-size:16px;color:var(--vx-ink);line-height:1.8;margin:0 0 6px}
body.visual-refresh .vx-empty p{font-size:12px;color:var(--muted);line-height:2;max-width:410px;margin:0 auto}
.vx-empty .vx-link{margin-top:17px}
.vx-empty .vx-eyebrow{font-size:10px;margin-bottom:6px}
.vx-card .vx-empty{padding:23px 16px}
.vx-page-note{display:flex;align-items:center;gap:13px;border:1px solid #dce6f5;border-radius:17px;padding:16px 20px;background:#edf3ff;margin-bottom:20px}
.vx-page-note .vx-symbol{width:41px;height:41px;border-radius:12px;background:#dfe9fc}
.vx-page-note b{font-size:13px;line-height:1.8;color:var(--navy)}
.vx-page-note p{font-size:12px;line-height:1.9;color:#596e92;margin:3px 0 0}
.vx-note-star{margin-right:auto;color:#bca044;flex:0 0 auto}.vx-note-star .vx-icon{width:19px;height:19px}
body.visual-refresh #pageContent .cc-manage-grid{gap:18px}
body.visual-refresh #pageContent .cc-manage-card{padding:23px;transition:transform .18s,box-shadow .18s}
body.visual-refresh #pageContent .cc-manage-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(24,48,93,.08)}
.vx-course-heading{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#eef2fe;color:var(--navy);margin:18px 0 12px}
.vx-course-heading.vx-course-tone-1{background:#fff3e9;color:#b8582b}.vx-course-heading.vx-course-tone-2{background:#eaf5ef;color:#23835c}
.vx-new-course{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #bbcce7;border-radius:20px;padding:25px;background:var(--vx-soft);min-height:240px}.vx-new-course h3{font-size:15px;color:var(--vx-ink);line-height:1.8;margin:15px 0 7px}.vx-new-course p{font-size:12px;line-height:1.9;color:var(--muted);max-width:310px;margin:0 0 18px}
body.visual-refresh .cc-no-media{background:#eaf0fd;position:relative;overflow:hidden;height:100%;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.vx-course-art{width:160px;color:var(--navy)}
body.visual-refresh .cc-no-media b{font-size:11px;color:var(--navy);margin-top:-9px;margin-bottom:15px}
body.visual-refresh #pageContent .sx-welcome{position:relative;overflow:hidden;padding:23px;border:1px solid #dce5f5;border-radius:22px;background:#eaf0fd}
body.visual-refresh .sx-welcome h2{font-size:23px;color:var(--vx-ink)}
body.visual-refresh .sx-welcome p{font-size:13px;line-height:1.9;color:#596e92}
.vx-student-art{width:140px;margin-right:auto;flex:0 0 auto;color:var(--navy)}
body.visual-refresh .sx-grade-pill{margin-right:0}
body.visual-refresh #pageContent .data-table th{background:var(--vx-soft);padding:14px;font-size:12px}
body.visual-refresh #pageContent .data-table td{padding:14px;font-size:12px}
body.visual-refresh .landing-cards article{border-radius:20px;box-shadow:var(--vx-shadow);padding:22px;border-color:var(--vx-border);position:relative}
body.visual-refresh .landing-cards article:nth-child(2)>span{background:#eaf5ef}
body.visual-refresh .landing-cards article:nth-child(3)>span{background:#fff6db}
body.visual-refresh .landing-cards article:nth-child(4)>span{background:#fff0e9}
body.visual-refresh .toast{max-width:min(420px,calc(100vw - 32px));line-height:1.9;z-index:1100;box-shadow:0 12px 35px rgba(19,41,75,.2);border-radius:16px}
body.visual-refresh .toast.vx-toast-success{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #cbe2d4;color:#234d37;padding:17px 20px;bottom:22px;left:22px}
.vx-toast-icon{width:36px;height:36px;display:grid;place-items:center;background:#e9f5ee;color:#23835c;border-radius:12px;flex:0 0 auto}
.vx-toast-icon .vx-icon{width:21px;height:21px}
.vx-toast-success b{font-size:13px;line-height:1.8;display:block}
.vx-toast-success p{font-size:11px;line-height:1.9;color:#527460;margin:4px 0 0}
body.visual-refresh.dark{--vx-surface:#121e32;--vx-soft:#1b2b44;--vx-ink:#e6edff;--vx-border:#283954;--muted:#a4b4cc;--vx-shadow:none}
body.visual-refresh.dark .app-main,body.visual-refresh.dark .page-content{background:#0d1728}
body.visual-refresh.dark :is(.vx-welcome,#pageContent .sx-welcome,.vx-page-note){background:#172843;border-color:#2b4163}
body.visual-refresh.dark :is(.vx-welcome h1,.vx-welcome p,.vx-welcome-art>span,.vx-subject,.vx-eyebrow,.vx-page-note b,.vx-page-note p,.sx-welcome p,.vx-link,.vx-ready>span){color:#c6d8fc}
body.visual-refresh.dark .vx-symbol,body.visual-refresh.dark .vx-student-letter,body.visual-refresh.dark .vx-page-note .vx-symbol{background:#243a5b;color:#c3d5ff}
body.visual-refresh.dark .vx-stat h3,body.visual-refresh.dark .vx-quick b{color:var(--vx-ink)}
body.visual-refresh.dark .vx-link{border-color:#354969;background:#223550}
body.visual-refresh.dark .vx-session{background:#332d21;border-color:#53472d}
body.visual-refresh.dark .vx-session :is(h3,p,.vx-session-date){color:#eddfb8}
body.visual-refresh.dark .vx-session .vx-link{background:#413722;color:#f2dfa5;border-color:#635331}
body.visual-refresh.dark .vx-milestone{background:#172e27;border-color:#284c3f}
body.visual-refresh.dark .vx-milestone :is(h2,p,.vx-eyebrow){color:#b8ddc9}
body.visual-refresh.dark .vx-milestone>.vx-symbol,body.visual-refresh.dark .vx-step.is-done .vx-step-icon{background:#274c3e;color:#bbdec9}
body.visual-refresh.dark .vx-empty{background:#16233a;border-color:#344968}
body.visual-refresh.dark .vx-empty-art>span{background:#263b5b;color:#c6d8fc}
body.visual-refresh.dark .vx-course-heading{background:#263b5b;color:#c6d8fc}
body.visual-refresh.dark .cc-no-media{background:#233957}
body.visual-refresh.dark .cc-no-media b{color:#c6d8fc}
body.visual-refresh.dark .toast.vx-toast-success{background:#172e27;border-color:#38634e;color:#d2f0de}
body.visual-refresh.dark .vx-toast-success p{color:#b8ddc9}
@media(min-width:1550px){.vx-teacher-dashboard{margin-left:auto!important;margin-right:auto!important;width:calc(100% - 48px)}}
@media(max-width:1180px){body.visual-refresh .app-header :is(.student-button,.account-button){display:none}.vx-welcome{grid-template-columns:1fr 230px;padding:25px}.vx-workspace{grid-template-columns:1.2fr 1fr}body.visual-refresh #pageContent .stats-grid,body.visual-refresh #pageContent .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vx-student-art{width:115px}}
@media(max-width:760px){.vx-workspace{grid-template-columns:1fr}.vx-welcome{grid-template-columns:1fr 180px;padding:24px;gap:12px}.vx-welcome h1{font-size:23px}.vx-welcome-art>span{font-size:9px}.vx-card{padding:20px}.vx-section-label>span{font-size:10px}.vx-student-art{display:none}}
@media(max-width:520px){body.visual-refresh .page-content>*:not(.student-hero){margin-left:12px;margin-right:12px}.vx-teacher-dashboard{padding-top:15px}.vx-welcome{grid-template-columns:1fr;padding:23px}.vx-welcome-art{display:none}.vx-welcome h1{font-size:23px}.vx-welcome p{font-size:12px}.vx-welcome-actions{gap:12px;margin-top:17px}.vx-section-label{margin-top:23px}.vx-section-label>span{max-width:115px;text-align:left}.vx-stat .vx-symbol{width:36px;height:36px;border-radius:11px}.vx-stat .vx-symbol .vx-icon{width:21px;height:21px}body.visual-refresh #pageContent .stat-card.vx-stat{padding:15px 12px;gap:9px;min-height:98px}body.visual-refresh .vx-stat h3{font-size:25px}body.visual-refresh .vx-stat p{font-size:10px}body.visual-refresh #pageContent :is(.stats-grid,.quick-grid){gap:10px}body.visual-refresh .quick-card.vx-quick{padding:15px 12px}body.visual-refresh .vx-quick b{font-size:12px}.vx-quick .vx-symbol{width:38px;height:38px;border-radius:12px}body.visual-refresh .vx-quick small{font-size:10px;padding-left:0}body.visual-refresh .vx-quick .vx-quick-arrow{top:25px;left:13px}.vx-quick-arrow .vx-icon{width:16px;height:16px}.vx-card{padding:18px}.vx-step{gap:9px}.vx-step p{max-width:165px}.vx-step .btn-sm{padding:8px 11px;min-width:43px}.vx-page-note{padding:15px;gap:10px}.vx-page-note b{font-size:12px}.vx-page-note p{font-size:11px}.vx-note-star{display:none}body.visual-refresh #pageContent :is(.panel,.settings-card,.sx-section){padding:17px}body.visual-refresh .toast.vx-toast-success{left:16px;right:16px;bottom:16px;padding:15px}body.visual-refresh .landing-cards{grid-template-columns:1fr}.vx-footer-note{font-size:10px}.vx-submission{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){body.visual-refresh *,body.visual-refresh *:before,body.visual-refresh *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* /phase-one.css */
/* Scoped phase-one layout. Icons and illustrations are native SVG and CSS. */
.p1-shell{--p1-ink:#1c3158;--p1-muted:#758198;--p1-blue:#2457ce;--p1-teal:#218b85;--p1-orange:#d58a25;--p1-surface:#fff;--p1-bg:#f5f7fc;--p1-line:#e6ebf4;background:var(--p1-bg);color:var(--p1-ink)}
.p1-icon{width:24px;height:24px;flex:0 0 auto;display:inline-block;vertical-align:middle}
.p1-shell .app-main{background:var(--p1-bg);min-width:0}
.p1-shell .page-content{max-width:1440px;margin:auto;padding:32px 38px 60px}
.p1-shell .app-header{background:var(--p1-surface);border-bottom:1px solid var(--p1-line)}
.p1-shell .app-header .student-button{display:none}
.p1-shell .top-quick-nav{background:var(--p1-surface);border-bottom:1px solid var(--p1-line);gap:8px;padding:10px 32px}
.p1-shell .topnav-item{display:flex;align-items:center;gap:8px;font-size:12px;border-radius:12px;min-height:42px}
.p1-shell .topnav-item .p1-icon{width:20px;height:20px}
.p1-shell .nav-item{line-height:1.6;min-height:48px;gap:11px}
.p1-shell .nav-item .p1-icon{width:21px;height:21px}
.p1-shell .nav-icon{display:flex;align-items:center;justify-content:center}
.p1-nav-section{font-size:10px;color:#99aecf;display:block;margin:20px 15px 8px;letter-spacing:.6px}
.p1-shell .sidebar{overflow-y:auto}
.p1-shell .pro-floating-support{display:none!important}
.p1-page{line-height:1.7;min-width:0}
.p1-page *,.p1-solve *,.p1-discussion *,.p1-completion *{box-sizing:border-box}
.p1-page h1,.p1-page h2,.p1-page h3,.p1-solve h2{margin:0;color:var(--p1-ink);font-weight:800;letter-spacing:-.35px}
.p1-page h1{font-size:29px;line-height:1.55}
.p1-page h2{font-size:21px;line-height:1.6}
.p1-page h3{font-size:17px;line-height:1.65}
.p1-page p{margin:6px 0;color:var(--p1-muted);font-size:13px;line-height:1.9}
.p1-page button,.p1-page input,.p1-page select,.p1-page textarea,.p1-solve button,.p1-solve textarea{font-family:inherit}
.p1-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.p1-eyebrow{display:block;font-size:11px;color:var(--p1-blue);font-weight:700;margin-bottom:5px;letter-spacing:.1px}
.p1-eyebrow .p1-icon{width:16px;height:16px;margin-right:5px}
.p1-heading p{font-size:13px;max-width:680px;margin-top:3px}
.p1-btn,.p1-soft-btn,.p1-text-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:45px;padding:10px 18px;border:0;border-radius:12px;font-weight:700;font-size:12px;cursor:pointer;text-decoration:none;transition:background .2s,transform .2s}
.p1-btn{background:var(--p1-blue);color:#fff;box-shadow:0 5px 13px #2457ce16}
.p1-btn:hover{background:#1945b0;transform:translateY(-1px)}
.p1-soft-btn{background:#eef3ff;color:var(--p1-blue);border:1px solid #e2e9fa;box-shadow:none}
.p1-soft-btn:hover{background:#e4ecfc}
.p1-text-btn{background:none;color:var(--p1-blue);padding:5px 0;min-height:36px;font-size:11px;box-shadow:none}
.p1-btn .p1-icon,.p1-soft-btn .p1-icon,.p1-text-btn .p1-icon{width:18px;height:18px}
.p1-text-btn.danger{color:#c24c56}
.p1-btn:disabled,.p1-soft-btn:disabled{opacity:.55;cursor:default;transform:none}
.p1-page button:focus-visible,.p1-shell #p1MobileNav button:focus-visible,.p1-floating-ai:focus-visible{outline:3px solid #edb640;outline-offset:4px}
.p1-page input,.p1-page select,.p1-page textarea{border:1px solid var(--p1-line);border-radius:11px;background:var(--p1-surface);padding:11px 12px;color:var(--p1-ink);width:100%;min-width:0;font-size:13px;min-height:45px}
.p1-page input:focus,.p1-page select:focus,.p1-page textarea:focus{outline:2px solid #2457ce32;border-color:var(--p1-blue)}
.p1-page textarea{resize:vertical}
.p1-page .field{display:flex;flex-direction:column;gap:6px;text-align:right;font-size:12px;color:var(--p1-ink);font-weight:600}
.p1-page .stack{gap:16px}
.p1-page .two-col{gap:16px}
.p1-square{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:48px;height:48px;border-radius:14px;background:#edf2ff;color:var(--p1-blue)}
.p1-square.teal,.p1-metric.teal .p1-square{color:var(--p1-teal);background:#e6f5f2}
.p1-square.orange,.p1-metric.orange .p1-square{color:var(--p1-orange);background:#fff3df}
.p1-welcome{position:relative;overflow:hidden;border-radius:26px;background:#eaf0fd;border:1px solid #e2e9fa;display:flex;align-items:center;justify-content:space-between;min-height:273px;padding:34px 40px;gap:28px}
.p1-welcome h1{font-size:32px;line-height:1.5;margin:7px 0 10px}
.p1-welcome h1 span{display:block;font-size:23px;font-weight:700}
.p1-welcome p{color:#637697;margin-bottom:22px}
.p1-welcome-art{position:relative;flex:0 0 290px;height:220px;pointer-events:none}
.p1-art-orbit{position:absolute;border:1px dashed #9eb7e244;inset:0;border-radius:50%;transform:rotate(22deg)}
.p1-art-book{position:absolute;inset:30px 57px 36px 33px;border-radius:28px;background:var(--p1-blue);color:white;display:flex;align-items:center;justify-content:center;transform:rotate(-9deg);box-shadow:12px 17px 0 #d2ddf5}
.p1-art-book .p1-icon{width:100px;height:100px;stroke-width:.9}
.p1-art-star{position:absolute;color:#e7b154;top:0;left:2px;transform:rotate(12deg)}
.p1-art-star .p1-icon{width:51px;height:51px;stroke-width:1.3}
.p1-art-check{position:absolute;display:flex;align-items:center;justify-content:center;top:18px;right:18px;border-radius:50%;width:55px;height:55px;background:#cff0de;color:#298b66;border:5px solid #eaf0fd}
.p1-art-note{position:absolute;padding:12px 19px;background:#fff9ed;border-radius:15px;color:#a97623;font-size:12px;line-height:1.5;bottom:14px;right:6px;transform:rotate(8deg);box-shadow:0 4px 15px #23478208}
.p1-art-note b{font-size:19px;color:#80531f}
.p1-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:20px 0 25px}
.p1-metric{display:flex;align-items:center;gap:14px;background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:17px;padding:17px 20px;min-width:0}
.p1-metric strong{display:block;font-size:26px;font-weight:800;line-height:1.3}
.p1-metric div>span{font-size:11px;color:var(--p1-muted)}
.p1-paths{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:34px}
.p1-paths button{display:flex;align-items:center;gap:12px;padding:17px;background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:17px;text-align:right;cursor:pointer;min-width:0}
.p1-paths button:hover{border-color:#bccded;box-shadow:0 5px 16px #2457ce08}
.p1-paths div{flex:1;min-width:0}
.p1-paths b{font-size:13px;color:var(--p1-ink);display:block}
.p1-paths small{color:var(--p1-muted);font-size:10px;display:block}
.p1-paths button>.p1-icon{width:17px;height:17px;color:var(--p1-muted)}
.p1-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.p1-task-grid,.p1-session-grid,.p1-class-grid,.p1-news-grid,.p1-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:26px}
.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-review-card{min-width:0;background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:20px;padding:22px;position:relative;overflow:hidden;box-shadow:0 4px 20px #293c6103}
.p1-task{display:flex;flex-direction:column;border-top:3px solid #9aafea}
.p1-task.sheet{border-top-color:#86c7bd}
.p1-task.sheet .p1-square{color:var(--p1-teal);background:#e6f5f2}
.p1-task.exam{border-top-color:#e3bc77}
.p1-task.exam .p1-square{color:var(--p1-orange);background:#fff3df}
.p1-task-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.p1-pill{display:inline-block;padding:4px 10px;border-radius:7px;background:#f1f4fa;color:#74819a;font-size:10px;font-weight:700;white-space:normal;line-height:1.65}
.p1-pill.green{color:#238366;background:#eaf6f0}
.p1-pill.orange{color:#aa721f;background:#fff4e0}
.p1-subject{color:var(--p1-blue);font-size:10px;font-weight:600;margin-bottom:4px;display:block}
.p1-task h3{margin-bottom:5px}
.p1-task p{font-size:12px;margin-bottom:15px;flex:1;overflow-wrap:anywhere}
.p1-task-meta{color:var(--p1-muted);font-size:10px;line-height:1.8;margin-bottom:18px;display:block}
.p1-task-meta .p1-icon{width:15px;height:15px;margin-left:3px}
.p1-task-meta>span{display:block;margin-top:4px}
.p1-task-result{display:flex;gap:8px;align-items:center;justify-content:space-between;background:#eff7f3;color:#318267;border-radius:10px;padding:12px;font-size:11px}
.p1-task-result .p1-icon{width:18px;height:18px}
.p1-task-review{margin-top:10px;width:100%;justify-content:center}
.p1-task .p1-btn{width:100%}
.p1-empty{grid-column:1/-1;border:1px solid var(--p1-line);border-radius:20px;padding:31px;background:var(--p1-surface);text-align:center;display:flex;align-items:center;flex-direction:column;gap:6px}
.p1-empty h3{font-size:17px;margin-top:5px}
.p1-empty p{font-size:12px;max-width:450px;margin-bottom:8px}
.p1-illustration{width:76px;height:76px;border-radius:24px;color:var(--p1-blue);background:#edf2fd;display:flex;align-items:center;justify-content:center;transform:rotate(-4deg)}
.p1-illustration .p1-icon{width:39px;height:39px;transform:rotate(4deg);stroke-width:1.2}
.p1-home-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;margin-bottom:20px}
.p1-reward-card{background:#fff8eb;border:1px solid #f3e8d4;border-radius:21px;padding:26px;display:flex;gap:20px;align-items:flex-start;min-width:0}
.p1-reward-card .p1-eyebrow{color:#b7832d}
.p1-reward-card h2{color:#735126;font-size:19px}
.p1-reward-card p{color:#a18a68;font-size:12px;margin-bottom:8px}
.p1-rank-note{display:block;font-size:11px;color:#91671f}
.p1-community-card{background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:21px;padding:26px}
.p1-community-card h2{margin-top:10px;font-size:19px}
.p1-community-card p{margin:7px 0 16px;font-size:12px}
.p1-community-card>div{display:flex;gap:10px;flex-wrap:wrap}
.p1-assistant-card,.p1-admin-note{display:flex;align-items:center;gap:17px;padding:24px 26px;background:#eaf3fa;border:1px solid #dfe9f3;border-radius:20px}
.p1-assistant-card>div,.p1-admin-note>div{flex:1;min-width:0}
.p1-assistant-card .p1-square{background:#dce8f5}
.p1-assistant-card p{font-size:12px;margin:3px 0}
.p1-panel{background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:20px;padding:25px;margin-bottom:22px;min-width:0}
.p1-panel>.p1-empty{border:0;padding:20px 0}
.p1-panel>.p1-section-head h2{font-size:18px}
.p1-teacher-grid,.p1-progress-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}
.p1-teacher-grid>.p1-panel{margin:0}
.p1-mini-classes{display:grid;gap:10px}
.p1-mini-classes>button{padding:12px;display:flex;align-items:center;gap:12px;background:var(--p1-bg);border:1px solid var(--p1-line);border-radius:13px;text-align:right;cursor:pointer;min-width:0;color:var(--p1-ink)}
.p1-mini-classes>button>div{flex:1;min-width:0}
.p1-mini-classes b{display:block;font-size:12px}
.p1-mini-classes small{display:block;color:var(--p1-muted);font-size:10px}
.p1-mini-classes .p1-square{width:40px;height:40px;border-radius:10px}
.p1-mini-classes>button>.p1-icon{width:18px;height:18px;color:var(--p1-muted)}
.p1-staff-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}
.p1-action-tile{display:flex;gap:12px;align-items:center;justify-content:center;padding:21px 13px;border:1px solid var(--p1-line);border-radius:16px;background:var(--p1-surface);color:var(--p1-ink);font-size:12px;font-weight:700;cursor:pointer}
.p1-action-tile .p1-icon{color:var(--p1-blue)}
.p1-action-tile:hover{border-color:var(--p1-blue)}
.p1-activity-row{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--p1-line);min-width:0}
.p1-activity-row:last-child{border:0}
.p1-activity-row>div{flex:1;min-width:0}
.p1-activity-row b{font-size:12px;display:block}
.p1-activity-row p{font-size:12px;margin:1px 0}
.p1-activity-row small{font-size:10px;color:var(--p1-muted)}
.p1-activity-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#71aaa0;margin-top:9px;box-shadow:0 0 0 5px #eff7f5}
.p1-admin-note .p1-icon{color:var(--p1-blue)}
.p1-admin-note b{font-size:13px}
.p1-admin-note p{font-size:12px;margin:0}
.p1-filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:23px}
.p1-filters>button{padding:9px 16px;min-height:42px;border:1px solid var(--p1-line);border-radius:11px;background:var(--p1-surface);color:var(--p1-muted);font-size:12px;font-weight:600;cursor:pointer}
.p1-filters>button.active{background:var(--p1-blue);border-color:var(--p1-blue);color:white}
.p1-tip{display:flex;align-items:flex-start;gap:10px;background:#edf3fc;border:1px solid #e3eaf7;padding:14px 18px;border-radius:13px;color:#6883a6;font-size:11px;line-height:1.9;margin:18px 0}
.p1-tip>.p1-icon{width:20px;height:20px;margin-top:2px}
.p1-question-editor{padding:18px;margin-bottom:18px;border:1px solid var(--p1-line);border-radius:15px;background:var(--p1-bg);display:grid;gap:14px}
.p1-question-head{display:flex;align-items:center;justify-content:space-between}
.p1-question-head>b{font-size:13px;color:var(--p1-blue)}
.p1-form-error{color:#b54751;font-size:12px;line-height:1.8;white-space:pre-wrap}
.p1-form-error:empty{display:none}
.p1-month-label{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--p1-muted);flex-shrink:0}
.p1-month-label input{max-width:175px;color:var(--p1-ink);direction:ltr;font-size:12px}
.p1-class-card{text-align:right;cursor:pointer;font-family:inherit;color:var(--p1-ink);transition:border-color .2s,box-shadow .2s}
.p1-class-card:hover{border-color:#97b0e8;box-shadow:0 5px 20px #2457ce0c}
.p1-class-card .p1-task-top>.p1-icon{color:var(--p1-muted);width:18px;height:18px}
.p1-class-card h2{font-size:16px;margin:0 0 16px}
.p1-class-card>strong{display:flex;align-items:baseline;gap:9px;font-size:36px;line-height:1}
.p1-class-card strong small{font-size:11px;font-weight:500;color:var(--p1-muted)}
.p1-class-stats{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;font-size:10px;color:var(--p1-muted)}
.p1-class-stats>span{border-radius:6px;padding:4px 7px;background:var(--p1-bg)}
.p1-class-leader{display:flex;align-items:center;gap:7px;border-top:1px solid var(--p1-line);padding-top:12px;font-size:10px;color:#a48141}
.p1-class-leader .p1-icon{width:17px;height:17px}
.p1-grade-checks{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.p1-grade-checks label{display:flex;align-items:center;gap:9px;background:var(--p1-bg);border:1px solid var(--p1-line);border-radius:10px;padding:12px;font-size:11px}
.p1-grade-checks input{width:17px;height:17px;min-height:0;accent-color:var(--p1-blue)}
.p1-student-search{display:flex;align-items:center;gap:12px;margin-bottom:20px;background:var(--p1-surface);padding:8px 17px;border:1px solid var(--p1-line);border-radius:12px;max-width:430px;color:var(--p1-muted)}
.p1-student-search input{border:0;padding:5px;min-height:36px;background:none}
.p1-student-list{display:grid;gap:13px;margin-bottom:26px}
.p1-student-row{display:flex;align-items:center;gap:17px;padding:20px;background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:17px;min-width:0}
.p1-avatar{width:43px;height:43px;flex:0 0 auto;border-radius:14px;background:#eaf0fb;color:var(--p1-blue);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700}
.p1-student-name{flex:1;min-width:120px}
.p1-student-name h3{font-size:13px;display:inline-block;margin-left:7px}
.p1-student-name small{display:block;color:var(--p1-muted);font-size:10px;margin-top:3px}
.p1-student-numbers{display:flex;align-items:center;gap:22px;font-size:10px;color:var(--p1-muted)}
.p1-student-numbers>span{text-align:center;min-width:45px}
.p1-student-numbers b{display:block;font-size:20px;color:var(--p1-ink)}
.p1-student-numbers .p1-student-points b{color:var(--p1-blue)}
.p1-progress-hero{border-radius:23px;padding:32px 36px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;background:#234fba;color:#fff;position:relative;overflow:hidden}
.p1-progress-hero:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #ffffff13;border-radius:50%;left:-110px;top:-150px;pointer-events:none}
.p1-progress-hero .p1-eyebrow{color:#bdd2ff}
.p1-progress-hero strong{font-size:58px;font-weight:800;line-height:1.3}
.p1-progress-hero strong small{font-size:15px;font-weight:500;margin-right:12px}
.p1-progress-hero p{color:#c1d0f2;font-size:12px;max-width:550px}
.p1-progress-trophy{color:#f3d08a;padding:15px;transform:rotate(-10deg)}
.p1-progress-trophy .p1-icon{width:95px;height:95px;stroke-width:1}
.p1-progress-breakdown{display:flex;width:100%;gap:30px;margin-top:23px;border-top:1px solid #ffffff24;padding-top:16px}
.p1-progress-breakdown>span{font-size:11px;color:#bfd0f3}
.p1-progress-breakdown b{font-size:17px;color:#fff;display:inline-block;margin-left:7px}
.p1-leaderboard{display:grid;gap:0;margin:8px 0 17px}
.p1-leader{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--p1-line)}
.p1-rank{width:34px;height:34px;flex:0 0 auto;background:var(--p1-bg);color:var(--p1-muted);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:13px}
.p1-rank.gold{background:#fff5e1;color:#d6a64c}
.p1-rank .p1-icon{width:20px;height:20px}
.p1-leader>span:nth-child(2){flex:1;min-width:0}
.p1-leader b{font-size:12px}
.p1-leader>strong{font-size:16px;color:var(--p1-blue);text-align:left}
.p1-leader small{display:block;font-size:9px;color:var(--p1-muted);font-weight:500}
.p1-leader.you{background:#f3f6ff;border-radius:10px;padding-right:8px;padding-left:8px}
.p1-rule{display:flex;align-items:flex-start;gap:13px;padding:16px 0;border-bottom:1px solid var(--p1-line)}
.p1-rule>.p1-icon{color:var(--p1-blue);width:22px;height:22px}
.p1-rule b{font-size:12px}
.p1-rule p{font-size:11px;margin:0}
.p1-page .p1-small-note{font-size:10px;line-height:1.9;color:var(--p1-muted)}
.p1-rule+.p1-btn{margin-top:20px}
.p1-result{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--p1-line)}
.p1-result>div{flex:1;min-width:0}
.p1-result small{font-size:10px;color:var(--p1-muted)}
.p1-result h3{font-size:13px}
.p1-result p{font-size:11px;margin:0;white-space:pre-wrap}
.p1-result>strong{font-size:20px;color:var(--p1-blue);text-align:left}
.p1-result>strong>small{font-size:11px}
.p1-result .p1-text-btn{margin-top:7px;font-size:11px;min-height:36px}
.p1-result-review{color:var(--p1-ink);line-height:1.8;overflow-wrap:anywhere}
.p1-result-review *{box-sizing:border-box;min-width:0}
.p1-result-review h2{font-size:23px;margin:6px 0 18px}
.p1-result-review h3{font-size:16px;margin:0 0 12px}
.p1-result-review h4{font-size:14px;margin:12px 0}
.p1-result-summary{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--p1-line);background:var(--p1-bg);border-radius:15px;margin-bottom:15px}
.p1-result-summary b{display:block;font-size:12px}
.p1-result-summary strong{display:block;font-size:30px;color:var(--p1-blue);line-height:1.5}
.p1-result-summary small{font-size:11px;color:var(--p1-muted)}
.p1-result-note,.p1-result-answer{padding:18px;border:1px solid var(--p1-line);border-radius:14px;margin:16px 0;background:var(--p1-bg)}
.p1-result-note.model{border-inline-start:3px solid var(--p1-teal)}
.p1-result-note p,.p1-result-answer p{white-space:pre-wrap;font-size:13px;margin:6px 0 0;overflow-wrap:anywhere}
.p1-result-answer small{font-size:11px;color:var(--p1-muted)}
.p1-result-answer .p1-correct-answer{border-top:1px solid var(--p1-line);padding-top:12px;margin-top:12px}
.p1-result-answer .p1-correct-answer small{color:var(--p1-teal);font-weight:700}
.p1-result-review>.p1-btn{margin-top:8px}
@media(max-width:700px){.p1-result-review h2{font-size:19px}.p1-result-review h3{font-size:14px}.p1-result-review h4{font-size:13px}.p1-result-note,.p1-result-answer,.p1-result-summary{padding:14px}.p1-result-note p,.p1-result-answer p{font-size:12px}.p1-result-review .p1-review-files{display:flex;flex-wrap:wrap}.p1-result-review .p1-review-files button{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px}}
.p1-award{display:flex;gap:13px;align-items:center;padding:15px;border-radius:13px;background:#fff7e7;color:#ae853d;margin-top:14px;font-size:12px}
.p1-award p{color:#a38456;font-size:11px}
.p1-reward-card.vertical{flex-direction:column;gap:8px;align-self:start}
.p1-reward-card.vertical>small{font-size:10px;color:#a18a68}
.p1-reward-card.vertical form{width:100%;margin:13px 0}
.p1-reward-grade{max-width:400px;margin-bottom:20px}
.p1-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.p1-news-card{padding:0;align-self:start}
.p1-news-author{display:flex;align-items:center;gap:11px;padding:18px 20px}
.p1-news-author>div{flex:1;min-width:0}
.p1-news-author b{font-size:12px}
.p1-news-author small{display:block;font-size:9px;color:var(--p1-muted)}
.p1-news-author h3{font-size:14px}
.p1-news-image{width:100%;max-height:500px;object-fit:contain;background:var(--p1-bg);display:block}
.p1-news-text{padding:19px 22px}
.p1-news-text h2{font-size:17px}
.p1-news-text p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.p1-stories{display:flex;gap:22px;overflow-x:auto;padding:5px 5px 20px;margin-bottom:15px;scrollbar-width:thin}
.p1-stories button{display:flex;flex-direction:column;gap:5px;align-items:center;flex:0 0 96px;background:none;border:0;cursor:pointer;font-family:inherit;color:var(--p1-ink)}
.p1-stories button>span{width:76px;height:76px;border:2px solid var(--p1-blue);padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--p1-blue)}
.p1-stories img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.p1-stories b{font-size:10px;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p1-stories small{font-size:9px;color:var(--p1-muted)}
.p1-story-view .p1-news-card{border:0;border-radius:0;background:var(--p1-surface)}
.p1-upload{border:1px dashed #b6c8e6;background:#f6f8fe;border-radius:15px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:23px;color:var(--p1-blue);font-size:12px;cursor:pointer}
.p1-upload small{font-size:10px;color:var(--p1-muted)}
.p1-upload input{max-width:100%;font-size:11px;min-height:0;padding:6px}
.p1-image-preview{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}
.p1-image-preview img{width:75px;height:75px;border-radius:10px;object-fit:cover;border:1px solid var(--p1-line)}
.p1-forum-invite{display:flex;align-items:center;gap:17px;padding:23px;background:#edf3fd;border:1px solid #e1e9f8;border-radius:20px;margin-bottom:23px}
.p1-forum-invite>div{flex:1}
.p1-forum-invite h2{font-size:17px}
.p1-forum-invite p{font-size:12px}
.p1-thread-list{display:grid;gap:14px}
.p1-thread{display:flex;align-items:flex-start;gap:17px;padding:23px;background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:18px;text-align:right;cursor:pointer;font-family:inherit;min-width:0}
.p1-thread>div{flex:1;min-width:0}
.p1-thread h3{font-size:16px}
.p1-thread p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.p1-thread small{font-size:10px;color:var(--p1-muted)}
.p1-thread>.p1-icon{color:var(--p1-muted);width:18px;height:18px;margin-top:7px}
.p1-discussion{color:var(--p1-ink)}
.p1-discussion h2{font-size:21px;margin-bottom:14px}
.p1-discussion h3{margin-top:22px;font-size:15px}
.p1-discussion .p1-forum-body{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--p1-ink);font-size:14px;line-height:2}
.p1-reply{padding:18px;margin:14px 0;border-radius:13px;border:1px solid var(--p1-line);background:var(--p1-bg)}
.p1-reply b{font-size:12px}
.p1-reply p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:5px 0;color:var(--p1-ink)}
.p1-reply small{font-size:9px;color:var(--p1-muted)}
.p1-chat-panel{max-width:850px;margin:auto;background:var(--p1-surface);padding:27px;border:1px solid var(--p1-line);border-radius:21px}
.p1-chat-intro{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--p1-line);padding-bottom:22px;margin-bottom:20px}
.p1-chat-intro>div{flex:1}
.p1-chat-intro h2{font-size:17px}
.p1-chat-intro p{font-size:11px}
.p1-chat-pending{text-align:center;padding:45px 20px}
.p1-chat-pending>.p1-icon{color:var(--p1-blue);width:64px;height:64px;stroke-width:1}
.p1-chat-pending h3{margin-top:18px}
.p1-chat-pending p{max-width:420px;margin:8px auto 24px}
.p1-chat-history{display:flex;flex-direction:column;gap:14px;max-height:550px;overflow-y:auto;padding:4px 5px 20px;scrollbar-width:thin}
.p1-message{max-width:92%;border-radius:17px;padding:14px 18px;overflow-wrap:anywhere}
.p1-message.user{align-self:flex-start;background:#edf3fd;border:1px solid #e3eaf8}
.p1-message.assistant{align-self:flex-end;background:var(--p1-bg);border:1px solid var(--p1-line)}
.p1-message>span{font-size:10px;color:var(--p1-blue);font-weight:700;display:flex;align-items:center;gap:6px}
.p1-message>span .p1-icon{width:17px;height:17px}
.p1-message p{white-space:pre-wrap;font-size:13px;color:var(--p1-ink);line-height:1.95}
.p1-chat-welcome{color:var(--p1-muted);font-size:12px;text-align:center;padding:20px}
.p1-chat-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}
.p1-chat-prompts .p1-soft-btn{font-size:10px;min-height:36px;padding:7px 11px}
.p1-chat-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.p1-chat-footer small{font-size:10px;color:var(--p1-muted)}
.p1-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.p1-review-card .p1-news-author{padding:0 0 20px}
.p1-review-card form{display:grid;gap:15px}
.p1-review-answer{padding:16px;border:1px solid var(--p1-line);background:var(--p1-bg);border-radius:12px;margin-bottom:12px}
.p1-review-answer>b{font-size:12px}
.p1-review-answer>p{color:var(--p1-ink);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.p1-review-answer small{font-size:10px;color:var(--p1-muted)}
.p1-review-files{display:flex;gap:9px;flex-wrap:wrap}
.p1-review-files button{overflow-wrap:anywhere;max-width:100%}
.p1-solve{color:var(--p1-ink);padding-top:8px}
.p1-solve h2{font-size:21px;line-height:1.8}
.p1-solve>p{font-size:12px;line-height:1.9;color:var(--p1-muted)}
.p1-solve textarea{width:100%;border:1px solid var(--p1-line);border-radius:10px;padding:12px;font-family:inherit;background:var(--p1-surface);color:var(--p1-ink);resize:vertical}
.p1-answer{border:1px solid var(--p1-line);border-radius:15px;padding:20px;margin:25px 0}
.p1-answer legend{font-size:14px;line-height:1.9;font-weight:600;white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:0 6px}
.p1-answer legend>span{display:inline-flex;align-items:center;justify-content:center;background:#edf2ff;color:var(--p1-blue);width:26px;height:26px;border-radius:8px;margin-left:8px;font-size:12px}
.p1-answer legend small{display:block;font-size:10px;color:var(--p1-muted);font-weight:500;margin-top:3px}
.p1-answer-choices{display:grid;gap:11px}
.p1-answer-choices label{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--p1-line);border-radius:10px;cursor:pointer;font-size:13px;line-height:1.8;background:var(--p1-surface)}
.p1-answer-choices label:has(input:checked){background:#edf3ff;border-color:var(--p1-blue);color:var(--p1-blue)}
.p1-answer-choices input{accent-color:var(--p1-blue);width:17px;height:17px;flex:0 0 auto}
.p1-exam-timer{position:sticky;top:0;background:#fff3df;color:#ac7b31;border:1px solid #f3e4c8;border-radius:10px;padding:10px 14px;margin:14px 0;font-size:13px;font-weight:600;z-index:1;font-variant-numeric:tabular-nums}
.p1-completion{text-align:center;padding:35px 10px;color:var(--p1-ink)}
.p1-completion>.p1-icon{display:block;width:60px;height:60px;margin:0 auto 20px;background:#e8f5ee;color:#2a8b6f;border-radius:50%;padding:15px}
.p1-completion h2{font-size:22px;line-height:1.8}
.p1-completion>strong{display:block;font-size:52px;color:var(--p1-blue);margin:15px 0;font-weight:800}
.p1-completion>strong small{font-size:20px;color:var(--p1-muted);font-weight:500}
.p1-completion p{font-size:13px;color:var(--p1-muted);line-height:1.9;margin:12px auto 22px;max-width:400px}
.p1-settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.p1-notification-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--p1-muted);margin:17px 0}
.p1-notification{display:flex;align-items:flex-start;gap:12px;padding:17px 13px;margin-bottom:9px;border:1px solid var(--p1-line);border-radius:13px;background:var(--p1-surface);font-family:inherit;text-align:right;width:100%;color:var(--p1-ink);cursor:pointer}
.p1-notification.unread{background:#f2f6ff;border-right:3px solid #3564cf}
.p1-notification .p1-square{width:34px;height:34px;border-radius:10px}
.p1-notification .p1-square .p1-icon{width:18px;height:18px}
.p1-notification>div{flex:1;min-width:0}
.p1-notification b{font-size:12px;line-height:1.8}
.p1-notification p{margin:4px 0;color:var(--p1-muted);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.p1-notification small{font-size:9px;color:var(--p1-muted)}
.p1-notification>.p1-icon{width:15px;height:15px;color:var(--p1-muted);margin-top:6px}
.p1-loading{display:flex;gap:12px;align-items:center;justify-content:center;min-height:270px;color:var(--p1-muted);font-size:13px}
.p1-loading .p1-icon{color:var(--p1-blue);animation:p1-breathe 1.4s ease-in-out infinite alternate}
@keyframes p1-breathe{to{opacity:.3;transform:scale(.8)}}
.p1-floating-ai{position:fixed;left:24px;bottom:25px;z-index:80;display:flex;align-items:center;gap:12px;border:1px solid #bcd0ee;background:#fff;border-radius:17px;box-shadow:0 5px 30px #24468420;color:#2457ce;padding:12px 18px;font-family:inherit;text-align:right;cursor:pointer}
.p1-floating-ai>.p1-icon{width:30px;height:30px}
.p1-floating-ai>span{font-size:10px;line-height:1.6}
.p1-floating-ai b{display:block;font-size:12px}
#p1MobileNav{display:none}
.p1-shell .toast{bottom:28px;max-width:min(440px,calc(100vw - 30px));font-size:12px;line-height:1.8}
.p1-shell .dialog-card{background:var(--p1-surface);color:var(--p1-ink);border:1px solid var(--p1-line)}
.p1-shell .dialog-card .field{font-size:12px;display:flex;flex-direction:column;gap:7px;margin:10px 0}
.p1-shell .dialog-card input:not([type=radio]),.p1-shell .dialog-card textarea{font-family:inherit;background:var(--p1-surface);color:var(--p1-ink);border:1px solid var(--p1-line);border-radius:10px;padding:10px;max-width:100%}
.p1-shell .notification-dialog h2{font-size:21px}
body.p1-shell .notification-btn{display:inline-flex!important;align-items:center;justify-content:center}
body.p1-shell .top-quick-nav{margin:0;border-radius:0;box-shadow:none;background:var(--p1-surface);height:auto;min-height:60px}
body.p1-shell .topnav-item{color:var(--p1-muted);border:0;border-bottom:0}
body.p1-shell .topnav-item.active,body.p1-shell .topnav-item:hover{color:var(--p1-blue);background:#edf2ff;border-bottom:0}
.dark.p1-shell .topnav-item.active,.dark.p1-shell .topnav-item:hover{background:#263b5e}
body.p1-shell .page-content{background:var(--p1-bg)}
body.p1-shell #proCollapseSidebar{display:none}
.p1-page [hidden]{display:none!important}
.p1-page .hidden,.p1-shell .p1-floating-ai.hidden{display:none!important}
.dark.p1-shell{--p1-ink:#e0e8f9;--p1-muted:#91a3c4;--p1-blue:#8cabff;--p1-teal:#72c4b8;--p1-orange:#e2ba76;--p1-surface:#172642;--p1-bg:#101c32;--p1-line:#2a3b5a}
.dark .p1-btn{background:#3765d5;color:#fff}
.dark .p1-soft-btn,.dark .p1-square,.dark .p1-illustration{background:#263959;border-color:#344c70;color:#9fbbff}
.dark .p1-square.teal,.dark .p1-metric.teal .p1-square,.dark .p1-task.sheet .p1-square{background:#213f45;color:#79cabc}
.dark .p1-square.orange,.dark .p1-metric.orange .p1-square,.dark .p1-task.exam .p1-square{background:#403849;color:#e1bc7b}
.dark .p1-welcome{background:#203455;border-color:#2c4161}
.dark .p1-welcome p{color:#a3b5d6}
.dark .p1-art-book{background:#3563d1;box-shadow:12px 17px 0 #30486f}
.dark .p1-art-note{background:#514635;color:#e6d0a8}
.dark .p1-art-note b{color:#f0ddbd}
.dark .p1-art-check{border-color:#203455;background:#285048;color:#92ddba}
.dark .p1-reward-card{background:#343044;border-color:#494054}
.dark .p1-reward-card h2{color:#e4c899}
.dark .p1-reward-card p,.dark .p1-reward-card.vertical>small,.dark .p1-rank-note{color:#b7a98e}
.dark .p1-assistant-card,.dark .p1-admin-note,.dark .p1-forum-invite{background:#1e304b;border-color:#2a4264}
.dark .p1-assistant-card .p1-square{background:#293f5e}
.dark .p1-pill{background:#2a3851;color:#adc0db}
.dark .p1-pill.green,.dark .p1-task-result{background:#233e3d;color:#89d0b0}
.dark .p1-pill.orange,.dark .p1-rank.gold,.dark .p1-award,.dark .p1-exam-timer{background:#42394a;border-color:#59494c;color:#e3bd7f}
.dark .p1-award p{color:#c9b093}
.dark .p1-tip{background:#1f3454;border-color:#2b4368;color:#9ab5da}
.dark .p1-leader.you,.dark .p1-upload,.dark .p1-notification.unread,.dark .p1-message.user{background:#223959;border-color:#314c72}
.dark .p1-floating-ai{background:#1d3152;border-color:#3b5680;color:#a5c0ff}
.dark .p1-answer-choices label:has(input:checked){background:#253f67;border-color:#91b2ff;color:#bfd4ff}
.dark .p1-answer legend>span{background:#2b4266;color:#a9c5ff}
.dark .p1-activity-dot{box-shadow:0 0 0 5px #243b42}
@media(min-width:1700px){.p1-shell .page-content{padding-bottom:90px}}
@media(max-width:1180px){.p1-shell .page-content{padding:25px}.p1-welcome{padding:30px}.p1-welcome-art{flex-basis:235px;height:200px}.p1-task-grid,.p1-session-grid,.p1-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.p1-paths{gap:10px}.p1-paths button{padding:14px;gap:8px}.p1-paths .p1-square{width:38px;height:38px;border-radius:11px}.p1-paths b{font-size:11px}.p1-student-row{flex-wrap:wrap}.p1-student-numbers{flex:1;justify-content:center}.p1-staff-actions{grid-template-columns:repeat(2,1fr)}.p1-grade-checks{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.p1-shell .page-content{padding:23px 24px 120px}.p1-shell .top-quick-nav{padding:9px 24px}.p1-teacher-grid{grid-template-columns:1fr 1fr}.p1-welcome-art{flex-basis:270px}.p1-home-bottom{grid-template-columns:1fr 1fr}#p1MobileNav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:85;background:var(--p1-surface);border-top:1px solid var(--p1-line);padding:7px 10px max(8px,env(safe-area-inset-bottom));box-shadow:0 -3px 18px #1a355408;align-items:center;justify-content:space-around}#p1MobileNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;min-height:50px;padding:4px;border:0;background:none;font-family:inherit;color:var(--p1-muted);cursor:pointer;min-width:0}#p1MobileNav button span{font-size:9px;font-weight:600}#p1MobileNav button .p1-icon{width:21px;height:21px}#p1MobileNav button.active{color:var(--p1-blue)}#p1MobileNav button.active .p1-icon{background:#eaf0fe;border-radius:9px;box-sizing:content-box;padding:5px;margin:-5px}.dark #p1MobileNav button.active .p1-icon{background:#263a5d}.p1-floating-ai{bottom:84px;left:18px;padding:9px 13px;border-radius:14px;gap:9px}.p1-floating-ai>.p1-icon{width:25px;height:25px}.p1-floating-ai>span{font-size:9px}.p1-floating-ai b{font-size:11px}.p1-shell .toast{bottom:150px;left:15px;right:15px;margin:auto;max-width:430px}.p1-shell .sidebar{padding-bottom:85px}.p1-shell .app-header{padding:15px 24px}}
@media(max-width:700px){.p1-heading{align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:21px}.p1-heading h1{font-size:23px}.p1-heading p{font-size:11px}.p1-heading>.p1-btn{font-size:11px;min-height:42px;padding:10px 13px}.p1-shell .top-quick-nav{display:none}.p1-shell .app-header{padding:13px 17px}.p1-shell .app-header .app-logo{display:none}.p1-shell .profile-block{gap:8px}.p1-shell .profile-block b{font-size:12px}.p1-shell .profile-block small{font-size:9px}.p1-shell .app-header-actions{gap:6px}.p1-shell .app-header .phone-box,.p1-shell .app-header .account-button{display:none}.p1-shell .profile-avatar{width:35px;height:35px;font-size:15px}.p1-shell .app-header .round-btn{width:37px;height:37px}.p1-shell .app-header .round-btn .p1-icon{width:21px;height:21px}.p1-shell .page-content{padding:21px 17px 175px}.p1-welcome{border-radius:21px;padding:25px 24px;min-height:248px;gap:0;align-items:flex-start}.p1-welcome>div:first-child{position:relative;z-index:1;min-width:0;flex:1}.p1-welcome h1{font-size:26px;margin:6px 0 10px}.p1-welcome h1 span{font-size:18px}.p1-welcome .p1-eyebrow{font-size:9px}.p1-welcome p{font-size:11px;max-width:225px;margin-bottom:19px}.p1-welcome .p1-btn{padding:10px 13px;font-size:11px;min-height:41px}.p1-welcome-art{position:absolute;left:-18px;bottom:-15px;transform:scale(.62);transform-origin:left bottom;width:210px;height:185px;opacity:.85}.p1-art-book{inset:23px 43px 36px 23px;box-shadow:9px 12px 0 #d2ddf5}.p1-art-book .p1-icon{width:75px;height:75px}.p1-art-star{top:0;left:0}.p1-art-check{width:43px;height:43px;right:4px;top:8px;border-width:3px}.p1-art-note{font-size:10px;right:0;bottom:8px;padding:9px 12px}.p1-art-note b{font-size:15px}.p1-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 20px}.p1-metric{padding:13px 9px;gap:6px;border-radius:13px;flex-direction:column;align-items:flex-start;min-width:0}.p1-metric .p1-square{width:30px;height:30px;border-radius:9px;margin-bottom:4px}.p1-metric .p1-square .p1-icon{width:17px;height:17px}.p1-metric strong{font-size:23px}.p1-metric div>span{font-size:9px;display:block;line-height:1.7}.p1-teacher-dashboard .p1-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.p1-teacher-dashboard .p1-metric{flex-direction:row;align-items:center;gap:11px;padding:16px}.p1-teacher-dashboard .p1-metric .p1-square{width:37px;height:37px;border-radius:10px}.p1-paths{grid-template-columns:1fr;gap:9px;margin-bottom:26px}.p1-paths button{padding:13px 15px;border-radius:14px;gap:13px}.p1-paths .p1-square{width:39px;height:39px;border-radius:11px}.p1-paths .p1-square .p1-icon{width:21px;height:21px}.p1-paths b{font-size:12px}.p1-paths small{font-size:10px}.p1-section-head h2{font-size:18px}.p1-section-head .p1-eyebrow{font-size:10px}.p1-task-grid,.p1-session-grid,.p1-news-grid,.p1-review-grid{grid-template-columns:1fr;gap:15px}.p1-task,.p1-session{padding:20px;border-radius:17px}.p1-task-top{margin-bottom:13px}.p1-task h3{font-size:16px}.p1-task p{font-size:12px}.p1-task-meta{font-size:10px}.p1-home-bottom,.p1-teacher-grid,.p1-progress-grid{grid-template-columns:1fr;gap:16px}.p1-reward-card{padding:22px;gap:14px}.p1-reward-card h2{font-size:17px}.p1-community-card{padding:22px}.p1-assistant-card,.p1-admin-note{padding:20px;flex-wrap:wrap;gap:13px}.p1-assistant-card>div{flex-basis:calc(100% - 66px)}.p1-assistant-card h3{font-size:14px}.p1-assistant-card p{font-size:11px}.p1-assistant-card>.p1-soft-btn{margin-right:61px;min-height:40px;font-size:11px}.p1-empty{padding:27px 19px;border-radius:17px}.p1-empty h3{font-size:16px}.p1-empty p{font-size:11px}.p1-illustration{width:65px;height:65px;border-radius:20px}.p1-illustration .p1-icon{width:33px;height:33px}.p1-panel{padding:21px 18px;border-radius:17px;margin-bottom:18px}.p1-teacher-grid>.p1-panel{margin:0}.p1-staff-actions{gap:10px;margin:17px 0}.p1-action-tile{font-size:10px;padding:17px 9px;gap:9px;border-radius:13px}.p1-action-tile .p1-icon{width:20px;height:20px}.p1-mini-classes .p1-square{width:33px;height:33px}.p1-mini-classes b{font-size:11px}.p1-mini-classes small{font-size:9px}.p1-filters{gap:7px}.p1-filters>button{font-size:10px;padding:7px 12px;min-height:37px;border-radius:9px}.p1-page .two-col{grid-template-columns:1fr;gap:13px}.p1-question-editor{padding:15px;gap:12px}.p1-question-head .p1-text-btn{font-size:10px}.p1-month-label{font-size:10px}.p1-month-label input{font-size:11px;padding:9px}.p1-class-grid{grid-template-columns:1fr;gap:14px}.p1-class-card{padding:21px}.p1-class-card h2{font-size:16px}.p1-class-card>strong{font-size:32px}.p1-grade-checks{grid-template-columns:1fr;gap:9px}.p1-grade-checks label{font-size:11px}.p1-student-row{padding:16px;gap:12px;border-radius:15px}.p1-student-name{flex:1;min-width:0}.p1-student-name h3{display:block;font-size:13px}.p1-student-name .p1-pill{font-size:9px}.p1-student-name small{font-size:9px}.p1-student-numbers{flex:0 0 100%;width:100%;justify-content:space-between;gap:7px;border-top:1px solid var(--p1-line);padding-top:12px;margin-top:4px}.p1-student-numbers b{font-size:20px}.p1-student-numbers>span{font-size:9px;min-width:0}.p1-student-row>.p1-soft-btn{width:100%;margin-top:4px;font-size:11px;min-height:39px}.p1-student-search{max-width:100%}.p1-progress-hero{padding:26px 24px;border-radius:20px;gap:0}.p1-progress-hero>div:first-child{flex:1;min-width:0}.p1-progress-hero strong{font-size:47px}.p1-progress-hero p{font-size:10px;max-width:225px}.p1-progress-trophy{padding:8px 0 8px 8px}.p1-progress-trophy .p1-icon{width:61px;height:61px}.p1-progress-breakdown{gap:15px;margin-top:18px;padding-top:14px;justify-content:space-between}.p1-progress-breakdown>span{font-size:9px;text-align:center}.p1-progress-breakdown b{font-size:17px;display:block;margin:0 0 3px}.p1-progress-grid>.p1-panel{margin-bottom:0}.p1-progress-grid{margin-bottom:18px}.p1-progress-grid h2{font-size:18px}.p1-result{gap:11px}.p1-result .p1-square{width:35px;height:35px;border-radius:10px}.p1-result .p1-square .p1-icon{width:18px;height:18px}.p1-result h3{font-size:12px}.p1-result small{font-size:9px}.p1-result>strong{font-size:18px;flex:0 0 auto}.p1-result>strong>small{font-size:9px}.p1-result>strong>small:only-child{display:block;max-width:62px}.p1-rule{padding:14px 0}.p1-rule b{font-size:11px}.p1-rule p{font-size:10px}.p1-news-author{padding:16px}.p1-news-text{padding:18px}.p1-news-text h2{font-size:16px}.p1-news-author .p1-avatar{width:35px;height:35px;border-radius:11px;font-size:15px}.p1-news-author .p1-text-btn{font-size:10px}.p1-stories{gap:15px}.p1-forum-invite{padding:20px;gap:12px;flex-wrap:wrap}.p1-forum-invite>div{flex:1;min-width:0}.p1-forum-invite h2{font-size:15px}.p1-forum-invite p{font-size:11px}.p1-forum-invite>.p1-btn{flex-basis:100%}.p1-thread{padding:18px;gap:12px}.p1-thread .p1-avatar{width:32px;height:32px;border-radius:10px;font-size:15px}.p1-thread h3{font-size:14px}.p1-thread p{font-size:11px}.p1-thread .p1-eyebrow{font-size:9px}.p1-thread>.p1-icon{display:none}.p1-chat-panel{padding:20px 17px;border-radius:17px}.p1-chat-intro{gap:10px;flex-wrap:wrap}.p1-chat-intro .p1-square{width:38px;height:38px;border-radius:12px}.p1-chat-intro>div{flex:1}.p1-chat-intro h2{font-size:14px}.p1-chat-intro p{font-size:10px}.p1-chat-intro>.p1-pill{margin-right:48px}.p1-chat-pending{padding:28px 4px}.p1-chat-pending p{font-size:12px}.p1-message{padding:13px;max-width:95%}.p1-message p{font-size:12px}.p1-chat-footer{flex-wrap:wrap}.p1-chat-footer small{font-size:9px}.p1-review-card{padding:19px}.p1-review-card .p1-news-author{gap:10px}.p1-review-card .p1-news-author h3{font-size:13px}.p1-review-card .p1-news-author small{font-size:9px}.p1-solve h2{font-size:18px}.p1-answer{padding:15px 13px;margin:22px 0;border-radius:12px}.p1-answer legend{font-size:13px;padding:0 4px}.p1-answer-choices label{font-size:12px;padding:11px}.p1-solve .p1-btn{font-size:11px}.p1-shell .wide-dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);padding:27px 18px 22px;max-height:90dvh;overflow-y:auto}.p1-shell .notification-dialog{width:calc(100% - 24px);padding:25px 16px;max-height:86dvh}.p1-completion{padding:30px 4px}.p1-completion h2{font-size:19px}.p1-completion p{font-size:12px}.p1-settings-grid{grid-template-columns:1fr;gap:15px}.p1-notification{padding:14px 10px;gap:10px}.p1-notification b{font-size:11px}.p1-notification p{font-size:10px}.p1-notification>.p1-icon{display:none}}
@media(max-width:360px){.p1-shell .page-content{padding-right:13px;padding-left:13px}.p1-welcome{padding:23px 19px}.p1-welcome h1{font-size:23px}.p1-welcome h1 span{font-size:16px}.p1-welcome-art{left:-35px;transform:scale(.53)}.p1-welcome p{font-size:10px}.p1-metric{padding:11px 8px}.p1-metric strong{font-size:21px}.p1-metric div>span{font-size:8px}.p1-student-numbers b{font-size:18px}.p1-heading h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){.p1-page *,.p1-shell .p1-loading .p1-icon,.p1-floating-ai{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){body .marketing-header{gap:12px;padding:8px 12px;height:78px}body .brand-image img{width:136px;max-width:34vw}body .marketing-actions{gap:7px;min-width:0}body .marketing-actions .primary-btn,body .marketing-actions .secondary-btn{padding:9px 12px;font-size:12px;min-height:42px}body .auth-dialog{width:calc(100% - 28px);max-width:calc(100% - 28px);padding:22px 20px;max-height:calc(100dvh - 28px);overflow-y:auto}body .auth-form label,body .auth-form input,body .auth-form select{min-width:0;max-width:100%}}

/* Keep only the student's remaining task count compact; admin metrics stay in a desktop row. */
.p1-dashboard.st-dashboard.student .p1-metrics{grid-template-columns:min(240px,100%)}
.p1-teacher-dashboard.st-dashboard.admin .p1-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.p1-teacher-dashboard.st-dashboard.admin .p1-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


.p1-exam-pledge{max-width:620px;margin:0 auto;padding:clamp(22px,5vw,38px);border:1px solid var(--p1-line);border-radius:24px;background:linear-gradient(150deg,var(--p1-surface),rgba(35,88,190,.045));color:var(--p1-ink);text-align:center;box-shadow:0 18px 50px rgba(23,56,143,.1)}
.p1-exam-pledge .p1-pledge-icon{width:54px;height:54px;margin:0 auto 13px;display:grid;place-items:center;border-radius:17px;background:rgba(35,88,190,.1);color:var(--p1-blue)}
.p1-exam-pledge .p1-pledge-icon .p1-icon{width:26px;height:26px}
.p1-exam-pledge h2{font-size:clamp(21px,4vw,28px);line-height:1.55;margin:6px 0 10px}
.p1-exam-pledge .p1-pledge-lead{max-width:450px;margin:0 auto 20px;color:var(--p1-muted);font-size:13px;line-height:1.9}
.p1-exam-pledge blockquote{margin:0;padding:19px 21px;border:1px solid rgba(35,88,190,.16);border-right:4px solid var(--p1-blue);border-radius:16px;background:rgba(35,88,190,.055);color:var(--p1-ink);font-size:15px;font-weight:700;line-height:2}
.p1-pledge-agree{display:flex;align-items:center;justify-content:center;gap:11px;margin:20px auto 8px;padding:14px;border-radius:13px;background:var(--p1-surface);border:1px solid var(--p1-line);font-weight:700;font-size:13px;cursor:pointer}
.p1-pledge-agree input{width:19px;height:19px;accent-color:var(--p1-blue);flex:0 0 auto}
.p1-pledge-agree input:disabled{opacity:.55}
.p1-pledge-countdown{min-height:27px;margin:8px 0 2px;color:var(--p1-muted);font-size:12px}
.p1-exam-pledge .p1-form-error{min-height:22px;margin:8px 0 0;font-size:12px}
.p1-pledge-actions{display:flex;justify-content:center;gap:10px;margin-top:15px}
.p1-pledge-actions .p1-btn,.p1-pledge-actions .p1-soft-btn{min-width:150px}
.p1-exam-solve{padding-top:0}
.p1-exam-solve-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid var(--p1-line);border-radius:19px;background:linear-gradient(135deg,rgba(35,88,190,.075),var(--p1-surface) 72%);margin-bottom:16px}
.p1-exam-solve-head h2{font-size:22px;line-height:1.55;margin:5px 0}
.p1-exam-solve-head p{margin:0;color:var(--p1-muted);font-size:12px;line-height:1.8}
.p1-exam-solve-head .p1-exam-timer{position:static;flex:0 0 auto;margin:0;min-width:145px;text-align:center}
.p1-exam-duration{white-space:nowrap;padding:9px 13px}
.p1-exam-question-progress{padding:14px 17px;margin:0 0 18px;border:1px solid var(--p1-line);border-radius:15px;background:var(--p1-surface);display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,1.2fr);gap:5px 20px;align-items:center}
.p1-exam-question-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}
.p1-exam-question-progress b{font-size:12px;color:var(--p1-ink)}
.p1-exam-question-progress small{font-size:10px;color:var(--p1-muted)}
.p1-exam-progress-track{height:8px;overflow:hidden;border-radius:99px;background:rgba(35,88,190,.11)}
.p1-exam-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e93446,var(--p1-blue));transition:width .25s ease}
.p1-exam-solve .p1-solve-instructions{margin:0 0 14px;padding:12px 15px;border-radius:12px;background:rgba(35,88,190,.045)}
.p1-exam-answer-form .p1-answer{padding:19px 21px;margin:14px 0;border-radius:17px;background:var(--p1-surface);box-shadow:0 4px 15px rgba(25,45,80,.035)}
.p1-exam-answer-form .p1-answer legend{font-size:15px}
.p1-exam-answer-form .p1-answer-choices label{transition:background .16s ease,border-color .16s ease,transform .16s ease}
.p1-exam-answer-form .p1-answer-choices label:hover{border-color:var(--p1-blue);transform:translateY(-1px)}
.dark .p1-exam-pledge,.dark .p1-exam-solve-head,.dark .p1-exam-question-progress,.dark .p1-exam-answer-form .p1-answer{background:#132033;border-color:#2b3b54;box-shadow:none}
.dark .p1-exam-pledge blockquote,.dark .p1-exam-solve .p1-solve-instructions{background:rgba(100,145,230,.09);border-color:#33496b;color:#e8f0ff}
.dark .p1-pledge-agree{background:#101b2c;border-color:#2b3b54}
.dark .p1-exam-progress-track{background:#263751}
.dark .p1-exam-answer-form .p1-answer-choices label:hover{background:#1b2d47}
@media(max-width:600px){
 .p1-exam-pledge{padding:21px 16px;border-radius:19px}
 .p1-exam-pledge blockquote{padding:15px;font-size:13px;line-height:1.9}
 .p1-pledge-agree{justify-content:flex-start;text-align:right;font-size:12px}
 .p1-pledge-actions{display:grid;grid-template-columns:1fr 1.4fr}
 .p1-pledge-actions .p1-btn,.p1-pledge-actions .p1-soft-btn{min-width:0;padding-inline:10px;font-size:11px}
 .p1-exam-solve-head{align-items:flex-start;padding:16px 14px;border-radius:15px;gap:10px}
 .p1-exam-solve-head h2{font-size:18px;overflow-wrap:anywhere}
 .p1-exam-solve-head p{font-size:10px}
 .p1-exam-solve-head .p1-exam-timer{min-width:108px;padding:8px 9px;font-size:11px}
 .p1-exam-duration{font-size:10px;padding:7px 9px}
 .p1-exam-question-progress{grid-template-columns:1fr;padding:12px;gap:10px}
 .p1-exam-question-progress>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}
 .p1-exam-answer-form .p1-answer{padding:15px 13px;margin:12px 0;border-radius:14px}
 .p1-exam-answer-form .p1-answer legend{font-size:13px}
}
.p1-pledge-exam-title{display:inline-flex;margin:0 auto 12px;padding:7px 12px;border-radius:999px;background:rgba(35,88,190,.09);color:var(--p1-blue);font-size:12px;font-weight:800}
.dark .p1-pledge-exam-title{background:#213653;color:#c3d8ff}
.p1-draft-status{margin:0;color:var(--p1-muted);font-size:12px}
#p1ExamScheduleField>small{grid-column:1/-1;color:var(--p1-muted);font-size:12px}


/* Clear ownership and actions on admin exam cards. */
.p1-task.p1-admin-exam{border:1px solid #dce6f5;border-top:3px solid #d8a54d;border-radius:20px;background:linear-gradient(155deg,#fff 0%,#f8faff 100%);box-shadow:0 9px 24px rgba(26,55,103,.07);padding:22px;gap:2px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.p1-task.p1-admin-exam:hover{transform:translateY(-3px);border-color:#bfd1ec;box-shadow:0 14px 28px rgba(26,55,103,.12)}
.p1-task.p1-admin-exam .p1-task-owner{display:flex;align-items:center;gap:7px;width:fit-content;max-width:100%;margin:2px 0 10px;padding:6px 10px;border:1px solid #e4eaf4;border-radius:11px;background:#f0f5fc;color:#60728d;font-size:11px;line-height:1.7}
.p1-task.p1-admin-exam .p1-task-owner b{color:#234d98;font-weight:800}
.p1-task.p1-admin-exam .p1-results-btn{width:100%;margin-top:9px;min-height:43px;border-radius:12px}
.p1-task.p1-admin-exam .p1-manage-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-top:8px}
.p1-task.p1-admin-exam .p1-manage-actions button{min-height:36px;padding:6px 12px;border-radius:10px}
.dark .p1-task.p1-admin-exam{background:linear-gradient(155deg,#182941 0%,#14233a 100%);border-color:#344966;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.dark .p1-task.p1-admin-exam .p1-task-owner{background:#20334e;border-color:#3a4f6b;color:#b9c8dd}
.dark .p1-task.p1-admin-exam .p1-task-owner b{color:#a8c8ff}
@media(max-width:700px){.p1-task.p1-admin-exam{padding:17px;border-radius:17px}.p1-task.p1-admin-exam .p1-task-owner{font-size:10px}}


/* Student mobile maintenance 2026-10-25 */
.p1-task-ident{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.p1-kind-badge,.p1-new-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:800;line-height:1.35;white-space:nowrap}
.p1-kind-badge{background:#edf2ff;color:var(--p1-blue)}
.p1-kind-badge.sheet{background:#e7f5f2;color:#277e72}
.p1-kind-badge.exam{background:#fff2dd;color:#a66f20}
.p1-new-badge{background:#e8f7ef;color:#238366;border:1px solid #caead9}
.dark .p1-kind-badge{background:#263959;color:#a9c3ff}
.dark .p1-kind-badge.sheet{background:#213f45;color:#80cec1}
.dark .p1-kind-badge.exam{background:#403849;color:#e6c080}
.dark .p1-new-badge{background:#213e38;border-color:#31564c;color:#8bd0b3}
.p1-section-groups{display:grid;gap:13px}
.p1-section-group{display:grid;gap:8px}
.p1-section-group>h3{margin:0;padding-inline:3px;color:var(--p1-muted);font-size:10px;font-weight:800}
.p1-coming-soon .p1-empty{margin-top:14px}
@media(max-width:700px){
 .p1-student-shell .p1-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;gap:8px;margin-inline:-2px;padding:2px 2px 7px;scrollbar-width:none}
 .p1-student-shell .p1-filters::-webkit-scrollbar{display:none}
 .p1-student-shell .p1-filters>button{flex:0 0 auto;min-height:38px;padding:7px 13px;border-radius:999px;scroll-snap-align:start;font-size:10px}
 .p1-student-shell .p1-task-grid{gap:12px}
 .p1-student-shell .p1-task{padding:15px 14px;border-radius:16px}
 .p1-student-shell .p1-task-top{margin-bottom:11px;align-items:flex-start}
 .p1-student-shell .p1-task .p1-square{width:39px;height:39px;border-radius:11px}
 .p1-student-shell .p1-task .p1-square .p1-icon{width:20px;height:20px}
 .p1-student-shell .p1-task h3{font-size:15px;line-height:1.6;margin:2px 0 3px}
 .p1-student-shell .p1-task p{font-size:10.5px;line-height:1.75;margin-bottom:10px}
 .p1-student-shell .p1-task-meta{font-size:9.5px;line-height:1.7;margin-bottom:12px}
 .p1-student-shell .p1-task .p1-btn{min-height:41px;border-radius:11px}
 .p1-student-shell .p1-empty{padding:18px 14px;border-radius:16px;gap:4px}
 .p1-student-shell .p1-empty .p1-illustration{width:50px;height:50px;border-radius:15px}
 .p1-student-shell .p1-empty .p1-illustration .p1-icon{width:26px;height:26px}
 .p1-student-shell .p1-empty h3{font-size:14px;margin-top:2px}
 .p1-student-shell .p1-empty p{font-size:10.5px;line-height:1.75;margin-bottom:5px}
 .p1-student-shell .p1-section-dialog{width:min(94vw,430px);max-height:88dvh;padding:15px;border-radius:20px}
 .p1-student-shell .p1-section-menu-head{margin-bottom:9px}
 .p1-student-shell .p1-section-menu-head h2{font-size:19px}
 .p1-student-shell .p1-section-menu-head p{font-size:10px;margin-top:2px}
 .p1-student-shell .p1-section-groups{gap:10px}
 .p1-student-shell .p1-section-group{gap:6px}
 .p1-student-shell .p1-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .p1-student-shell .p1-section-tile{min-height:54px;padding:8px 9px;border-radius:12px;gap:7px}
 .p1-student-shell .p1-section-tile .p1-square{width:32px;height:32px;border-radius:9px}
 .p1-student-shell .p1-section-tile .p1-square .p1-icon{width:17px;height:17px}
 .p1-student-shell .p1-section-tile b{font-size:9.5px;line-height:1.5}
 .p1-student-shell .p1-section-tile>.p1-icon{width:14px;height:14px}
 .p1-student-shell .ac-menu-account{margin-top:10px;padding-top:10px}
 .p1-student-shell .p1-progress-hero{padding:22px 18px;border-radius:18px;gap:8px}
 .p1-student-shell .p1-progress-hero strong{font-size:44px}
 .p1-student-shell .p1-progress-hero strong small{font-size:12px}
 .p1-student-shell .p1-progress-hero p{color:#eef4ff;font-size:11px;line-height:1.8}
 .p1-student-shell .p1-progress-hero .p1-eyebrow{color:#d9e5ff}
 .p1-student-shell .p1-progress-trophy{padding:4px}
 .p1-student-shell .p1-progress-trophy .p1-icon{width:68px;height:68px}
 .p1-student-shell .p1-progress-breakdown{gap:8px;margin-top:14px;padding-top:12px;display:grid;grid-template-columns:repeat(3,1fr)}
 .p1-student-shell .p1-progress-breakdown>span{font-size:9px;color:#e0eaff;text-align:center}
 .p1-student-shell .p1-progress-breakdown b{display:block;margin:0 0 2px;font-size:16px;color:#fff}
 .p1-student-shell #p1MobileNav{padding:6px 7px max(7px,env(safe-area-inset-bottom));gap:4px}
 .p1-student-shell #p1MobileNav button{min-height:52px;border-radius:12px;transition:background .15s ease,color .15s ease}
 .p1-student-shell #p1MobileNav button.active{background:#edf3ff;color:var(--p1-blue);font-weight:800}
 .p1-student-shell #p1MobileNav button.active .p1-icon{background:transparent;padding:0;margin:0;box-sizing:border-box}
 .dark.p1-student-shell #p1MobileNav button.active{background:#263a5d}
 .p1-student-shell .page-content{padding-bottom:max(175px,calc(105px + env(safe-area-inset-bottom)))}
}


/* Fix student sections dialog scrolling 2026-10-25 */
@media(max-width:700px){
 body.p1-student-shell .p1-section-dialog[open]{
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
  max-height:calc(100dvh - 24px)!important;
  height:min(88dvh,760px);
  touch-action:pan-y;
 }
 body.p1-student-shell .p1-section-dialog .p1-section-menu-head{
  flex:0 0 auto;
 }
 body.p1-student-shell .p1-section-dialog .p1-section-groups{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding-inline:2px;
  padding-bottom:12px;
 }
 body.p1-student-shell .p1-section-dialog .ac-menu-account{
  flex:0 0 auto;
  background:var(--p1-surface);
  position:relative;
  z-index:2;
 }
}


/* /audience-management.css */
.p1-audience-picker,.lh-audience-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;align-items:start;width:100%;margin:6px 0}
.p1-audience-picker [data-audience-list],.lh-audience-picker [data-audience-list]{grid-column:1/-1;margin:0;padding:12px;border:1px solid var(--p1-line,#e6ebf4);border-radius:14px;background:var(--p1-surface,#fff);min-width:0}
.p1-audience-options,.as-audience-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px;max-height:260px;overflow:auto;padding:4px}
.p1-audience-options label,.as-audience-option{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 10px;border:1px solid var(--p1-line,#e6ebf4);border-radius:11px;background:var(--p1-bg,#f5f7fc);color:var(--p1-ink,#1c3158);font-size:12px;cursor:pointer}
.p1-audience-options input,.as-audience-option input{width:17px;height:17px;accent-color:var(--p1-blue,#2457ce);flex:0 0 auto}
.p1-manage-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.p1-manage-actions .p1-soft-btn,.p1-manage-actions .p1-text-btn{min-height:36px;padding:7px 11px}
.lh-course-editor .lh-form-help{margin:0 0 12px}
.lh-course-editor .p1-form{display:grid;gap:12px}
.lh-audience-picker .field{min-width:0}
.lh-audience-picker [data-audience-list] small{display:block;color:var(--p1-muted,#758198);font-size:11px;margin-top:5px}
.as-audience-option span{line-height:1.5}
@media(max-width:640px){.p1-audience-picker,.lh-audience-picker{grid-template-columns:1fr}.p1-manage-actions{justify-content:flex-start}.p1-audience-options,.as-audience-list{grid-template-columns:1fr;max-height:220px}}


/* /learning-hub.css */
.p1-shell{--p1-text:var(--p1-ink);--p1-card:var(--p1-surface);--p1-blue-light:color-mix(in srgb,var(--p1-blue) 9%,var(--p1-surface));--p1-teal-light:color-mix(in srgb,var(--p1-teal) 9%,var(--p1-surface));--p1-orange-light:color-mix(in srgb,var(--p1-orange) 10%,var(--p1-surface))}
.lh-icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle}
.lh-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.lh-shortcuts button{display:flex;align-items:center;gap:12px;min-width:0;text-align:right;background:var(--p1-card);border:1px solid var(--p1-line);border-radius:20px;padding:20px;color:var(--p1-text);cursor:pointer;transition:transform .2s,border-color .2s}
.lh-shortcuts button:hover{transform:translateY(-3px);border-color:var(--p1-blue)}
.lh-shortcuts button>span:nth-child(2){flex:1;min-width:0}.lh-shortcuts b,.lh-shortcuts small{display:block}.lh-shortcuts b{font-size:15px;line-height:1.7}.lh-shortcuts small{font-size:11px;line-height:1.8;color:var(--p1-muted)}
.lh-shortcut-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:15px;background:var(--p1-blue-light);color:var(--p1-blue);flex-shrink:0}.lh-shortcuts .review .lh-shortcut-icon{background:var(--p1-orange-light);color:var(--p1-orange)}.lh-shortcuts .video .lh-shortcut-icon{background:var(--p1-teal-light);color:var(--p1-teal)}
.lh-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;padding:30px 34px;border-radius:26px;background:var(--p1-blue-light);border:1px solid var(--p1-line);margin:0 0 24px;overflow:hidden;color:var(--p1-text)}
.lh-hero.review{background:var(--p1-orange-light)}.lh-hero.video{background:var(--p1-teal-light)}.lh-hero h2{font-size:24px;line-height:1.7;margin:8px 0}.lh-hero p{color:var(--p1-muted);font-size:13px;line-height:1.9;margin:0;max-width:650px}.lh-hero>div{min-width:0;position:relative;z-index:1}
.lh-hero-art{display:grid;place-items:center;position:relative;flex-shrink:0;width:115px;height:115px;border-radius:30px;background:var(--p1-card);box-shadow:0 14px 30px #1438690b;transform:rotate(-8deg);color:var(--p1-blue)}.lh-hero-art>.lh-icon{width:64px;height:64px}.lh-hero-art i{position:absolute;top:-13px;right:-13px;color:var(--p1-orange);transform:rotate(8deg)}.lh-hero.review .lh-hero-art{color:var(--p1-orange)}.lh-hero.video .lh-hero-art{color:var(--p1-teal)}
.lh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.lh-course,.lh-meeting{min-width:0;border:1px solid var(--p1-line);border-radius:24px;background:var(--p1-card);overflow:hidden;color:var(--p1-text);box-shadow:0 6px 25px #13356005}
.lh-course-art{position:relative;display:flex;align-items:center;gap:25px;min-height:146px;padding:25px 28px;background:linear-gradient(125deg,var(--p1-blue-light),var(--p1-card));color:var(--p1-blue);overflow:hidden}.lh-course.review .lh-course-art{background:linear-gradient(125deg,var(--p1-orange-light),var(--p1-card));color:var(--p1-orange)}
.lh-course-art>span{display:grid;place-items:center;width:80px;height:80px;border:1px solid var(--p1-line);border-radius:23px;background:var(--p1-card);transform:rotate(-8deg);flex-shrink:0}.lh-course-art>span>.lh-icon{width:47px;height:47px}.lh-course-art i{position:absolute;top:17px;right:96px;color:var(--p1-orange)}.lh-course-art>b{font-size:17px;line-height:1.8;overflow-wrap:anywhere;max-height:92px;overflow:hidden}
.lh-course-body{padding:23px;display:flex;flex-direction:column;gap:13px}.lh-course h3,.lh-meeting h3{font-size:18px;line-height:1.7;margin:0;overflow-wrap:anywhere}.lh-course p,.lh-meeting p{color:var(--p1-muted);font-size:12px;line-height:1.9;margin:0;overflow-wrap:anywhere}.lh-course p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:46px}.lh-pills{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lh-course-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:var(--p1-muted);font-size:10px;line-height:1.9;min-width:0}.lh-course-meta span{overflow-wrap:anywhere}.lh-course-meta .lh-icon{width:16px;height:16px;margin-inline-end:5px}.lh-course .p1-btn,.lh-course .p1-soft-btn{justify-content:center;width:100%;margin-top:1px}
.lh-progress span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--p1-muted)}.lh-progress b{color:var(--p1-blue)}.lh-progress progress{display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;margin-top:9px;accent-color:var(--p1-blue);background:var(--p1-blue-light)}.lh-progress progress::-webkit-progress-bar{background:var(--p1-blue-light)}.lh-progress progress::-webkit-progress-value{background:var(--p1-blue);border-radius:8px}
.lh-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:310px;padding:38px 24px;text-align:center;border:1px dashed var(--p1-line);border-radius:26px;background:var(--p1-card);color:var(--p1-text);grid-column:1/-1}.lh-empty h2{font-size:20px;line-height:1.7;margin:8px 0 0}.lh-empty p{font-size:13px;line-height:1.9;color:var(--p1-muted);max-width:430px;margin:0}.lh-empty-art{position:relative;color:var(--p1-blue)}.lh-empty-art>span{display:grid;place-items:center;width:98px;height:98px;border-radius:28px;background:var(--p1-blue-light);transform:rotate(-8deg)}.lh-empty-art>span>.lh-icon{width:56px;height:56px}.lh-empty-art i{position:absolute;top:-5px;right:-13px;color:var(--p1-orange)}.lh-empty-art.review>span{background:var(--p1-orange-light);color:var(--p1-orange)}.lh-empty-art.video>span{background:var(--p1-teal-light);color:var(--p1-teal)}.lh-empty .p1-btn{margin-top:7px}
.lh-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0;color:var(--p1-muted);font-size:12px}.lh-toolbar>.field{margin:0;width:min(270px,100%)}.lh-toolbar>span{display:flex;align-items:center;gap:8px}.lh-toolbar .lh-icon{width:18px;height:18px}
.lh-kind-badge{border-radius:8px;padding:5px 9px;background:var(--p1-orange-light);color:var(--p1-orange);font-size:10px;font-weight:700}.lh-staff-courses .cc-manage-top{flex-wrap:wrap;gap:7px}.lh-staff-courses .cc-manage-card{background:var(--p1-card);border-color:var(--p1-line);color:var(--p1-text);min-width:0}.lh-staff-courses .cc-manage-card h3{overflow-wrap:anywhere}.lh-staff-courses .cc-manage-card>.p1-soft-btn{width:100%;margin-top:14px;justify-content:center}.lh-staff-courses .cc-builder,.lh-staff-courses .cc-builder-head{background:var(--p1-card);color:var(--p1-text)}.lh-staff-courses .cc-form input,.lh-staff-courses .cc-form select,.lh-staff-courses .cc-form textarea{background:var(--p1-bg);color:var(--p1-text);border-color:var(--p1-line)}.lh-staff-courses .cc-pane{background:var(--p1-card)}
.lh-meeting{padding:25px;display:flex;flex-direction:column;gap:17px}.lh-meeting.live{border-color:var(--p1-teal);box-shadow:0 0 0 3px var(--p1-teal-light)}.lh-meeting-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.lh-meeting-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:var(--p1-teal-light);color:var(--p1-teal);flex-shrink:0}.lh-meeting-time{display:flex;align-items:flex-start;gap:9px;color:var(--p1-text);background:var(--p1-bg);border-radius:14px;padding:14px}.lh-meeting-time .lh-icon{width:18px;height:18px;margin-top:4px;color:var(--p1-teal)}.lh-meeting-time b{font-size:12px;line-height:1.9}.lh-meeting-time small{display:block;font-size:10px;line-height:1.8;color:var(--p1-muted)}.lh-meeting-actions{display:flex;flex-direction:column;gap:12px;margin-top:auto}.lh-meeting-actions .p1-btn,.lh-meeting-actions .p1-soft-btn{justify-content:center;width:100%;text-decoration:none}.lh-wait,.lh-attended{font-size:11px;line-height:1.8;color:var(--p1-muted);padding:12px;border-radius:12px;background:var(--p1-bg);text-align:center}.lh-attended{color:var(--p1-teal);background:var(--p1-teal-light)}.lh-attended .lh-icon{width:17px;height:17px}.lh-staff-actions{display:flex;flex-direction:column;gap:9px}.lh-history{margin-top:30px}.lh-history>summary{cursor:pointer;color:var(--p1-muted);font-size:13px;padding:18px 0}.lh-history .lh-meeting{opacity:.85}
.lh-provider-link{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:15px 18px;background:var(--p1-teal-light);border:1px solid var(--p1-line);border-radius:14px;color:var(--p1-teal);font-size:12px;font-weight:700;text-decoration:none;margin:18px 0 10px}.lh-provider-link .lh-icon{width:20px;height:20px}.lh-form-help{font-size:11px;line-height:1.9;color:var(--p1-muted);margin:10px 0;overflow-wrap:anywhere}.lh-meeting-editor{margin:20px 0;scroll-margin-top:100px}.lh-meeting-editor .p1-form{margin-top:18px}.lh-check{display:flex;align-items:flex-start;gap:10px;color:var(--p1-text);font-size:12px;line-height:1.8;margin-bottom:14px}.lh-check input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:var(--p1-teal)}.lh-attendance-fields{background:var(--p1-bg);border-radius:14px;padding:18px}.lh-attendance-fields>.field{max-width:330px}.lh-classify,.lh-participants{color:var(--p1-text);min-width:0}.lh-classify h2,.lh-participants h2{font-size:21px;line-height:1.7;overflow-wrap:anywhere}.lh-classify>p,.lh-participants>p{font-size:12px;line-height:1.9;color:var(--p1-muted);overflow-wrap:anywhere}.lh-participant-list article{display:flex;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid var(--p1-line);min-width:0}.lh-participant-list article>div{flex:1;min-width:0}.lh-participant-list b{font-size:13px;overflow-wrap:anywhere}.lh-participant-list small{display:block;font-size:10px;color:var(--p1-muted);line-height:1.9}.lh-participant-list .p1-pill{white-space:normal;text-align:center;font-size:9px;max-width:110px}
.p1-shell .pro-course-page{padding-bottom:95px;color:var(--p1-text)}.p1-shell .pro-course-page .pro-course-stage,.p1-shell .pro-course-page .pro-lessons-panel{background:var(--p1-card);border-color:var(--p1-line)}.p1-shell .pro-course-page .pro-back{color:var(--p1-blue)}
@media(max-width:1200px){.lh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lh-shortcuts button{padding:16px;gap:9px}.lh-shortcuts b{font-size:13px}.lh-shortcuts small{font-size:10px}.lh-shortcut-icon{width:39px;height:39px}.lh-shortcuts button>.lh-icon{width:18px;height:18px}}
@media(max-width:680px){.lh-shortcuts{grid-template-columns:1fr;gap:10px;margin:17px 0}.lh-shortcuts button{padding:16px;gap:13px;border-radius:17px}.lh-shortcuts b{font-size:14px}.lh-shortcuts small{font-size:11px}.lh-shortcut-icon{width:43px;height:43px}.lh-hero{padding:23px 20px;border-radius:22px;gap:16px}.lh-hero h2{font-size:20px}.lh-hero p{font-size:12px}.lh-hero-art{width:70px;height:70px;border-radius:20px;align-self:flex-start;margin-top:14px}.lh-hero-art>.lh-icon{width:40px;height:40px}.lh-grid{grid-template-columns:1fr;gap:17px}.lh-course-art{min-height:128px}.lh-course-body{padding:21px}.lh-toolbar{align-items:flex-start;flex-wrap:wrap}.lh-toolbar>.field{width:100%}.lh-empty{min-height:290px;padding:30px 20px}.lh-empty h2{font-size:19px}.lh-meeting{padding:21px}.lh-provider-link{font-size:11px;padding:13px}.lh-meeting-editor .p1-section-head{align-items:flex-start}.lh-staff-courses .cc-fields.two{grid-template-columns:1fr}.lh-staff-courses .cc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.lh-staff-courses .cc-tab{min-width:0;white-space:normal}.lh-staff-courses .cc-footer{flex-wrap:wrap}.lh-staff-courses .cc-footer>span{width:100%}.lh-staff-courses .cc-builder-head{gap:12px;flex-wrap:wrap}.lh-classify .p1-form,.lh-meeting-editor .p1-form{grid-template-columns:minmax(0,1fr)}.lh-participant-list article{gap:10px;flex-wrap:wrap}.lh-participant-list .p1-pill{margin-inline-start:56px;max-width:none}.p1-shell .pro-course-top{align-items:flex-start;flex-direction:column}.p1-shell .pro-course-progress{width:100%;margin:0}.p1-shell .pro-course-layout{grid-template-columns:minmax(0,1fr)}.p1-shell .pro-lesson-heading{flex-wrap:wrap}.p1-shell .pro-course-page .pro-stage-nav{gap:6px}.p1-shell .pro-course-page .pro-stage-nav button{font-size:10px;padding:9px 6px}.p1-shell .pro-course-page .pro-stage-nav>span{font-size:10px}.p1-shell .pro-course-info-grid{grid-template-columns:minmax(0,1fr)}.p1-shell .pro-course-stage,.p1-shell .pro-lessons-panel{min-width:0}}
@media(max-width:360px){.lh-hero-art{display:none}.lh-hero h2{font-size:20px}.lh-course-art>span{width:70px;height:70px}.lh-course-art{gap:18px;padding:22px}.lh-course-body{padding:18px}.lh-meeting{padding:18px}.lh-meeting .p1-pill{font-size:9px}}


/* /mobile-experience.css */
/* Clear mobile navigation and motion that preserves reading and touch targets. */
html:has(body.p1-shell){scroll-padding-block:110px;scroll-behavior:auto}
.p1-section-dialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:88dvh;overflow:auto;border:1px solid var(--p1-line);border-radius:26px;padding:25px;background:var(--p1-surface);color:var(--p1-ink);box-sizing:border-box;box-shadow:0 25px 90px #0918323d}
.p1-section-dialog::backdrop{background:#09183285;backdrop-filter:blur(5px)}
.p1-section-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}
.p1-section-menu-head h2{font-size:23px;line-height:1.7;margin:4px 0}.p1-section-menu-head p{font-size:12px;line-height:1.8;color:var(--p1-muted);margin:0}
.p1-menu-close{border:1px solid var(--p1-line);border-radius:12px;background:var(--p1-bg);color:var(--p1-ink);font-size:24px;width:44px;height:44px;flex-shrink:0;cursor:pointer}
.p1-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.p1-section-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;min-height:123px;border:1px solid var(--p1-line);border-radius:18px;background:var(--p1-bg);color:var(--p1-ink);padding:18px;text-align:right;font-family:inherit;cursor:pointer;transition:transform .18s,border-color .18s,background .18s}
.p1-section-tile b{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.p1-section-tile>.p1-icon{position:absolute;top:21px;left:15px;width:18px;height:18px;color:var(--p1-muted)}
.p1-section-tile:hover,.p1-section-tile.active{border-color:var(--p1-blue);background:var(--p1-blue-light)}
.p1-section-tile[data-page="onlineClasses"]{background:var(--p1-teal-light)}.p1-section-tile[data-page="monthlyReviews"]{background:var(--p1-orange-light)}
.p1-section-tile[data-page="onlineClasses"] .p1-square{background:var(--p1-surface);color:var(--p1-teal)}.p1-section-tile[data-page="monthlyReviews"] .p1-square{background:var(--p1-surface);color:var(--p1-orange)}
.lh-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.lh-shortcuts .spark .lh-shortcut-icon{background:var(--p1-blue-light);color:var(--p1-blue)}
.p1-motion-card{opacity:0;transform:translate3d(0,18px,0);transition:opacity .38s ease,transform .42s cubic-bezier(.2,.7,.25,1),border-color .18s,box-shadow .18s;transition-delay:var(--p1-card-delay,0ms)}
.p1-motion-card.p1-motion-visible{opacity:1;transform:translate3d(0,0,0)}
@media(hover:hover){.p1-motion-visible:is(.p1-task,.p1-class-card,.lh-course,.lh-meeting,.cc-manage-card):hover{transform:translate3d(0,-4px,0);box-shadow:0 12px 28px #173d7910;transition-delay:0ms}}
.p1-shell :is(.p1-btn,.p1-soft-btn,.p1-text-btn,.p1-paths button,.lh-shortcuts button,.p1-section-tile):active{transform:scale(.98);transition-delay:0ms}
.lh-hero-art{animation:p1-art-breathe 5s ease-in-out infinite}.lh-course-art>span{animation:p1-art-breathe 6s ease-in-out infinite}.lh-course:nth-child(even) .lh-course-art>span{animation-delay:-2s}.lh-meeting.live .p1-pill.green{animation:p1-live-glow 3s ease-in-out infinite}
@keyframes p1-art-breathe{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-5px) rotate(-4deg)}}
@keyframes p1-live-glow{0%,100%{box-shadow:0 0 0 0 #218b8510}50%{box-shadow:0 0 0 5px #218b850a}}
@media(max-width:1200px){.lh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){
 .p1-shell .app-header{gap:10px}.p1-shell .header-center{min-width:0;flex:1}.p1-shell .header-center .search-box{min-width:0;width:100%}.p1-shell .header-center input{min-width:0;width:100%}
 .p1-shell .app-header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
 .p1-shell #p1FloatingAi{position:static;min-width:38px;width:38px;min-height:38px;height:38px;display:flex;justify-content:center;align-items:center;border-radius:12px;padding:8px;box-shadow:none;order:-1;flex-shrink:0;margin:0;background:var(--p1-blue-light);color:var(--p1-blue);border:1px solid var(--p1-line)}
 .p1-shell #p1FloatingAi>.p1-icon{width:21px;height:21px}.p1-shell #p1FloatingAi>span{display:none}
 #p1MobileNav{gap:3px;padding-inline:8px}#p1MobileNav button{min-height:54px}#p1MobileNav button span{line-height:1.8}
 .p1-shell .page-content{padding-bottom:110px}.p1-shell .field{min-width:0}.p1-shell .field :is(input,select,textarea){max-width:100%;min-width:0}.p1-shell :is(.p1-task,.p1-session,.lh-course,.lh-meeting){scroll-margin-bottom:100px}
}
@media(max-width:680px){
 .p1-shell .app-header{padding:14px 16px;gap:9px}.p1-shell .profile-block{gap:8px;min-width:0}.p1-shell .search-box{padding-inline:10px}.p1-shell .search-box input{font-size:11px}
 .p1-shell .page-content{padding:22px 16px 112px}.p1-heading{gap:14px;align-items:flex-start}.p1-heading h1{font-size:23px;line-height:1.6;overflow-wrap:anywhere}.p1-heading>div{min-width:0}
 .p1-section-dialog{padding:21px 16px;border-radius:23px}.p1-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.p1-section-tile{padding:16px;min-height:122px;gap:10px}.p1-section-tile b{font-size:11px}.p1-section-menu-head h2{font-size:21px}.p1-section-menu-head p{font-size:11px}
 .lh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.lh-shortcuts button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;position:relative;min-height:133px;padding:17px}.lh-shortcuts button>span:nth-child(2){width:100%}.lh-shortcuts b{font-size:12px;line-height:1.8}.lh-shortcuts small{font-size:10px;line-height:1.8}.lh-shortcuts button>.lh-icon{position:absolute;top:23px;left:14px;width:17px;height:17px;color:var(--p1-muted)}
 .p1-metric{min-height:93px}.p1-metric strong{font-size:25px}.p1-metric span{overflow-wrap:anywhere}.p1-shell :is(.p1-btn,.p1-soft-btn){min-height:46px;white-space:normal;text-align:center;line-height:1.8}
 .lh-toolbar{gap:12px}.lh-toolbar .p1-soft-btn{max-width:100%}.lh-meeting-actions{padding-top:5px}.p1-task-meta{flex-wrap:wrap}.p1-section-head{gap:12px;flex-wrap:wrap}.p1-shell .p1-form .full{min-width:0}
 .p1-shell :is(.settings-layout,.sec-grid,.banner-manager,.banner-controls){grid-template-columns:minmax(0,1fr)}
 .p1-shell .settings-card{grid-template-columns:minmax(0,1fr)}
 .p1-shell :is(.settings-card,.sec-card,.sec-card-title>div,.sec-session>div,.color-field,.upload-drop,.toggle-row>div){min-width:0;overflow-wrap:anywhere}
 .p1-shell :is(.sec-session,.settings-savebar,.banner-card-actions){flex-wrap:wrap}
 .p1-shell :is(.primary-btn,.secondary-btn,.btn-sm){max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .p1-shell .color-settings{grid-template-columns:repeat(3,minmax(0,1fr))}.p1-shell .color-field{padding:9px 5px}.p1-shell .color-field input{max-width:100%;min-width:0}
 .p1-shell .settings-card :is(input,select,textarea){max-width:100%;min-width:0}
 .p1-shell .settings-card>*{min-width:0;max-width:100%}.p1-shell .media-preview{width:100%;min-width:0;max-width:100%}
 .p1-admin-note>div{flex:1 1 calc(100% - 60px)}.p1-admin-note>.p1-soft-btn{width:100%;justify-content:center}
}
@media(max-width:360px){.p1-shell .profile-avatar{width:32px;height:32px}.p1-shell .menu-btn{width:34px;min-width:34px}.p1-shell .app-header-actions{gap:5px}.p1-shell #p1FloatingAi{width:35px;min-width:35px;height:35px;min-height:35px;padding:6px}.p1-shell .notification-btn{width:35px;height:35px}.p1-shell .page-content{padding-inline:13px}.lh-shortcuts button{padding:14px;min-height:136px}.lh-shortcuts b{font-size:11px}.p1-heading h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){.p1-motion-card{opacity:1;transform:none;transition:none}.p1-motion-card.p1-motion-visible{transform:none}.lh-hero-art,.lh-course-art>span,.lh-meeting.live .p1-pill.green{animation:none}.p1-shell :is(.p1-btn,.p1-soft-btn,.p1-text-btn,.p1-paths button,.lh-shortcuts button,.p1-section-tile){transition:none}}


/* /academy-theme.css */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/academy-v2/cairo-0.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/academy-v2/cairo-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/academy-v2/cairo-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Approved Bebasata concept: readable Arabic, vivid blue and generous course covers. */
.p1-shell{--p1-ink:#091a50;--p1-muted:#69758f;--p1-blue:#0866ed;--p1-teal:#0ca89d;--p1-orange:#ce850d;--p1-surface:#fff;--p1-bg:#f4f8ff;--p1-line:#e1e9f5;--navy:#091a50;--red:#0866ed;--line:#e1e9f5;--muted:#69758f;--bg:#f4f8ff;font-family:'Cairo',Tahoma,Arial,sans-serif;font-size:14px;background:var(--p1-bg)}
.p1-shell *{box-sizing:border-box}.p1-shell :is(button,input,select,textarea){font:inherit}.p1-shell :is(button,a,input,select,textarea):focus-visible{outline:3px solid #45b7ff;outline-offset:3px}
.ac-wordmark{font-size:21px;font-weight:900;letter-spacing:-.8px;white-space:nowrap;color:var(--p1-ink)}.ac-wordmark b{color:var(--p1-blue)}
.p1-shell .sidebar{background:var(--p1-surface);border-left:1px solid var(--p1-line);color:var(--p1-ink);padding:26px 16px}.p1-shell .side-brand{margin-bottom:24px;min-height:45px;display:flex;align-items:center;justify-content:center}.p1-shell :is(.side-brand,.app-logo)>img{display:none}.p1-shell .role-chip{background:var(--p1-blue-light);color:var(--p1-blue);border:0}.p1-shell .nav-item{color:var(--p1-muted);font-size:12px;border-radius:14px;padding:13px 15px;margin:3px 0}.p1-shell .nav-item:hover,.p1-shell .nav-item.active{background:var(--p1-blue-light);color:var(--p1-blue);box-shadow:none}.p1-shell .nav-item.active{font-weight:800}.p1-nav-section{color:var(--p1-muted)}.p1-shell .sidebar-support{background:var(--p1-bg);color:var(--p1-ink);border:1px solid var(--p1-line);border-radius:18px}.p1-shell .sidebar-support :is(a,small){color:var(--p1-muted)}.p1-shell .logout-btn{color:var(--p1-muted);border:1px solid var(--p1-line);background:var(--p1-surface);border-radius:12px}
.p1-shell .app-header{min-height:86px;padding:18px 32px;gap:20px}.p1-shell .profile-block{display:contents}.p1-shell .menu-btn{order:0;color:var(--p1-ink);background:transparent;font-size:24px;border:0;min-width:38px;min-height:44px}.p1-shell .app-logo{display:flex!important;order:1;width:auto;flex-shrink:0;align-items:center;text-decoration:none}.p1-shell .header-center{order:2;flex:1;max-width:430px}.p1-shell .app-header-actions{order:3;margin-inline-start:auto;gap:12px}.p1-shell .profile-block>div{order:4}.p1-shell .profile-avatar{order:5;background:#e1efff;color:var(--p1-blue);border:0;width:42px;height:42px}.p1-shell .profile-chevron{display:none}.p1-shell .search-box{background:var(--p1-bg);border:1px solid var(--p1-line);border-radius:14px;min-height:44px}.p1-shell .notification-btn{font-size:20px;background:transparent;border:0;color:var(--p1-ink);position:relative}.p1-shell .top-quick-nav{display:none!important}.p1-shell .page-content{max-width:1450px;padding:32px 34px 64px}
.p1-page h1{font-size:30px;font-weight:900;letter-spacing:-.9px}.p1-page h2{font-weight:800}.p1-page p{font-size:13px;color:var(--p1-muted)}.p1-heading{margin-bottom:22px}.p1-eyebrow{font-weight:700}.p1-shell :is(.p1-btn,.primary-btn){background:linear-gradient(100deg,#1377ee,#005ee8);border-radius:13px;box-shadow:0 5px 15px #0866ed15;color:#fff;border:0;font-size:13px;font-weight:700;min-height:46px}.p1-shell :is(.p1-soft-btn,.secondary-btn){background:var(--p1-blue-light);color:var(--p1-blue);border:1px solid var(--p1-line);border-radius:13px;min-height:44px}.p1-square{border-radius:15px}.p1-panel,.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-thread,.p1-reward-card,.p1-community-card{border-radius:22px;box-shadow:0 5px 22px #13356004}
.ac-greeting{margin-bottom:20px}.ac-greeting p{font-size:17px;margin:0 0 3px;color:var(--p1-ink)}.ac-greeting h1{font-size:33px;line-height:1.65;margin:0}.ac-home-top{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:25px;align-items:start}.ac-hero{position:relative;border-radius:24px;overflow:hidden;min-height:254px;background:#0456c7 url('/assets/academy-v2/trophy.webp') center/cover no-repeat;display:flex;align-items:center;padding:30px;color:#fff}.ac-hero-copy{position:relative;z-index:1;max-width:56%}.ac-hero h2{font-size:30px;color:#fff;line-height:1.7;letter-spacing:-.4px}.ac-hero p{color:#e4efff;font-size:12px;line-height:1.9;margin:8px 0 14px}.ac-hero .p1-btn{background:#fff;color:#0866ed;min-height:43px;box-shadow:0 4px 16px #03296b35;flex-direction:row-reverse}.ac-hero-note{display:block;margin-bottom:8px;font-size:11px;color:#dcecff}.ac-hero-dots{display:flex;justify-content:center;gap:6px;padding-top:10px}.ac-hero-dots i{width:6px;height:6px;border-radius:50%;background:#d7dfed}.ac-hero-dots i:first-child{width:16px;border-radius:4px;background:var(--p1-blue)}
.lh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0}.lh-shortcuts button{position:relative;padding:22px 18px;min-height:124px;border:0;border-radius:20px;background:#eaf4ff;display:flex;align-items:center;gap:14px}.lh-shortcuts .review{background:#fff7e4}.lh-shortcuts .video{background:#e4faf5}.lh-shortcuts .tasks{background:#f3edff}.lh-shortcuts .lh-shortcut-icon{background:transparent!important;color:#0866ed;border-radius:0;width:42px;height:42px}.lh-shortcuts .lh-shortcut-icon>.lh-icon{width:38px;height:38px}.lh-shortcuts .review .lh-shortcut-icon{color:#dc870d}.lh-shortcuts .video .lh-shortcut-icon{color:#009e90}.lh-shortcuts .tasks .lh-shortcut-icon{color:#7942e6}.lh-shortcuts b{font-size:15px;font-weight:800}.lh-shortcuts small{font-size:11px}.lh-shortcuts button>.lh-icon{display:none}
.p1-assistant-card.ac-assistant{display:flex;align-items:center;gap:15px;margin:20px 0 26px;padding:17px 20px;border:1px solid var(--p1-line);border-radius:18px;background:var(--p1-surface)}.ac-assistant .p1-square{background:linear-gradient(135deg,#1fced0,#07a99c);color:#fff;border-radius:50%;width:49px;height:49px;flex-shrink:0}.ac-assistant div{flex:1;min-width:0}.ac-assistant h3{font-size:16px;margin:0}.ac-assistant p{margin:0;font-size:12px}.ac-assistant .p1-text-btn{padding:5px;min-width:35px;min-height:44px}.ac-assistant .p1-text-btn>.p1-icon{width:24px;height:24px}
.ac-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:25px}.ac-featured{background:var(--p1-surface);border:1px solid var(--p1-line);border-radius:21px;overflow:hidden;display:grid;grid-template-columns:145px minmax(0,1fr);direction:ltr;min-width:0;box-shadow:0 5px 20px #13356004}.ac-featured>.lh-course-art{height:100%;aspect-ratio:auto;min-height:155px;border-radius:0;padding:16px;direction:rtl}.ac-featured>div:last-child{direction:rtl;padding:16px;display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0}.ac-featured h3{font-size:16px;line-height:1.65;overflow-wrap:anywhere}.ac-featured p{font-size:10px;margin:0}.ac-featured .p1-btn{align-self:flex-start;padding:8px 18px;min-height:38px;font-size:12px}.ac-featured .lh-cover-title{font-size:18px}
.p1-metrics{gap:14px;margin:22px 0}.p1-metric{background:var(--p1-surface);padding:20px;border-radius:19px;min-height:95px}.p1-metric strong{font-size:28px;font-weight:900}.p1-metric span{font-size:11px}.p1-home-bottom{gap:18px}.p1-home-bottom h2{font-size:20px}.p1-paths{gap:12px}.p1-paths button{border-radius:17px;padding:19px}.p1-section-head{margin:26px 0 16px}.p1-section-head h2{font-size:22px}.p1-task-grid{gap:18px}
.lh-catalog-heading{margin-bottom:18px}.lh-catalog-heading h1{font-weight:900}.lh-catalog-intro{margin-bottom:18px;padding:14px 18px;border-radius:16px;background:var(--p1-blue-light);display:flex;align-items:center;gap:12px;color:var(--p1-blue);font-size:12px}.lh-catalog-intro .lh-icon{width:24px;height:24px}.lh-filters{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.lh-filters button{border:0;background:#eaf0f8;color:var(--p1-muted);padding:9px 25px;border-radius:30px;font-size:13px;font-weight:700;min-height:42px;cursor:pointer}.lh-filters button.active{background:var(--p1-blue);color:#fff}.lh-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.lh-course{border-radius:22px;box-shadow:0 7px 24px #102a6010}.lh-course-art{min-height:0;width:100%;aspect-ratio:16/8;position:relative;border-radius:0;padding:25px;background:#085986;color:#fff;display:flex;align-items:flex-end}.lh-course-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.lh-course-art:not(.uploaded)::after{content:'';position:absolute;inset:0;background:linear-gradient(270deg,#031d4494,transparent 90%)}.lh-course-art>span{position:absolute;top:17px;right:18px;width:27px;height:27px;border:0;border-radius:8px;background:#ffffff22;backdrop-filter:blur(5px);color:#fff;z-index:1}.lh-course-art>span>.lh-icon{width:19px;height:19px}.lh-course-art>i{display:none}.lh-cover-title{position:relative;z-index:1;max-width:67%;font-size:29px;line-height:1.5;text-shadow:0 2px 12px #0005;font-weight:900;letter-spacing:-.5px}.lh-course-art.history .lh-cover-title{color:#ffecad}.lh-course-body{padding:17px 19px 19px;gap:10px}.lh-course-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.lh-course-summary>div{min-width:0}.lh-course h3{font-size:20px;font-weight:900;line-height:1.65}.lh-course .lh-teacher{font-size:12px;color:var(--p1-muted);display:block;margin-top:2px}.lh-grade{background:var(--p1-orange-light);color:var(--p1-orange);display:inline-flex;align-items:center;gap:6px;border-radius:11px;padding:7px 10px;font-size:10px;font-weight:700;line-height:1.6;flex-shrink:0;max-width:45%}.lh-grade .lh-icon{width:17px;height:17px}.lh-course .lh-description{font-size:12px;min-height:0;-webkit-line-clamp:2}.lh-course .lh-pills{gap:6px}.lh-course .p1-pill{font-size:10px}.lh-course-meta{font-size:11px}.lh-course .p1-btn{border-radius:12px;margin-top:3px;min-height:45px;font-size:14px;flex-direction:row-reverse}.lh-course .lh-progress{padding:0 1px}.lh-course .p1-soft-btn{font-size:11px}.cc-manage-card .lh-course-art{margin:-18px -18px 16px;width:calc(100% + 36px);aspect-ratio:16/8}.cc-manage-card{overflow:hidden}.cc-cover-upload{border:1px dashed #9abfec;border-radius:16px;padding:17px;background:#f4f9ff;display:flex;flex-direction:column;gap:7px;color:var(--p1-ink);margin-top:15px}.cc-cover-upload input{max-width:100%;font-size:12px}.cc-cover-upload small{color:var(--p1-muted);font-size:11px}.cc-cover-preview{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:12px;background:#e9eff9;margin-top:8px}.lh-cover-dialog{max-width:520px}.lh-cover-dialog p{line-height:1.9}.ac-staff-banner{border-radius:22px;padding:24px 28px;background:linear-gradient(120deg,#0866ed,#0a409d);color:#fff;margin:0 0 22px;display:flex;align-items:center;gap:18px}.ac-staff-banner>.p1-icon{width:42px;height:42px;color:#ffda75}.ac-staff-banner h2{color:#fff;font-size:21px}.ac-staff-banner p{color:#e6f0ff;margin:4px 0 0}.ac-staff-banner div{flex:1;min-width:0}.ac-staff-banner .p1-soft-btn{background:#fff;border:0;color:#0866ed}
.ac-utilities{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.ac-settings-card,.ac-push-card{border:1px solid var(--p1-line);background:var(--p1-surface);border-radius:20px;padding:22px;margin:20px 0;min-width:0}.ac-push-card{display:flex;align-items:center;gap:15px}.ac-push-card>div{flex:1;min-width:0}.ac-push-card h3{font-size:16px}.ac-push-card p{margin:3px 0;font-size:12px}.ac-follow-grid,.ac-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.ac-follow-card,.ac-payment-card{border:1px solid var(--p1-line);border-radius:18px;padding:19px;background:var(--p1-surface);min-width:0}.ac-follow-card h3,.ac-payment-card h3{font-size:16px;overflow-wrap:anywhere}.ac-follow-numbers{display:flex;gap:12px;flex-wrap:wrap;background:var(--p1-bg);padding:12px;border-radius:12px;margin:12px 0}.ac-follow-numbers span{font-size:11px;color:var(--p1-muted)}.ac-follow-numbers b{display:block;font-size:17px;color:var(--p1-ink)}.ac-report-dialog{width:min(800px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:88dvh;overflow:auto;border-radius:22px;background:var(--p1-surface);color:var(--p1-ink);border:1px solid var(--p1-line);padding:24px}.ac-report-dialog::backdrop{background:#06194488;backdrop-filter:blur(5px)}.ac-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ac-report-head h2{margin:0;font-size:23px}.ac-report-head p{font-size:12px;color:var(--p1-muted)}.ac-report-dialog .field{max-width:300px}.ac-report-dialog small{color:var(--p1-muted);line-height:1.9}.ac-report-dialog :is(button,input,select){font-family:inherit}.ac-report-note{font-size:12px;line-height:1.9;color:var(--p1-muted)}.ac-payment-proof{width:100%;max-height:55dvh;object-fit:contain;border-radius:15px;background:var(--p1-bg)}.ac-payment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.ac-payment-actions button{flex:1;min-width:100px}.ac-error{color:#c63838;font-size:12px;line-height:1.8}.ac-weekly-link{width:100%;text-align:right;border:1px solid var(--p1-line);border-radius:16px;padding:18px;background:var(--p1-surface);color:var(--p1-ink);cursor:pointer;display:flex;gap:13px;align-items:center}.ac-weekly-link>span{flex:1}.ac-weekly-link small{display:block;color:var(--p1-muted);font-size:11px}
#p1MobileNav{background:var(--p1-surface);border-top:1px solid var(--p1-line);box-shadow:0 -5px 20px #13356007;border-radius:0}#p1MobileNav button{color:var(--p1-muted);font-size:10px}#p1MobileNav button.active{color:var(--p1-blue);background:transparent}#p1MobileNav button.active>.p1-icon{stroke-width:2.2}
@media(min-width:1400px){.ac-hero{min-height:285px}.lh-course-art{aspect-ratio:16/8.7}.lh-cover-title{font-size:34px}}
@media(max-width:1200px){.ac-home-top{grid-template-columns:minmax(0,1fr)}.ac-hero{min-height:255px}.lh-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.lh-shortcuts button{flex-direction:column;align-items:flex-start;padding:18px;min-height:145px}.lh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-featured-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:980px){.p1-shell .app-header{min-height:76px;padding:14px 20px;gap:15px}.p1-shell .profile-block>div{display:none}.p1-shell .header-center{display:none}.p1-shell .app-header-actions{gap:8px}.p1-shell .page-content{padding:24px 22px 116px}.ac-wordmark{font-size:20px}.p1-shell #p1FloatingAi{background:transparent;border:0;color:var(--p1-teal)}.p1-heading h1{font-size:27px}.ac-greeting h1{font-size:29px}.ac-hero{min-height:248px}.ac-follow-grid,.ac-payment-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.p1-shell .app-header{min-height:70px;padding:12px 16px;gap:9px}.p1-shell .app-logo .ac-wordmark{font-size:18px}.p1-shell .profile-avatar{width:34px;height:34px;font-size:14px}.p1-shell .menu-btn{min-width:31px;width:31px;font-size:24px}.p1-shell .app-header-actions{gap:3px}.p1-shell .app-header-actions .notification-btn{width:35px;height:38px;min-width:35px}.p1-shell #p1FloatingAi{display:none}.p1-shell .page-content{padding:22px 16px 108px}.ac-greeting{margin-bottom:14px}.ac-greeting p{font-size:14px}.ac-greeting h1{font-size:25px;letter-spacing:-.7px}.ac-home-top{gap:15px}.ac-hero{min-height:0;aspect-ratio:2.15;padding:18px 20px;border-radius:20px}.ac-hero-copy{max-width:57%}.ac-hero h2{font-size:22px;line-height:1.6}.ac-hero p{display:none}.ac-hero-note{font-size:9px;margin-bottom:5px}.ac-hero .p1-btn{margin-top:11px;font-size:11px;padding:7px 12px;min-height:35px;border-radius:10px;gap:5px}.ac-hero .p1-btn>.p1-icon{width:17px;height:17px}.lh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.lh-shortcuts button{flex-direction:row;align-items:center;padding:16px 13px;min-height:88px;border-radius:17px;gap:10px}.lh-shortcuts button>span:nth-child(2){width:auto}.lh-shortcuts .lh-shortcut-icon{width:34px;height:34px}.lh-shortcuts .lh-shortcut-icon>.lh-icon{width:32px;height:32px}.lh-shortcuts b{font-size:12px;line-height:1.8}.lh-shortcuts small{font-size:9px;line-height:1.7}.p1-assistant-card.ac-assistant{margin:15px 0 20px;padding:13px 15px;gap:12px;border-radius:16px}.ac-assistant .p1-square{width:42px;height:42px}.ac-assistant h3{font-size:14px}.ac-assistant p{font-size:10px}.p1-section-head{margin-top:22px;gap:10px}.p1-section-head h2{font-size:18px}.p1-section-head .p1-text-btn{font-size:10px;padding:5px 0}.ac-featured-grid{gap:12px}.ac-featured{grid-template-columns:42% minmax(0,1fr);border-radius:18px;min-height:137px}.ac-featured>.lh-course-art{min-height:137px;padding:15px}.ac-featured>div:last-child{padding:13px}.ac-featured h3{font-size:14px}.ac-featured p{font-size:10px}.ac-featured .p1-btn{min-height:34px;font-size:11px;padding:6px 16px}.p1-metrics{gap:9px;margin:19px 0}.p1-metric{padding:13px 10px;gap:9px;flex-direction:column;align-items:flex-start;min-height:102px}.p1-metric .p1-square{width:30px;height:30px;border-radius:10px}.p1-metric .p1-square>.p1-icon{width:19px;height:19px}.p1-metric strong{font-size:23px;line-height:1.5}.p1-metric span{font-size:9px}.p1-paths{grid-template-columns:minmax(0,1fr)}.p1-paths button{padding:15px}.p1-heading h1{font-size:25px}.p1-heading p{font-size:12px}.lh-catalog-intro{padding:12px 15px;font-size:11px;margin-bottom:14px}.lh-filters{gap:8px;margin:15px 0}.lh-filters button{flex:1;padding:8px 12px;font-size:11px;min-height:38px}.lh-grid{grid-template-columns:minmax(0,1fr);gap:16px}.lh-course{border-radius:20px}.lh-course-art{aspect-ratio:16/8.1;padding:22px}.lh-cover-title{font-size:30px;max-width:70%}.lh-course-body{padding:13px 15px 15px;gap:9px}.lh-course h3{font-size:20px}.lh-course .lh-teacher{font-size:11px}.lh-grade{font-size:9px;padding:7px 9px;max-width:46%}.lh-course .lh-description{font-size:11px}.lh-course-meta{font-size:10px}.lh-course .p1-btn{font-size:13px;min-height:42px}.ac-staff-banner{padding:19px;gap:12px;flex-wrap:wrap}.ac-staff-banner h2{font-size:18px}.ac-staff-banner p{font-size:11px}.ac-staff-banner>.p1-icon{width:35px;height:35px}.ac-staff-banner .p1-soft-btn{width:100%;font-size:12px}.ac-push-card{flex-wrap:wrap;padding:18px}.ac-push-card>.p1-soft-btn{width:100%}.ac-report-dialog{padding:20px 16px}.ac-report-head h2{font-size:20px}.ac-report-dialog .field{max-width:100%}.ac-follow-card,.ac-payment-card{padding:16px}.ac-utilities button{flex:1 1 160px}.cc-cover-upload{padding:14px}.p1-shell .cc-fields.two{grid-template-columns:minmax(0,1fr)}.p1-shell .cc-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.p1-shell .cc-tab{font-size:11px;min-height:44px}.p1-shell .cc-footer{flex-wrap:wrap;gap:10px}.p1-shell .cc-footer>span{width:100%}.p1-shell .cc-builder-head{padding:17px;gap:10px}}
@media(max-width:360px){.p1-shell .app-header{padding-inline:12px;gap:7px}.ac-wordmark{font-size:17px!important}.ac-greeting h1{font-size:22px}.ac-hero{padding:16px;aspect-ratio:1.95}.ac-hero h2{font-size:19px}.lh-shortcuts button{padding:12px 10px;gap:8px}.lh-shortcuts b{font-size:11px}.lh-shortcuts .lh-shortcut-icon{width:29px}.lh-shortcuts .lh-shortcut-icon>.lh-icon{width:28px;height:28px}.lh-cover-title{font-size:26px}.lh-grade{max-width:43%}.lh-course h3{font-size:18px}.ac-featured h3{font-size:13px}.ac-featured .lh-cover-title{font-size:17px}}
.dark.p1-shell,[data-theme='dark'].p1-shell,.p1-shell.dark-mode,body.dark-mode.p1-shell{--p1-ink:#e7eeff;--p1-muted:#a8b4ce;--p1-blue:#4391ff;--p1-teal:#35cec2;--p1-orange:#f3bb54;--p1-surface:#15233d;--p1-bg:#0e182b;--p1-line:#293a58}.dark.p1-shell .lh-shortcuts button,.dark.p1-shell .lh-filters button,.dark.p1-shell .cc-cover-upload{background:var(--p1-blue-light);color:var(--p1-ink)}
@media(prefers-reduced-motion:reduce){.p1-shell *{scroll-behavior:auto}.lh-course-art>span{animation:none!important}}

.lh-cover-title{overflow-wrap:anywhere;min-width:0}.ac-featured .lh-cover-title{max-width:100%}.p1-teacher-dashboard .lh-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.cc-manage-card .lh-course-art{margin:-15px -15px 16px;width:calc(100% + 30px)}
@media(max-width:1200px){.p1-teacher-dashboard .lh-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.p1-shell .lh-cover-dialog,.p1-shell .lh-cover-dialog form{width:100%;min-width:0;max-width:100%}.p1-shell .lh-cover-dialog form{grid-template-columns:minmax(0,1fr)}.p1-shell .lh-cover-dialog form>*{min-width:0;max-width:100%}.p1-shell :is(.lh-cover-dialog,.cc-payment,.ac-report-dialog) input[type=file]{width:100%;min-width:0;max-width:100%}.p1-shell .ac-report-dialog :is(input,select,textarea){min-width:0;max-width:100%;width:100%}.p1-shell .ac-report-dialog input[type=checkbox]{width:auto}

.p1-shell .page-content>*{margin-inline:0}.p1-shell .app-header .app-logo{height:auto;min-height:0}.p1-shell .app-header .app-logo .ac-wordmark{line-height:1.7}

body.p1-shell .app-main,body.p1-shell .page-content{background:var(--p1-bg)}.p1-shell .page-content>.p1-page{margin-left:0!important;margin-right:0!important}.p1-shell .app-header{height:auto;border-top:0}.ac-greeting p>.p1-icon{color:var(--p1-orange);width:18px;height:18px;margin-inline-start:5px}.p1-shell .account-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.p1-shell .account-button .p1-icon{width:17px;height:17px}
@media(max-width:980px){.p1-shell .account-button{display:none}}


/* /access-experience.css */
/* A calm public entrance and clear account controls, using the academy's own font and artwork. */
body{font-family:'Cairo',Tahoma,Arial,sans-serif}
body .marketing-header{
  height:auto;min-height:82px;gap:24px;padding:15px max(24px,calc((100vw - 1240px)/2));
  border-top:0;border-bottom:1px solid #e1e9f5;background:#fff;box-shadow:none;
  justify-content:space-between;
}
.ac-public-brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0;color:#091a50}
.ac-public-brand img{display:block;flex-shrink:0;width:38px;height:38px;border-radius:11px}
.ac-public-brand .ac-wordmark,.auth-brand .ac-wordmark{color:#091a50}
.ac-public-brand .ac-wordmark b,.auth-brand .ac-wordmark b{color:#0866ed}
body .marketing-actions{gap:10px;flex-shrink:0}
body :is(.marketing-header,.landing-view,.auth-dialog) .primary-btn{
  background:#0866ed;color:#fff;border:1px solid #0866ed;border-radius:13px;
  font-size:13px;font-weight:800;min-height:46px;padding:11px 22px;box-shadow:0 5px 15px #0866ed14;
}
body :is(.marketing-header,.landing-view,.auth-dialog) .secondary-btn{
  background:#fff;color:#0866ed;border:1px solid #d2e1f9;border-radius:13px;
  font-size:13px;font-weight:800;min-height:46px;padding:11px 22px;
}
body :is(.marketing-header,.landing-view,.auth-dialog) :is(button,a,input,select):focus-visible{
  outline:3px solid #45b7ff;outline-offset:3px;
}
body .landing-view{max-width:1240px;padding:28px 24px;color:#091a50}
.ac-welcome{display:flex;flex-direction:column;gap:26px;margin-bottom:26px}
.ac-welcome-copy{min-width:0;width:100%;text-align:center}
.ac-welcome-kicker{display:inline-flex;border:1px solid #dbe8fc;border-radius:30px;padding:7px 15px;background:#eaf3ff;color:#0866ed;font-weight:700;font-size:12px}
.ac-welcome h1{font-size:40px;font-weight:900;line-height:1.7;letter-spacing:-1px;margin:12px 0 5px;color:#091a50;text-wrap:balance}
.ac-welcome h1 em{font-style:normal;color:#0866ed}
.ac-welcome p{font-size:15px;color:#69758f;line-height:2;margin:0 0 18px;text-wrap:balance}
.ac-welcome-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
body .ac-welcome-actions .primary-btn,body .ac-welcome-actions .secondary-btn{min-height:52px;padding:13px 24px;font-size:14px}
.ac-welcome-actions .primary-btn{display:inline-flex;justify-content:center;align-items:center;gap:18px}
.ac-welcome-hint{display:block;font-size:11px;line-height:1.9;color:#69758f;margin-top:11px;text-wrap:balance}
.ac-welcome-art{position:relative;width:100%;min-height:clamp(290px,26vw,335px);border-radius:24px;border:1px solid #e1e9f5;background:linear-gradient(90deg,#f4ede3,#fffdf8 70%);overflow:hidden;box-shadow:0 8px 32px #123a8e08;isolation:isolate}
.ac-welcome-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:left center;z-index:-2}
.ac-welcome-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 39%,#fffcf500 44%,#fffdf8eb 62%,#fffdf8 100%);z-index:-1;pointer-events:none}
.ac-welcome-art-caption{position:absolute;right:4%;top:0;bottom:0;width:51%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 0;color:#091a50}
.ac-hero-name{font-size:clamp(40px,5vw,64px);font-weight:900;line-height:1.3;letter-spacing:-1.8px;color:#ee1935}
.ac-hero-slogan{font-size:clamp(34px,4.1vw,52px);font-weight:900;line-height:1.5;letter-spacing:-1.4px;margin:1px 0 12px;white-space:nowrap}
.ac-hero-promise{display:block;border-radius:30px;background:#ffe26b;padding:6px 17px;color:#091a50;font-size:clamp(11px,1.13vw,14px);font-weight:800;line-height:1.9;max-width:100%;text-wrap:balance}
.ac-hero-doodle{position:absolute;pointer-events:none;width:47px;height:55px}
.ac-hero-bulb{color:#091a50;left:3%;top:10%;transform:rotate(-12deg)}
.ac-hero-plane{color:#ee1935;right:3%;top:8%;transform:rotate(5deg)}
.ac-welcome-art.custom{min-height:0;background:#fff}
.ac-welcome-art.custom>img{position:static;height:auto;max-height:400px;object-position:center}
.ac-welcome-art.custom::after,.ac-welcome-art.custom .ac-welcome-art-caption,.ac-welcome-art.custom .ac-hero-doodle{display:none}
body.visual-refresh .landing-view .landing-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0}
body.visual-refresh .landing-view .landing-cards article{padding:21px 17px;border-radius:19px;border:1px solid #e1e9f5;box-shadow:0 4px 18px #13356004;align-items:center;text-align:center;flex-direction:column;min-width:0;background:#fff;gap:11px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body .landing-cards article>span{width:48px;height:48px;flex-shrink:0;border-radius:15px;background:#eaf3ff;color:#0866ed;display:grid;place-items:center}
.ac-feature-icon{width:27px;height:27px}
body.visual-refresh .landing-view .landing-cards article:nth-child(2)>span{color:#009e90;background:#e4faf5}
body.visual-refresh .landing-view .landing-cards article:nth-child(3)>span{color:#ce850d;background:#fff7e4}
body.visual-refresh .landing-view .landing-cards article:nth-child(4)>span{color:#7942e6;background:#f3edff}
body .landing-cards b{font-size:15px;line-height:1.9;color:#091a50}
body .landing-cards small{font-size:11px;line-height:1.9;color:#69758f;margin-top:4px;text-wrap:balance}
.ac-public-footer{border-top:1px solid #e1e9f5;margin-top:29px;padding:16px 0 0;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:#69758f}
.ac-public-footer a{color:#0866ed;text-decoration:none;font-weight:700;padding:8px 0}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body.visual-refresh .landing-view .landing-cards article:hover{transform:translateY(-4px);border-color:#ccddf9;box-shadow:0 12px 28px #123a8e0e}}
body .auth-dialog{
  width:min(460px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);
  padding:32px;border:1px solid #e1e9f5;border-radius:24px;background:#fff;color:#091a50;
  overflow-y:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #091a5038;
}
body .auth-dialog.is-register{width:min(620px,calc(100vw - 28px))}
.auth-dialog::backdrop{background:#091a506b;backdrop-filter:blur(5px)}
body .auth-dialog .dialog-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:12px;background:#f4f8ff;color:#69758f;font-size:24px;border:1px solid #e1e9f5}
.ac-auth-logo{display:block;margin:0 auto 9px}
body .ac-auth-logo img{width:44px;height:44px;border-radius:13px}
body .auth-brand{margin-bottom:23px;padding-top:4px}
body .auth-brand .ac-wordmark{font-size:20px}
body .auth-brand h2{font-size:24px;line-height:1.65;letter-spacing:-.6px;color:#091a50;margin:13px 0 4px;font-weight:900}
body .auth-brand p{font-size:12px;line-height:1.9;color:#69758f;margin:0}
body .auth-form{gap:15px}
body .auth-form .two-col{gap:15px}
body .auth-form label{position:relative;gap:7px;font-size:12px;line-height:1.9;color:#091a50;min-width:0;font-weight:700}
body .auth-form :is(input,select){width:100%;max-width:100%;min-width:0;border:1px solid #dce5f3;border-radius:12px;padding:11px 13px;background:#f8faff;color:#091a50;font-size:16px;min-height:49px}
body .auth-form :is(input,select):focus{border-color:#0866ed;background:#fff}
body .auth-form :is(input,select)::placeholder{font-size:13px;color:#8a97ad}
body .auth-form #regRole{background:#eaf3ff;color:#0866ed;font-weight:700;border-color:#c9dcfa}
.ac-optional{position:absolute;top:1px;left:0;color:#69758f;font-size:10px;font-weight:400}
body .auth-form .role-fields{padding:17px;border:1px solid #e1e9f5;border-radius:16px;background:#f4f8ff}
body .auth-form .role-fields .muted{display:block;margin-top:8px;font-size:11px;line-height:1.9;color:#69758f}
body .auth-form .grade-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
body .auth-form .grade-checks label{display:flex;align-items:center;gap:7px;border:1px solid #e1e9f5;background:#fff;border-radius:10px;padding:10px;font-size:10px;font-weight:600;min-height:44px}
body .auth-form .grade-checks input{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex-shrink:0;accent-color:#0866ed}
body .auth-form #regTeacherFields>label{margin-top:15px}
body .auth-note{border:1px solid #dce9fa;border-radius:12px;background:#eaf3ff;color:#24549d;font-size:11px;line-height:1.9;padding:12px 14px}
body .auth-form .primary-btn{min-height:50px;font-size:14px}
body .auth-switch{font-size:12px;color:#69758f;margin:17px 0 0;line-height:1.9}
body .auth-switch button{font-size:12px;padding:8px 4px;color:#0866ed}
body #authError:not(:empty){margin-bottom:16px}
body #authError :is(.error-box,.success-box){font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.ac-header-logout{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex-shrink:0;border:1px solid #e1e9f5;background:#fff;border-radius:12px;color:#69758f;padding:9px 11px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
.ac-header-logout svg{width:19px;height:19px;flex-shrink:0}
.ac-header-logout:hover{background:#fff1f2;border-color:#efd2d7;color:#b6344e}
.p1-shell .sidebar{overflow:hidden;padding-bottom:18px}
.p1-shell .side-nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
.p1-shell .logout-btn{flex-shrink:0;margin-top:12px;min-height:44px;color:#b6344e;background:#fff4f5;border:1px solid #f3dde1}
.ac-menu-account{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--p1-line);margin-top:22px;padding-top:18px}
.ac-menu-account>div{min-width:0}.ac-menu-account b,.ac-menu-account small{display:block;overflow-wrap:anywhere}
.ac-menu-account b{font-size:12px}.ac-menu-account small{font-size:10px;color:var(--p1-muted);margin-top:3px}
.ac-menu-logout{border:1px solid #f3dde1;border-radius:12px;background:#fff4f5;color:#b6344e;padding:10px 15px;font-family:inherit;font-size:12px;font-weight:700;min-height:44px;flex-shrink:0}
#p1SectionDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#p1SectionDialog .p1-section-menu-head{flex-shrink:0}
#p1SectionDialog .p1-section-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px;flex:1}
#p1SectionDialog .ac-menu-account{flex-shrink:0;margin-top:16px;padding-top:15px}
@media(max-width:1200px){.p1-shell .profile-block>div{display:none}}
@media(max-width:980px){
  .ac-welcome h1{font-size:34px}.ac-welcome-art-caption{width:54%;right:3%}
  .ac-hero-name{font-size:46px}.ac-hero-slogan{font-size:37px}.ac-hero-promise{font-size:11px;padding-inline:12px}
  .ac-hero-doodle{width:37px;height:43px}
  body.visual-refresh .landing-view .landing-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ac-header-logout{width:38px;padding:8px}.ac-header-logout>span{display:none}
}
@media(max-width:700px){
  body .marketing-header{min-height:70px;padding:12px 16px;gap:10px}
  .ac-public-brand{gap:8px}.ac-public-brand img{width:32px;height:32px;border-radius:9px}.ac-public-brand .ac-wordmark{font-size:16px;letter-spacing:-.7px}
  body .marketing-actions{gap:7px}
  body .marketing-actions .primary-btn,body .marketing-actions .secondary-btn{font-size:11px;padding:9px 12px;min-height:43px;border-radius:11px}
  body .landing-view{padding:18px 16px 20px}
  .ac-welcome{gap:20px;margin-bottom:20px}
  .ac-welcome-kicker{font-size:11px;padding:5px 13px}
  .ac-welcome h1{font-size:28px;margin:10px 0 6px;letter-spacing:-.7px;line-height:1.65;max-width:420px;margin-inline:auto}
  .ac-welcome p{font-size:12px;line-height:1.95;margin-bottom:15px}
  .ac-welcome-actions{flex-direction:column;gap:9px}
  body .ac-welcome-actions .primary-btn,body .ac-welcome-actions .secondary-btn{width:100%;font-size:13px;min-height:47px;padding:10px 15px;border-radius:12px}
  .ac-welcome-actions .primary-btn{gap:12px}.ac-welcome-hint{font-size:10px;margin-top:10px}
  .ac-welcome-art{min-height:0;border-radius:19px;display:flex;flex-direction:column;background:#fffdf8}
  .ac-welcome-art>img{position:static;z-index:auto;width:100%;height:clamp(190px,52vw,280px);object-fit:cover;object-position:left center}
  .ac-welcome-art::after{display:none}
  .ac-welcome-art-caption{position:static;width:100%;padding:12px 11px 15px;background:linear-gradient(180deg,#fffdf8,#faf5eb)}
  .ac-hero-name{font-size:37px;letter-spacing:-1.2px;line-height:1.3}
  .ac-hero-slogan{font-size:30px;letter-spacing:-.9px;line-height:1.45;margin:0 0 7px}
  .ac-hero-promise{font-size:9px;padding:4px 9px;line-height:1.9}
  .ac-hero-bulb{width:37px;height:46px;left:4%;top:6%}
  .ac-hero-plane{width:32px;height:38px;right:5%;top:auto;bottom:90px}
  .ac-welcome-art.custom>img{height:auto;max-height:320px;object-fit:contain}
  body.visual-refresh .landing-view .landing-cards{gap:10px}
  body.visual-refresh .landing-view .landing-cards article{padding:15px 10px;gap:8px;border-radius:16px}
  body .landing-cards article>span{width:40px;height:40px;border-radius:12px}.ac-feature-icon{width:24px;height:24px}
  body .landing-cards b{font-size:12px}body .landing-cards small{font-size:10px}
  .ac-public-footer{font-size:10px;margin-top:25px;padding-top:12px}
  body .auth-dialog{padding:25px 22px;border-radius:22px}
  body .auth-dialog .two-col{grid-template-columns:minmax(0,1fr)}
  body .auth-form .role-fields{padding:14px}
  body .auth-form .grade-checks label{font-size:10px;padding:10px 8px}
  .p1-shell .profile-avatar{display:none}
  .p1-shell .app-header-actions{gap:4px}
  .p1-shell .app-header-actions .ac-header-logout{min-width:35px;width:35px;min-height:40px;padding:8px;border:0;background:transparent}
  .ac-menu-logout{font-size:11px;padding:10px 12px}
}
@media(max-width:360px){
  body .marketing-header{padding:11px 12px;gap:8px}.ac-public-brand .ac-wordmark{font-size:14px}.ac-public-brand img{width:28px;height:28px}.ac-public-brand{gap:7px}
  body .marketing-actions{gap:6px}body .marketing-actions .primary-btn,body .marketing-actions .secondary-btn{padding:9px 10px;font-size:10px}
  .ac-welcome h1{font-size:26px}.ac-welcome p{font-size:11px}
  .ac-hero-name{font-size:33px}.ac-hero-slogan{font-size:26px}.ac-hero-promise{font-size:8px}
  .ac-hero-plane{width:27px;right:3%;bottom:83px}
  body .landing-cards b{font-size:11px}
  body .auth-dialog{padding:24px 17px}.auth-brand .ac-wordmark{font-size:18px}body .auth-brand h2{font-size:22px}
  body .auth-form .grade-checks{grid-template-columns:minmax(0,1fr)}
}
body.dark:not(.p1-shell){background:#0a1326;color:#eef3ff}
body.dark :is(.marketing-header,.auth-dialog){background:#111c31;border-color:#283a57;color:#eef3ff}
body.dark :is(.ac-public-brand,.auth-brand) .ac-wordmark,body.dark .auth-brand h2,body.dark .auth-form label,body.dark .ac-welcome h1{color:#eef3ff}
body.dark .ac-welcome :is(p,.ac-welcome-hint),body.dark .auth-brand p{color:#a9b8d2}
body.dark :is(.landing-cards article,.auth-form .role-fields,.auth-form .grade-checks label,.ac-header-logout){background:#15213a;border-color:#283a57;color:#eef3ff}
body.dark .landing-view .landing-cards article{background:#15213a;border-color:#283a57}
body.dark .landing-cards b{color:#eef3ff}
body.dark .landing-cards small,body.dark .ac-public-footer{color:#a9b8d2}
body.dark .auth-form :is(input,select){background:#111c31;border-color:#344766;color:#eef3ff}
body.dark .ac-public-footer{border-color:#283a57}
@media(prefers-reduced-motion:reduce){body.visual-refresh .landing-view .landing-cards article{transition:none;transform:none}}


/* /teacher-network.css */
/* Additive teacher workspace and account cards, matching the existing academy identity. */
.tn-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}
.tn-welcome h1{font-size:clamp(24px,2.6vw,35px);line-height:1.65;color:#15284c;margin:4px 0;overflow-wrap:anywhere}
.tn-welcome p,.tn-section-heading p{margin:2px 0;color:#63738b;line-height:1.9}
.tn-welcome-badge{display:flex;align-items:center;gap:8px;color:#047c72;background:#e4f8f0;padding:10px 16px;border-radius:14px;font-size:12px;font-weight:800;flex-shrink:0}
.tn-hero{position:relative;overflow:hidden;border-radius:25px;background:#edf4fc;border:1px solid #e1eaf5;min-height:300px;box-shadow:0 12px 35px #15284c0b;margin-bottom:22px}
.tn-hero picture{position:absolute;inset:0;display:block}
.tn-hero img{width:100%;height:100%;object-fit:cover;object-position:center}
.tn-hero-copy{position:relative;z-index:1;width:57%;padding:32px 36px 35px;margin-left:auto;background:linear-gradient(270deg,#f0f6feeb 10%,#f0f6feb0 70%,transparent)}
.tn-hero-kicker{display:inline-flex;background:#fff8d9;border:1px solid #f4e3a6;border-radius:99px;padding:6px 14px;font-size:12px;color:#7c5a0b;font-weight:800}
.tn-hero h2{margin:15px 0 10px;font-size:clamp(28px,3.1vw,43px);line-height:1.45;color:#142b51;letter-spacing:-.6px}
.tn-hero h2 em{color:#0866ed;font-style:normal}
.tn-hero-copy p{color:#516580;font-size:14px;line-height:2;margin:0 0 20px}
.tn-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.tn-hero-actions button{min-height:44px;font-size:13px}
.tn-follow-banner,.tn-rent-summary{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e3ebf4;border-radius:20px;padding:19px 23px;margin:18px 0;box-shadow:0 4px 17px #15284c05}
.tn-follow-banner{background:linear-gradient(120deg,#f6fcff,#f3fbf7)}
.tn-follow-banner>div,.tn-rent-summary>div{flex:1;min-width:0}
.tn-follow-banner h2{font-size:17px;color:#1c3454;margin:0 0 3px}.tn-follow-banner p,.tn-rent-summary p{font-size:12px;color:#64748b;line-height:1.9;margin:2px 0}
.tn-dashboard .p1-metric{border-radius:20px;min-height:106px;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}
.tn-dashboard .p1-metric:after{content:"";position:absolute;left:-16px;top:-20px;width:95px;height:95px;border-radius:50%;background:#0866ed05;pointer-events:none}
.tn-dashboard .p1-action-tile{border-radius:19px;background:linear-gradient(145deg,#fff,#f1f6ff);border:1px solid #e2eafb;min-height:90px;transition:transform .2s,box-shadow .2s}
.tn-dashboard .p1-action-tile:nth-child(2){background:linear-gradient(145deg,#fff,#f3f0ff);border-color:#ece5fd}
.tn-dashboard .p1-action-tile:nth-child(3){background:linear-gradient(145deg,#fff,#edf9f5);border-color:#ddf0e8}
.tn-dashboard .p1-action-tile:nth-child(4){background:linear-gradient(145deg,#fff,#fff7e8);border-color:#f9ebcf}
.tn-dashboard .p1-panel{border-radius:22px}.tn-dashboard .p1-empty{border-radius:17px;background:linear-gradient(135deg,#f8fbff,#f4f8ff)}
.tn-dashboard .p1-motion-card{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){.tn-dashboard .p1-motion-card.p1-motion-visible{animation:tnCardReveal .35s ease-out both;animation-delay:var(--p1-card-delay,0ms)}}
@keyframes tnCardReveal{from{opacity:.85;translate:0 10px}to{opacity:1;translate:0 0}}
.tn-card{padding:24px;border:1px solid #e3eaf4;background:#fff;border-radius:21px;box-shadow:0 5px 20px #12295706;min-width:0}
.tn-account-section{margin:24px 0}.tn-section-heading{margin-bottom:20px}.tn-section-heading h2{margin:4px 0;font-size:23px;color:#1c3454}
.tn-settings-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:22px;align-items:start}
.tn-settings-grid .stack{gap:16px}.tn-settings-grid .two-col{gap:14px}.tn-card h3{font-size:18px;color:#1c3454;margin:0 0 12px}
.tn-card .field{margin:0}.tn-card input,.tn-card select,.tn-card textarea{max-width:100%;font-family:inherit;min-width:0}
.tn-card input[type=tel],.tn-card input[type=email],.tn-card input[type=password]{direction:ltr;text-align:right}
.tn-security-icon{display:grid;place-items:center;width:48px;height:48px;color:#087b70;background:#e5f7f1;border-radius:15px;font-size:24px;font-weight:800;margin-bottom:16px}
.tn-password-card>p,.tn-hint{font-size:12px;color:#64748b;line-height:1.95;margin:5px 0 14px}
.tn-teacher-picker{border:1px solid #e1e9f4;border-radius:15px;padding:15px;min-width:0;margin:2px 0 10px;background:#f8faff}
.tn-teacher-picker legend{font-size:14px;font-weight:800;color:#1c3454;padding:0 7px}
.tn-teacher-picker p{font-size:11px;line-height:1.9;color:#65778f;margin:0 0 11px}
.tn-teacher-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tn-teacher-option{display:flex!important;align-items:center;gap:9px;padding:12px;border:1px solid #dfe7f3;background:#fff;border-radius:13px;cursor:pointer;min-height:72px;position:relative;overflow-wrap:anywhere;min-width:0}
.tn-teacher-option input{width:17px!important;height:17px;min-height:0!important;padding:0!important;flex-shrink:0;accent-color:#0866ed;margin:0!important}
.tn-avatar{width:37px;height:37px;background:linear-gradient(150deg,#e1edff,#f1f5ff);color:#0866ed;border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:800;flex-shrink:0}
.tn-teacher-option>span:nth-of-type(2){display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.tn-teacher-option b{font-size:12px;color:#233a5f;line-height:1.7}.tn-teacher-option small{font-size:10px;color:#687c96;line-height:1.6}
.tn-choice-mark{display:none}.tn-teacher-option:has(input:checked){background:#eef5ff;border-color:#0866ed;box-shadow:0 0 0 1px #0866ed18}.tn-teacher-option:has(input:focus-visible){outline:3px solid #0866ed4d;outline-offset:2px}
.tn-picker-message{padding:10px;line-height:1.95;color:#63738b;font-size:12px}
.tn-form-error{color:#b52239;line-height:1.9;font-size:12px;margin:0;overflow-wrap:anywhere}.tn-form-status{color:#087b70;line-height:1.9;font-size:12px;margin:0}.tn-form-error:empty,.tn-form-status:empty{display:none}
.tn-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tn-billing-card-top,.tn-billing-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tn-billing-card h2{font-size:19px;line-height:1.7;margin:13px 0 3px;overflow-wrap:anywhere;color:#1c3454}.tn-billing-card>p{font-size:12px;color:#687c96;margin:0 0 18px}.tn-billing-card-bottom{margin-top:18px}.tn-billing-card-bottom .p1-btn{font-size:12px}
.tn-status{border-radius:99px;padding:6px 12px;font-size:11px;font-weight:700;background:#fff6df;color:#856019;display:inline-block}.tn-status.paid{background:#e8f8f0;color:#08735e}.tn-status.paused{background:#fff0f0;color:#a92a3d}
.tn-billing-numbers{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 22px}.tn-billing-numbers>div{flex:1;min-width:105px;padding:14px;border-radius:13px;background:#f4f7fc}.tn-billing-numbers small{display:block;color:#687c96;font-size:11px;line-height:1.8}.tn-billing-numbers strong{display:block;font-size:19px;line-height:1.8;color:#1c3454;overflow-wrap:anywhere}
.tn-editor-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.tn-editor-head h2{font-size:23px;line-height:1.65;margin:3px 0;color:#1c3454;overflow-wrap:anywhere}.tn-editor-head p{font-size:12px;color:#687c96;margin:0}
.tn-billing-editor .tn-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #e3ebf4;padding-top:24px;gap:32px}.tn-access-toggle{display:flex;align-items:center;gap:10px;border:1px solid #dbe9f9;border-radius:14px;padding:15px;background:#f7faff}.tn-access-toggle input{width:19px;height:19px;flex-shrink:0;accent-color:#0866ed}.tn-access-toggle b{display:block;font-size:13px;line-height:1.8}.tn-access-toggle small{display:block;font-size:11px;color:#687c96;line-height:1.9}
.tn-payment-history{margin-top:25px;border-top:1px solid #e3ebf4;padding-top:20px}.tn-payment-history ul{padding:0;margin:0;list-style:none}.tn-payment-history li{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f7}.tn-payment-history li>div{min-width:0}.tn-payment-history b{color:#1c3454;font-size:15px}.tn-payment-history small{display:block;font-size:11px;color:#687c96;line-height:1.9;overflow-wrap:anywhere}.tn-reverse-payment{color:#a92a3d;background:#fff1f2;border:1px solid #f2d4d9;padding:8px 13px;border-radius:9px;flex-shrink:0;font-family:inherit;font-size:11px;min-height:40px;cursor:pointer}.tn-subscription-state{display:flex;gap:10px;flex-wrap:wrap}.tn-account-billing-link{margin-bottom:18px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.tn-dashboard .p1-metric:hover,.tn-dashboard .p1-action-tile:hover{transform:translateY(-4px);box-shadow:0 10px 24px #15284c0d}}
@media(max-width:1100px){.tn-welcome-badge{display:none}.tn-hero-copy{padding:28px;width:61%}.tn-settings-grid{grid-template-columns:minmax(0,1fr)}.tn-password-card{max-width:none}.tn-teacher-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tn-welcome{margin:0 0 18px}.tn-welcome h1{font-size:24px}.tn-welcome p{font-size:12px}.tn-hero{border-radius:20px;display:flex;flex-direction:column;min-height:0}.tn-hero-copy{order:0;padding:24px 21px 18px;width:100%;background:none}.tn-hero h2{font-size:31px;margin:13px 0 8px}.tn-hero-copy p{font-size:12px;margin-bottom:16px}.tn-hero picture{position:relative;order:1;height:155px;margin-top:-5px}.tn-hero img{object-fit:cover;object-position:left center}.tn-hero-actions{gap:8px}.tn-hero-actions button{font-size:11px;padding:10px 12px;flex:1}.tn-hero-actions .p1-icon{width:18px}.tn-follow-banner,.tn-rent-summary{padding:16px;gap:11px;flex-wrap:wrap}.tn-follow-banner h2{font-size:15px}.tn-follow-banner>button,.tn-rent-summary>button{margin-right:53px}.tn-dashboard .p1-metric{min-height:96px}.tn-card{padding:18px;border-radius:18px}.tn-account-section{margin:20px 0}.tn-settings-grid,.tn-billing-grid,.tn-billing-editor .tn-settings-grid{grid-template-columns:minmax(0,1fr);gap:20px}.tn-teacher-options{grid-template-columns:minmax(0,1fr)}.tn-card .two-col{grid-template-columns:minmax(0,1fr)}.tn-section-heading h2{font-size:21px}.tn-editor-head{align-items:flex-start;flex-direction:column;gap:8px}.tn-editor-head h2{font-size:21px}.tn-billing-numbers{gap:8px}.tn-billing-numbers>div{min-width:85px;padding:11px}.tn-billing-numbers strong{font-size:17px}.tn-billing-numbers small{font-size:10px}.tn-billing-page .p1-heading{gap:14px}.tn-payment-history li{gap:10px}.tn-billing-card-bottom .p1-btn{min-height:44px}.tn-rent-summary .p1-text-btn{font-size:12px}}
body.dark .tn-card,body.dark .tn-teacher-option,body.dark .tn-rent-summary{background:var(--panel,#192b42);border-color:#334764}body.dark .tn-welcome h1,body.dark .tn-card h2,body.dark .tn-card h3,body.dark .tn-section-heading h2,body.dark .tn-billing-numbers strong,body.dark .tn-teacher-option b,body.dark .tn-payment-history b{color:#e9f0fc}body.dark .tn-teacher-picker,body.dark .tn-billing-numbers>div{background:#20344e;border-color:#334764}body.dark .tn-teacher-option:has(input:checked){background:#153968;border-color:#6faaff}body.dark .tn-dashboard .p1-action-tile,body.dark .tn-follow-banner,body.dark .tn-dashboard .p1-empty{background:#20344e;border-color:#334764}body.dark .tn-follow-banner h2{color:#e9f0fc}
@media(max-width:600px){.tn-follow-banner,.tn-rent-summary{display:grid;grid-template-columns:42px minmax(0,1fr)}.tn-follow-banner>button,.tn-rent-summary>button{grid-column:2;justify-self:start;margin-right:0}}
@media(prefers-reduced-motion:reduce){.tn-dashboard *{animation:none!important;transition:none!important}}
.tn-select-dropdown{position:relative;max-width:100%;z-index:1}
.tn-select-dropdown[open]{z-index:12}
.tn-select-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 14px;border:1px solid #cbd8ea;border-radius:12px;background:#fff;color:#233a5f;font-size:13px;font-weight:800;cursor:pointer}
.tn-select-dropdown>summary::-webkit-details-marker{display:none}
.tn-select-summary{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tn-select-dropdown>summary:focus-visible{outline:3px solid #0866ed55;outline-offset:2px}
.tn-select-chevron{font-size:18px;transition:transform .16s}.tn-select-dropdown[open] .tn-select-chevron{transform:rotate(180deg)}
.tn-select-menu{position:absolute;top:calc(100% + 6px);right:0;left:0;max-height:min(360px,55vh);overflow:auto;padding:11px;background:#fff;border:1px solid #dce5f1;border-radius:15px;box-shadow:0 16px 38px #14294a24}
.tn-select-hint{padding:2px 5px 8px;color:#687c96;font-size:11px}.tn-select-menu .tn-teacher-options{grid-template-columns:1fr;gap:7px}.tn-select-menu .tn-teacher-option{min-height:58px;padding:8px 10px}
.tn-privacy-note{display:flex;align-items:flex-start;gap:12px;padding:14px 17px;margin:10px 0 18px;border:1px solid #d5e4f7;border-radius:15px;background:linear-gradient(115deg,#f2f7ff,#f2fbf8);color:#1d385f}
.tn-privacy-note>span{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e0ecff;font-size:18px}
.tn-privacy-note b,.tn-privacy-note small{display:block}.tn-privacy-note b{font-size:12px;line-height:1.8}.tn-privacy-note small{font-size:11px;color:#64748b;line-height:1.8;margin-top:2px}
.tn-request-list,.tn-permission-list{display:grid;gap:12px}.tn-request-card{display:flex;align-items:center;gap:13px}.tn-request-avatar{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border-radius:14px;background:#e8f1ff;color:#176ad4;font-size:20px;font-weight:800}.tn-request-info{min-width:0;flex:1}.tn-request-info b,.tn-request-info small{display:block}.tn-request-info b{color:#20395d}.tn-request-info small{color:#687c96;font-size:11px;line-height:1.8}.tn-request-actions{display:flex;gap:8px;flex-wrap:wrap}.tn-request-actions button{min-height:42px;font-size:12px}
.tn-admin-permissions{margin-top:16px}.tn-permission-option{display:flex!important;align-items:flex-start;gap:11px;padding:12px;border:1px solid #e0e8f2;border-radius:12px;background:#f9fbfe;cursor:pointer}.tn-permission-option>input{width:19px;height:19px;min-height:0!important;padding:0!important;margin:3px 0 0!important;flex:0 0 19px;accent-color:#0866ed}.tn-permission-option span{display:block}.tn-permission-option b,.tn-permission-option small{display:block}.tn-permission-option b{font-size:12px;color:#243d62}.tn-permission-option small{font-size:10px;color:#687c96;line-height:1.8;margin-top:3px}
.welcome-whatsapp-link{display:inline-flex;align-items:center;gap:3px;margin-inline-start:7px;color:#087b58;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap}.welcome-whatsapp-link:hover{text-decoration:underline}
body.dark .tn-select-dropdown>summary,body.dark .tn-select-menu{background:#14243a;border-color:#354d6c;color:#e9f1ff}
body.dark .tn-select-menu{box-shadow:0 18px 42px #0008}body.dark .tn-select-hint{color:#b2c1d8}
body.dark .tn-privacy-note{background:linear-gradient(115deg,#182b45,#163431);border-color:#354d6c;color:#e9f1ff}body.dark .tn-privacy-note>span{background:#203c60}body.dark .tn-privacy-note small{color:#b2c1d8}
body.dark .tn-request-avatar{background:#203c60;color:#a8cbff}body.dark .tn-request-info b{color:#e9f1ff}body.dark .tn-request-info small{color:#b2c1d8}
body.dark .tn-permission-option{background:#17283f;border-color:#354d6c}body.dark .tn-permission-option b{color:#e9f1ff}body.dark .tn-permission-option small{color:#b2c1d8}
body.dark .welcome-whatsapp-link{color:#75d9b3}
body.dark .data-table .btn-sm{background:#203c60;color:#c6ddff;border:1px solid #355174}body.dark .data-table .btn-sm.success{background:#163c34;color:#9be2c7;border-color:#285c4e}body.dark .data-table .btn-sm.danger{background:#442a36;color:#ffbac8;border-color:#714151}
body.dark .data-table .tag{background:#20334d;color:#c6ddff}body.dark .data-table .tag.green{background:#17392f;color:#9be2c7}body.dark .data-table .tag.yellow{background:#3b3020;color:#f4d292}body.dark .data-table .tag.red{background:#442a36;color:#ffbac8}
body.dark .data-table .btn-sm{transition:background .16s,border-color .16s,transform .16s}body.dark .data-table .btn-sm:hover{filter:brightness(1.16);transform:translateY(-1px)}body.dark .data-table .btn-sm:focus-visible{outline:3px solid #8bbcff;outline-offset:2px}
@media(max-width:600px){.tn-request-card{align-items:flex-start;flex-wrap:wrap}.tn-request-info{flex-basis:calc(100% - 60px)}.tn-request-actions{width:100%;padding-inline-start:58px}.tn-request-actions button{flex:1}.tn-select-menu{max-height:52vh}}

.tn-my-subscription{display:grid;gap:16px}.tn-my-subscription>.p1-heading{margin-bottom:0}.tn-my-subscription-card .tn-editor-head{margin-bottom:8px}.tn-my-subscription-card .tn-editor-head h2{margin:4px 0}.tn-overdue-card h2{font-size:20px;line-height:1.7;color:#1c3454;margin:4px 0 10px}.tn-overdue-list{padding:0;margin:8px 0 0;list-style:none}.tn-overdue-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-top:1px solid #edf1f7}.tn-overdue-list li b,.tn-overdue-list li small{display:block}.tn-overdue-list li b{color:#1c3454}.tn-overdue-list li small{font-size:11px;color:#687c96;line-height:1.8}.tn-overdue-list li strong{color:#a92a3d;font-size:13px;text-align:left;white-space:nowrap}body.dark .tn-overdue-card h2,body.dark .tn-overdue-list li b{color:#e9f0fc}body.dark .tn-overdue-list li{border-color:#334764}body.dark .tn-overdue-list li small{color:#b2c1d8}body.dark .tn-overdue-list li strong{color:#ffbac8}@media(max-width:600px){.tn-overdue-list li{align-items:flex-start;gap:8px}.tn-overdue-list li strong{font-size:12px}}


/* /personal-experience.css */
/* Picture-backed banners and clear teacher action cards on every screen size. */
.tn-dashboard .tn-hero{min-height:365px;margin-top:0;margin-bottom:17px}
.tn-dashboard .tn-hero picture{position:absolute;inset:0;height:100%;margin:0}
.tn-dashboard .tn-hero img{width:100%;height:100%;object-fit:cover;object-position:center}
.tn-dashboard .tn-hero:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(270deg,#f0f6fef5 0%,#f0f6fecc 42%,#f0f6fe00 67%)}
.tn-dashboard .tn-hero-copy{z-index:1;width:57%;padding:29px 34px;background:none;position:relative}
.tn-dashboard .tn-hero h1{font-size:clamp(21px,2vw,29px);line-height:1.8;margin:12px 0 0;color:#172d50;overflow-wrap:anywhere}
.tn-hero-subject{color:#637792;display:block;font-size:12px;line-height:1.8;margin:0 0 10px}
.tn-dashboard .tn-hero h2{font-size:clamp(28px,2.9vw,41px);margin:9px 0 11px;line-height:1.45}
.tn-dashboard .ac-utilities{margin:0 0 17px;display:flex;justify-content:flex-end}
.tn-dashboard .ac-utilities button{min-height:39px;font-size:11px;padding:8px 14px}
.tn-teacher-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:21px 0}
.tn-tool-card{display:flex;align-items:center;gap:13px;text-align:right;padding:21px 18px;background:#fff;border:1px solid #e1eaf6;border-radius:19px;min-width:0;min-height:126px;font-family:inherit;color:#1c3458;box-shadow:0 4px 16px #15284c05;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}
.tn-tool-icon{display:grid;place-items:center;width:51px;height:51px;flex-shrink:0;border-radius:16px;background:#eaf3ff;color:#0866ed}
.tn-tool-icon .p1-icon{width:29px;height:29px}.tn-tool-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:7px}.tn-tool-copy b{font-size:14px;line-height:1.8}.tn-tool-copy small{color:#75859e;font-size:10px;line-height:1.9}
.tn-tool-card>.p1-icon{width:17px;color:#94a6c0}.tn-tool-card.review .tn-tool-icon{color:#b87b14;background:#fff5df}.tn-tool-card.video .tn-tool-icon{color:#058d7b;background:#e6f8f1}.tn-tool-card.tasks .tn-tool-icon{color:#7547c9;background:#f1eafe}.tn-tool-card.classes .tn-tool-icon{color:#087b9d;background:#e6f6fa}.tn-tool-card.check .tn-tool-icon{color:#cb6a37;background:#fff0e7}
.tn-tool-card:focus-visible{outline:3px solid #65a8ff;outline-offset:3px}
.ac-welcome-art,.ac-welcome-art.custom{min-height:455px;display:block;position:relative;background:#fffdf8}
.ac-welcome-art>img,.ac-welcome-art.custom>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-height:none;object-fit:cover;object-position:left center}
.ac-welcome-art:after,.ac-welcome-art.custom:after{display:block;background:linear-gradient(90deg,transparent 28%,#fffdf870 43%,#fffdf8ef 57%,#fffdf8 100%);z-index:-1}
.ac-welcome-art .ac-welcome-art-caption,.ac-welcome-art.custom .ac-welcome-art-caption{position:relative;right:auto;top:auto;bottom:auto;display:flex;width:53%;margin-right:0;margin-left:auto;min-height:455px;padding:27px 23px;gap:0;background:none;text-align:center}
.ac-welcome-art .ac-welcome-kicker{font-size:11px;padding:5px 12px;background:#ffffffb8;margin-bottom:13px}
.ac-welcome-art .ac-hero-name{font-size:53px;line-height:1.25}
.ac-welcome-art .ac-hero-slogan{font-size:43px;line-height:1.6;margin:1px 0 12px;white-space:normal;color:#091a50;letter-spacing:-1px}
.ac-welcome-art .ac-hero-promise{font-size:11px;padding:6px 14px;max-width:100%}
.ac-welcome-art .ac-banner-intro{font-size:12px;line-height:1.9;margin:15px 0;color:#5d6f87}
.ac-welcome-art .ac-welcome-actions{width:100%;flex-direction:row;gap:10px}
body .ac-welcome-art .ac-welcome-actions :is(.primary-btn,.secondary-btn){width:auto;min-height:46px;padding:10px 17px;font-size:12px;flex:1}
.ac-welcome-art .ac-welcome-hint{font-size:10px;margin-top:13px;color:#607089}
.ac-welcome-art .ac-hero-plane{right:2%;top:5%;bottom:auto;width:34px;height:40px}
.ac-welcome-art.custom .ac-hero-doodle{display:block}
.px-welcome-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #dfe8f6;border-radius:26px;background:#fff;color:#1c3458;padding:29px 30px 25px;text-align:center;box-shadow:0 20px 80px #0a245733;font-family:'Cairo',Tahoma,sans-serif}
.px-welcome-dialog::backdrop{background:#14264362;backdrop-filter:blur(4px)}
.px-welcome-close{position:absolute;left:15px;top:14px;border:0;border-radius:10px;width:35px;height:35px;background:#f0f4fb;color:#6d7b92;font-size:24px;cursor:pointer;font-family:inherit}
.px-welcome-art{position:relative;display:grid;place-items:center;margin:8px auto 16px;width:120px;height:115px;color:#0866ed;background:radial-gradient(ellipse,#eaf3ff 10%,#f5f9ff 61%,transparent 62%)}
.px-welcome-art svg{width:66px;height:66px;rotate:-7deg;position:relative;z-index:1}.px-welcome-star{position:absolute;top:4px;left:10px;color:#e3ad32;font-size:32px;rotate:12deg}.px-welcome-star.small{top:auto;bottom:5px;left:auto;right:12px;font-size:20px;color:#13a184}.px-welcome-orbit{position:absolute;inset:7px;border:1px dashed #baceeb;border-radius:50%;rotate:12deg}
.px-welcome-brand{font-size:11px;color:#0866ed;font-weight:800}.px-welcome-dialog h2{font-size:24px;line-height:1.75;margin:8px 0;color:#152d54;overflow-wrap:anywhere}.px-welcome-tagline{font-size:14px;color:#087c71;display:block;line-height:1.9}.px-welcome-dialog p{font-size:12px;color:#697b96;line-height:2;margin:12px 0 22px}.px-welcome-start{width:100%;justify-content:center;min-height:47px;font-size:13px;gap:14px}.px-welcome-support{display:inline-block;color:#667e96;text-decoration:none;font-size:10px;margin-top:16px;line-height:1.9}.px-welcome-support:hover{color:#0866ed}
.px-support-card{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e1eaf5;padding:21px 23px;border-radius:20px;margin:23px 0;min-width:0}.px-support-icon{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:14px;background:#e6f8ef;color:#087d69;font-size:26px;font-weight:800}.px-support-card>div{flex:1;min-width:0}.px-support-card h2{font-size:17px;margin:0 0 4px;color:#1c3458}.px-support-card p{font-size:11px;line-height:1.9;margin:0;color:#6a7d97}.px-support-card a{text-decoration:none;white-space:nowrap}.px-menu-support{display:flex;align-items:center;justify-content:center;min-height:42px;margin-top:15px;padding:9px 14px;border-radius:12px;background:#e7f8ef;color:#087d69;text-decoration:none;font-size:12px;font-weight:800}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.tn-tool-card:hover{transform:translateY(-4px);border-color:#b5cffa;box-shadow:0 12px 26px #15284c12}}
@media(prefers-reduced-motion:no-preference){.px-welcome-dialog[open]{animation:pxWelcomeIn .3s ease-out}.px-welcome-art svg{animation:pxBookIn .5s ease-out}}
@keyframes pxWelcomeIn{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}@keyframes pxBookIn{from{scale:.8;rotate:-14deg}to{scale:1;rotate:-7deg}}
@media(max-width:1050px){.tn-dashboard .tn-hero-copy{width:62%;padding:27px}.tn-tool-card{padding:17px 14px;gap:10px}.tn-tool-icon{width:43px;height:43px;border-radius:13px}.tn-tool-copy b{font-size:12px}.tn-tool-card>.p1-icon{display:none}.ac-welcome-art .ac-hero-name{font-size:44px}.ac-welcome-art .ac-hero-slogan{font-size:36px}.ac-welcome-art .ac-welcome-art-caption{width:56%}}
@media(max-width:600px){
 .tn-dashboard .tn-hero{display:block;min-height:358px;border-radius:21px;margin-bottom:16px}
 .tn-dashboard .tn-hero picture{position:absolute;inset:0;height:100%;order:initial;margin:0}
 .tn-dashboard .tn-hero img{height:100%;object-fit:cover;object-position:25% center}
 .tn-dashboard .tn-hero:after{background:linear-gradient(270deg,#f0f6fef0 0%,#f0f6fee8 38%,#f0f6fe9c 68%,#f0f6fe35 100%)}
 .tn-dashboard .tn-hero-copy{width:100%;min-height:358px;padding:23px 21px;background:none;order:initial;text-shadow:0 1px 2px #fff9}
 .tn-dashboard .tn-hero h1{font-size:23px;line-height:1.65;margin-top:12px}.tn-hero-subject{font-size:10px;margin-bottom:8px}.tn-dashboard .tn-hero h2{font-size:29px;line-height:1.35;margin:10px 0}.tn-dashboard .tn-hero-copy p{font-size:11px;line-height:1.9;margin:0 0 17px;color:#3f5675}
 .tn-dashboard .tn-hero-actions{gap:8px;text-shadow:none}.tn-dashboard .tn-hero-actions button{font-size:11px;padding:10px 11px;min-height:43px;flex:1}
 .tn-teacher-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
 .tn-tool-card{flex-direction:column;align-items:flex-start;gap:11px;padding:17px 13px;min-height:151px;border-radius:16px}.tn-tool-copy{gap:5px;flex:1}.tn-tool-copy b{font-size:12px;line-height:1.9}.tn-tool-copy small{font-size:9px;line-height:1.8}.tn-tool-icon{width:43px;height:43px}.tn-tool-icon .p1-icon{width:25px;height:25px}
 .tn-dashboard .ac-utilities{margin:0 0 13px}.tn-dashboard .ac-utilities button{font-size:10px;padding:7px 10px}
 .ac-welcome-art,.ac-welcome-art.custom{min-height:423px;display:block;border-radius:21px}
 .ac-welcome-art>img,.ac-welcome-art.custom>img{position:absolute;inset:0;height:100%;width:100%;max-height:none;object-fit:cover;object-position:24% center;opacity:.86}
 .ac-welcome-art:after,.ac-welcome-art.custom:after{display:block;background:linear-gradient(270deg,#fffdf8f0 0%,#fffdf8df 40%,#fffdf8a8 70%,#fffdf860 100%)}
 .ac-welcome-art .ac-welcome-art-caption,.ac-welcome-art.custom .ac-welcome-art-caption{position:relative;inset:auto;min-height:423px;width:100%;padding:27px 20px;background:none}
 .ac-welcome-art .ac-welcome-kicker{font-size:10px;margin-bottom:16px}.ac-welcome-art .ac-hero-name{font-size:42px;line-height:1.3}.ac-welcome-art .ac-hero-slogan{font-size:30px;line-height:1.7;margin:2px 0 14px;letter-spacing:-.8px}.ac-welcome-art .ac-hero-promise{font-size:9px;padding:5px 10px;line-height:2}.ac-welcome-art .ac-banner-intro{font-size:11px;margin:17px 0}.ac-welcome-art .ac-welcome-actions{gap:9px;flex-direction:column}.ac-welcome-art .ac-welcome-hint{font-size:9px;margin-top:13px;color:#4d627c}
 body .ac-welcome-art .ac-welcome-actions :is(.primary-btn,.secondary-btn){width:100%;flex:auto;font-size:12px;min-height:45px;padding:10px 13px}.ac-welcome-art .ac-hero-plane{width:27px;height:32px;right:5%;top:6%;bottom:auto}.ac-welcome-art .ac-hero-bulb{width:31px;height:40px;top:7%;left:5%}
 .px-welcome-dialog{padding:27px 22px 23px;border-radius:22px}.px-welcome-dialog h2{font-size:22px}.px-welcome-dialog p{font-size:11px}.px-welcome-art{height:103px;margin-bottom:10px}.px-welcome-tagline{font-size:13px}
 .px-support-card{padding:18px 17px;flex-wrap:wrap;gap:11px}.px-support-card h2{font-size:15px}.px-support-card a{margin-right:55px;font-size:12px;min-height:43px}.px-menu-support{font-size:11px}
}
body.dark .tn-tool-card{background:#1a2d45;border-color:#334963;color:#e8f1ff}body.dark .tn-tool-copy small{color:#afc0d7}body.dark .px-welcome-dialog{background:#14243b;border-color:#334963;color:#e8f1ff}body.dark .px-welcome-dialog h2{color:#e8f1ff}body.dark .px-welcome-dialog p{color:#b9c8dc}body.dark .px-welcome-close{background:#213854;color:#c3d1e3}body.dark .ac-welcome-art .ac-hero-slogan{color:#091a50}body.dark .ac-welcome-art :is(.ac-banner-intro,.ac-welcome-hint){color:#4d627c}
body.dark .px-support-card{background:#1a2d45;border-color:#334963}body.dark .px-support-card h2{color:#e8f1ff}body.dark .px-support-card p{color:#b9c8dc}
@media(prefers-reduced-motion:reduce){.tn-tool-card,.px-welcome-dialog,.px-welcome-art svg{animation:none!important;transition:none!important}}


/* /student-admin.css */
/* Student and administration workspaces; teacher styling stays in its own scope. */
.st-hero{position:relative;overflow:hidden;isolation:isolate;border-radius:25px;min-height:365px;background:#eef5ff;border:1px solid #e1eaf5;margin-bottom:20px;box-shadow:0 10px 30px #142c5408}
.st-hero picture{position:absolute;inset:0;display:block;z-index:-2}.st-hero img{width:100%;height:100%;object-fit:cover;object-position:left center}.st-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#f4f8ffff 0%,#f4f8fff2 37%,#f4f8ffb0 51%,#f4f8ff00 69%)}
.st-hero-copy{width:60%;padding:30px 35px;position:relative;margin-left:auto}.st-hero-kicker{display:inline-flex;border:1px solid #f2dfa1;background:#fff7d7;color:#7e5d15;border-radius:99px;padding:6px 13px;font-size:11px;font-weight:800}.st-hero h1{font-size:clamp(21px,2.1vw,29px);color:#162e55;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}.st-hero-role{display:block;color:#6a7d98;font-size:11px;margin:2px 0 10px}.st-hero h2{font-size:clamp(28px,2.9vw,40px);line-height:1.45;color:#162e55;margin:9px 0 12px}.st-hero h2 em{color:#0866ed;font-style:normal}.st-hero p{font-size:12px;line-height:2;color:#4e6381;margin:0 0 20px}.st-hero-actions{display:flex;gap:9px;flex-wrap:wrap}.st-hero-actions button{min-height:45px;font-size:12px}
.st-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0 27px}.st-tools.admin{grid-template-columns:repeat(4,minmax(0,1fr))}.st-tool{display:flex;align-items:center;gap:13px;text-align:right;min-width:0;min-height:118px;padding:20px 18px;background:var(--p1-surface);color:var(--p1-ink);border:1px solid var(--p1-line);border-radius:19px;font:inherit;cursor:pointer;box-shadow:0 4px 16px #142c5405;transition:transform .18s,box-shadow .18s}.st-tool-icon{width:46px;height:46px;border-radius:14px;background:#eaf3ff;color:#0866ed;flex-shrink:0;display:grid;place-items:center}.st-tool-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}.st-tool-copy b{font-size:13px;line-height:1.8}.st-tool-copy small{font-size:10px;color:var(--p1-muted);line-height:1.9}.st-tool>.p1-icon{width:16px;color:#94a6bf}.st-tool:is(.review,.trophy) .st-tool-icon{background:#fff4dc;color:#b97813}.st-tool:is(.video,.attendance) .st-tool-icon{background:#e5f7f0;color:#058b7b}.st-tool.tasks .st-tool-icon{background:#f1eaff;color:#7544c7}.st-tool.user .st-tool-icon{background:#e9f7fc;color:#08799e}
.st-dashboard .p1-metrics{margin:19px 0 24px}.st-dashboard.student .p1-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.st-dashboard .p1-metric{border-radius:18px;min-width:0}.st-next-step{padding:20px 23px;border-radius:22px;border:1px solid var(--p1-line);background:var(--p1-surface);margin:23px 0}.st-next-step .p1-section-head{margin:0 0 17px}.st-next-step .p1-empty{grid-column:1/-1;box-shadow:none;background:var(--p1-bg);border-radius:17px}.st-next-step .p1-task{box-shadow:none;border-radius:17px}.st-dashboard .ac-utilities{margin:0 0 18px;justify-content:flex-end}.st-dashboard .ac-utilities button{flex:0 1 auto;font-size:11px;min-height:39px}.st-follow{display:flex;align-items:center;gap:15px;background:linear-gradient(110deg,#f6fcff,#edf9f3);border:1px solid #e1efe8;border-radius:19px;margin:20px 0;padding:20px 23px}.st-follow>div{flex:1;min-width:0}.st-follow h2{font-size:17px;color:#183655}.st-follow p{font-size:12px;color:#627b8e}.st-dashboard .p1-motion-card{opacity:1;transform:none}
.hw-upload-status{padding:13px 15px;background:#edf5ff;border:1px solid #dce9fc;border-radius:13px;margin:15px 0;color:#275383;font-size:12px;line-height:1.9}.hw-upload-status progress{display:block;width:100%;height:7px;margin-top:9px;accent-color:#0866ed}.hw-upload-status[hidden]{display:none}.p1-image-preview.hw-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:15px 0}.hw-preview-item{min-width:0;border:1px solid #e2e9f4;border-radius:13px;overflow:hidden;background:#fff}.hw-preview-item img{display:block;width:100%;height:125px;object-fit:contain;background:#f6f8fc}.hw-preview-item>div{padding:8px}.hw-preview-item b{font-size:10px;font-weight:600;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#263e5e}.hw-preview-item small{display:block;color:#69809a;font-size:9px}.hw-preview-item button{width:100%;min-height:34px;border:0;border-radius:8px;background:#fff0f2;color:#b54455;font:inherit;font-size:10px;margin-top:6px;cursor:pointer}.hw-preview-item button:disabled{opacity:.5;cursor:wait}.p1-solve .p1-upload input{max-width:100%;min-width:0;width:100%;font-size:11px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.st-tool:hover{transform:translateY(-3px);box-shadow:0 10px 23px #142c5410}}
@media(prefers-reduced-motion:no-preference){.st-dashboard .p1-motion-card.p1-motion-visible{animation:stCardReveal .32s ease-out both;animation-delay:var(--p1-card-delay,0ms)}}@keyframes stCardReveal{from{opacity:.85;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-width:1150px){.st-tools.admin{grid-template-columns:repeat(2,minmax(0,1fr))}.st-hero-copy{width:64%;padding:27px}.st-tool{padding:17px 14px;gap:10px}.st-tool>.p1-icon{display:none}.st-tool-copy b{font-size:12px}}
@media(max-width:600px){.st-hero{min-height:358px;border-radius:21px;margin-bottom:17px}.st-hero-copy{width:100%;padding:23px 21px;min-height:358px}.st-hero img{object-position:23% center}.st-hero:after{background:linear-gradient(270deg,#f4f8fff5 0%,#f4f8ffe8 35%,#f4f8ffb5 65%,#f4f8ff40 100%)}.st-hero-kicker{font-size:10px}.st-hero h1{font-size:22px;margin-top:13px}.st-hero-role{font-size:10px}.st-hero h2{font-size:29px;margin:10px 0;line-height:1.4}.st-hero p{font-size:11px;line-height:1.95;margin-bottom:17px}.st-hero-actions{gap:8px}.st-hero-actions button{flex:1;font-size:10px;min-height:43px;padding:9px 10px}.st-hero-actions .p1-icon{width:17px}
.st-tools,.st-tools.admin{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:19px 0 22px}.st-tool{flex-direction:column;align-items:flex-start;gap:11px;min-height:141px;padding:16px 13px;border-radius:16px}.st-tool-icon{width:40px;height:40px;border-radius:12px}.st-tool-icon .p1-icon{width:23px;height:23px}.st-tool-copy b{font-size:12px}.st-tool-copy small{font-size:9px}.st-dashboard .p1-metrics{gap:9px}.st-dashboard.student .p1-metric{padding:13px 9px;gap:5px}.st-dashboard.student .p1-metric strong{font-size:23px}.st-dashboard.student .p1-metric div>span{font-size:9px;line-height:1.7}.st-next-step{padding:18px 15px;margin:21px 0;border-radius:18px}.st-next-step .p1-section-head h2{font-size:18px}.st-next-step .p1-task-grid{gap:13px}.st-follow{padding:18px 17px;flex-wrap:wrap;gap:11px}.st-follow h2{font-size:15px}.st-follow p{font-size:10px}.st-follow button{margin-right:55px;min-height:40px;font-size:11px}.st-dashboard .ac-utilities button{font-size:10px}.p1-image-preview.hw-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hw-preview-item img{height:130px}.hw-upload-status{font-size:11px;padding:11px 13px}}
body.dark .hw-upload-status{background:#1e3452;border-color:#3a5071;color:#c2d8f4}body.dark .hw-preview-item{background:#1c2d44;border-color:#3a5071}body.dark .hw-preview-item b{color:#d8e6fa}body.dark .hw-preview-item img{background:#132338}body.dark .hw-preview-item small{color:#b1c6de}
.p1-solve .p1-upload:has(input[name=images]){position:relative;cursor:pointer}.p1-solve .p1-upload input[name=images]{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0;clip-path:inset(50%)}.p1-solve .p1-upload:focus-within{outline:3px solid #65a8ff;outline-offset:3px}.hw-pick-action{display:block;margin-top:12px;border:1px solid #d7e7fc;border-radius:11px;background:#fff;color:#0866ed;font-size:12px;font-weight:700;padding:10px 17px;min-height:43px}.p1-solve .p1-upload:has(input:disabled){opacity:.7;cursor:wait}
@media(max-width:600px){.st-next-step .p1-task{padding:17px}.st-next-step .p1-task-top{margin-bottom:8px}.st-next-step .p1-task h3{font-size:15px}.st-next-step .p1-task p{font-size:11px;line-height:1.8}.st-next-step .p1-task .p1-task-meta{font-size:10px}.st-next-step .p1-task>.p1-btn{min-height:41px}.hw-pick-action{font-size:11px}}
@media(prefers-reduced-motion:reduce){.st-tool,.st-dashboard .p1-motion-card{animation:none!important;transition:none!important}}

/* Admin account cards only: compact 2-up mobile and 3-up desktop grid. */
.admin-accounts-panel{padding:clamp(12px,2vw,22px)}
.admin-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.admin-account-card{min-width:0;display:flex;flex-direction:column;gap:12px;padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 8px 24px rgba(23,56,143,.055)}
.admin-account-summary{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 22px;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:var(--text);text-align:start;cursor:pointer}
.admin-account-summary:hover .admin-account-heading>b{color:var(--blue)}
.admin-account-avatar{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:14px;background:#edf3ff;color:var(--blue);font-size:19px;font-weight:900}
.admin-account-heading{min-width:0;display:grid;gap:3px}
.admin-account-heading>b{font-size:14px;line-height:1.6;overflow-wrap:anywhere;transition:color .15s}
.admin-account-heading>small,.admin-account-details-head small{color:var(--muted);font-size:11px}
.admin-account-chevron{color:var(--muted);font-size:20px}
.admin-account-preview{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.admin-account-preview>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.admin-account-preview small{color:var(--muted);font-size:10px}
.admin-account-preview b{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.admin-account-welcome{font-size:11px;font-weight:800;color:#187a55;text-decoration:none}
.admin-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:auto}
.admin-account-actions .btn-sm{min-width:0;padding:8px 6px;font-size:11px}
.admin-account-empty{grid-column:1/-1;padding:22px 16px;border:1px dashed var(--line);border-radius:15px;background:var(--bg);color:var(--muted);text-align:center;font-size:13px;line-height:1.8}
.admin-account-details{padding:3px}
.admin-account-details-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.admin-account-details-head h2{margin:2px 0 0;color:var(--text);font-size:19px;overflow-wrap:anywhere}
.admin-account-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.admin-account-detail-field{min-width:0;display:flex;flex-direction:column;gap:4px;padding:11px;border-radius:12px;background:var(--bg)}
.admin-account-detail-field small{color:var(--muted);font-size:10px}
.admin-account-detail-field b{color:var(--text);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.admin-account-details-close{margin-top:15px}
@media(max-width:1050px){.admin-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.admin-account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.admin-account-card{padding:11px 9px;border-radius:15px;gap:9px}.admin-account-summary{grid-template-columns:34px minmax(0,1fr) 16px;gap:7px}.admin-account-avatar{width:34px;height:34px;border-radius:11px;font-size:15px}.admin-account-heading>b{font-size:11px}.admin-account-heading>small{font-size:9px}.admin-account-preview{gap:6px;padding:8px 0}.admin-account-preview small{font-size:9px}.admin-account-preview b{font-size:10px}.admin-account-actions{gap:5px}.admin-account-actions .btn-sm{padding:7px 3px;font-size:9px}.admin-account-detail-grid{grid-template-columns:1fr}}
@media(max-width:350px){.admin-account-grid{grid-template-columns:1fr}}


/* /platform-footer.css */
/* Compact shared footer and the dedicated administration activity page. */
.bf-footer,.bf-footer.ac-public-footer{display:block;background:#fff;border:1px solid #e1e9f5;border-radius:20px;margin:22px 24px 24px;padding:20px 24px;color:#162b50;font-size:12px;line-height:1.8;text-align:right;box-sizing:border-box}
.bf-footer.ac-public-footer{margin:26px 0 0}.bf-footer *{box-sizing:border-box}.bf-footer a{color:#386492;text-decoration:none}.bf-footer a:hover{color:#0866ed}.bf-footer a:focus-visible,.bf-footer summary:focus-visible{outline:3px solid #e5af38;outline-offset:3px;border-radius:8px}
.bf-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.bf-footer .bf-brand{display:flex;align-items:center;gap:9px;text-decoration:none!important;width:fit-content}.bf-footer .bf-brand img.id-brand-mark{width:42px!important;height:42px!important}.bf-footer .bf-brand .id-brand-copy b{font-size:25px}.bf-footer .bf-brand .id-brand-copy small{font-size:11px}.bf-brand .ac-wordmark{font-size:22px;font-weight:700;white-space:nowrap}.bf-brand img{width:42px;height:42px;object-fit:contain}
.bf-socials{display:flex;gap:8px;align-items:center}.bf-footer .bf-social{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:40px;padding:5px 10px;border:1px solid #e4ebf5;border-radius:12px;font-size:10px}.bf-social svg{width:18px;height:18px;flex-shrink:0}.bf-social.facebook svg{color:#1877f2}.bf-social.tiktok svg{color:#192238}.bf-social.youtube svg{color:#ed2224}
.bf-links{display:flex;align-items:flex-start;gap:22px;position:relative;margin-top:12px}.bf-pages{display:flex;align-items:center;gap:20px;flex-shrink:0}.bf-footer .bf-pages a,.bf-info summary{display:flex;align-items:center;min-height:40px;font-size:11px}.bf-info{min-width:0;flex:1}.bf-info summary{display:list-item;width:fit-content;cursor:pointer;color:#386492;line-height:40px;list-style-position:inside}.bf-info p{margin:0 0 9px;color:#65748e;font-size:11px;line-height:1.9;max-width:640px}
.bf-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 20px;border-top:1px solid #e4ebf5;margin-top:7px;padding-top:11px}.bf-bottom p{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;color:#65748e;font-size:10px}.bf-bottom b{font-size:11px;color:#314767;font-weight:700}.bf-bottom strong{font-size:10px;color:#65748e;font-weight:500}
body.dark .bf-footer{background:#132033;border-color:#2a3b55;color:#e9f1ff}body.dark .bf-footer :is(a,summary){color:#b5c9e8}body.dark .bf-footer :is(p,.bf-bottom strong){color:#b2c1d8}body.dark .bf-bottom b{color:#e9f1ff}body.dark .bf-footer :is(.bf-bottom,.bf-social){border-color:#2a3b55}body.dark .bf-social.tiktok svg{color:#e9f1ff}
@media(max-width:980px){.bf-footer,.bf-footer.ac-public-footer{margin:14px 22px 100px;padding:18px 20px}.bf-footer.ac-public-footer{margin:24px 0 0}.p1-shell .page-content{padding-bottom:24px}}
@media(max-width:600px){.bf-footer,.bf-footer.ac-public-footer{margin:14px 16px 102px;padding:14px;border-radius:18px}.bf-footer.ac-public-footer{margin:23px 0 0}.bf-top{gap:8px}.bf-footer .bf-brand.id-brand{gap:7px!important}.bf-footer .bf-brand img.id-brand-mark{width:34px!important;height:34px!important}.bf-footer .bf-brand .id-brand-copy b{font-size:22px}.bf-footer .bf-brand .id-brand-copy small{font-size:9px}.bf-brand img{width:34px;height:34px}.bf-brand .ac-wordmark{font-size:17px}.bf-socials{gap:5px}.bf-footer .bf-social{min-width:34px;min-height:36px;padding:6px;border-radius:10px}.bf-social span{display:none}.bf-social svg{width:17px;height:17px}.bf-links{gap:16px;margin-top:7px;flex-wrap:wrap}.bf-pages{gap:16px}.bf-footer .bf-pages a,.bf-info summary{font-size:10px;min-height:36px;line-height:36px}.bf-info{flex:1}.bf-info p{font-size:10px;min-width:145px}.bf-bottom{gap:3px;flex-direction:column;align-items:flex-start;margin-top:4px;padding-top:9px}.bf-bottom p,.bf-bottom strong{font-size:9px}.bf-bottom b{font-size:10px}}
.p1-log-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.p1-log-controls button{display:inline-flex;align-items:center;gap:7px;min-height:44px;border:1px solid var(--p1-line,#e1e9f5);border-radius:13px;padding:9px 15px;background:var(--p1-surface,#fff);color:var(--p1-ink,#162b50);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.p1-log-controls button[aria-pressed=true]{background:#0866ed;border-color:#0866ed;color:#fff}.p1-log-search{display:block;margin:0 0 18px}.p1-log-search>span{display:block;margin-bottom:7px;font-size:12px;color:var(--p1-muted,#65748e)}.p1-log-search input{box-sizing:border-box;width:100%;min-height:46px;background:var(--p1-surface,#fff);color:var(--p1-ink,#162b50);border:1px solid var(--p1-line,#e1e9f5);border-radius:13px;padding:10px 14px;font:inherit;font-size:13px}
.p1-log-list .p1-activity-row>div{min-width:0;overflow-wrap:anywhere}.p1-log-list .p1-activity-row p{white-space:pre-wrap}.p1-log-list .p1-activity-row time{display:block;color:var(--p1-muted,#65748e);font-size:10px}.p1-log-note{color:var(--p1-muted,#65748e);font-size:12px;margin:0 0 12px}.p1-log-no-match{font-size:13px;text-align:center;padding:22px;color:var(--p1-muted,#65748e)}


/* Keep the developer credit and copyright readable together on phones. */
@media (max-width: 600px) {
  .bf-footer .bf-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    flex-direction: initial !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px 10px !important;
  }
  .bf-footer .bf-bottom p {
    display: flex !important;
    min-width: 0;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 3px 6px;
    margin: 0;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.5;
  }
  .bf-footer .bf-bottom p b {
    display: inline !important;
    white-space: nowrap !important;
    font-size: 10px !important;
  }
  .bf-footer .bf-bottom strong { white-space: nowrap !important; font-size: 9px !important; }
}
@media (max-width: 360px) {
  .bf-footer .bf-bottom { gap: 4px 6px !important; }
  .bf-footer .bf-bottom p { font-size: 8px !important; }
  .bf-footer .bf-bottom p b { font-size: 9px !important; }
  .bf-footer .bf-bottom strong { font-size: 8px !important; }
}
@media (max-width: 320px) {
  .bf-footer .bf-bottom { grid-template-columns: minmax(0, 1fr) !important; }
  .bf-footer .bf-bottom strong { justify-self: start; }
}
body.dark .bf-footer .bf-bottom p { color: #b2c1d8; }
body.dark .bf-footer .bf-bottom p b { color: #e9f1ff; }
body.dark .bf-footer .bf-bottom strong { color: #b2c1d8; }


/* Authenticated mobile footer compact mode 2026-10-25 */
@media (max-width:700px){
 body.p1-shell .bf-footer{margin:10px 12px calc(84px + env(safe-area-inset-bottom));padding:11px 12px;border-radius:14px;line-height:1.55}
 body.p1-shell .bf-top{gap:8px;align-items:center}
 body.p1-shell .bf-brand{gap:6px}
 body.p1-shell .bf-brand img{width:30px;height:30px}
 body.p1-shell .bf-brand .ac-wordmark{font-size:16px}
 body.p1-shell .bf-socials{gap:5px}
 body.p1-shell .bf-social{min-width:32px;min-height:32px;width:32px;height:32px;padding:4px;border-radius:9px}
 body.p1-shell .bf-social svg{width:15px;height:15px}
 body.p1-shell .bf-social span{display:none}
 body.p1-shell .bf-links{margin-top:5px;gap:10px}
 body.p1-shell .bf-pages{gap:12px}
 body.p1-shell .bf-pages a{min-height:30px;font-size:9.5px}
 body.p1-shell .bf-info{display:none}
 body.p1-shell .bf-bottom{margin-top:4px;padding-top:7px;gap:4px 8px}
 body.p1-shell .bf-bottom p{font-size:8.5px!important;gap:3px 5px}
 body.p1-shell .bf-bottom p b{font-size:9px!important}
 body.p1-shell .bf-bottom strong{font-size:8px!important}
}


/* Remove excess vertical space around authenticated workspaces and footer. */
body.p1-shell .page-content {
  min-height: 0 !important;
  padding-bottom: 10px !important;
}

body.p1-shell .app-main > .bf-footer:not(.ac-public-footer) {
  margin: 12px 24px 16px !important;
}

@media (max-width: 980px) {
  body.p1-shell .page-content {
    padding-bottom: 8px !important;
  }

  body.p1-shell .app-main > .bf-footer:not(.ac-public-footer) {
    margin: 10px 16px calc(68px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 600px) {
  body.p1-shell .page-content {
    padding-bottom: 4px !important;
  }

  body.p1-shell .app-main > .bf-footer:not(.ac-public-footer) {
    margin: 8px 12px calc(68px + env(safe-area-inset-bottom)) !important;
  }
}

/* /guest-accounts.css */
.guest-readonly-banner{display:flex;align-items:center;gap:14px;margin:14px 22px 8px;padding:14px 18px;border:1px solid rgba(23,56,143,.14);border-radius:18px;background:linear-gradient(110deg,rgba(230,239,255,.96),rgba(255,248,224,.92));color:#183879;box-shadow:0 8px 24px rgba(26,48,98,.06)}
.guest-readonly-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background:#fff;color:#245bd1;font-size:22px;box-shadow:0 5px 15px rgba(23,56,143,.12)}
.guest-readonly-banner>div{display:grid;gap:3px;flex:1;min-width:0}.guest-readonly-banner b{font-size:14px}.guest-readonly-banner small{color:#586b91;font-size:12px;line-height:1.6}
.guest-register-btn{border:0;border-radius:12px;padding:10px 16px;background:#17388f;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}.guest-register-btn:hover{background:#2454bd}
.guest-create-button{white-space:nowrap}.guest-account-tag{background:#edf2ff;color:#244b9c;border:1px solid #dce6ff}
.guest-user-row{background:linear-gradient(90deg,rgba(238,243,255,.43),transparent)}
.guest-create-dialog>h2,.guest-created-card>h2{margin:6px 0 8px}.guest-create-dialog>p,.guest-created-card>p{color:var(--muted,#64748b);line-height:1.8;margin:0 0 18px}.guest-dialog-eyebrow{display:inline-flex;color:#2753ad;background:#eef3ff;border-radius:99px;padding:6px 11px;font-size:12px;font-weight:800}
.guest-create-dialog .field small{display:block;color:var(--muted,#64748b);font-size:11px;margin-top:5px}.guest-form-message{min-height:22px;margin:0;color:#b42318;font-size:13px}
.guest-created-card{text-align:center;max-width:560px;margin:auto}.guest-created-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#e9f8ef;color:#16834a;font-size:30px;font-weight:900}.guest-created-card dl{display:grid;gap:9px;margin:18px 0;text-align:right}.guest-created-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line,#e7eaf0);border-radius:13px;background:var(--surface,#fff)}.guest-created-card dt{font-size:13px;color:var(--muted,#64748b)}.guest-created-card dd{margin:0;font-weight:800;overflow-wrap:anywhere}.guest-created-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
body.dark .guest-readonly-banner{background:linear-gradient(110deg,#192d55,#34301a);border-color:rgba(139,170,255,.2);color:#e7eeff}body.dark .guest-readonly-banner small{color:#b8c4df}body.dark .guest-readonly-icon{background:#263e70;color:#b9ceff}body.dark .guest-account-tag{background:#233459;color:#d1dcff;border-color:#354c7a}body.dark .guest-created-card dl>div{background:#182135;border-color:#33405a}
@media(max-width:700px){.guest-readonly-banner{margin:10px 12px 6px;padding:12px;gap:10px;flex-wrap:wrap;border-radius:15px}.guest-readonly-icon{width:36px;height:36px;flex-basis:36px;border-radius:12px}.guest-readonly-banner>div{flex-basis:calc(100% - 50px)}.guest-register-btn{width:100%;margin-inline-start:46px}.guest-created-actions>*{flex:1 1 42%}.guest-created-actions #guestDone{flex-basis:100%}.guest-create-button{font-size:12px;padding:9px 11px}}


/* /account-experience.css */
.id-brand{display:flex!important;align-items:center!important;gap:12px!important;text-decoration:none!important;min-width:0}.id-brand>.ac-wordmark{display:none!important}.id-brand img.id-brand-mark{display:block!important;object-fit:contain;width:58px!important;height:58px!important;max-width:none!important;flex-shrink:0}.id-brand-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:0;color:#152b50;line-height:1.15}.id-brand-copy b{font-size:32px;font-weight:850;letter-spacing:-1px;line-height:1.25;white-space:nowrap}.id-brand-copy small{font-size:14px;font-weight:750;color:#42638e;line-height:1.5;letter-spacing:0}.side-brand.id-brand{justify-content:center!important;padding:20px 15px!important;flex-direction:row!important;min-height:118px!important;height:auto!important;box-sizing:border-box}.side-brand.id-brand img.id-brand-mark{width:57px!important;height:57px!important}.side-brand .id-brand-copy b{font-size:31px}.p1-shell .app-header .app-logo.id-brand{display:flex!important;flex-shrink:0}.p1-shell .app-logo.id-brand img.id-brand-mark{width:51px!important;height:51px!important}.app-logo .id-brand-copy b{font-size:29px}.app-logo .id-brand-copy small{font-size:13px}.bf-brand.id-brand{flex-direction:row!important;align-items:center!important}.bf-brand.id-brand img.id-brand-mark{width:58px!important;height:58px!important}.auth-brand.id-brand{display:block!important}.auth-brand.id-brand>.ac-auth-logo{width:auto!important;height:auto!important;background:none!important;border:0!important;margin-bottom:14px!important;display:flex!important;align-items:center!important;gap:14px!important;justify-content:center!important}.auth-brand.id-brand>.ac-auth-logo .id-brand-copy b{font-size:36px}.auth-brand.id-brand>.ac-auth-logo img.id-brand-mark{width:65px!important;height:65px!important}.auth-brand.id-brand>.ac-wordmark{display:none!important}.id-brand-custom img.id-brand-mark,.p1-shell .app-logo.id-brand-custom img.id-brand-mark{width:190px!important;max-width:100%!important;height:64px!important}.id-brand-custom .id-brand-copy{display:none!important}.id-profile-summary>img{display:block;width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 1px #d7e5f8}
.p1-shell .app-header #avatarMini{display:grid!important;flex-shrink:0;cursor:pointer}#avatarMini.id-photo-avatar{padding:0!important;overflow:hidden!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #d7e5f8;background:#e5efff!important;cursor:pointer}#avatarMini.id-photo-avatar img{display:block;width:100%;height:100%;object-fit:cover}#avatarMini[role=button]:focus-visible{outline:3px solid #82b9ff;outline-offset:4px}
.id-account-section{margin:0 0 26px}.id-account-section .tn-section-heading{margin-top:0}.id-account-section .tn-settings-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.id-profile-note{display:flex;align-items:center;gap:9px;color:#426589;background:#f1f7ff;border:1px solid #e0ebfa;border-radius:13px;padding:12px 14px;font-size:11px;line-height:1.8;margin-bottom:19px}.id-profile-note svg{width:20px;height:20px;flex-shrink:0}.id-profile-note p{margin:0}.id-profile-summary{display:flex;align-items:center;gap:13px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #e3eaf4}.id-profile-summary>span{display:grid;place-items:center;width:49px;height:49px;border-radius:17px;background:#eaf3ff;color:#0866ed;font-size:23px;font-weight:800;flex-shrink:0}.id-profile-summary b{display:block;font-size:16px;color:#1c3454}.id-profile-summary small{display:block;font-size:11px;color:#667994;margin-top:3px}.id-profile-form .field{margin:0}.id-profile-form .two-col{gap:14px}.id-profile-form :is(input,textarea){max-width:100%;box-sizing:border-box}
.id-avatar-card{background:linear-gradient(130deg,#f3f8ff,#fbfcff);border:1px solid #dfe9f6;border-radius:18px;padding:21px;margin:0 0 22px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}.id-avatar-preview{width:94px;height:94px;flex-shrink:0;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 0 0 1px #d5e3f5}.id-avatar-content{min-width:0;flex:1}.id-avatar-content h3{font-size:16px;margin:0 0 4px;color:#1c3454}.id-avatar-content p{font-size:11px;margin:0;color:#667994;line-height:1.9}.id-avatar-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.id-avatar-pick{position:relative;display:inline-flex!important;gap:7px;align-items:center;cursor:pointer;min-height:44px;background:#fff;border:1px solid #cfe0f8;color:#0866ed;border-radius:12px;font-size:12px;font-weight:700;padding:9px 13px}.id-avatar-pick input{position:absolute;width:1px!important;height:1px!important;opacity:0;padding:0!important;min-height:0!important;overflow:hidden;clip-path:inset(50%)}.id-avatar-pick:focus-within{outline:3px solid #82b9ff;outline-offset:3px}.id-avatar-actions button{font-size:11px;min-height:44px;padding:9px 13px}.id-avatar-status{display:block;font-size:11px;color:#667994;margin-top:10px;line-height:1.9}.id-avatar-status.error{color:#b5223b}.id-student-proof-field{display:none!important}
.id-proof-dialog{width:min(430px,calc(100vw - 30px));border:1px solid #dfe9f6;border-radius:24px;padding:27px;background:#fff;box-shadow:0 24px 100px #12295140;color:#1c3454;box-sizing:border-box;text-align:right}.id-proof-dialog::backdrop{background:#12274788;backdrop-filter:blur(4px)}.id-proof-icon{display:grid;place-items:center;width:49px;height:49px;background:#e9f3ff;color:#0866ed;border-radius:16px;margin-bottom:14px}.id-proof-icon svg{width:27px;height:27px}.id-proof-dialog h2{font-size:23px;line-height:1.6;margin:0 0 6px}.id-proof-dialog>p{font-size:12px;color:#667994;line-height:1.9;margin:0 0 21px}.id-proof-dialog .field{margin:0}.id-proof-dialog input{max-width:100%;box-sizing:border-box}.id-proof-actions{display:flex;gap:10px;margin-top:6px}.id-proof-actions button{flex:1;min-height:45px;font-size:12px}.id-proof-error{color:#b5223b;font-size:12px;margin:0;line-height:1.8}.id-proof-error:empty{display:none}.id-proof-busy{color:#667994;font-size:11px;line-height:1.8;min-height:20px;margin:0}
.id-parent-dashboard .st-parent-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:22px 0}.id-parent-dashboard .st-tool{min-width:0}.id-parent-child{display:flex;align-items:center;gap:15px;padding:20px 23px;background:var(--p1-surface,#fff);border:1px solid var(--p1-line,#e3eaf4);border-radius:20px;margin:20px 0}.id-parent-child>div{flex:1;min-width:0}.id-parent-child h2{font-size:18px;margin:0 0 4px;color:var(--p1-ink,#1c3454)}.id-parent-child p{font-size:12px;line-height:1.9;margin:0;color:var(--p1-muted,#667994)}.id-parent-dashboard .p1-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.id-parent-dashboard .st-hero.parent .st-hero-copy{width:57%}.id-parent-dashboard .st-hero-role{white-space:normal}
body:is(.dark,.dark-mode,[data-theme=dark]) .id-brand-copy{color:#eef4ff}body:is(.dark,.dark-mode,[data-theme=dark]) .id-brand-copy small{color:#b1c2dc}body.dark :is(.id-avatar-card,.id-proof-dialog){background:#15233d;border-color:#2b405f;color:#eef4ff}body.dark :is(.id-avatar-content h3,.id-profile-summary b){color:#eef4ff}body.dark .id-profile-note{background:#1c3150;border-color:#2b405f;color:#bfd2ed}body.dark :is(.id-avatar-content p,.id-avatar-status,.id-profile-summary small,.id-proof-dialog>p){color:#b1c2dc}body.dark .id-profile-summary{border-color:#2b405f}
@media(max-width:1100px){.id-account-section .tn-settings-grid{grid-template-columns:minmax(0,1fr)}.id-parent-dashboard .st-parent-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.marketing-header .id-brand{gap:8px!important}.marketing-header .id-brand-copy b{font-size:28px}.marketing-header .id-brand img.id-brand-mark{width:50px!important;height:50px!important}.app-logo.id-brand{gap:10px!important}.p1-shell .app-logo.id-brand img.id-brand-mark{width:48px!important;height:48px!important}.app-logo .id-brand-copy b{font-size:28px}.app-logo .id-brand-copy small{font-size:12px}.id-account-section .two-col{grid-template-columns:minmax(0,1fr)}.id-avatar-card{padding:17px;gap:15px}.id-avatar-preview{width:75px;height:75px}.id-avatar-actions{gap:8px}.id-avatar-content h3{font-size:15px}.id-avatar-content p{font-size:10px}.id-avatar-actions button,.id-avatar-pick{font-size:11px}.id-proof-dialog{padding:22px}.id-proof-dialog h2{font-size:21px}.id-parent-dashboard .st-parent-tools{gap:11px;margin:20px 0}.id-parent-child{display:grid;grid-template-columns:42px minmax(0,1fr);padding:17px;gap:12px}.id-parent-child>.p1-soft-btn{grid-column:2;justify-self:start;margin:0;font-size:11px}.id-parent-child h2{font-size:16px}.id-parent-child p{font-size:11px}.id-parent-dashboard .st-hero.parent .st-hero-copy{width:65%}}
@media(max-width:360px){.app-logo .id-brand-copy b{font-size:25px}.p1-shell .app-logo.id-brand img.id-brand-mark{width:44px!important;height:44px!important}.app-logo.id-brand{gap:9px!important}.id-brand-custom img.id-brand-mark{width:160px!important}}
@media(min-width:701px) and (max-width:1100px){.p1-shell .app-header{gap:12px;padding-inline:18px}.p1-shell .profile-block{min-width:0}.p1-shell .header-center{min-width:0}.p1-shell .search-box{min-width:0;box-sizing:border-box}}
@media(max-width:700px){.p1-shell .app-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;height:auto!important;min-height:124px!important;padding:12px 16px!important}.p1-shell .app-logo.id-brand{grid-column:1;grid-row:1;justify-self:start}.p1-shell .profile-block{display:flex!important;grid-column:2;grid-row:1;min-width:0!important;gap:8px}.p1-shell .profile-block>div,.p1-shell .profile-chevron{display:none!important}.p1-shell .app-header #avatarMini{width:40px;height:40px}.p1-shell .app-header-actions{grid-column:2;grid-row:2;justify-self:end;gap:6px}.p1-shell .header-center{display:flex!important;grid-column:1;grid-row:2;width:100%;min-width:0}.p1-shell .search-box{min-width:0;width:100%;height:40px;margin:0;box-sizing:border-box}.p1-shell .search-box input{min-width:0;font-size:12px}.p1-shell .app-header .round-btn{flex-shrink:0}.p1-shell .id-brand-custom img.id-brand-mark{width:165px!important;height:50px!important}}

/* One-tap encouragement with a brief heart celebration. */
.p1-cheer-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(560px,calc(100vw - 28px));max-width:none;max-height:min(620px,calc(100dvh - 36px));overflow:hidden;border:0;border-radius:28px;background:linear-gradient(145deg,#f8fbff 0%,#fff7fa 55%,#eff6ff 100%);color:#14284b;box-shadow:0 28px 90px rgba(15,35,75,.28)}
.p1-cheer-dialog::backdrop{background:rgba(10,22,48,.42);backdrop-filter:blur(4px)}
.p1-cheer-scene{position:relative;display:grid;place-items:center;min-height:390px;padding:26px;overflow:hidden}
.p1-cheer-hearts{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.p1-cheer-heart{position:absolute;left:var(--heart-x);bottom:-34px;z-index:0;font-size:clamp(20px,5vw,34px);opacity:0;filter:drop-shadow(0 3px 8px rgba(40,60,130,.15));animation:p1-heart-rise var(--heart-duration) ease-out var(--heart-delay) both}
.p1-cheer-heart.heart-1,.p1-cheer-heart.heart-4{font-size:23px}
.p1-cheer-message{position:relative;z-index:1;width:min(100%,410px);padding:30px 24px 24px;border:1px solid rgba(255,255,255,.82);border-radius:25px;background:rgba(255,255,255,.91);text-align:center;box-shadow:0 15px 45px rgba(28,59,123,.13);backdrop-filter:blur(9px);animation:p1-cheer-pop .42s cubic-bezier(.2,.8,.2,1) both}
.p1-cheer-label{display:inline-flex;padding:7px 13px;border-radius:999px;background:#eff5ff;color:#2157a4;font-size:13px;font-weight:800}
.p1-cheer-symbol{margin:12px auto 5px;font-size:36px;animation:p1-cheer-beat 1.2s ease-in-out infinite}
.p1-cheer-message h2{margin:5px auto 10px;max-width:340px;color:#183b74;font-size:clamp(20px,4.6vw,27px);line-height:1.55;font-weight:850}
.p1-cheer-message p{margin:0 auto 18px;color:#52637d;font-size:15px;line-height:1.7}
.p1-cheer-message .p1-btn{min-height:46px;padding-inline:22px}
.p1-cheer-dismiss{position:absolute;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:50%;background:#f0f3f8;color:#4d5b70;font-size:23px;line-height:1;cursor:pointer}
@keyframes p1-heart-rise{0%{transform:translate3d(0,0,0) scale(.55) rotate(-12deg);opacity:0}12%{opacity:.88}75%{opacity:.8}100%{transform:translate3d(var(--heart-drift,14px),-490px,0) scale(1.15) rotate(14deg);opacity:0}}
@keyframes p1-cheer-pop{0%{transform:translateY(14px) scale(.95);opacity:0}100%{transform:translateY(0) scale(1);opacity:1}}
@keyframes p1-cheer-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.17)}}
@media(max-width:560px){.p1-cheer-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 28px);border-radius:24px}.p1-cheer-scene{min-height:min(440px,calc(100dvh - 36px));padding:16px}.p1-cheer-message{padding:28px 18px 20px}.p1-cheer-message h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.p1-cheer-heart,.p1-cheer-message,.p1-cheer-symbol{animation:none}.p1-cheer-heart{opacity:.25}}

/* Round encouragement action: visible and tappable on every role and screen size. */
.p1-cheer-trigger{position:relative;isolation:isolate;display:inline-flex!important;flex:0 0 78px!important;width:78px!important;height:78px!important;min-width:78px!important;min-height:78px!important;padding:8px!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid rgba(255,255,255,.8)!important;border-radius:50%!important;background:linear-gradient(145deg,#1767ec 0%,#3c83f5 56%,#765fe9 100%)!important;color:#fff!important;box-shadow:0 8px 20px rgba(32,94,205,.28),inset 0 1px 0 rgba(255,255,255,.28);font-family:inherit;font-size:10px;font-weight:800;line-height:1.1;cursor:pointer;overflow:visible;transition:transform .2s ease,box-shadow .2s ease}
.p1-cheer-trigger::before{content:"";position:absolute;z-index:-1;inset:-5px;border:1px solid rgba(45,111,231,.27);border-radius:50%;animation:p1-cheer-ring 2.4s ease-out infinite}
.p1-cheer-trigger::after{content:"";position:absolute;inset:4px;border:1px solid rgba(255,255,255,.3);border-radius:50%;pointer-events:none}
.p1-cheer-trigger svg{width:23px;height:23px;fill:rgba(255,255,255,.16);stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.p1-cheer-trigger span{position:relative;font-size:10px;white-space:nowrap}
.p1-cheer-trigger:hover{transform:translateY(-3px) scale(1.035);box-shadow:0 12px 27px rgba(32,94,205,.36),inset 0 1px 0 rgba(255,255,255,.3)}
.p1-cheer-trigger:active{transform:scale(.96)}
.p1-cheer-trigger:focus-visible{outline:3px solid #ffbd55;outline-offset:4px}
body.dark .p1-cheer-trigger{border-color:rgba(175,204,255,.55)!important;background:linear-gradient(145deg,#276ee8 0%,#416fe0 55%,#745ce2 100%)!important;box-shadow:0 8px 24px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.2)}
body.dark .p1-cheer-trigger::before{border-color:rgba(121,166,255,.42)}
@keyframes p1-cheer-ring{0%{transform:scale(.92);opacity:.78}75%,100%{transform:scale(1.17);opacity:0}}
@media(max-width:600px){.p1-cheer-trigger{flex-basis:70px!important;width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;padding:7px!important}.p1-cheer-trigger svg{width:21px;height:21px}.p1-cheer-trigger span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.p1-cheer-trigger,.p1-cheer-trigger::before{animation:none;transition:none}}


/* /night-experience.css */
/* A calm navy palette shared by all roles, public pages and account dialogs. */
.nt-theme-button{display:inline-grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;border:1px solid #dce7f7;border-radius:13px;background:#f1f6ff;color:#174c93;padding:0;cursor:pointer;transition:background .16s,color .16s,transform .16s}
.nt-theme-button svg{width:22px;height:22px;pointer-events:none}.nt-theme-button:hover{background:#e5efff;transform:translateY(-1px)}.nt-theme-button:focus-visible{outline:3px solid #6bb3ff;outline-offset:3px}.nt-theme-button:active{transform:scale(.95)}
body.dark,body.dark.p1-shell{color-scheme:dark;--bg:#0c1423;--card:#132033;--panel:#132033;--text:#e9f1ff;--muted:#b2c1d8;--navy:#e9f1ff;--line:#2b3e5a;--p1-bg:#0c1423;--p1-surface:#132033;--p1-card:#132033;--p1-ink:#e9f1ff;--p1-text:#e9f1ff;--p1-muted:#b2c1d8;--p1-line:#2b3e5a;--p1-blue:#8bbcff;--p1-blue-light:#1b3354;--p1-teal:#69d8ca;--p1-teal-light:#153c3c;--p1-orange:#f4c670;--p1-orange-light:#3b3020;background:var(--bg)!important;color:var(--text)}
body.dark :is(.app-main,.page-content,.landing-view){background:var(--bg)!important;color:var(--text)}
body.dark :is(.app-header,.marketing-header,.sidebar,.side-brand,#p1MobileNav){background:var(--card)!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.panel,.settings-card,.stat-card,.quick-card,.course-tile,.landing-cards article,.tn-card,.tn-rent-summary,.tn-tool-card,.tn-teacher-option,.px-support-card,.id-avatar-card,.id-parent-child,.bf-footer,.sec-panel,.sec-card,.ac-settings-card,.ac-push-card,.cc-builder,.cc-builder-head,.cc-pane,.cc-manage-card,.cc-access-card,.cc-instapay-admin,.cc-student-course,.vx-session,.vx-empty){background:var(--card)!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.dialog-card,.auth-dialog,.sec-dialog-card,.id-proof-dialog,.px-welcome-dialog,.ac-report-dialog){background:var(--card)!important;border:1px solid var(--line);color:var(--text)}
body.dark dialog::backdrop{background:#030913b8;backdrop-filter:blur(5px)}
body.dark :is(input,select,textarea){background:#0e1a2b!important;border-color:#354d6c!important;color:#e9f1ff!important;color-scheme:dark}
body.dark input::placeholder,body.dark textarea::placeholder{color:#9fb0c9;opacity:1}body.dark :is(input,select,textarea):focus{border-color:#7fb4ff!important}body.dark input[type=checkbox],body.dark input[type=radio]{accent-color:#6faaff}body.dark input[type=color]{padding:3px}
body.dark :is(.profile-block b,.page-title h1,.settings-card-title h3,.auth-brand h2,.tn-section-heading h2,.tn-card h2,.tn-card h3,.tn-billing-numbers strong,.tn-tool-copy b,.px-support-card h2,.id-avatar-content h3,.id-profile-summary b,.sec-head h2,.sec-card-title b,.sec-session b,.sec-device-card h2,.sec-device-choice b,.ac-featured h3,.cc-manage-card h3,.cc-student-course h3,.cc-form label,.cc-builder-head h2,.cc-pay-number b){color:var(--text)!important}
body.dark :is(.field>span,.auth-form label,.settings-card-title p,.profile-block small,.tn-tool-copy small,.tn-hint,.px-support-card p,.id-avatar-content p,.id-avatar-status,.id-profile-summary small,.id-proof-dialog>p,.sec-head p,.sec-card-title small,.sec-session small,.sec-note,.sec-device-choice small,.ac-report-note,.cc-form small,.cc-description,.cc-meta){color:var(--muted)!important}
body.dark :is(.search-box,.id-profile-note,.tn-teacher-picker,.tn-billing-numbers>div,.tn-follow-banner,.st-follow,.cc-footer,.cc-tabs,.cc-lock,.cc-pay-number,.cc-no-media,.cc-youtube-cover,.ac-follow-numbers,.hw-preview-item,.hw-preview-item img,.media-preview,.banner-manager,.banner-controls,.auth-form .role-fields,.auth-form .grade-checks label,.sec-setup,.sec-secret,.sec-device-choice){background:#1a2b43!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.p1-soft-btn,.secondary-btn,.nt-theme-button,.ac-header-logout,.dialog-close,.px-welcome-close,.id-avatar-pick,.logout-btn,.p1-log-controls button,.lh-filters button,.cc-tab,.cc-upload-video,.cc-proof-upload){background:#1b3354!important;border-color:#355174!important;color:#c6ddff!important}
body.dark :is(.p1-btn,.primary-btn,.bf-support){background:linear-gradient(110deg,#176ad4,#165cbd)!important;color:#fff!important;box-shadow:0 5px 15px #0002}
body.dark :is(.p1-text-btn,.lh-progress b,.ac-report-head button){color:#8bbcff}
body.dark :is(.p1-square,.st-tool-icon,.tn-tool-icon,.lh-shortcut-icon,.p1-illustration){background:#1b3354!important;color:#9ac5ff!important}
body.dark :is(.st-tool.video .st-tool-icon,.st-tool.attendance .st-tool-icon,.tn-tool-card.video .tn-tool-icon,.p1-square.teal,.lh-meeting-icon,.px-support-icon){background:#153c3c!important;color:#83e0d2!important}
body.dark :is(.st-tool.review .st-tool-icon,.st-tool.trophy .st-tool-icon,.tn-tool-card.review .tn-tool-icon,.p1-square.orange){background:#3b3020!important;color:#f4c670!important}
body.dark :is(.st-tool.tasks .st-tool-icon,.tn-tool-card.tasks .tn-tool-icon){background:#302543!important;color:#cdb2ff!important}
body.dark :is(.st-follow h2,.tn-follow-banner h2){color:var(--text)}body.dark :is(.st-follow p,.tn-follow-banner p){color:var(--muted)}
body.dark :is(.p1-progress-hero,.p1-reward-card,.p1-award){background:linear-gradient(120deg,#253145,#332c22);border-color:#4d4331}body.dark :is(.p1-progress-hero h2,.p1-progress-hero strong,.p1-progress-hero b,.p1-reward-card h2,.p1-award h3){color:#f4d292}body.dark :is(.p1-progress-hero p,.p1-reward-card p,.p1-award p){color:#d7c5a8}
body.dark :is(.lh-hero,.lh-catalog-intro,.lh-shortcuts button,.p1-tip,.p1-notification.unread,.cc-access-card.active,.cc-upload-video:hover){background:var(--p1-blue-light);border-color:var(--line)}
body.dark :is(.lh-hero.review,.lh-shortcuts .review){background:var(--p1-orange-light)}body.dark :is(.lh-hero.video,.lh-shortcuts .video){background:var(--p1-teal-light)}body.dark .lh-shortcuts .tasks{background:#302543}body.dark :is(.lh-filters button.active,.cc-tab.active,.p1-log-controls button[aria-pressed=true]){background:#28558d!important;color:#fff!important}
body.dark :is(.st-hero,.tn-dashboard .tn-hero,.ac-welcome-art,.ac-welcome-art.custom){background:#132033;border-color:var(--line)}
body.dark .st-hero:after,body.dark .tn-dashboard .tn-hero:after{background:linear-gradient(270deg,#132033fc 0%,#132033ed 37%,#132033a8 59%,#13203318 90%)}
body.dark .ac-welcome-art:after,body.dark .ac-welcome-art.custom:after{background:linear-gradient(90deg,#13203318 10%,#132033b8 40%,#132033f5 62%,#132033ff 100%)}
body.dark :is(.st-hero,.tn-hero,.ac-welcome-art)>picture img,body.dark .ac-welcome-art>img{filter:brightness(.78) saturate(.85)}
body.dark :is(.st-hero,.tn-hero) :is(h1,h2){color:#f1f6ff!important;text-shadow:none}body.dark .st-hero h2 em,body.dark .tn-hero h2 :is(span,strong,em){color:#85b8ff!important}body.dark :is(.st-hero p,.st-hero-role,.tn-hero p,.tn-hero-subject){color:#bfcee3!important;text-shadow:none}body.dark .tn-hero-copy{text-shadow:none!important}
body.dark :is(.st-hero-kicker,.tn-hero-kicker,.tn-hero .p1-eyebrow,.ac-welcome-kicker,.ac-hero-promise){background:#3b3020!important;color:#ffdc94!important;border-color:#756139!important}
body.dark .ac-welcome-art .ac-hero-slogan{color:#e9f1ff!important}body.dark .ac-welcome-art .ac-hero-name{color:#ff8c9b}body.dark .ac-welcome-art :is(.ac-banner-intro,.ac-welcome-hint){color:#bfcee3!important}
body.dark .data-table :is(th,td){border-color:var(--line);color:var(--text)}body.dark .data-table th{background:#1a2b43}body.dark .data-table tr:hover{background:#1a2b43}body.dark :is(.error-box,.tn-form-error,.id-proof-error,.ac-error){background:#3c2531;color:#ffb6c0;border-color:#66384a}body.dark :is(.success-box,.tn-form-status){color:#91e0ba}body.dark :is(.sec-grade.warn,.cc-badge.paid){background:#3b3020;color:#f4d292}body.dark .sec-grade.good{background:#153c3c;color:#91e0ba}
body.dark .bf-footer{box-shadow:0 8px 25px #0002}body.dark :is(.bf-bottom,.id-profile-summary){border-color:var(--line)}body.dark #avatarMini.id-photo-avatar{border-color:#2b3e5a!important;box-shadow:0 0 0 1px #47617f}body.dark .nt-theme-button{color:#f8cf77!important}body.dark .nt-theme-button:hover{background:#29436a!important}
body.dark .search-box input{background:transparent!important;box-shadow:none}
body.dark .landing-cards article>span{background:#1b3354!important;color:#9ac5ff!important}body.dark .landing-cards article:nth-child(2)>span{background:#153c3c!important;color:#83e0d2!important}body.dark .landing-cards article:nth-child(3)>span{background:#302543!important;color:#cdb2ff!important}body.dark .landing-cards article:nth-child(4)>span{background:#3b3020!important;color:#f4c670!important}
@media(max-width:700px){.p1-shell .app-header-actions{gap:5px}.p1-shell .nt-theme-button{width:37px;height:37px;min-height:37px;flex-basis:37px;border-radius:11px}.p1-shell .nt-theme-button svg{width:21px;height:21px}}
@media(max-width:420px){body .marketing-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:13px 16px}.marketing-header>.ac-public-brand{grid-column:1;grid-row:1}.marketing-header>.marketing-actions{display:contents}.marketing-actions .nt-theme-button{grid-column:2;grid-row:1;justify-self:end}.marketing-actions #loginBtn{grid-column:2;grid-row:2;min-height:40px}.marketing-actions #registerBtn{grid-column:1;grid-row:2;justify-self:start;min-height:40px}}
@media(max-width:700px){body.dark .st-hero:after,body.dark .tn-dashboard .tn-hero:after{background:linear-gradient(270deg,#132033f5 0%,#132033e8 44%,#132033a8 75%,#13203366 100%)}body.dark .ac-welcome-art:after,body.dark .ac-welcome-art.custom:after{background:linear-gradient(270deg,#132033ed 0%,#132033d9 48%,#132033b0 75%,#13203380 100%)}}
@media(prefers-reduced-motion:reduce){.nt-theme-button{transition:none}.nt-theme-button:hover,.nt-theme-button:active{transform:none}}

/* Keep account actions legible on dark admin cards. */
body.dark .admin-account-actions .btn-sm{background:#1b3354!important;border:1px solid #355174!important;color:#c6ddff!important}
body.dark .admin-account-actions .btn-sm.success{background:#153c32!important;border-color:#28604f!important;color:#a4e8ce!important}
body.dark .admin-account-actions .btn-sm.danger{background:#472631!important;border-color:#70404a!important;color:#ffc0c7!important}


/* /learning-operations.css */
/* Added workflows reuse the approved cards, colours, type and banners. */
.op-panel{margin:20px 0}.op-panel h2{margin:0 0 8px;font-size:18px}.op-panel h3{margin:0 0 7px}.op-note{color:var(--p1-muted);font-size:12px;line-height:1.9}.op-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.op-task{padding:16px;border:1px solid var(--p1-line);border-radius:17px;background:var(--p1-bg);min-width:0;display:flex;flex-direction:column;gap:8px}.op-task h3{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.op-task .p1-btn,.op-task .p1-soft-btn{margin-top:auto;align-self:flex-start}.op-task strong{font-size:24px;color:var(--p1-ink)}.op-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}.op-actions>*{min-width:0}.op-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.op-check{display:flex;align-items:center;gap:9px;padding:9px 0;font-size:13px;line-height:1.9}.op-check input{width:19px;height:19px;accent-color:var(--p1-blue);flex-shrink:0}.op-check span{min-width:0}.op-dialog{padding:23px;width:min(820px,calc(100vw - 24px));max-height:88dvh;overflow:auto;border:1px solid var(--p1-line);border-radius:22px;background:var(--p1-surface);color:var(--p1-ink)}.op-dialog::backdrop{background:#08182a99}.op-dialog-header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.op-dialog-header h2{margin:0;font-size:21px}.op-dialog-header button{flex-shrink:0}.op-list{display:grid;gap:11px;margin:14px 0}.op-list article{border:1px solid var(--p1-line);border-radius:15px;padding:14px;background:var(--p1-bg);overflow-wrap:anywhere}.op-list p{margin:5px 0}.op-error{color:var(--p1-red);font-size:12px;line-height:1.9}.op-status{font-size:12px;line-height:1.9;color:var(--p1-muted)}.op-code{font:700 22px ui-monospace,monospace;letter-spacing:2px;direction:ltr;display:block;padding:15px;background:var(--p1-bg);border:1px solid var(--p1-line);border-radius:12px;text-align:center;user-select:all}.op-week-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.op-week-numbers>div{padding:13px;border:1px solid var(--p1-line);border-radius:14px;background:var(--p1-bg);text-align:center}.op-week-numbers strong{display:block;font-size:20px;color:var(--p1-ink)}.op-week-numbers small{color:var(--p1-muted);font-size:11px}.op-import-row{display:grid;grid-template-columns:auto 1fr 1fr;gap:9px;padding:12px;border:1px solid var(--p1-line);border-radius:14px;margin:11px 0;background:var(--p1-bg)}.op-import-row .field{margin:0}.op-import-row .op-full{grid-column:2/-1}.op-panel details>summary{cursor:pointer;font-weight:700;color:var(--p1-ink);padding:8px 0}.op-source-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:230px;overflow:auto;padding:12px;background:var(--p1-bg);border-radius:12px}.op-connect{padding:12px 0}.op-draft-status{font-size:11px;color:var(--p1-muted);margin:8px 0}.op-alert-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.op-alert-row>div{flex:1;min-width:160px}.op-panel .field input,.op-panel .field select,.op-dialog .field input,.op-dialog .field select,.op-dialog .field textarea{max-width:100%;box-sizing:border-box}.op-badge{display:inline-block;padding:4px 9px;border:1px solid var(--p1-line);border-radius:99px;color:var(--p1-muted);font-size:10px;line-height:1.8}.op-panel:focus,.op-task:focus{outline:2px solid var(--p1-blue);outline-offset:4px}
@media(max-width:760px){.op-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-week-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.op-dialog{padding:18px}}
@media(max-width:480px){.op-grid,.op-field-row{grid-template-columns:1fr}.op-task{padding:14px}.op-task strong{font-size:22px}.op-dialog-header h2{font-size:18px}.op-import-row{grid-template-columns:auto 1fr}.op-import-row .field{grid-column:2}.op-import-row .op-full{grid-column:2}.op-actions .p1-btn,.op-actions .p1-soft-btn{max-width:100%}.op-panel h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.op-panel,.op-task{animation:none!important;transition:none!important}}


/* /academic-suite.css */
.as-page{min-width:0}.as-toolbar,.as-actions,.as-filters,.as-tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.as-toolbar{justify-content:space-between;margin-bottom:18px}.as-tabs{margin-bottom:20px}.as-tabs button[aria-selected=true]{background:var(--blue,#2457db);color:white}.as-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:16px}.as-card{border:1px solid var(--border,#dae3ef);background:var(--surface,#fff);border-radius:22px;padding:20px;min-width:0}.as-card h3{margin:8px 0;font-size:18px}.as-muted{color:var(--muted,#627089);font-size:13px;line-height:1.9}.as-list{display:grid;gap:12px}.as-row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--border,#dde5f0);border-radius:16px;min-width:0}.as-row>div{min-width:0}.as-row h3,.as-row p{margin:5px 0}.as-row p,.as-card p,.as-card h3{overflow-wrap:anywhere}.as-badge{display:inline-block;padding:4px 10px;border-radius:10px;background:#edf3ff;color:#2859cb;font-size:12px}.as-warning{padding:14px;background:#fff4dd;color:#866019;border-radius:14px;line-height:1.8}.as-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.as-form-grid>.as-wide{grid-column:1/-1}.as-form-grid .field{min-width:0}.as-form-grid input:not([type=checkbox]),.as-form-grid textarea,.as-form-grid select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.as-form-grid textarea{min-height:110px}.as-error{color:#bd3342;line-height:1.8}.as-success{color:#24824f;line-height:1.8}.as-preview{max-height:370px;overflow:auto;margin:16px 0}.as-dialog{width:min(800px,calc(100vw - 30px));max-height:90dvh;padding:22px;box-sizing:border-box;overflow:auto;border:0;border-radius:24px;background:var(--surface,#fff);color:var(--text,#162747)}.as-dialog::backdrop{background:#07152c99}.as-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.as-question{display:flex;gap:12px;align-items:flex-start}.as-question input[type=checkbox]{flex:0 0 auto;margin-top:8px}.as-question>div{flex:1;min-width:0}.as-progress{width:100%;height:9px;accent-color:#2e66e7}.as-session summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center}.as-session[open] summary{margin-bottom:12px}.as-session.completed{border-color:#42ae88}.as-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.as-secret-code{text-align:center;letter-spacing:.3em;direction:ltr;font-size:24px}.as-service-code{direction:ltr;text-align:left;font-size:12px;overflow-wrap:anywhere;padding:12px;background:#f0f4fb;border-radius:12px}.as-ready{display:grid;grid-template-columns:32px 1fr;gap:12px;align-items:start}.as-ready strong:first-child{font-size:24px;color:#24824f}.as-filter{min-width:0;flex:1 1 160px}.as-subtitle{margin:0 0 16px}.dark .as-card,.dark .as-dialog{background:#15243b;border-color:#2a3d58}.dark .as-badge{background:#203960;color:#a4c6ff}.dark .as-service-code{background:#0e1b2e}.dark .as-warning{background:#3d321d;color:#f3d795}.dark .as-row{border-color:#2a3d58}.dark .as-success{color:#8bdbb4}.dark .as-error{color:#ffa5b0}.dark .as-muted{color:#a8b8cf}.as-print-report{display:none}@media(max-width:600px){.as-form-grid,.as-split{grid-template-columns:1fr}.as-form-grid>.as-wide{grid-column:auto}.as-row{align-items:flex-start;flex-direction:column}.as-actions .p1-btn,.as-actions .p1-soft-btn{flex:1}.as-actions{width:100%}.as-dialog{padding:16px}.as-tabs{display:grid;grid-template-columns:1fr 1fr}.as-card{padding:16px}}@media print{body.as-printing>*{display:none!important}body.as-printing .as-print-report{display:block!important;color:#111;background:#fff;font-family:Arial,sans-serif;padding:20px;direction:rtl}.as-print-report table{border-collapse:collapse;width:100%}.as-print-report td,.as-print-report th{padding:10px;border:1px solid #bbb}.as-print-report h1{font-size:24px}.as-print-report .as-muted{color:#333}}

.as-print-report form,.as-print-report button{display:none}

.as-page [hidden],.as-dialog [hidden]{display:none!important}

.as-question input[type=checkbox]{width:18px;height:18px;min-width:18px;padding:0;appearance:auto}.as-filters>.field{flex:1 1 170px;min-width:0;max-width:100%}.as-filters input,.as-filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.as-form-grid .op-check input{width:18px;height:18px;min-width:18px;flex:0 0 auto}

.as-page .as-tabs button[aria-selected=true]{background:#245de0;color:#fff;border-color:#4c7de9}
body.dark .as-page .as-tabs button[aria-selected=true]{background:#245de0!important;color:#fff!important;border-color:#4c7de9!important}


/* /refined-experience.css */
/* A quieter home and a floating, grouped navigation panel. Existing flows stay intact. */
.rf-shell{--rf-card:var(--p1-surface,#fff);--rf-line:var(--p1-line,#e3eaf4);--rf-ink:var(--p1-ink,#1c3158);--rf-muted:#61738e;--rf-accent:#0866ed;--rf-tint:#eef4ff}
.rf-shell.dark{--rf-card:#132033;--rf-line:#2a3b55;--rf-ink:#e9f1ff;--rf-muted:#b2c1d8;--rf-accent:#85b8ff;--rf-tint:#1c3050}
.rf-shell .page-content{padding-top:24px;padding-bottom:24px}
.rf-icon{display:inline-block;vertical-align:middle;width:22px;height:22px;flex-shrink:0}
.rf-shell :is(.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-review-card,.lh-course,.lh-meeting,.p1-section-tile){border-radius:22px;box-shadow:0 5px 22px #15345a06;transition:box-shadow .22s ease,border-color .22s ease,translate .22s ease}
.rf-shell :is(.p1-task,.p1-session,.p1-class-card,.p1-review-card){border-top-width:1px}
.rf-shell .p1-task:before{content:'';position:absolute;inset-block-start:0;inset-inline:23px;height:3px;background:#8baaf4;border-radius:0 0 5px 5px}
.rf-shell .p1-task.sheet:before{background:#69b9a8}.rf-shell .p1-task.exam:before{background:#e3b358}
.rf-shell .p1-task .p1-square,.rf-shell .p1-section-tile .p1-square{border-radius:15px}
.rf-shell .p1-metric{border-radius:18px;box-shadow:none}
.rf-ticker{display:flex;align-items:center;gap:13px;min-width:0;min-height:45px;margin:14px 38px 0;padding:0 10px 0 5px;border:1px solid var(--rf-line);border-radius:14px;background:var(--rf-card);color:var(--rf-ink);overflow:hidden;box-sizing:border-box}
.rf-ticker-label{display:flex;align-items:center;gap:7px;flex-shrink:0;padding:0 5px;color:var(--rf-accent);font-size:10px}
.rf-ticker-label .rf-icon{width:17px;height:17px}.rf-ticker-label b{font-weight:700}
.rf-ticker-window{flex:1;min-width:0;overflow:hidden;direction:ltr;mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 18px),transparent)}
.rf-ticker-window:focus-visible{outline:2px solid var(--rf-accent);outline-offset:-2px;border-radius:5px}
.rf-ticker-track{display:flex;width:max-content;animation:rfTicker var(--rf-ticker-duration,90s) linear infinite;will-change:transform}
.rf-ticker-group{display:flex;align-items:center;flex:none}
.rf-ticker-message{display:flex;align-items:center;gap:28px;white-space:nowrap;font-size:11px;line-height:1.8;padding:9px 14px}
.rf-ticker-message i{color:#d49c36;font-size:10px;font-style:normal}
.rf-ticker-toggle{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:none;color:var(--rf-muted);border:0;border-radius:11px;cursor:pointer}
.rf-ticker-toggle .rf-icon{width:16px;height:16px}.rf-ticker-toggle:hover{background:var(--rf-tint);color:var(--rf-accent)}
.rf-ticker:is(.is-paused,:hover,:focus-within) .rf-ticker-track{animation-play-state:paused}
@keyframes rfTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.rf-student-home .st-hero{min-height:320px;margin-bottom:0;border-radius:25px}
.rf-student-home .st-hero-copy{padding:27px 32px;min-height:320px}
.rf-student-home .st-hero h1{font-size:23px;margin-top:10px}
.rf-student-home .st-hero h2{font-size:36px;line-height:1.35;margin:12px 0 10px}
.rf-student-home .st-hero p{margin:0 0 17px;font-size:12px}
.rf-student-home .st-hero-role{margin-bottom:7px}.rf-student-home .st-hero-actions .p1-btn{flex:none;min-height:43px;padding:10px 17px;font-size:11px}
.rf-learning-paths{margin:25px 0 0}.rf-path-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}
.rf-path-heading h2{font-size:19px;color:var(--rf-ink);margin:0}.rf-path-heading>span{font-size:10px;color:var(--rf-muted)}
.rf-path-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rf-path{--tile-color:#1760d2;--tile-bg:#edf4ff;display:flex;flex-direction:column;align-items:flex-start;position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:168px;border:1px solid var(--rf-line);border-radius:22px;padding:21px;background:var(--rf-card);color:var(--rf-ink);font:inherit;text-align:right;cursor:pointer;box-shadow:0 6px 24px #15345a05;transition:translate .22s,border-color .22s,box-shadow .22s}
.rf-path:before{content:'';position:absolute;z-index:-1;inset-inline-end:-32px;inset-block-start:-48px;width:150px;height:150px;border:22px solid var(--tile-bg);border-radius:50%;opacity:.65;pointer-events:none}
.rf-path.violet{--tile-color:#7146be;--tile-bg:#f1ebfc}.rf-path.gold{--tile-color:#946319;--tile-bg:#fff3db}.rf-path.teal{--tile-color:#117c72;--tile-bg:#e7f6f1}
.rf-path-symbol{display:grid;place-items:center;width:47px;height:47px;border-radius:16px;background:var(--tile-bg);color:var(--tile-color);margin-bottom:17px}
.rf-path-symbol .rf-icon{width:25px;height:25px}.rf-path-arrow{position:absolute;inset-block-start:26px;inset-inline-end:21px;color:var(--rf-muted)}.rf-path-arrow .rf-icon{width:17px;height:17px}
.rf-path b{display:block;font-size:14px;line-height:1.9;position:relative}.rf-path small{display:block;font-size:10px;line-height:1.9;color:var(--rf-muted);margin-top:2px;position:relative}
.rf-shell .rf-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:17px 0 0}
.rf-home-metrics .p1-metric{padding:14px 18px;background:transparent;gap:13px}.rf-home-metrics .p1-metric strong{font-size:21px}.rf-home-metrics .p1-square{width:37px;height:37px;border-radius:12px}.rf-home-metrics .p1-square .p1-icon{width:20px;height:20px}
.rf-staff-home .rf-staff-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0}
.rf-staff-tools :is(.st-tool,.tn-tool-card){position:relative;min-height:157px;padding:23px 20px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:22px;box-shadow:0 6px 24px #15345a05}
.rf-staff-tools :is(.st-tool,.tn-tool-card)>.p1-icon{position:absolute;inset-inline-end:20px;inset-block-start:30px;width:17px;display:block}
.rf-staff-tools :is(.st-tool-copy,.tn-tool-copy){flex:0;gap:3px}.rf-staff-tools :is(.st-tool-icon,.tn-tool-icon){width:47px;height:47px;border-radius:15px}
.rf-staff-tools :is(.st-tool-copy,.tn-tool-copy) b{font-size:13px}.rf-staff-tools :is(.st-tool-copy,.tn-tool-copy) small{font-size:10px}
.rf-custom-banner:after{background:linear-gradient(270deg,#f4f8ff 0%,#f4f8fff5 38%,#f4f8ffa0 62%,#f4f8ff00 95%)}
.rf-settings-section{margin:20px 0 30px;min-width:0}.rf-settings-heading{margin-bottom:17px}.rf-settings-heading h2{font-size:23px;line-height:1.6;margin:0;color:var(--rf-ink)}.rf-settings-heading p{font-size:12px;color:var(--rf-muted);line-height:1.9;margin:5px 0 0}
.rf-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.rf-settings-card{margin:0;padding:24px;min-width:0;box-sizing:border-box}
.rf-settings-card h3{font-size:18px;margin:0 0 16px;color:var(--rf-ink)}.rf-settings-card form{display:flex;flex-direction:column;gap:15px;min-width:0}
.rf-settings-card .field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--rf-ink)}
.rf-settings-card :is(input[type=text],select){width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--rf-line);border-radius:12px;color:var(--rf-ink);background:var(--rf-card);font:inherit;font-size:12px;box-sizing:border-box}
.rf-settings-card :is(button,input,select){font-family:inherit}.rf-settings-card button{align-self:flex-start}
.rf-banner-preview{position:relative;overflow:hidden;border-radius:15px;border:1px solid var(--rf-line);aspect-ratio:16/7;background:var(--rf-tint)}.rf-banner-preview img{display:block;width:100%;height:100%;object-fit:cover}
.rf-banner-preview>span{position:absolute;bottom:0;inset-inline:0;display:block;padding:18px 14px 9px;background:linear-gradient(0deg,#15233dbb,transparent);color:#fff;font-size:11px}
.rf-image-pick{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px dashed #a5bde5;border-radius:13px;background:var(--rf-tint);color:var(--rf-ink);font-size:12px;cursor:pointer;min-width:0}.rf-image-pick small{font-size:10px;color:var(--rf-muted)}.rf-image-pick input{font:inherit;font-size:11px;max-width:100%;min-width:0;margin-top:4px}
.rf-focus-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rf-focus-controls label{display:flex;flex-direction:column;gap:9px;color:var(--rf-muted);font-size:11px;min-width:0}.rf-focus-controls input{width:100%;min-width:0;accent-color:#0866ed;padding:0}
.rf-form-status{font-size:12px;color:#13795b;min-height:20px;line-height:1.9;margin:0}.rf-form-status.error{color:#ba344b}.rf-form-actions{display:flex;gap:10px;flex-wrap:wrap}.rf-form-actions button{font-size:11px}
.rf-checkbox{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.8;color:var(--rf-ink)}.rf-checkbox input{accent-color:#0866ed;width:19px;height:19px;flex-shrink:0}
.rf-phrase-list{display:flex;flex-direction:column;gap:8px;max-height:290px;overflow:auto;overscroll-behavior:contain;padding:2px 2px 2px 5px;scrollbar-width:thin;scrollbar-color:#b5c7e3 transparent}.rf-phrase{display:flex;align-items:center;gap:9px;padding:7px 11px;background:var(--rf-tint);border:1px solid var(--rf-line);border-radius:12px;min-width:0}.rf-phrase p{flex:1;margin:0;font-size:11px;line-height:1.9;color:var(--rf-ink);overflow-wrap:anywhere}.rf-phrase button{align-self:center;flex-shrink:0;min-width:40px;min-height:40px;border:0;background:none;color:var(--rf-muted);font:inherit;font-size:24px;cursor:pointer;border-radius:10px}.rf-phrase button:hover{background:#ef728518;color:#b02e43}.rf-settings-note{font-size:11px;color:var(--rf-muted);margin:0;line-height:1.9}
.rf-shell :is(.rf-path,.rf-settings-card button,.rf-settings-card input,.rf-settings-card select,.rf-ticker-toggle):focus-visible{outline:3px solid #e5af38;outline-offset:3px}
@media(min-width:981px){
 .rf-shell #appView{gap:0;background:var(--p1-bg);padding-inline-start:18px;box-sizing:border-box}
 .rf-shell .sidebar.rf-sidebar{display:flex;flex-direction:column;position:sticky;top:18px;width:246px;min-width:246px;height:calc(100dvh - 36px);margin-block:18px;overflow:hidden;border:1px solid #dce6f4;border-radius:25px;background:linear-gradient(155deg,#ffffff,#f7faff);color:var(--rf-ink);box-shadow:0 12px 36px #1637680a;padding:0 13px 12px;box-sizing:border-box;flex-shrink:0}
 .rf-shell .sidebar.rf-sidebar .side-brand.id-brand{background:transparent;border:0;min-height:97px!important;padding:19px 8px 14px!important;justify-content:flex-start!important;gap:10px!important;flex-shrink:0}
 .rf-shell .sidebar.rf-sidebar .side-brand img.id-brand-mark{width:47px!important;height:47px!important}.rf-sidebar .side-brand .id-brand-copy b{font-size:28px}.rf-sidebar .side-brand .id-brand-copy small{font-size:12px}
 .rf-shell .rf-navigation{display:block;flex:1;min-height:0;overflow-y:auto;padding:0 2px 10px;margin:0;scrollbar-width:thin;scrollbar-color:#c6d3e7 transparent}
 .rf-shell .rf-navigation .nav-item{display:flex;align-items:center;width:100%;min-height:40px;margin:2px 0;border:1px solid transparent;border-radius:12px;background:transparent;padding:9px 12px;gap:9px;font-size:11px;line-height:1.7;color:#526780;text-align:right;white-space:normal;box-sizing:border-box;transition:background .15s,border-color .15s,color .15s}
 .rf-shell .rf-navigation .nav-item .p1-icon{width:19px;height:19px}.rf-shell .rf-navigation .nav-item .nav-icon{color:#7b91b3}
 .rf-shell .rf-navigation .nav-item:hover{background:#edf3ff;color:#0866ed}.rf-shell .rf-navigation .nav-item.active{background:#eaf2ff;border-color:#ccdffc;color:#075fdc;font-weight:800}
 .rf-shell .rf-navigation .nav-item.active .nav-icon{color:#0866ed}.rf-shell .rf-navigation .rf-nav-home{margin-bottom:6px;min-height:44px}
 .rf-nav-group{margin:14px 0 0}.rf-nav-group h2{font-size:10px;font-weight:700;line-height:1.6;color:#8393ac;margin:0 10px 8px}.rf-nav-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .rf-shell .rf-nav-quick .nav-item{flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;min-height:84px;margin:0;padding:12px 10px;border-color:#e3eaf6;background:#fff;font-size:10px}
 .rf-shell .rf-nav-quick .nav-item .nav-icon{width:30px;height:30px;background:#eef4ff;display:grid;place-items:center;border-radius:10px;color:#2b65cd}
 .rf-shell .rf-nav-quick .nav-item.active{background:#eaf2ff;border-color:#b8d2fb}
 .rf-shell .rf-sidebar .sidebar-support{margin:8px 0 4px;padding:8px 9px;border:1px solid #e3eaf5;border-radius:13px;background:#f0f5ff;color:#4b668e;min-height:0;flex-shrink:0;font-size:10px}
 .rf-shell .rf-sidebar .logout-btn{color:#687c96;background:none;border:0;min-height:42px;border-radius:12px;margin:0;padding:9px;font-size:11px;flex-shrink:0}.rf-shell .rf-sidebar .logout-btn:hover{background:#f0f4fb;color:#0866ed}
 .rf-shell .app-header{margin:18px 24px 0;border:1px solid var(--rf-line);border-radius:20px;box-shadow:0 6px 22px #15345a04;padding-inline:22px}
 .rf-shell .rf-ticker{margin:12px 24px 0}.rf-shell .top-quick-nav{display:none!important}.rf-shell .page-content{padding-inline:24px}
 .rf-shell.dark .sidebar.rf-sidebar{background:#132033!important;border-color:var(--rf-line)!important}.rf-shell.dark .rf-sidebar .side-brand{background:transparent!important}
 .rf-shell.dark .rf-navigation .nav-item{color:#b7c8e3}.rf-shell.dark .rf-nav-group h2{color:#8ca2c2}.rf-shell.dark .rf-navigation .nav-item .nav-icon{color:#8da8d2}
 .rf-shell.dark .rf-navigation .nav-item:hover,.rf-shell.dark .rf-navigation .nav-item.active{background:#1c3459;color:#9bc3ff;border-color:#375784}.rf-shell.dark .rf-nav-quick .nav-item{background:#16273e;border-color:#2a3b55}.rf-shell.dark .rf-nav-quick .nav-item .nav-icon{background:#243c60;color:#9fc7ff}
 .rf-shell.dark .rf-sidebar .sidebar-support{background:#1c3050;border-color:#2a3b55;color:#b7c8e3}.rf-shell.dark .rf-sidebar .logout-btn{color:#b7c8e3}.rf-shell.dark .rf-sidebar .logout-btn:hover{background:#1c3050}
}
.rf-shell.dark .rf-path{--tile-color:#97bdff;--tile-bg:#243a5c}.rf-shell.dark .rf-path.violet{--tile-color:#c2a3ff;--tile-bg:#352c50}.rf-shell.dark .rf-path.gold{--tile-color:#f2cc83;--tile-bg:#413629}.rf-shell.dark .rf-path.teal{--tile-color:#81d5c5;--tile-bg:#203f3f}
.rf-shell.dark .rf-form-status{color:#80dbc0}.rf-shell.dark .rf-form-status.error{color:#ffa0b3}.rf-shell.dark .rf-image-pick{border-color:#5d7da6}
.rf-shell.dark .rf-custom-banner:after{background:linear-gradient(270deg,#132033 0%,#132033f5 40%,#132033b0 70%,#13203340 100%)}
@media(max-width:1200px){.rf-path-grid,.rf-staff-home .rf-staff-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-path{min-height:150px;padding:19px}.rf-settings-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:980px){.rf-shell .rf-ticker{margin:12px 22px 0}.rf-shell .page-content{padding-top:19px}.rf-path-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rf-path{padding:17px;min-height:158px}.rf-staff-home .rf-staff-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.rf-staff-tools :is(.st-tool,.tn-tool-card){padding:18px 15px;min-height:156px}}
@media(max-width:700px){
 .rf-shell .rf-ticker{margin:10px 16px 0;min-height:41px;border-radius:12px;gap:3px;padding-inline-start:8px}.rf-ticker-label b{display:none}.rf-ticker-label{padding:0 3px}.rf-ticker-message{font-size:10px;padding-block:8px;gap:20px}.rf-ticker-toggle{width:40px;height:40px}
 .rf-path-grid,.rf-staff-home .rf-staff-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .rf-student-home .st-hero{min-height:279px;border-radius:22px}.rf-student-home .st-hero-copy{min-height:279px;width:100%;padding:20px;box-sizing:border-box}.rf-student-home .st-hero h1{font-size:19px;line-height:1.6;margin-top:10px}.rf-student-home .st-hero-role{font-size:10px;margin-bottom:6px}.rf-student-home .st-hero h2{font-size:29px;margin:10px 0 7px;line-height:1.32}.rf-student-home .st-hero p{font-size:10px;margin-bottom:14px;line-height:1.9}.rf-student-home .st-hero-kicker{font-size:9px;padding:4px 10px}.rf-student-home .st-hero-actions .p1-btn{font-size:10px;min-height:42px;padding:9px 14px;flex:none}.rf-student-home .st-hero-actions .rf-icon{width:18px;height:18px}
 .rf-learning-paths{margin-top:21px}.rf-path-heading{margin-bottom:11px}.rf-path-heading h2{font-size:17px}.rf-path-heading>span{font-size:9px}
 .rf-path{min-height:147px;padding:17px 14px;border-radius:19px}.rf-path b{font-size:12px}.rf-path small{font-size:9px}.rf-path-symbol{width:41px;height:41px;border-radius:13px;margin-bottom:15px}.rf-path-symbol .rf-icon{width:23px;height:23px}.rf-path-arrow{inset-block-start:24px;inset-inline-end:14px}.rf-path-arrow .rf-icon{width:15px;height:15px}.rf-path:before{width:110px;height:110px;border-width:17px;inset-block-start:-34px;inset-inline-end:-34px}
 .rf-shell .rf-home-metrics{gap:11px;margin-top:13px}.rf-shell .rf-home-metrics .p1-metric{padding:12px 10px;gap:8px}.rf-home-metrics .p1-metric strong{font-size:19px}.rf-home-metrics .p1-metric div>span{font-size:9px}
 .rf-staff-tools :is(.st-tool,.tn-tool-card){min-height:147px;padding:18px 14px;gap:14px;border-radius:19px}.rf-staff-tools :is(.st-tool-copy,.tn-tool-copy) b{font-size:12px}.rf-staff-tools :is(.st-tool-copy,.tn-tool-copy) small{font-size:9px}.rf-staff-tools :is(.st-tool,.tn-tool-card)>.p1-icon{inset-inline-end:15px;inset-block-start:27px;width:15px}
 .rf-settings-heading h2{font-size:20px}.rf-settings-heading p{font-size:11px}.rf-settings-card{padding:20px 16px;border-radius:20px}.rf-settings-card h3{font-size:17px}.rf-settings-card .field{font-size:11px}.rf-settings-grid{gap:16px}.rf-focus-controls{gap:11px}.rf-focus-controls label{font-size:10px}.rf-form-actions{gap:8px}.rf-form-actions button{font-size:10px;padding-inline:12px}.rf-banner-preview{aspect-ratio:16/9}.rf-checkbox{font-size:10px}
 .rf-shell .rf-custom-banner:after{background:linear-gradient(270deg,#f4f8fffa 0%,#f4f8ffe8 40%,#f4f8ffb5 74%,#f4f8ff50 100%)}.rf-shell.dark .rf-custom-banner:after{background:linear-gradient(270deg,#132033fa 0%,#132033eb 40%,#132033bb 80%,#13203375 100%)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.rf-path:hover,.rf-staff-tools :is(.st-tool,.tn-tool-card):hover,.rf-shell :is(.p1-task,.p1-session,.p1-class-card,.lh-course,.p1-section-tile):hover{translate:0 -3px;box-shadow:0 12px 26px #15345a0d;border-color:#bdd1ef}.rf-path:hover .rf-path-arrow{color:var(--rf-accent)}}
@media(prefers-reduced-motion:reduce){.rf-ticker-track{animation:none;will-change:auto}.rf-ticker-window{overflow-x:auto;scrollbar-width:thin}.rf-ticker-group[aria-hidden=true]{display:none}.rf-path,.rf-shell :is(.p1-task,.p1-session,.p1-class-card,.lh-course,.p1-section-tile){transition:none}.rf-shell .rf-staff-tools :is(.st-tool,.tn-tool-card){transition:none}}

/* Keep the admin home focused and use its first row for all four key destinations. */
@media(min-width:981px){
 .rf-staff-home.st-dashboard.admin>.st-hero.admin{min-height:300px;margin-bottom:12px}
 .rf-staff-home.st-dashboard.admin>.st-hero.admin .st-hero-copy{padding:22px 28px}
 .rf-staff-home.st-dashboard.admin>.p1-metrics{gap:12px;margin:12px 0}
 .rf-staff-home.st-dashboard.admin .p1-metric{min-height:78px;padding:14px 18px}
 .rf-staff-home.st-dashboard.admin>.rf-staff-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 16px}
 .rf-staff-home.st-dashboard.admin .rf-staff-tools .st-tool{min-height:126px;padding:17px 16px;gap:12px}
}


/* /course-catalog-accent.css */
/* Cairo remains the platform font; the course catalog borrows the reference's teal tab and card accents. */
body.p1-shell .lh-catalog-heading,
body.p1-shell .lh-filters,
body.p1-shell .lh-grid {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

body.p1-shell .lh-filters {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: clamp(16px, 2.4vw, 30px);
  max-width: 100%;
  margin: 16px 0 22px;
  padding: 0 2px;
  border-bottom: 1px solid var(--p1-line);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--p1-teal, #0ca89d) transparent;
}

body.p1-shell .lh-filters button {
  position: relative;
  flex: 0 0 auto;
  min-height: 47px;
  padding: 10px 3px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--p1-muted);
  font: 700 13px/1.6 'Cairo', Tahoma, Arial, sans-serif;
  white-space: nowrap;
  box-shadow: none;
  transition: color .18s ease;
}

body.p1-shell .lh-filters button:hover:not(.active) {
  background: transparent;
  color: var(--p1-blue);
}

body.p1-shell .lh-filters button.active {
  background: transparent;
  color: var(--p1-teal, #0ca89d);
  box-shadow: none;
}

body.p1-shell .lh-filters button.active::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--p1-teal, #0ca89d);
  content: '';
}

body.p1-shell .lh-filters button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--p1-teal, #0ca89d);
  outline-offset: -3px;
  border-radius: 5px;
}

body.p1-shell .lh-course {
  border-color: var(--p1-line);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.p1-shell .lh-course:focus-within {
  border-color: var(--p1-teal, #0ca89d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--p1-teal, #0ca89d) 18%, transparent), 0 12px 28px #0b776d14;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.p1-shell .lh-course:hover {
    border-color: var(--p1-teal, #0ca89d);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--p1-teal, #0ca89d) 18%, transparent);
    transform: translateY(-2px);
  }
}

@media (max-width: 680px) {
  body.p1-shell .lh-filters {
    gap: 21px;
    margin: 14px 0 18px;
    scrollbar-width: none;
  }
  body.p1-shell .lh-filters::-webkit-scrollbar { display: none; }
  body.p1-shell .lh-filters button { min-height: 44px; font-size: 12px; }
}


/* /platform-polish.css */
/* Small visual pass: preserve the existing palette and Cairo typography. */
body.rf-shell,
body.rf-shell :is(button, input, select, textarea),
body .landing-view {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

/* The app shell already fills the viewport; a second viewport minimum on the
   content pane can create a dead band before the shared footer. */
body.rf-shell .page-content {
  min-height: 0;
}

body .landing-view {
  padding-bottom: 8px;
}

body .landing-view .ac-public-footer {
  margin-top: 16px;
}

/* The reference card shifts to a cool tint and teal outline on hover. */
body.rf-shell :is(.p1-task, .p1-session, .p1-class-card, .lh-course, .p1-section-tile, .rf-path, .st-tool, .tn-tool-card) {
  transition:
    transform .22s ease,
    translate .22s ease,
    color .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.rf-shell :is(.p1-task, .p1-session, .p1-class-card, .lh-course, .p1-section-tile, .rf-path, .st-tool, .tn-tool-card):hover {
    background-color: #f1fbfa;
    border-color: #31b9b0;
    box-shadow: 0 13px 30px rgba(12, 139, 132, .13);
    translate: 0 -3px;
  }

  body.rf-shell :is(.lh-course, .p1-task, .p1-session, .p1-class-card, .p1-section-tile):hover :is(.p1-btn, .p1-soft-btn, .primary-btn) {
    filter: brightness(1.08);
  }
}

body.rf-shell :is(.p1-task, .p1-session, .p1-class-card, .lh-course, .p1-section-tile, .rf-path, .st-tool, .tn-tool-card):focus-within {
  border-color: #31b9b0;
  box-shadow: 0 0 0 3px rgba(49, 185, 176, .15), 0 10px 24px rgba(12, 139, 132, .08);
}

@media (min-width: 981px) {
  body.rf-shell .sidebar.rf-sidebar {
    position: sticky;
    isolation: isolate;
    width: 264px;
    min-width: 264px;
    height: calc(100dvh - 28px);
    margin-block: 14px;
    padding: 10px 12px 12px;
    border: 1px solid #dbe6f4;
    border-radius: 26px;
    background: linear-gradient(155deg, #fff 0%, #f8fbff 58%, #f0f6ff 100%);
    box-shadow: 0 16px 42px rgba(19, 50, 99, .11);
  }

  body.rf-shell .sidebar.rf-sidebar::before {
    position: absolute;
    z-index: -1;
    inset: 0 22px auto;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #11b7ac, #0866ed 68%, #7f6bea);
    content: '';
  }

  body.rf-shell .sidebar.rf-sidebar .side-brand {
    min-height: 79px !important;
    margin: 5px 0 7px;
    padding: 10px 9px !important;
    border: 1px solid #e0eaf7;
    border-radius: 18px;
    background: linear-gradient(135deg, #edf5ff, #fff 76%);
  }

  body.rf-shell .rf-navigation {
    padding: 0 1px 10px;
    scrollbar-color: #b9cce6 transparent;
  }

  body.rf-shell .rf-nav-group {
    margin-top: 16px;
  }

  body.rf-shell .rf-nav-group h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 9px 8px;
    color: #7588a5;
    font-size: 10px;
    font-weight: 800;
  }

  body.rf-shell .rf-nav-group h2::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #13a99f;
    content: '';
  }

  body.rf-shell .rf-navigation .nav-item {
    min-height: 42px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 650;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  body.rf-shell .rf-navigation .nav-item:hover {
    transform: translateX(-2px);
    border-color: #dce9fb;
    background: #f2f7ff;
    color: #075fdc;
  }

  body.rf-shell .rf-navigation .nav-item.active {
    border-color: #c8defc;
    background: linear-gradient(100deg, #edf5ff, #e4f2ff);
    box-shadow: inset -3px 0 0 #0866ed, 0 5px 14px rgba(8, 102, 237, .07);
  }

  body.rf-shell .rf-nav-quick .nav-item {
    min-height: 82px;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(19, 50, 99, .035);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  body.rf-shell .rf-nav-quick .nav-item .nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eaf3ff, #f2f6ff);
    color: #1766d4;
  }

  body.rf-shell .rf-nav-quick .nav-item.active {
    background: linear-gradient(145deg, #edf6ff, #e5f3ff);
    border-color: #a9cbf7;
    box-shadow: 0 7px 18px rgba(8, 102, 237, .10);
  }

  body.rf-shell .rf-nav-quick .nav-item.active .nav-icon {
    background: #0866ed;
    color: #fff;
  }

  body.rf-shell .rf-sidebar .sidebar-support {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 2px 9px;
    margin: 8px 0 5px;
    padding: 11px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(140deg, #173b7a, #0c61cb 68%, #138f9b);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 76, 156, .17);
  }

  body.rf-shell .rf-sidebar .sidebar-support .support-headset {
    display: grid;
    place-items: center;
    grid-row: span 2;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    font-size: 19px;
  }

  body.rf-shell .rf-sidebar .sidebar-support b,
  body.rf-shell .rf-sidebar .sidebar-support small {
    color: #fff;
  }

  body.rf-shell .rf-sidebar .sidebar-support a {
    grid-column: 1 / -1;
    margin-top: 7px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10px;
    transition: background .18s ease;
  }

  body.rf-shell .rf-sidebar .sidebar-support a:hover {
    background: rgba(255, 255, 255, .24);
  }

  body.rf-shell .rf-sidebar .logout-btn {
    min-height: 42px;
    border: 1px solid #f1dfe2;
    border-radius: 13px;
    background: #fff7f7;
    color: #9f5260;
    font-size: 11px;
    font-weight: 750;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }

  body.rf-shell .rf-sidebar .logout-btn:hover {
    border-color: #f2c8cf;
    background: #fff0f2;
    color: #ae2f45;
  }

  body.rf-shell.dark .sidebar.rf-sidebar {
    background: linear-gradient(155deg, #172843, #132033 66%, #14243c) !important;
    border-color: #2d4362 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .23);
  }

  body.rf-shell.dark .rf-sidebar .side-brand {
    background: linear-gradient(135deg, #20395c, #192c47 76%) !important;
    border-color: #314968 !important;
  }

  body.rf-shell.dark .rf-nav-group h2 { color: #9aacc8; }
  body.rf-shell.dark .rf-nav-group h2::before { background: #54c8bd; }
  body.rf-shell.dark .rf-navigation .nav-item:hover { background: #1d3555; border-color: #304b70; color: #b8d4ff; }
  body.rf-shell.dark .rf-navigation .nav-item.active { background: linear-gradient(100deg, #203a60, #1b3457); border-color: #375983; }
  body.rf-shell.dark .rf-nav-quick .nav-item { box-shadow: none; }
  body.rf-shell.dark .rf-nav-quick .nav-item .nav-icon { background: #294362; color: #a9ceff; }
  body.rf-shell.dark .rf-nav-quick .nav-item.active .nav-icon { background: #3979d1; color: #fff; }
  body.rf-shell.dark .rf-sidebar .logout-btn { background: #342937; border-color: #543440; color: #f0b6bf; }
  body.rf-shell.dark .rf-sidebar .logout-btn:hover { background: #49313a; border-color: #70414d; color: #ffd6dc; }
}

@media (max-width: 980px) {
  body.rf-shell .sidebar.rf-sidebar {
    position: fixed;
    top: 10px;
    right: calc(-1 * (min(310px, calc(100vw - 20px)) + 24px));
    width: min(310px, calc(100vw - 20px));
    min-width: min(310px, calc(100vw - 20px));
    height: calc(100dvh - 20px);
    margin: 0;
    padding: 13px 12px 12px;
    border: 1px solid #dbe6f4;
    border-radius: 24px;
    background: linear-gradient(155deg, #fff, #f5f9ff);
    box-shadow: -14px 15px 42px rgba(19, 50, 99, .18);
    transition: right .28s cubic-bezier(.2, .8, .2, 1);
  }

  body.rf-shell .sidebar.rf-sidebar.open { right: 10px; }
  body.rf-shell .sidebar.rf-sidebar .side-brand { min-height: 72px !important; margin: 3px 0 8px; border-radius: 16px; }
  body.rf-shell .sidebar.rf-sidebar .mobile-close { z-index: 2; top: 16px; left: 15px; width: 34px; height: 34px; border: 1px solid #dce6f4; background: #fff; color: #425673; box-shadow: 0 3px 10px rgba(19, 50, 99, .08); }
  body.rf-shell .sidebar.rf-sidebar .sidebar-support { margin-top: 8px; }
  body.rf-shell.dark .sidebar.rf-sidebar { background: linear-gradient(155deg, #172843, #132033) !important; border-color: #2d4362 !important; }
  body.rf-shell.dark .sidebar.rf-sidebar .mobile-close { background: #1c3050; border-color: #37506f; color: #dce9ff; }
}

@media (prefers-reduced-motion: reduce) {
  body.rf-shell :is(.p1-task, .p1-session, .p1-class-card, .lh-course, .p1-section-tile, .rf-path, .st-tool, .tn-tool-card, .nav-item, .sidebar) {
    transition: none !important;
  }
}


/* /mobile-ui-polish.css */
/* Mobile clarity pass: put teacher actions first and keep navigation groups open. */
.rf-nav-group > h2 {
  display: flex;
  align-items: center;
}

@media (max-width: 700px) {
  body.rf-shell .rf-staff-home {
    display: flex;
    flex-direction: column;
  }

  body.rf-shell .rf-staff-home > :is(.tn-hero, .st-hero) { order: 0; }
  body.rf-shell .rf-staff-home > .rf-staff-tools { order: 1; margin: 14px 0 8px; }
  body.rf-shell .rf-staff-home > .p1-metrics {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 7px 0 16px;
  }
  body.rf-shell .rf-staff-home > .tn-rent-summary { order: 3; }
  body.rf-shell .rf-staff-home .p1-metric {
    min-height: 58px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
  }
  body.rf-shell .rf-staff-home .p1-metric .p1-square {
    width: 29px;
    height: 29px;
    border-radius: 10px;
  }
  body.rf-shell .rf-staff-home .p1-metric strong {
    font-size: 18px;
    line-height: 1.2;
  }
  body.rf-shell .rf-staff-home .p1-metric div > span {
    font-size: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  body .marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 62px;
    padding: 9px 14px;
    box-sizing: border-box;
  }

  body .marketing-header > .ac-public-brand { min-width: 0; }
  body .marketing-header > .marketing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex: 0 0 auto;
  }
  body .marketing-actions #loginBtn,
  body .marketing-actions #registerBtn { display: none !important; }
  body .marketing-actions .nt-theme-button { margin: 0; }
}

/* Small controls stay clear and touch-friendly on every screen. */
.password-reveal-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.password-reveal-wrap > input { box-sizing: border-box; width: 100%; padding-inline-start: 46px !important; }
.password-reveal-button {
  position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: #667894; cursor: pointer;
}
.password-reveal-button:hover, .password-reveal-button:focus-visible { background: #edf3ff; color: #0866ed; }
.password-reveal-button:focus-visible { outline: 2px solid #0866ed; outline-offset: 1px; }
.password-reveal-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.role-picker { position: relative; display: block; width: 100%; min-width: 0; }
.role-picker > select {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important;
  padding: 0 !important; opacity: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important;
  pointer-events: none !important; white-space: nowrap !important;
}
.role-picker-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 49px;
  padding: 11px 14px; border: 1px solid #dce5f3; border-radius: 12px; background: #f8faff; color: #091a50;
  font: inherit; font-size: 15px; text-align: right; transition: border-color .16s, background .16s, box-shadow .16s;
}
.role-picker-trigger:hover, .role-picker.is-open .role-picker-trigger { border-color: #8fb8fa; background: #fff; box-shadow: 0 5px 18px #12386e12; }
.role-picker-trigger:focus-visible { outline: 3px solid #0866ed40; border-color: #0866ed; }
.role-picker-chevron { color: #0866ed; font-size: 21px; transition: transform .16s; }
.role-picker.is-open .role-picker-chevron { transform: rotate(180deg); }
.role-picker-menu {
  position: absolute; z-index: 70; inset-inline: 0; top: calc(100% + 7px); display: grid; gap: 5px; padding: 7px;
  border: 1px solid #dce5f3; border-radius: 15px; background: #fff; box-shadow: 0 14px 34px #10264b24;
  transform-origin: top; animation: role-menu-in .14s ease-out;
}
.role-picker-menu[hidden] { display: none !important; }
.role-picker-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 45px;
  padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: #233858; font: inherit; text-align: right;
}
.role-picker-option:hover, .role-picker-option:focus-visible, .role-picker-option.is-selected { outline: none; background: #eef4ff; color: #075dd8; }
.role-picker-check { opacity: 0; color: #0866ed; font-weight: 900; }
.role-picker-option.is-selected .role-picker-check { opacity: 1; }
@keyframes role-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
body.dark .password-reveal-button { color: #adbbd1; }
body.dark .password-reveal-button:hover, body.dark .password-reveal-button:focus-visible { background: #263752; color: #9ec5ff; }
body.dark .role-picker-trigger { border-color: #344766; background: #111c31; color: #eef3ff; }
body.dark .role-picker-menu { border-color: #344766; background: #111c31; box-shadow: 0 14px 34px #0008; }
body.dark .role-picker-option { color: #d8e4f6; }
body.dark .role-picker-option:hover, body.dark .role-picker-option:focus-visible, body.dark .role-picker-option.is-selected { background: #20324d; color: #a9caff; }

/* Keep the profile and notification controls on the left and the platform name on the right. */
@media (max-width: 700px) {
  body.p1-shell .app-header { direction: rtl; }
  body.p1-shell .app-header .app-logo { display: flex !important; grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
  body.p1-shell .profile-block { grid-column: 2; grid-row: 1; }
  body.p1-shell .app-header-actions { grid-column: 2; grid-row: 2; justify-self: end; margin-inline-start: 0; }
  body.p1-shell .header-center { grid-column: 1; grid-row: 2; display: flex !important; }

  body.p1-shell .st-hero,
  body.p1-shell .rf-student-home .st-hero,
  body.p1-shell .id-parent-dashboard .st-hero.parent { min-height: 245px !important; }
  body.p1-shell .st-hero-copy,
  body.p1-shell .rf-student-home .st-hero-copy,
  body.p1-shell .id-parent-dashboard .st-hero.parent .st-hero-copy { width: 100% !important; min-height: 0 !important; padding: 15px 17px !important; box-sizing: border-box; }
  body.p1-shell .st-hero h1 { font-size: 19px; line-height: 1.5; margin: 5px 0 0; }
  body.p1-shell .st-hero h2 { font-size: 25px; line-height: 1.3; margin: 6px 0; }
  body.p1-shell .st-hero p { font-size: 10px; line-height: 1.7; margin: 0 0 8px; }
  body.p1-shell .st-hero-actions { gap: 7px; }
  body.p1-shell .st-hero-actions button { min-height: 38px; padding: 8px 11px; font-size: 10px; }
  body.p1-shell .tn-dashboard .tn-hero { min-height: 265px !important; }
  body.p1-shell .tn-dashboard .tn-hero-copy { width: 100% !important; min-height: 0 !important; padding: 15px 17px !important; box-sizing: border-box; }
  body.p1-shell .tn-dashboard .tn-hero h1 { font-size: 18px; line-height: 1.5; margin: 5px 0 0; }
  body.p1-shell .tn-dashboard .tn-hero h2 { font-size: 25px; line-height: 1.3; margin: 6px 0; }
  body.p1-shell .tn-dashboard .tn-hero-copy p { font-size: 10px; line-height: 1.7; margin: 0 0 8px; }
  body.p1-shell .tn-dashboard .tn-hero-actions { gap: 7px; }
  body.p1-shell .tn-dashboard .tn-hero-actions button { min-height: 38px; padding: 8px 10px; font-size: 10px; }
  body.p1-shell .p1-welcome { min-height: 220px; padding: 17px 16px; gap: 8px; border-radius: 19px; }
  body.p1-shell .p1-welcome h1 { font-size: 23px; line-height: 1.35; margin: 4px 0 6px; }
  body.p1-shell .p1-welcome h1 span { font-size: 16px; }
  body.p1-shell .p1-welcome p { font-size: 10px; line-height: 1.7; margin-bottom: 9px; }
  body.p1-shell .p1-welcome-art { flex-basis: 155px; width: 155px; height: 150px; }

  #p1MobileNav button { border-radius: 14px; transition: color .18s, background .18s, transform .18s; }
  #p1MobileNav button > .p1-icon { box-sizing: content-box; width: 19px; height: 19px; padding: 6px; border: 1px solid transparent; border-radius: 12px; transition: transform .18s, color .18s, background .18s, box-shadow .18s; }
  #p1MobileNav button.active { color: var(--p1-blue, #0866ed); background: var(--p1-blue-light, #edf3ff); transform: translateY(-2px); }
  #p1MobileNav button.active > .p1-icon { border-color: #cbdcff; background: #fff; color: var(--p1-blue, #0866ed); box-shadow: 0 4px 12px #1457b51a; transform: translateY(-1px) scale(1.03); }
  #p1MobileNav button:not(.active):hover > .p1-icon { background: #f1f5fb; color: var(--p1-blue, #0866ed); transform: translateY(-2px); }
  #p1MobileNav button:active { transform: scale(.96); }
  body.dark #p1MobileNav button.active { background: #20324d; color: #a9caff; }
  body.dark #p1MobileNav button.active > .p1-icon { border-color: #3c5882; background: #17263c; color: #a9caff; box-shadow: 0 4px 12px #0003; }

  .bf-bottom { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; flex-wrap: nowrap !important; gap: 7px !important; }
  .bf-bottom p { flex: 1 1 58%; min-width: 0; flex-wrap: wrap; gap: 2px 5px; font-size: 8px !important; line-height: 1.5; }
  .bf-bottom b { font-size: 8px !important; overflow-wrap: anywhere; }
  .bf-bottom strong { flex: 0 0 auto; white-space: nowrap; font-size: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .password-reveal-button, .role-picker-trigger, .role-picker-chevron,
  #p1MobileNav button, #p1MobileNav button > .p1-icon { transition: none !important; }
  .role-picker-menu { animation: none !important; }
}

.p1-pill.expired { border-color: #f1c9b1; background: #fff1e9; color: #a34121; }
.p1-expired-note { margin: 10px 0; padding: 10px 12px; border: 1px solid #f4d7c8; border-radius: 12px; background: #fff8f4; color: #8e442b; font-size: 11px; line-height: 1.8; }
.p1-reopen { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--p1-line, #e1e9f5); }
.p1-reopen summary { width: fit-content; color: var(--p1-blue, #0866ed); font-size: 11px; font-weight: 800; cursor: pointer; }
.p1-reopen form { margin-top: 10px; }
body.dark .p1-pill.expired { border-color: #754a39; background: #3b2b26; color: #ffc09c; }
body.dark .p1-expired-note { border-color: #67463a; background: #2b2422; color: #f0c1aa; }

@media (max-width: 359px) {
  body.p1-shell .app-header { gap: 6px 8px; padding-inline: 9px; }
  body.p1-shell .profile-avatar { width: 32px; height: 32px; }
  .bf-bottom { gap: 4px !important; }
  .bf-bottom p, .bf-bottom b, .bf-bottom strong { font-size: 7px !important; }
}

/* Tighten the teacher dashboard's mobile tail and anchor the profile at the left edge. */
@media (max-width: 700px) {
  body.p1-shell .app-header .profile-block {
    width: max-content;
    min-width: 0 !important;
    justify-self: end;
  }
  body.rf-shell .rf-staff-home > .p1-metrics { margin-bottom: 8px; }
  body.rf-shell .rf-staff-home > .tn-rent-summary { margin: 8px 0 0; }
  body.rf-shell .page-content { padding-bottom: 8px !important; }
  body.p1-shell .app-main > .bf-footer { margin-top: 8px; margin-bottom: 86px; }
}


/* Student mobile maintenance final overrides 2026-10-25 */
@media (max-width:700px){
 body.p1-student-shell .lh-empty{min-height:0;padding:18px 14px;gap:6px;border-radius:16px}
 body.p1-student-shell .lh-empty h2{font-size:15px;margin-top:2px}
 body.p1-student-shell .lh-empty p{font-size:10.5px;line-height:1.75}
 body.p1-student-shell .lh-empty-art>span{width:54px;height:54px;border-radius:16px}
 body.p1-student-shell .lh-empty-art>span>.lh-icon{width:29px;height:29px}
 body.p1-student-shell .p1-task-grid{grid-template-columns:1fr}
 body.p1-student-shell .p1-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 body.p1-student-shell .p1-filters::-webkit-scrollbar{display:none}
 body.p1-student-shell .p1-filters>button{flex:0 0 auto}
 body.p1-student-shell #p1MobileNav button.active{background:#eaf1ff!important;color:var(--p1-blue,#0866ed)!important;box-shadow:inset 0 0 0 1px #dbe7ff}
 body.dark.p1-student-shell #p1MobileNav button.active{background:#20324d!important;box-shadow:inset 0 0 0 1px #365071}
 body.p1-student-shell .app-main>.bf-footer{margin:8px 12px calc(86px + env(safe-area-inset-bottom));padding:11px 12px;border-radius:14px}
 body.p1-student-shell .app-main>.bf-footer .bf-info{display:none}
 body.p1-student-shell .app-main>.bf-footer .bf-social span{display:none}
 body.p1-student-shell .app-main>.bf-footer .bf-social{width:32px;height:32px;min-width:32px;min-height:32px;padding:4px}
 body.p1-student-shell .app-main>.bf-footer .bf-brand img{width:30px;height:30px}
 body.p1-student-shell .app-main>.bf-footer .bf-brand .ac-wordmark{font-size:16px}
 body.p1-student-shell .app-main>.bf-footer .bf-links{margin-top:5px}
 body.p1-student-shell .app-main>.bf-footer .bf-pages a{min-height:30px;font-size:9.5px}
}


/* Native dialog scroll fix for student sections 2026-10-25 */
@media (max-width:700px){
 body.p1-student-shell #p1SectionDialog.p1-section-dialog[open]{
  display:block!important;
  width:min(94vw,430px)!important;
  height:auto!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  padding:15px!important;
  box-sizing:border-box!important;
 }
 body.p1-student-shell #p1SectionDialog .p1-section-menu-head,
 body.p1-student-shell #p1SectionDialog .p1-section-groups,
 body.p1-student-shell #p1SectionDialog .ac-menu-account{
  display:block;
  min-height:initial!important;
  max-height:none!important;
  overflow:visible!important;
  position:static!important;
 }
 body.p1-student-shell #p1SectionDialog .p1-section-menu-head{
  display:flex;
 }
 body.p1-student-shell #p1SectionDialog .p1-section-groups{
  padding-bottom:10px;
 }
 body.p1-student-shell #p1SectionDialog .ac-menu-account{
  display:flex;
 }
}


/* /boot-stability.css */
/* Keep the first frame quiet while Cairo and the saved session are restored. */
html.ac-boot-pending,
html.ac-boot-pending body {
  min-height: 100%;
  background: #f4f8ff;
}

html.ac-boot-pending body > #topbar,
html.ac-boot-pending body > main,
html.ac-boot-pending body > #toast {
  visibility: hidden !important;
}

#acSessionBootSplash {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 43%, #fff 0%, #f7faff 42%, #edf4ff 100%);
  color: #091a50;
  direction: rtl;
  text-align: center;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

html.ac-boot-pending #acSessionBootSplash {
  display: grid;
}

.ac-boot-mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
}

.ac-boot-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-boot-brand {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.4px;
}

.ac-boot-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #71809b;
  font-size: 12px;
}

.ac-boot-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #dce8fa;
  border-top-color: #0866ed;
  border-radius: 50%;
  animation: ac-boot-spin .8s linear infinite;
}

@keyframes ac-boot-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ac-boot-spinner { animation-duration: 1.8s; }
}


/* /last-mile.css */
/* Clear account cards and compact, stable controls. */
.lm-account-card,.lm-teacher-card{display:grid;gap:15px;padding:17px 19px;border:1px solid var(--line,#e4eaf2);border-radius:18px;background:var(--panel,#fff);box-shadow:0 5px 18px #17345d08;min-width:0;transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
.lm-account-card:hover,.lm-teacher-card:hover{border-color:#c6d8f3;box-shadow:0 10px 25px #17345d12;transform:translateY(-2px)}
.lm-account-top{display:flex;align-items:center;gap:12px;min-width:0}.lm-account-avatar{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#e5efff,#f3f7ff);color:#1766dc;font-size:19px;font-weight:800}.lm-account-name{flex:1;min-width:0}.lm-account-name>b,.lm-account-name>small{display:block;overflow-wrap:anywhere}.lm-account-name>b{font-size:14px;color:var(--navy,#18335c)}.lm-account-name>small{font-size:10px;color:var(--muted,#76859a);margin-top:3px}.lm-account-top>.tag{flex:0 0 auto}
.lm-account-name .lm-wa-inline{display:inline-flex;vertical-align:middle;margin-inline-start:7px;padding:5px 9px;min-height:31px;border-radius:9px;font-size:10px;white-space:nowrap}
.lm-account-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0;border-block:1px solid #edf1f6}.lm-account-details>span{min-width:0}.lm-account-details small,.lm-account-details b{display:block}.lm-account-details small{font-size:10px;color:var(--muted,#76859a);margin-bottom:3px}.lm-account-details b{font-size:11px;color:var(--navy,#18335c);overflow-wrap:anywhere}.lm-account-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.lm-account-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.lm-account-actions .btn-sm{min-height:38px}.lm-wa,.lm-call{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid #bde8d7;border-radius:11px;background:#effaf5;color:#087b58;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.lm-wa:hover{background:#dcf5e9;border-color:#87d2b2}.lm-call{color:#1a5fbb;background:#eff5ff;border-color:#d2e1f7}.lm-account-empty{padding:25px;text-align:center;color:var(--muted,#76859a)}
.accounts-table{border-collapse:separate;border-spacing:0 10px}.accounts-table thead{display:none}.accounts-table tbody tr.lm-user-row{background:transparent}.accounts-table tbody tr.lm-user-row>td{padding:0;border:0;background:transparent}.accounts-table .lm-account-card{margin:0}.user-search{min-width:min(300px,100%)}.account-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.lm-teachers-page .p1-heading{margin-bottom:14px}.lm-teacher-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border:1px solid var(--line,#e4eaf2);border-radius:15px;background:var(--panel,#fff);width:max-content;max-width:100%}.lm-teacher-tabs button{border:0;border-radius:10px;padding:10px 15px;background:transparent;color:var(--muted,#76859a);font:inherit;font-size:12px;font-weight:700;cursor:pointer}.lm-teacher-tabs button.active{background:#eaf2ff;color:#075fdc}.lm-teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lm-teacher-card{align-content:start}.lm-teacher-card .lm-account-details{grid-template-columns:repeat(3,minmax(0,1fr))}
.dark .lm-account-card,.dark .lm-teacher-card,.dark .lm-teacher-tabs{background:var(--panel,#14243a);border-color:#334764}.dark .lm-account-name>b,.dark .lm-account-details b{color:#e9f1ff}.dark .lm-account-details{border-color:#2a3b55}.dark .lm-wa{background:#153a32;border-color:#29604f;color:#a4e8ce}.dark .lm-call{background:#1b3150;border-color:#354d6c;color:#b6d2ff}.dark .lm-teacher-tabs button.active{background:#203c60;color:#a8cbff}
.auth-dialog{position:relative}.auth-dialog>.dialog-close{position:absolute;inset-inline-start:20px;inset-inline-end:auto;top:20px;float:none;display:grid;place-items:center;box-sizing:border-box;width:42px;height:42px;padding:0;margin:0;line-height:1;font-size:25px;z-index:2}
#regTeacherPicker{padding:9px 12px;margin-block:5px;background:#f8faff}#regTeacherPicker>p{font-size:10px;line-height:1.5;margin:0 0 5px}#regTeacherPicker .tn-picker-message{padding:5px 7px;line-height:1.5;font-size:11px}#regTeacherPicker .tn-picker-message>br{display:none}#regTeacherPicker .tn-picker-message .p1-text-btn{margin-inline-start:5px;padding:4px 8px;font-size:10px;min-height:30px}
@media(min-width:981px){.p1-shell .sidebar,.rf-shell .sidebar.rf-sidebar{transform:translateZ(0);backface-visibility:hidden;scrollbar-gutter:stable;contain:layout paint}.p1-shell .sidebar .side-nav,.rf-shell .sidebar.rf-sidebar .rf-navigation{overscroll-behavior:contain;scrollbar-gutter:stable}.p1-shell .sidebar .nav-item,.rf-shell .sidebar.rf-sidebar .nav-item{animation:none!important;transition:background-color .15s ease,color .15s ease,border-color .15s ease!important;translate:none!important;transform:none!important}}
@media(max-width:700px){.lm-account-card,.lm-teacher-card{padding:14px;border-radius:16px;gap:12px}.lm-account-details,.lm-teacher-card .lm-account-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lm-account-details .lm-account-detail{grid-column:1/-1}.lm-account-top>.tag{font-size:9px;padding:4px 7px}.lm-account-footer{align-items:stretch}.lm-wa,.lm-call{flex:1}.lm-account-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.lm-account-actions .btn-sm{width:100%;margin:0}.lm-teacher-grid{grid-template-columns:minmax(0,1fr)}.lm-teacher-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;box-sizing:border-box}.lm-teacher-tabs button{padding:9px 4px;font-size:10px}.auth-dialog>.dialog-close{inset-inline-start:14px;top:14px;width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.lm-account-card,.lm-teacher-card{transition:none}.lm-account-card:hover,.lm-teacher-card:hover{transform:none}}

.account-teacher-picker .panel-head{align-items:flex-end;gap:16px}.account-teacher-picker .panel-head>div{flex:1;min-width:0}.account-teacher-picker .field select{width:100%;min-height:44px}.accounts-empty-hint{padding:22px!important;text-align:center!important;color:var(--muted,#76859a)}.dark .accounts-empty-hint{color:#a8b9d0}
@media(max-width:700px){.account-teacher-picker .panel-head{align-items:stretch;flex-direction:column;gap:10px}.account-teacher-picker .panel-head .field{width:100%!important}}


/* Keep the desktop workspace inside the viewport without a page-wide horizontal scrollbar. */
@media (min-width: 981px) {
  html, body.rf-shell { width: 100%; max-width: 100%; overflow-x: clip !important; }
  body.rf-shell .app-shell { width: 100%; max-width: 100%; overflow-x: clip; }
  body.rf-shell .app-main { flex: 1 1 0; min-width: 0; max-width: 100%; }
  body.rf-shell .page-content { min-width: 0; max-width: 100%; }
}

/* Account initials follow the dark palette like the rest of each account card. */
body.dark .admin-account-avatar { background: #1b3354; border: 1px solid #355174; color: #9ac5ff; }


/* Keep the guest-account action and search inside the admin title row. */
@media (min-width: 981px) {
  body.rf-shell #pageContent .page-title:has(.guest-create-button) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) max-content;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > div:first-child { grid-column: 1; min-width: 0; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > .page-actions { grid-column: 2; min-width: 0; width: 100%; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) .user-search { width: 100%; min-width: 0; max-width: 320px; box-sizing: border-box; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > .guest-create-button { grid-column: 3; justify-self: start; white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  body.rf-shell #pageContent .page-title:has(.guest-create-button) { grid-template-columns: minmax(0, 1fr) max-content; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > div:first-child { grid-column: 1 / -1; grid-row: 1; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > .page-actions { grid-column: 1; grid-row: 2; }
  body.rf-shell #pageContent .page-title:has(.guest-create-button) > .guest-create-button { grid-column: 2; grid-row: 2; }
}


/* /landing-refresh.css */
/* Landing, registration and compact spacing refresh. Loaded last on purpose. */

/* Smaller, consistent breathing room across every role and screen size. */
body.p1-shell .page-content {
  padding: 22px 28px 40px;
}
body.p1-shell .page-content > .p1-page { padding-top: 0; }
body.p1-shell .p1-heading { margin-bottom: 17px; gap: 16px; }
body.p1-shell .p1-metrics { gap: 11px; margin: 15px 0 18px; }
body.p1-shell .p1-section-head { margin: 20px 0 11px; }
body.p1-shell .p1-panel { padding: 18px; margin-bottom: 14px; }
body.p1-shell .p1-action-tile { min-height: 72px; padding: 14px 12px; }
body.p1-shell .ac-home-top { gap: 12px; }
body.p1-shell .ac-hero { min-height: 220px; }
body.p1-shell .ac-hero, body.p1-shell .st-hero,
body.p1-shell .tn-dashboard .tn-hero { margin-bottom: 14px; }

/* Fresh registration banner with a dedicated clear area for Arabic copy. */
body:not(.p1-shell) .landing-view { padding: 0 0 22px; }
body:not(.p1-shell) .ac-welcome { gap: 12px; margin-bottom: 14px; }
body:not(.p1-shell) .marketing-header { height: 76px; padding: 7px clamp(16px, 4vw, 52px); }
body:not(.p1-shell) .ac-public-brand .ac-wordmark {
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.35px;
}
body:not(.p1-shell) .ac-welcome-art,
body:not(.p1-shell) .ac-welcome-art.custom {
  isolation: isolate;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #e1e9f4;
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 12px 34px #183a7010;
}
body:not(.p1-shell) .ac-welcome-art > img,
body:not(.p1-shell) .ac-welcome-art.custom > img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: left center;
}
body:not(.p1-shell) .ac-welcome-art::after,
body:not(.p1-shell) .ac-welcome-art.custom::after {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fbfaf600 25%, #fbfaf6a8 43%, #fbfaf6f2 60%, #fbfaf6 100%);
}
body:not(.p1-shell) .ac-welcome-art .ac-welcome-art-caption,
body:not(.p1-shell) .ac-welcome-art.custom .ac-welcome-art-caption {
  position: relative;
  z-index: 1;
  inset: auto;
  display: flex;
  width: min(54%, 570px);
  min-height: 360px;
  margin: 0 0 0 auto;
  padding: 26px clamp(22px, 4vw, 52px) 24px 24px;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  text-align: right;
}
body:not(.p1-shell) .ac-welcome-art .ac-welcome-kicker {
  margin: 0 0 8px;
  padding: 5px 11px;
  border: 1px solid #dce8fb;
  border-radius: 999px;
  background: #ffffffd9;
  color: #345c98;
  font-size: 10px;
  font-weight: 800;
}
body:not(.p1-shell) .ac-welcome-art .ac-hero-name {
  margin: 0;
  color: #1455b6;
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.5px;
}
body:not(.p1-shell) .ac-welcome-art .ac-hero-slogan {
  margin: 2px 0 5px;
  color: #132c52;
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.65px;
}
body:not(.p1-shell) .ac-welcome-art .ac-hero-promise {
  max-width: 100%;
  padding: 4px 10px;
  color: #315987;
  font-size: 10px;
  line-height: 1.8;
}
body:not(.p1-shell) .ac-welcome-art .ac-banner-intro {
  margin: 7px 0 9px;
  color: #536680;
  font-size: 11px;
  line-height: 1.8;
}
body:not(.p1-shell) .ac-welcome-art .ac-welcome-actions { gap: 8px; }
body:not(.p1-shell) .ac-welcome-art .ac-welcome-actions :is(.primary-btn, .secondary-btn) {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 11px;
}
body:not(.p1-shell) .ac-welcome-art .ac-welcome-hint {
  margin-top: 8px;
  color: #667a96;
  font-size: 9px;
}
body:not(.p1-shell) .ac-welcome-art .ac-hero-doodle { z-index: 2; opacity: .72; }
body:not(.p1-shell) .landing-cards { gap: 11px; margin-top: 12px; }
body:not(.p1-shell) .landing-cards article { min-height: 72px; padding: 13px 15px; border-radius: 15px; }
body:not(.p1-shell) .landing-cards article > span { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; }
body:not(.p1-shell) .ac-public-footer { margin-top: 8px; }

/* Tighter account dialog and polished wordmark. */
body:not(.p1-shell) .auth-dialog { padding: 23px 25px 20px; }
body:not(.p1-shell) .auth-brand { margin-bottom: 14px; }
body:not(.p1-shell) .auth-brand .ac-wordmark {
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.35px;
}
body:not(.p1-shell) .auth-brand h2 { margin: 9px 0 2px; font-size: 19px; }
body:not(.p1-shell) .auth-brand p { margin: 0; font-size: 11px; }
body:not(.p1-shell) .auth-form { gap: 10px; }
body:not(.p1-shell) .auth-form label { gap: 5px; font-size: 11px; }
body:not(.p1-shell) .auth-form :is(input, select) { min-height: 42px; padding: 9px 11px; }
body:not(.p1-shell) .auth-form .two-col { gap: 10px; }
body:not(.p1-shell) .auth-note { margin: 4px 0; padding: 8px 10px; line-height: 1.7; }
/* Keep an admin-uploaded registration image as an image-only banner. */
body:not(.p1-shell) .ac-welcome-art.custom { min-height: 0; height: auto; }
body:not(.p1-shell) .ac-welcome-art.custom > img {
  position: static;
  z-index: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  opacity: 1;
}
body:not(.p1-shell) .ac-welcome-art.custom::after,
body:not(.p1-shell) .ac-welcome-art.custom .ac-welcome-art-caption,
body:not(.p1-shell) .ac-welcome-art.custom .ac-hero-doodle { display: none; }
body.dark:not(.p1-shell) .ac-public-brand .ac-wordmark,
body.dark:not(.p1-shell) .auth-brand .ac-wordmark { color: #e9f1ff; }
body.dark:not(.p1-shell) .ac-public-brand .ac-wordmark b,
body.dark:not(.p1-shell) .auth-brand .ac-wordmark b { color: #79adff; }
body.dark:not(.p1-shell) .ac-welcome-art::after,
body.dark:not(.p1-shell) .ac-welcome-art.custom::after {
  background: linear-gradient(90deg, #13203310 25%, #1320339e 43%, #132033ed 60%, #132033f7 100%);
}

/* Dark mode hover stays in a readable blue surface instead of flashing white. */
body.dark :is(
  [class*="-card"], [class*="-tile"], .p1-task, .p1-session, .p1-metric,
  .p1-paths button, .lh-shortcuts button, .st-tool, .tn-tool-card,
  .lh-course, .panel, .landing-cards article
):hover {
  background-color: #203854 !important;
  border-color: #5277a5 !important;
  color: #edf4ff !important;
  box-shadow: 0 10px 25px #0004;
}
body.dark :is(
  [class*="-card"], [class*="-tile"], .p1-task, .p1-session, .p1-metric,
  .p1-paths button, .lh-shortcuts button, .st-tool, .tn-tool-card,
  .lh-course, .panel, .landing-cards article
):hover :is(h1, h2, h3, h4, b, strong, span, small, p, label) {
  color: #edf4ff;
}

@media (max-width: 980px) {
  body.p1-shell .page-content { padding: 18px 19px 34px; }
  body.p1-shell .p1-panel { padding: 16px; }
  body:not(.p1-shell) .ac-welcome-art,
  body:not(.p1-shell) .ac-welcome-art.custom { min-height: 340px; }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-art-caption,
  body:not(.p1-shell) .ac-welcome-art.custom .ac-welcome-art-caption { min-height: 340px; }
}

@media (max-width: 700px) {
  body.p1-shell .page-content { padding: 15px 13px 92px !important; }
  body.p1-shell .p1-heading { margin-bottom: 12px; }
  body.p1-shell .p1-metrics { margin: 11px 0 14px; }
  body.p1-shell .p1-section-head { margin: 16px 0 9px; }
  body.p1-shell .p1-panel { padding: 14px; margin-bottom: 11px; border-radius: 15px; }
  body.p1-shell .p1-welcome { min-height: 174px; padding: 15px 15px; border-radius: 17px; }
  body.p1-shell .p1-welcome h1 { font-size: 21px; line-height: 1.35; margin: 4px 0 6px; }
  body.p1-shell .p1-welcome p { margin-bottom: 10px; }
  body.p1-shell .ac-hero { min-height: 0; aspect-ratio: 2.25; padding: 14px 15px; }
  body:not(.p1-shell) .landing-view { padding-bottom: 12px; }
  body:not(.p1-shell) .marketing-header { height: auto; min-height: 64px; padding: 8px 12px; }
  body:not(.p1-shell) .marketing-header .ac-public-brand .ac-wordmark { font-size: 18px; }
  body:not(.p1-shell) .ac-welcome-art,
  body:not(.p1-shell) .ac-welcome-art.custom {
    min-height: 0;
    height: 365px;
    border-radius: 18px;
  }
  body:not(.p1-shell) .ac-welcome-art > img,
  body:not(.p1-shell) .ac-welcome-art.custom > img {
    object-position: 27% center;
    opacity: .82;
  }
  body:not(.p1-shell) .ac-welcome-art::after,
  body:not(.p1-shell) .ac-welcome-art.custom::after {
    background: linear-gradient(270deg, #fbfaf6f5 0%, #fbfaf6e8 45%, #fbfaf6b8 76%, #fbfaf666 100%);
  }
  body.dark:not(.p1-shell) .ac-welcome-art::after,
  body.dark:not(.p1-shell) .ac-welcome-art.custom::after {
    background: linear-gradient(270deg, #132033f5 0%, #132033e3 45%, #132033ac 76%, #13203366 100%);
  }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-art-caption,
  body:not(.p1-shell) .ac-welcome-art.custom .ac-welcome-art-caption {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 18px 16px 15px;
    justify-content: center;
  }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-kicker { margin-bottom: 5px; font-size: 9px; }
  body:not(.p1-shell) .ac-welcome-art .ac-hero-name { font-size: 24px; line-height: 1.3; }
  body:not(.p1-shell) .ac-welcome-art .ac-hero-slogan { margin: 1px 0 4px; font-size: 27px; line-height: 1.4; }
  body:not(.p1-shell) .ac-welcome-art .ac-hero-promise { font-size: 9px; }
  body:not(.p1-shell) .ac-welcome-art .ac-banner-intro { margin: 5px 0 7px; font-size: 10px; }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-actions { flex-direction: row; gap: 7px; }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-actions :is(.primary-btn, .secondary-btn) {
    width: auto;
    min-height: 40px;
    flex: 1;
    padding: 7px 9px;
    font-size: 10px;
  }
  body:not(.p1-shell) .ac-welcome-art .ac-welcome-hint { margin-top: 6px; font-size: 8px; }
  body:not(.p1-shell) .ac-welcome-art .ac-hero-plane,
  body:not(.p1-shell) .ac-welcome-art .ac-hero-bulb { display: none; }
  body:not(.p1-shell) .ac-welcome-art.custom { height: auto; }
  body:not(.p1-shell) .ac-welcome-art.custom > img { height: auto; max-height: 400px; }
  body:not(.p1-shell) .landing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 9px 0; }
  body:not(.p1-shell) .landing-cards article { min-height: 63px; padding: 9px; gap: 8px; }
  body:not(.p1-shell) .landing-cards article > span { width: 33px; height: 33px; flex-basis: 33px; }
  body:not(.p1-shell) .landing-cards article b { font-size: 10px; }
  body:not(.p1-shell) .landing-cards article small { font-size: 8px; line-height: 1.6; }
  body:not(.p1-shell) .ac-public-footer { gap: 6px 12px; padding: 10px 12px; font-size: 9px; }
  body:not(.p1-shell) .auth-dialog { padding: 21px 16px 17px; }
  body:not(.p1-shell) .auth-brand .ac-wordmark { font-size: 19px; }
  body:not(.p1-shell) .auth-form .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.dark :is([class*="-card"], [class*="-tile"], .p1-task, .p1-session, .lh-course, .tn-tool-card) { transition: none !important; }
}


/* Remove oversized dead space around page content and the shared footer. */
body.p1-shell .page-content {
  min-height: 0 !important;
  padding-bottom: 12px !important;
}
body.p1-shell .app-main > .bf-footer {
  margin: 12px 24px 12px !important;
}
body:not(.p1-shell) .landing-view {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}
body:not(.p1-shell) .landing-view > .ac-public-footer,
body:not(.p1-shell) .landing-view > .bf-footer.ac-public-footer {
  margin: 12px 0 0 !important;
}
@media (max-width: 980px) {
  body.p1-shell .page-content { padding-bottom: 8px !important; }
  body.p1-shell .app-main > .bf-footer {
    margin: 10px 18px calc(60px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 600px) {
  body.p1-shell .app-main > .bf-footer {
    margin: 8px 13px calc(58px + env(safe-area-inset-bottom)) !important;
    padding: 12px !important;
  }
  body:not(.p1-shell) .landing-view > .ac-public-footer,
  body:not(.p1-shell) .landing-view > .bf-footer.ac-public-footer {
    margin-top: 8px !important;
    padding: 9px 11px !important;
  }
}


/* Match role welcome cards to the clear, balanced registration banner. */
body.p1-shell .st-hero {
  min-height: 310px;
  margin-bottom: 16px;
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 12px 30px #142c540b;
}
body.p1-shell .st-hero::after {
  background: linear-gradient(270deg, #fbfaf6 0%, #fbfaf6f5 35%, #fbfaf6ad 55%, #fbfaf600 76%);
}
body.p1-shell .st-hero .st-hero-copy {
  box-sizing: border-box;
  width: 57%;
  padding: 22px clamp(22px, 3vw, 40px);
}
body.p1-shell .st-hero .st-hero-kicker {
  border-color: #dce8fb;
  background: #ffffffd9;
  color: #345c98;
}
body.p1-shell .st-hero h1 {
  margin-top: 8px;
  line-height: 1.5;
}
body.p1-shell .st-hero h2 {
  margin: 5px 0 8px;
  line-height: 1.4;
}
body.p1-shell .st-hero p {
  margin-bottom: 12px;
  line-height: 1.8;
}
body.p1-shell .st-hero .st-hero-actions { gap: 8px; }
body.p1-shell .st-hero .st-hero-actions button {
  min-height: 42px;
  border-radius: 12px;
}
body.visual-refresh .vx-welcome {
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 12px 30px #142c540b;
}
body.visual-refresh .vx-welcome h1 {
  color: #162e55;
  line-height: 1.5;
}
body.visual-refresh .vx-welcome p { color: #536680; }
body.visual-refresh .vx-welcome .vx-subject {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  border: 1px solid #dce8fb;
  border-radius: 999px;
  background: #ffffffd9;
  color: #345c98;
  padding: 5px 13px;
}
@media (max-width: 1050px) {
  body.p1-shell .st-hero {
    min-height: 290px;
    border-radius: 21px;
  }
  body.p1-shell .st-hero .st-hero-copy {
    width: 64%;
    padding: 20px 24px;
  }
}
@media (max-width: 600px) {
  body.p1-shell .st-hero {
    min-height: 0 !important;
    border-radius: 19px;
    margin-bottom: 14px;
  }
  body.p1-shell .st-hero img {
    object-position: 19% center;
    opacity: .48;
  }
  body.p1-shell .st-hero::after {
    background: linear-gradient(270deg, #fbfaf6f5 0%, #fbfaf6e9 48%, #fbfaf6b8 76%, #fbfaf655 100%);
  }
  body.p1-shell .st-hero .st-hero-copy {
    width: 100%;
    min-height: 0 !important;
    padding: 16px 15px 15px !important;
  }
  body.p1-shell .st-hero h1 { font-size: 20px; margin: 5px 0 0; }
  body.p1-shell .st-hero .st-hero-role { font-size: 9px; margin: 1px 0 6px; }
  body.p1-shell .st-hero h2 { font-size: 24px; margin: 4px 0 6px; }
  body.p1-shell .st-hero p { font-size: 10px; margin-bottom: 8px; }
  body.p1-shell .st-hero .st-hero-actions button {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 10px;
  }
  body.visual-refresh .vx-welcome {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 19px;
    padding: 19px 17px;
  }
}
body.dark.p1-shell .st-hero {
  border-color: #2a3b55;
  background: #15243a;
}
body.dark.p1-shell .st-hero::after {
  background: linear-gradient(270deg, #15243a 0%, #15243af2 38%, #15243ab0 63%, #15243a25 100%);
}
body.dark.visual-refresh .vx-welcome {
  border-color: #2b4163;
  background: #172843;
}
body.dark.visual-refresh .vx-welcome h1 { color: #e9f1ff; }
body.dark.visual-refresh .vx-welcome p { color: #c6d8fc; }
body.dark.visual-refresh .vx-welcome .vx-subject {
  border-color: #355174;
  background: #1b3354;
  color: #c6ddff;
}


/* Use one sharp photo banner and the registration palette for all dashboard roles. */
body.p1-shell .st-hero {
  font-family: 'Cairo', Tahoma, sans-serif;
}
body.visual-refresh .vx-welcome {
  isolation: isolate;
  overflow: hidden;
  min-height: 310px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background-color: #fbfaf6;
  background-image: url('/assets/academy-v2/welcome-banner-2172.webp');
  background-position: left center;
  background-size: cover;
  font-family: 'Cairo', Tahoma, sans-serif;
}
body.visual-refresh .vx-welcome::after {
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  left: 0;
  bottom: 0;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, #fbfaf6 0%, #fbfaf6f5 38%, #fbfaf6bd 58%, #fbfaf624 78%);
}
body.visual-refresh .vx-welcome-copy {
  position: relative;
  z-index: 1;
  width: 57%;
  margin-left: auto;
  padding: 22px clamp(22px, 3vw, 40px);
  box-sizing: border-box;
}
body.visual-refresh .vx-welcome-art { display: none; }
body.dark.visual-refresh .vx-welcome {
  background-color: #15243a;
  background-image: url('/assets/academy-v2/welcome-banner-2172.webp');
}
body.dark.visual-refresh .vx-welcome::after {
  background: linear-gradient(270deg, #15243a 0%, #15243af3 42%, #15243ab8 66%, #15243a30 100%);
}
@media (max-width: 600px) {
  body.p1-shell .st-hero { min-height: 0 !important; border-radius: 19px; }
  body.p1-shell .st-hero img { object-position: 19% center; opacity: .58; }
  body.p1-shell .st-hero::after {
    background: linear-gradient(270deg, #fbfaf6f7 0%, #fbfaf6ec 50%, #fbfaf6bf 76%, #fbfaf660 100%);
  }
  body.p1-shell .st-hero-copy { width: 100%; min-height: 0 !important; padding: 16px 15px 15px !important; }
  body.p1-shell .st-hero h1 { font-size: 20px; margin: 5px 0 0; }
  body.p1-shell .st-hero .st-hero-role { font-size: 9px; margin: 1px 0 6px; }
  body.p1-shell .st-hero h2 { font-size: 24px; margin: 4px 0 6px; }
  body.p1-shell .st-hero p { font-size: 10px; margin-bottom: 8px; }
  body.p1-shell .st-hero .st-hero-actions button { min-height: 38px; padding: 7px 9px; font-size: 10px; }
  body.visual-refresh .vx-welcome { min-height: 255px; padding: 0; border-radius: 19px; }
  body.visual-refresh .vx-welcome-copy { width: 100%; padding: 18px 16px; }
  body.visual-refresh .vx-welcome::after {
    background: linear-gradient(270deg, #fbfaf6f7 0%, #fbfaf6e9 48%, #fbfaf6b8 76%, #fbfaf655 100%);
  }
  body.dark.visual-refresh .vx-welcome::after {
    background: linear-gradient(270deg, #15243af8 0%, #15243ae9 48%, #15243abc 76%, #15243a68 100%);
  }

}



/* Match the teacher dashboard banner to the shared warm academy welcome layout. */
body.visual-refresh .tn-dashboard .tn-hero {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: #fbfaf6;
  font-family: 'Cairo', Tahoma, sans-serif;
}
body.visual-refresh .tn-dashboard .tn-hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
body.visual-refresh .tn-dashboard .tn-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
body.visual-refresh .tn-dashboard .tn-hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(270deg, #fbfaf6f5 0%, #fbfaf6ea 39%, #fbfaf6b8 62%, #fbfaf648 82%, transparent 100%);
}
body.visual-refresh .tn-dashboard .tn-hero-copy {
  position: relative;
  z-index: 2;
  width: 57%;
  min-height: 320px;
  box-sizing: border-box;
  margin-left: auto;
  padding: 24px clamp(20px, 3vw, 38px);
  background: none;
  text-align: right;
  font-family: 'Cairo', Tahoma, sans-serif;
}
body.visual-refresh .tn-dashboard .tn-hero h1,
body.visual-refresh .tn-dashboard .tn-hero h2 { color: #142b51; }
body.visual-refresh .tn-dashboard .tn-hero h2 em { color: #0866ed; }
body.visual-refresh .tn-dashboard .tn-hero-copy p,
body.visual-refresh .tn-dashboard .tn-hero-subject { color: #516580; }
body.dark.visual-refresh .tn-dashboard .tn-hero { background: #15243a; }
body.dark.visual-refresh .tn-dashboard .tn-hero::after {
  background: linear-gradient(270deg, #15243af5 0%, #15243aea 42%, #15243ab5 68%, #15243a35 100%);
}
body.dark.visual-refresh .tn-dashboard .tn-hero h1,
body.dark.visual-refresh .tn-dashboard .tn-hero h2 { color: #e9f1ff; }
body.dark.visual-refresh .tn-dashboard .tn-hero h2 em { color: #79abff; }
body.dark.visual-refresh .tn-dashboard .tn-hero-copy p,
body.dark.visual-refresh .tn-dashboard .tn-hero-subject { color: #c2d0e4; }

@media (max-width: 600px) {
  body.visual-refresh .tn-dashboard .tn-hero { min-height: 0; }
  body.visual-refresh .tn-dashboard .tn-hero picture { position: absolute; inset: 0; height: 100%; }
  body.visual-refresh .tn-dashboard .tn-hero img { object-position: 18% center; }
  body.visual-refresh .tn-dashboard .tn-hero-copy { width: 100%; min-height: 320px; padding: 20px 17px; }
  body.visual-refresh .tn-dashboard .tn-hero::after {
    background: linear-gradient(270deg, #fbfaf6f8 0%, #fbfaf6ed 47%, #fbfaf6bc 76%, #fbfaf654 100%);
  }
  body.dark.visual-refresh .tn-dashboard .tn-hero::after {
    background: linear-gradient(270deg, #15243af8 0%, #15243aed 49%, #15243ac4 77%, #15243a6d 100%);
  }
  body.visual-refresh .tn-dashboard .tn-hero h2 { font-size: 26px; }
  body.visual-refresh .tn-dashboard .tn-hero-copy p { font-size: 11px; line-height: 1.8; }
}

/* One registration-card identity, with role-specific artwork, across every dashboard. */
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) {
  min-height: 310px !important;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  background: #fbfaf6;
  box-shadow: 0 12px 30px #142c540b;
}
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero)::after {
  background: linear-gradient(270deg, #fbfaf6f5 0%, #fbfaf6e8 38%, #fbfaf68c 59%, #fbfaf600 82%);
}
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) img { opacity: 1; }
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) :is(h1, h2) {
  color: #172d50;
  text-shadow: none;
}
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h1 {
  width: fit-content;
  max-width: 86%;
  margin-inline-end: auto;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h2 em { color: #0866ed; }
body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) :is(p, .st-hero-role, .tn-hero-subject) {
  color: #5d6f87;
  text-shadow: none;
}
body.p1-shell :is(.st-hero-kicker, .tn-hero-kicker) {
  border: 1px solid #dce8fb;
  border-radius: 999px;
  background: #ffffffd9;
  color: #345c98;
}
body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) {
  border-color: #2a3b55;
  background: #15243a;
}
body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero)::after {
  background: linear-gradient(270deg, #15243ae8 0%, #15243ad9 48%, #15243a80 72%, #15243a18 100%);
}
body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) :is(h1, h2) { color: #f1f6ff; }
body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h2 em { color: #85b8ff; }
body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) :is(p, .st-hero-role, .tn-hero-subject) { color: #bfcee3; }

@media (max-width: 700px) {
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) {
    min-height: 210px !important;
    border-radius: 18px;
    margin-bottom: 12px !important;
  }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) img {
    object-position: 12% center !important;
    opacity: 1 !important;
  }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero)::after {
    background: linear-gradient(270deg, #fbfaf6f2 0%, #fbfaf6df 58%, #fbfaf681 82%, #fbfaf626 100%);
  }
  body.p1-shell :is(.st-hero-copy, .tn-dashboard .tn-hero-copy) {
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box;
    text-shadow: none !important;
  }
  body.p1-shell :is(.st-hero-kicker, .tn-hero-kicker) { font-size: 8px; padding: 3px 9px; }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h1 { font-size: 18px; line-height: 1.4; margin: 4px 0 0; }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h1 {
    max-width: 78%;
    font-size: clamp(16px, 4.3vw, 18px);
    line-height: 1.35;
  }
  body.p1-shell :is(.st-hero-role, .tn-hero-subject) { font-size: 9px; line-height: 1.5; margin: 0 0 4px; }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) h2 { font-size: 20px; line-height: 1.24; margin: 3px 0 4px; }
  body.p1-shell :is(.st-hero, .tn-dashboard .tn-hero) p { font-size: 9px; line-height: 1.5; margin: 0 0 6px; }
  body.p1-shell :is(.st-hero-actions, .tn-hero-actions) { gap: 6px; }
  body.p1-shell :is(.st-hero-actions, .tn-hero-actions) button { min-height: 34px !important; padding: 6px 8px !important; font-size: 9px !important; }
  body.dark.p1-shell :is(.st-hero, .tn-dashboard .tn-hero)::after {
    background: linear-gradient(270deg, #15243aeb 0%, #15243ad9 58%, #15243a90 82%, #15243a35 100%);
  }
}

/* Keep both credits visible on one line on phones, including compact Android screens. */
@media (max-width: 600px) {
  .bf-footer .bf-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 4px 7px !important;
    overflow: visible !important;
  }
  .bf-footer .bf-bottom .bf-developer-credit {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 3px !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
  }
  .bf-footer .bf-bottom .bf-developer-credit > span { flex: 0 0 auto; white-space: nowrap; }
  .bf-footer .bf-bottom .bf-developer-credit b {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    color: #314767 !important;
    font-size: 10px !important;
  }
  .bf-footer .bf-bottom > strong {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    font-size: 9px !important;
  }
  body.p1-shell .app-main > .bf-footer {
    margin-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 359px) {
  .bf-footer .bf-bottom .bf-developer-credit,
  .bf-footer .bf-bottom .bf-developer-credit b { font-size: 9px !important; }
  .bf-footer .bf-bottom > strong { font-size: 8px !important; }
}
body.dark .bf-footer .bf-bottom .bf-developer-credit b { color: #e9f1ff !important; }


/* One static registration banner: original text placement, with the new image and a light haze. */
body:not(.p1-shell) .ac-welcome-art:not(.custom) > img {
  transform: none !important;
  object-position: left center;
  opacity: 1 !important;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom)::after {
  background: linear-gradient(90deg, #fbfaf610 0%, #fbfaf620 42%, #fbfaf640 66%, #fbfaf65c 100%) !important;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption {
  margin: 0 0 0 auto;
  width: min(54%, 570px);
  padding: 26px clamp(22px, 4vw, 52px) 24px 24px;
  text-align: right;
}
@media (max-width: 700px) {
  body:not(.p1-shell) .ac-welcome-art:not(.custom) {
    min-height: 0 !important;
    height: 275px !important;
    border-radius: 16px;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) > img {
    object-position: 27% center;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom)::after {
    background: linear-gradient(90deg, #fbfaf620 0%, #fbfaf638 45%, #fbfaf665 75%, #fbfaf680 100%) !important;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption {
    width: 100% !important;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 12px 16px;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
  }
}


/* Improve banner copy contrast and anchor entry buttons to the image edges. */
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 24px clamp(22px, 4vw, 52px) 78px;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption > :not(.ac-welcome-actions) {
  width: min(54%, 570px);
  max-width: min(54%, 570px);
  align-self: flex-start;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption :is(.ac-hero-name, .ac-hero-slogan) {
  text-shadow: 0 1px 0 #fff9, 0 2px 10px #fff8;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-banner-intro,
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
  color: #263d5d;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-banner-intro {
  padding: 3px 8px;
  border-radius: 8px;
  background: #fffdf0df;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
  position: absolute;
  right: clamp(22px, 4vw, 52px);
  bottom: 61px;
  z-index: 2;
  margin: 0;
  padding: 2px 7px;
  border-radius: 7px;
  background: #fffffff0;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions > button {
  width: min(48%, 330px);
  min-height: 42px;
  box-shadow: 0 5px 18px #183a7026;
}
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom)::after {
  background: linear-gradient(90deg, #13203308 18%, #1320336b 38%, #132033e8 61%, #132033f5 100%) !important;
}
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-hero-name { color: #ff9dab !important; }
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-banner-intro,
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
  color: #edf4ff !important;
  text-shadow: none;
  background: #172a43ed;
}

@media (max-width: 700px) {
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption {
    padding: 16px 14px 70px;
    justify-content: center;
    align-items: flex-start;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption > :not(.ac-welcome-actions) {
    width: 100%;
    max-width: 100%;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
    right: 14px;
    bottom: 59px;
    left: 14px;
    width: auto;
    max-width: none;
    text-align: center;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 8px;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions > button {
    width: calc(50% - 4px);
    min-height: 40px;
    padding: 7px 8px;
    font-size: 10px;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom)::after {
    background: linear-gradient(270deg, #fbfaf6fa 0%, #fbfaf6f2 48%, #fbfaf6c7 75%, #fbfaf680 100%);
  }
  body.dark:not(.p1-shell) .ac-welcome-art:not(.custom)::after {
    background: linear-gradient(270deg, #132033fa 0%, #132033f0 48%, #132033c7 75%, #13203380 100%) !important;
  }
}


/* Fit the translucent copy pills to their text and center both entry buttons. */
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption :is(.ac-welcome-kicker, .ac-hero-promise, .ac-banner-intro, .ac-welcome-hint) {
  width: fit-content !important;
  max-width: min(100%, 570px) !important;
  align-self: flex-start !important;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-kicker {
  background: #ffffffdf;
  box-shadow: 0 2px 8px #193c6815;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-hero-promise {
  border-radius: 999px;
  background: #ffe06fef;
  box-shadow: 0 2px 8px #193c6818;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-banner-intro {
  background: #fffdf0db;
  box-shadow: 0 2px 8px #193c6812;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
  right: clamp(22px, 4vw, 52px);
  left: auto;
  white-space: nowrap;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions {
  right: 0;
  left: 0;
  justify-content: center;
  gap: 12px;
}
body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions > button {
  width: min(42%, 330px);
  flex: 0 1 min(42%, 330px);
}
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-kicker {
  color: #edf4ff;
  border-color: #e9f1ff36;
  background: #172a43df;
}
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-hero-promise {
  color: #263349;
  background: #ffdc68ed;
}
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-banner-intro,
body.dark:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
  color: #edf4ff !important;
  background: #172a43df;
}
@media (max-width: 700px) {
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-art-caption :is(.ac-welcome-kicker, .ac-hero-promise, .ac-banner-intro, .ac-welcome-hint) {
    max-width: calc(100% - 4px) !important;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-hint {
    right: 14px;
    left: auto;
    bottom: 59px;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions {
    right: 0;
    left: 0;
    justify-content: center;
    gap: 8px;
  }
  body:not(.p1-shell) .ac-welcome-art:not(.custom) .ac-welcome-actions > button {
    width: min(44%, 220px);
    flex: 0 1 min(44%, 220px);
  }
  body:not(.p1-shell) .bf-links {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
  }
  body:not(.p1-shell) .bf-pages {
    flex-shrink: 0;
    gap: 10px;
  }
  body:not(.p1-shell) .bf-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  body:not(.p1-shell) .bf-info summary {
    white-space: nowrap;
  }
}


/* Compact the four public landing feature cards on phones only. */
@media (max-width: 700px) {
  html body:not(.p1-shell) .landing-view .landing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 8px 0 6px !important;
  }
  html body:not(.p1-shell) .landing-view .landing-cards article {
    min-height: 44px !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    text-align: right !important;
  }
  html body:not(.p1-shell) .landing-view .landing-cards article > span {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
  html body:not(.p1-shell) .landing-view .landing-cards article b {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
  html body:not(.p1-shell) .landing-view .landing-cards article small {
    display: none !important;
  }
}


/* /settings-registration.css */
/* Compact, consistent dropdowns for sign-in and first-time registration. */
#authDialog .auth-form select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:46px;padding:11px 14px 11px 42px;border:1px solid #cbd8ea;border-radius:12px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7188' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center;background-size:16px;color:#1c3454;font:inherit;font-size:14px;line-height:1.5;text-align:right;cursor:pointer}
#authDialog .auth-form select:focus-visible{outline:3px solid #0866ed44;outline-offset:2px;border-color:#0866ed}
#authDialog .auth-form select option{background:#fff;color:#1c3454}
.reg-grade-picker-field{display:grid;gap:6px}.reg-grade-picker-field>span{font-size:11px;font-weight:800;color:#15284c}
.reg-multi-dropdown{position:relative;max-width:100%;border:1px solid #cbd8ea;border-radius:12px;background:#fff;overflow:visible}
.reg-multi-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 14px;color:#1c3454;font-size:13px;font-weight:700;cursor:pointer}
.reg-multi-dropdown>summary::-webkit-details-marker{display:none}.reg-multi-dropdown>summary:focus-visible{outline:3px solid #0866ed44;outline-offset:2px;border-radius:12px}
.reg-multi-chevron{font-size:18px;color:#5f7188;transition:transform .16s}.reg-multi-dropdown[open] .reg-multi-chevron{transform:rotate(180deg)}
#teacherGradeChecks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:min(230px,32vh);overflow:auto;padding:10px;border-top:1px solid #e6edf6}
#teacherGradeChecks label{display:flex!important;align-items:center;gap:8px;min-width:0;padding:8px 9px;border:1px solid #e6edf6;border-radius:9px;background:#f8faff;font-size:11px!important;font-weight:700!important;cursor:pointer}
#teacherGradeChecks input{width:17px;height:17px;min-width:17px;min-height:17px;margin:0;accent-color:#0866ed}
.settings-layout{grid-template-columns:minmax(0,1fr);gap:12px;padding-bottom:20px}
.settings-group{grid-column:1/-1;min-width:0;border:1px solid var(--line,#dbe3ef);border-radius:16px;background:var(--panel,#fff);box-shadow:0 5px 18px rgba(22,54,125,.045);overflow:hidden}
.settings-group>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 18px;cursor:pointer}
.settings-group>summary::-webkit-details-marker{display:none}.settings-group>summary:focus-visible{outline:3px solid #0866ed44;outline-offset:-3px}
.settings-group-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#eef4ff;font-size:21px}
.settings-group-copy{display:grid;gap:2px;flex:1;min-width:0}.settings-group-copy b{font-size:14px;color:var(--navy,#15284c)}.settings-group-copy small{font-size:11px;line-height:1.6;color:var(--muted,#65748b)}
.settings-group-chevron{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f4f7fc;color:#52647e;font-size:19px;transition:transform .16s}
.settings-group[open]>summary .settings-group-chevron{transform:rotate(180deg)}.settings-group[open]>summary{border-bottom:1px solid #edf1f6}
.settings-group-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:14px}
.settings-group-body>.settings-card{min-width:0;margin:0}.settings-group-body>.settings-full{grid-column:1/-1}.settings-group-body>:is(.ac-settings-card,.ac-push-card){margin:0;min-width:0}
.settings-welcome-help{display:block;margin-top:5px;color:var(--muted,#65748b);font-size:11px;line-height:1.85}
.settings-welcome-help code{display:inline-block;padding:1px 5px;border-radius:5px;background:#eef4ff;color:#1a57a5;font-size:10px;direction:ltr}
.settings-message-area{width:100%;min-height:136px;resize:vertical;line-height:1.9;direction:rtl}
.settings-save-card{position:sticky;bottom:10px;z-index:2}
body.dark #authDialog .auth-form select{background-color:#192b42;border-color:#405673;color:#e9f1ff}
body.dark #authDialog .auth-form select option{background:#192b42;color:#e9f1ff}
body.dark .reg-multi-dropdown{background:#192b42;border-color:#405673}
body.dark .reg-multi-dropdown>summary{color:#e9f1ff}body.dark .reg-grade-picker-field>span{color:#e9f1ff}body.dark #teacherGradeChecks{border-color:#354d6c}
body.dark #teacherGradeChecks label{background:#20344e;border-color:#354d6c;color:#e9f1ff}
body.dark .settings-group{background:var(--panel,#192b42);border-color:#354764}
body.dark .settings-group[open]>summary{border-color:#354764}
body.dark .settings-group-icon,body.dark .settings-group-chevron{background:#20344e;color:#c6ddff}
body.dark .settings-group-copy b{color:#e9f1ff}
body.dark .settings-welcome-help code{background:#20344e;color:#c6ddff}
@media(max-width:640px){.settings-group-body{grid-template-columns:minmax(0,1fr);gap:10px;padding:10px}.settings-group-body>.settings-card.settings-full{grid-column:auto}.settings-group>summary{padding:13px}.settings-save-card{position:static}#authDialog .auth-form select{min-height:48px;font-size:16px}#teacherGradeChecks{grid-template-columns:1fr;max-height:28vh}}


/* /role-banner-polish.css */
/* Final high-priority role-banner treatment. */
body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) { isolation:isolate !important; overflow:hidden !important; }
body.p1-shell .st-hero picture,
body.p1-shell .tn-dashboard .tn-hero picture { position:absolute !important; inset:0 !important; display:block !important; z-index:0 !important; }
body.p1-shell .st-hero picture img,
body.p1-shell .tn-dashboard .tn-hero picture img,
body.p1-shell .st-hero>img,
body.p1-shell .tn-dashboard .tn-hero>img {
 width:100% !important; height:100% !important; object-fit:cover !important; opacity:1 !important; filter:none !important;
}
body.p1-shell .st-hero::after,
body.p1-shell .tn-dashboard .tn-hero::after {
 content:'' !important; position:absolute !important; inset:0 !important; z-index:1 !important; pointer-events:none !important;
 background:linear-gradient(270deg,rgba(249,251,255,.16) 0%,rgba(249,251,255,.08) 36%,rgba(249,251,255,0) 66%) !important;
}
body.p1-shell .st-hero .st-hero-copy,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
 position:relative !important; z-index:2 !important; display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:2px !important;
 width:min(48%,500px) !important; min-height:0 !important; box-sizing:border-box !important; padding:12px 14px !important; margin:10px 10px 10px auto !important;
 border:1px solid #e3eaf2 !important; border-radius:15px !important; background:rgba(255,255,255,.94) !important;
 box-shadow:0 5px 16px rgba(20,43,81,.10) !important; backdrop-filter:none !important; text-shadow:none !important;
 font-family:'Cairo',Tahoma,sans-serif !important;
}
body.p1-shell .st-hero .st-hero-copy>.st-hero-kicker,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-kicker {
 display:inline-flex !important; width:fit-content !important; max-width:100% !important; margin:0 0 3px !important; padding:3px 9px !important;
 border-radius:999px !important; background:#fff6d8 !important; border:1px solid #eadba3 !important; color:#725719 !important;
 font-family:'Cairo',Tahoma,sans-serif !important; font-size:9px !important; line-height:1.6 !important;
}
body.p1-shell .st-hero .st-hero-copy>h1,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1 {
 display:block !important; width:auto !important; max-width:100% !important; padding:0 !important; margin:2px 0 0 !important; border:0 !important; background:transparent !important; box-shadow:none !important;
 color:#17345c !important; font-family:'Cairo',Tahoma,sans-serif !important; font-size:clamp(16px,1.65vw,21px) !important; line-height:1.5 !important; letter-spacing:-.2px !important; overflow-wrap:anywhere;
}
body.p1-shell .st-hero .st-hero-copy>.st-hero-role,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-subject {
 display:block !important; width:auto !important; max-width:100% !important; margin:0 0 3px !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important;
 color:#596d86 !important; font-size:9px !important; line-height:1.6 !important;
}
body.p1-shell .st-hero .st-hero-copy>h2,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 {
 display:block !important; width:auto !important; max-width:100% !important; padding:0 !important; margin:2px 0 4px !important; border:0 !important; background:transparent !important; box-shadow:none !important;
 color:#17345c !important; font-family:'Cairo',Tahoma,sans-serif !important; font-size:clamp(20px,2.2vw,28px) !important; line-height:1.33 !important; letter-spacing:-.3px !important;
}
body.p1-shell .st-hero .st-hero-copy>p,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p {
 display:inline-block !important; width:fit-content !important; max-width:100% !important; box-sizing:border-box !important; margin:2px 0 6px !important; padding:4px 8px !important;
 border:1px solid #e1eaf5 !important; border-radius:9px !important; background:#f3f7fc !important; box-shadow:none !important;
 color:#405775 !important; font-size:9px !important; line-height:1.7 !important;
}
body.p1-shell :is(.st-hero-actions,.tn-hero-actions) { position:relative !important; z-index:3 !important; display:flex !important; width:fit-content !important; max-width:100% !important; gap:6px !important; flex-wrap:wrap !important; }
body.p1-shell :is(.st-hero-actions,.tn-hero-actions) button { flex:0 1 auto !important; min-height:34px !important; padding:5px 9px !important; font-size:9px !important; }
body.p1-shell .st-hero h2 em,body.p1-shell .tn-dashboard .tn-hero h2 em { color:#0866ed !important; }

html body.dark.p1-shell .st-hero picture img,
html body.dark.p1-shell .tn-dashboard .tn-hero picture img,
html body.dark.p1-shell .st-hero>img,
html body.dark.p1-shell .tn-dashboard .tn-hero>img { filter:brightness(.72) saturate(.82) !important; }
html body.dark.p1-shell .st-hero::after,
html body.dark.p1-shell .tn-dashboard .tn-hero::after {
 background:linear-gradient(270deg,rgba(6,17,31,.24) 0%,rgba(6,17,31,.12) 40%,rgba(6,17,31,0) 70%) !important;
}
html body.dark.p1-shell .st-hero .st-hero-copy,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
 background:rgba(17,32,51,.96) !important; border-color:#405570 !important; box-shadow:0 5px 18px rgba(0,0,0,.25) !important;
}
html body.dark.p1-shell .st-hero .st-hero-copy>h1,
html body.dark.p1-shell .st-hero .st-hero-copy>h2,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 { color:#f2f6ff !important; }
html body.dark.p1-shell .st-hero .st-hero-copy>.st-hero-role,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-subject { color:#c1cee0 !important; }
html body.dark.p1-shell .st-hero .st-hero-copy>p,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p { color:#dbe5f2 !important; background:#243850 !important; border-color:#3c526c !important; }
html body.dark.p1-shell .st-hero h2 em,
html body.dark.p1-shell .tn-dashboard .tn-hero h2 em { color:#8bbcff !important; }
html body.dark.p1-shell .st-hero .st-hero-kicker,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-kicker { color:#ffe5a5 !important; background:#3b3020 !important; border-color:#665634 !important; }

@media(max-width:700px) {
 body.p1-shell .st-hero,body.p1-shell .tn-dashboard .tn-hero { min-height:286px !important; }
 body.p1-shell .st-hero .st-hero-copy,
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
  width:min(58%,290px) !important; min-height:0 !important; padding:9px 10px !important; margin:7px 7px 7px auto !important; border-radius:13px !important;
 }
 body.p1-shell .st-hero .st-hero-copy>h1,
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1 { font-size:16px !important; }
 body.p1-shell .st-hero .st-hero-copy>h2,
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 { font-size:21px !important; }
 body.p1-shell .st-hero::after,
 body.p1-shell .tn-dashboard .tn-hero::after {
  background:linear-gradient(270deg,rgba(249,251,255,.13) 0%,rgba(249,251,255,.06) 44%,transparent 76%) !important;
 }
 html body.dark.p1-shell .st-hero::after,
 html body.dark.p1-shell .tn-dashboard .tn-hero::after {
  background:linear-gradient(270deg,rgba(6,17,31,.24) 0%,rgba(6,17,31,.10) 46%,transparent 80%) !important;
 }
}


/* Reference banner treatment from the user screenshot: stronger artwork, integrated copy panel. */
/* Dashboard banners only: the public registration/login artwork stays untouched. */
body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) {
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  min-height:320px !important;
  overflow:hidden !important;
  isolation:isolate !important;
  border:1px solid #dfe7f1 !important;
  border-radius:24px !important;
  background:#f5f8fc !important;
}
body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture {
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
}
body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
body.p1-shell .st-hero>img,
body.p1-shell .tn-dashboard .tn-hero>img {
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:left center !important;
  opacity:1 !important;
  filter:none !important;
}
body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:linear-gradient(270deg,
    rgba(248,251,255,.96) 0%,
    rgba(248,251,255,.91) 27%,
    rgba(248,251,255,.65) 45%,
    rgba(248,251,255,.25) 62%,
    rgba(248,251,255,.04) 79%,
    transparent 100%) !important;
}
body.p1-shell .st-hero .st-hero-copy,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:3px !important;
  width:min(56%,570px) !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  margin:0 20px 0 auto !important;
  padding:20px 22px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  text-shadow:none !important;
  font-family:'Cairo',Tahoma,sans-serif !important;
  text-align:right !important;
}
body.p1-shell .st-hero .st-hero-copy>.st-hero-kicker,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-kicker {
  width:fit-content !important;
  max-width:100% !important;
  margin:0 0 3px !important;
  padding:4px 10px !important;
  border:1px solid #e4dba9 !important;
  border-radius:999px !important;
  background:#fff8df !important;
  color:#765d20 !important;
  font-size:9px !important;
  line-height:1.55 !important;
}
body.p1-shell .st-hero .st-hero-copy>h1,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1 {
  width:auto !important;
  max-width:100% !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#17345c !important;
  font-size:clamp(18px,1.9vw,24px) !important;
  line-height:1.45 !important;
  overflow-wrap:anywhere !important;
  text-wrap:balance;
}
body.p1-shell .st-hero .st-hero-copy>.st-hero-role,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-subject {
  margin:0 0 4px !important;
  color:#5c6e86 !important;
  font-size:10px !important;
  line-height:1.55 !important;
}
body.p1-shell .st-hero .st-hero-copy>h2,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 {
  max-width:100% !important;
  margin:5px 0 6px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#172f55 !important;
  font-size:clamp(23px,2.7vw,36px) !important;
  line-height:1.32 !important;
  letter-spacing:-.35px !important;
}
body.p1-shell .st-hero .st-hero-copy>h2 em,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 em { color:#0866ed !important; }
body.p1-shell .st-hero .st-hero-copy>p,
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p {
  max-width:100% !important;
  margin:1px 0 8px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#526681 !important;
  font-size:10px !important;
  line-height:1.75 !important;
}
body.p1-shell :is(.st-hero-actions,.tn-hero-actions) {
  position:relative !important;
  z-index:3 !important;
  display:flex !important;
  width:fit-content !important;
  max-width:100% !important;
  gap:7px !important;
  flex-wrap:wrap !important;
}
body.p1-shell :is(.st-hero-actions,.tn-hero-actions) button {
  flex:0 1 auto !important;
  min-height:38px !important;
  padding:7px 11px !important;
  font-size:10px !important;
}
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) {
  border-color:#30425d !important;
  background:#132033 !important;
}
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
html body.dark.p1-shell .st-hero>img,
html body.dark.p1-shell .tn-dashboard .tn-hero>img {
  filter:brightness(.9) saturate(.9) !important;
}
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
  background:linear-gradient(270deg,
    rgba(10,22,38,.97) 0%,
    rgba(10,22,38,.91) 28%,
    rgba(10,22,38,.68) 46%,
    rgba(10,22,38,.28) 63%,
    rgba(10,22,38,.04) 80%,
    transparent 100%) !important;
}
html body.dark.p1-shell .st-hero .st-hero-copy>h1,
html body.dark.p1-shell .st-hero .st-hero-copy>h2,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 { color:#f1f6ff !important; }
html body.dark.p1-shell .st-hero .st-hero-copy>.st-hero-role,
html body.dark.p1-shell .st-hero .st-hero-copy>p,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-subject,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p { color:#cad6e7 !important; }
html body.dark.p1-shell .st-hero .st-hero-copy>h2 em,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 em { color:#85b8ff !important; }
html body.dark.p1-shell .st-hero .st-hero-copy>.st-hero-kicker,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>.tn-hero-kicker {
  color:#ffe5a5 !important;
  border-color:#665634 !important;
  background:#3b3020 !important;
}
@media(max-width:700px) {
  body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) {
    min-height:230px !important;
    border-radius:20px !important;
  }
  body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
  body.p1-shell .st-hero>img,
  body.p1-shell .tn-dashboard .tn-hero>img { object-position:left center !important; }
  body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
    background:linear-gradient(270deg,
      rgba(248,251,255,.97) 0%,
      rgba(248,251,255,.90) 33%,
      rgba(248,251,255,.63) 53%,
      rgba(248,251,255,.23) 71%,
      transparent 100%) !important;
  }
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width:min(58%,310px) !important;
    margin:0 10px 0 auto !important;
    padding:12px 11px !important;
    gap:2px !important;
  }
  body.p1-shell .st-hero .st-hero-copy>h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h1 { font-size:clamp(15px,4.2vw,18px) !important; }
  body.p1-shell .st-hero .st-hero-copy>h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>h2 { font-size:clamp(20px,5.4vw,24px) !important; margin:3px 0 4px !important; }
  body.p1-shell .st-hero .st-hero-copy>p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p { font-size:9px !important; line-height:1.55 !important; margin-bottom:6px !important; }
  body.p1-shell :is(.st-hero-actions,.tn-hero-actions) { gap:5px !important; }
  body.p1-shell :is(.st-hero-actions,.tn-hero-actions) button { min-height:34px !important; padding:6px 8px !important; font-size:9px !important; }
  html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
    background:linear-gradient(270deg,
      rgba(10,22,38,.97) 0%,
      rgba(10,22,38,.90) 34%,
      rgba(10,22,38,.64) 54%,
      rgba(10,22,38,.25) 72%,
      transparent 100%) !important;
  }
}


/* Night theme image focus correction based on the mobile screenshot. */
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
html body.dark.p1-shell .st-hero>img,
html body.dark.p1-shell .tn-dashboard .tn-hero>img {
  object-position:26% center !important;
  filter:brightness(1) saturate(1) !important;
}
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
  background:linear-gradient(270deg,
    rgba(10,22,38,.96) 0%,
    rgba(10,22,38,.92) 30%,
    rgba(10,22,38,.75) 45%,
    rgba(10,22,38,.42) 57%,
    rgba(10,22,38,.12) 69%,
    rgba(10,22,38,.02) 82%,
    transparent 100%) !important;
}
@media(max-width:700px) {
  html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
  html body.dark.p1-shell .st-hero>img,
  html body.dark.p1-shell .tn-dashboard .tn-hero>img {
    object-position:24% center !important;
    filter:brightness(1) saturate(1.02) !important;
  }
  html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
    background:linear-gradient(270deg,
      rgba(10,22,38,.96) 0%,
      rgba(10,22,38,.92) 32%,
      rgba(10,22,38,.72) 47%,
      rgba(10,22,38,.36) 59%,
      rgba(10,22,38,.09) 72%,
      transparent 86%) !important;
  }
}


/* Make the night-mode banner tint translucent instead of a solid dark block. */
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
  background:linear-gradient(270deg,
    rgba(10,22,38,.60) 0%,
    rgba(10,22,38,.48) 28%,
    rgba(10,22,38,.28) 46%,
    rgba(10,22,38,.10) 63%,
    rgba(10,22,38,.02) 78%,
    transparent 100%) !important;
}
@media(max-width:700px) {
  html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
    background:linear-gradient(270deg,
      rgba(10,22,38,.62) 0%,
      rgba(10,22,38,.49) 31%,
      rgba(10,22,38,.27) 49%,
      rgba(10,22,38,.08) 67%,
      transparent 84%) !important;
  }
}


/* Match the reference: full-bleed artwork with one translucent night veil. */
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero)::after {
  background:rgba(8,16,30,.55) !important;
}
html body.dark.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
html body.dark.p1-shell .st-hero>img,
html body.dark.p1-shell .tn-dashboard .tn-hero>img {
  object-position:24% center !important;
  filter:none !important;
}


/* Fix dark dashboard hero: older, more-specific night rules were painting an opaque copy panel.
   Keep the artwork full-bleed and use only a soft veil over it. Public auth cards are excluded. */
html body.dark.p1-shell .st-hero .st-hero-copy,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
  background:transparent !important;
  border:0 !important;
  border-color:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html body.dark.p1-shell .st-hero .st-hero-copy>p,
html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy>p {
  color:#e4edf9 !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
html body.dark.p1-shell .st-hero picture,
html body.dark.p1-shell .tn-dashboard .tn-hero picture {
  position:absolute !important;
  top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; z-index:0 !important;
}
html body.dark.p1-shell .st-hero picture img,
html body.dark.p1-shell .tn-dashboard .tn-hero picture img,
html body.dark.p1-shell .st-hero>img,
html body.dark.p1-shell .tn-dashboard .tn-hero>img {
  position:absolute !important; inset:0 !important;
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; object-fit:cover !important;
}
html body.dark.p1-shell .st-hero::after,
html body.dark.p1-shell .tn-dashboard .tn-hero::after {
  background:rgba(8,16,30,.48) !important;
}


/* Keep the dashboard character at the same horizontal position in day and night themes.
   This targets dashboard heroes only; the public login/registration artwork is separate. */
html body.p1-shell :is(.st-hero,.tn-dashboard .tn-hero) picture img,
html body.p1-shell .st-hero>img,
html body.p1-shell .tn-dashboard .tn-hero>img {
  object-position:24% center !important;
}

/* Keep the teacher banner at its compact size and place the round encouragement action on the CTA row. */
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important}
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger{flex:0 0 54px!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;padding:5px!important;gap:2px!important}
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger svg{width:17px!important;height:17px!important}
body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger span{font-size:8px!important}
@media(max-width:700px){
 body.p1-shell .tn-dashboard .tn-hero{height:auto!important;min-height:286px!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions{width:100%!important;max-width:100%!important;gap:3px!important;flex-wrap:nowrap!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>:not(.p1-cheer-trigger){min-width:0!important;padding:4px 5px!important;font-size:8px!important;white-space:nowrap!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>:not(.p1-cheer-trigger) .p1-icon{width:13px!important;height:13px!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger{flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:4px!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger svg{width:15px!important;height:15px!important}
 body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy .tn-hero-actions>.p1-cheer-trigger span{font-size:7px!important}
}

/* Teacher banner action row: restore readable CTA sizes at the banner's lower edge. */
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions {
 position:absolute!important; z-index:5!important; right:16px!important; bottom:14px!important; left:auto!important;
 display:grid!important; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 54px!important;
 align-items:center!important; gap:8px!important; width:min(420px,calc(100% - 32px))!important;
 max-width:calc(100% - 32px)!important; margin:0!important; direction:rtl!important;
}
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-btn,
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-soft-btn {
 box-sizing:border-box!important; width:100%!important; min-width:0!important; min-height:46px!important;
 padding:8px 11px!important; border-radius:12px!important; font-size:11px!important; line-height:1.35!important; white-space:nowrap!important;
}
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger {
 display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
 box-sizing:border-box!important; flex:0 0 54px!important; width:54px!important; min-width:54px!important;
 height:54px!important; min-height:54px!important; padding:4px!important; border-radius:50%!important;
}
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger svg { width:17px!important; height:17px!important; }
body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger span { font-size:8px!important; line-height:1.1!important; }
@media(max-width:700px) {
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions {
  right:10px!important; bottom:10px!important; left:10px!important; width:auto!important; max-width:none!important;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 48px!important; gap:6px!important;
 }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-btn,
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-soft-btn {
  min-height:44px!important; padding:7px 8px!important; font-size:10px!important;
 }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger {
  flex-basis:48px!important; width:48px!important; min-width:48px!important; height:48px!important; min-height:48px!important;
 }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger svg { width:15px!important; height:15px!important; }
}
@media(max-width:360px) {
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions {
  right:8px!important; left:8px!important; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 44px!important; gap:4px!important;
 }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-btn,
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-soft-btn { padding-inline:4px!important; font-size:9px!important; }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>:is(.p1-btn,.p1-soft-btn) .p1-icon { width:14px!important; height:14px!important; }
 body.p1-shell .tn-dashboard .tn-hero>.tn-hero-actions>.p1-cheer-trigger {
  flex-basis:44px!important; width:44px!important; min-width:44px!important; height:44px!important; min-height:44px!important;
 }
}

/* Student/admin banner: keep all actions together on one compact row. */
body.p1-shell .st-hero.student { min-height:300px!important; }
body.p1-shell .st-hero>.st-hero-actions {
 position:absolute!important; z-index:4!important; right:12px!important; bottom:10px!important; left:12px!important;
 display:flex!important; flex-wrap:nowrap!important; align-items:center!important; gap:7px!important;
 width:auto!important; max-width:none!important; margin:0!important; direction:rtl!important;
}
body.p1-shell .st-hero>.st-hero-actions>:not(.p1-cheer-trigger) {
 flex:1 1 0!important; min-width:0!important; width:auto!important; min-height:42px!important;
 padding:6px 8px!important; border-radius:12px!important; font-size:10px!important;
 white-space:nowrap!important; overflow:hidden!important; justify-content:center!important;
}
body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger {
 flex:0 0 48px!important; width:48px!important; min-width:48px!important; height:48px!important; min-height:48px!important;
 padding:4px!important; gap:2px!important;
}
body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger svg { width:15px!important;height:15px!important }
body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger span { font-size:7px!important;line-height:1!important }
@media(max-width:700px) {
 body.p1-shell .st-hero.student { min-height:252px!important; }
 body.p1-shell .st-hero>.st-hero-actions { right:8px!important;left:8px!important;bottom:8px!important;gap:5px!important }
 body.p1-shell .st-hero>.st-hero-actions>:not(.p1-cheer-trigger) { min-height:38px!important;padding:5px 5px!important;font-size:9px!important }
 body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger { flex-basis:44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important }
 body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger svg { width:14px!important;height:14px!important }
}
@media(max-width:360px) {
 body.p1-shell .st-hero>.st-hero-actions { right:6px!important;left:6px!important;gap:4px!important }
 body.p1-shell .st-hero>.st-hero-actions>:not(.p1-cheer-trigger) { font-size:8px!important;padding-inline:3px!important }
 body.p1-shell .st-hero>.st-hero-actions>.p1-cheer-trigger { flex-basis:40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important }
}

/* On desktop, keep the dashboard action row aligned beneath the copy instead of stretching across the artwork. */
@media(min-width:701px) {
 body.p1-shell .st-hero>.st-hero-actions {
  right:12px!important; left:auto!important; width:min(560px,calc(50% - 20px))!important;
  max-width:calc(50% - 20px)!important;
 }
}

/* Give desktop copy and artwork enough vertical room above the CTA row. */
@media(min-width:701px) {
 body.p1-shell .st-hero.admin,
 body.p1-shell .st-hero.student { min-height:390px!important; }
 body.p1-shell .st-hero.admin picture img,
 body.p1-shell .st-hero.student picture img { object-position:24% center!important; }
}


/* Raise admin welcome copy slightly to use the open space above the banner. */
@media(min-width:701px){body.p1-shell .st-hero.admin>.st-hero-copy{transform:translateY(-16px)!important}}
@media(max-width:700px){body.p1-shell .st-hero.admin>.st-hero-copy{transform:translateY(-8px)!important}}


/* Shared card finish: keep each card's existing color and layout while adding a quiet, consistent lift. */
body :is(
  .p1-panel,.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-thread,.p1-reward-card,.p1-community-card,
  .p1-metric,.p1-action-tile,.tn-card,.tn-billing-card,.tn-teacher-option,.tn-overdue-card,
  .as-card,.as-row,.lh-course,.ac-featured,.ac-follow-card,.ac-payment-card,.ac-settings-card,.ac-push-card,
  .panel,.settings-card,.course-tile,.quick-card,.stat-card,.student-stat,.quick-action,.account-card,
  .vx-card,.vx-stat,.vx-quick,.cc-manage-card,.cc-student-course,.sx-course-card,.tp-plan-card,
  .pro-course-info-card,.pro-review-card,.pro-lessons-panel
){
  transition: box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  body :is(
    .p1-panel,.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-thread,.p1-reward-card,.p1-community-card,
    .p1-metric,.p1-action-tile,.tn-card,.tn-billing-card,.tn-teacher-option,.tn-overdue-card,
    .as-card,.as-row,.lh-course,.ac-featured,.ac-follow-card,.ac-payment-card,.ac-settings-card,.ac-push-card,
    .panel,.settings-card,.course-tile,.quick-card,.stat-card,.student-stat,.quick-action,.account-card,
    .vx-card,.vx-stat,.vx-quick,.cc-manage-card,.cc-student-course,.sx-course-card,.tp-plan-card,
    .pro-course-info-card,.pro-review-card,.pro-lessons-panel
  ):hover{
    box-shadow: 0 10px 25px rgba(20,48,92,.09);
    border-color: #c8d7eb;
  }
  body.dark :is(
    .p1-panel,.p1-task,.p1-session,.p1-class-card,.p1-news-card,.p1-thread,.p1-reward-card,.p1-community-card,
    .p1-metric,.p1-action-tile,.tn-card,.tn-billing-card,.tn-teacher-option,.tn-overdue-card,
    .as-card,.as-row,.lh-course,.ac-featured,.ac-follow-card,.ac-payment-card,.ac-settings-card,.ac-push-card,
    .panel,.settings-card,.course-tile,.quick-card,.stat-card,.student-stat,.quick-action,.account-card,
    .vx-card,.vx-stat,.vx-quick,.cc-manage-card,.cc-student-course,.sx-course-card,.tp-plan-card,
    .pro-course-info-card,.pro-review-card,.pro-lessons-panel
  ):hover{
    box-shadow: 0 10px 25px rgba(0,0,0,.22);
    border-color: #435a79;
  }
}
/* Keep the encouragement label centered inside its circle at every banner size. */
body.p1-shell .p1-cheer-trigger,
body.visual-refresh .p1-cheer-trigger{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  gap:2px!important;
  overflow:hidden;
}
body.p1-shell .p1-cheer-trigger>svg,
body.visual-refresh .p1-cheer-trigger>svg{
  display:block!important;
  flex:0 0 auto!important;
  margin:0!important;
}
body.p1-shell .p1-cheer-trigger>span,
body.visual-refresh .p1-cheer-trigger>span{
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  transform:none!important;
}

/* Desktop-only banner copy sizing; phone and tablet rules above stay untouched. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(68%, 800px) !important;
    max-width: none !important;
    padding: 24px 42px !important;
    gap: 6px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > .st-hero-kicker,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > .tn-hero-kicker {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(30px, 2.3vw, 39px) !important;
    line-height: 1.4 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > .st-hero-role,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > .tn-hero-subject {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(38px, 2.95vw, 52px) !important;
    line-height: 1.32 !important;
    margin: 5px 0 7px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    font-size: 13px !important;
    line-height: 1.8 !important;
    margin: 2px 0 7px !important;
  }
}


/* Stronger desktop banner typography based on the latest review screenshot.
   The min-width guard leaves all phone and tablet banner styles untouched. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(76%, 920px) !important;
    max-width: none !important;
    padding: 20px 42px !important;
    gap: 5px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(44px, 3vw, 54px) !important;
    line-height: 1.25 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(54px, 3.8vw, 68px) !important;
    line-height: 1.22 !important;
    margin: 3px 0 6px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 1px 0 6px !important;
  }
}


/* Restore readable desktop banner balance after feedback. Mobile rules remain unchanged. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(68%, 820px) !important;
    max-width: none !important;
    padding: 16px 36px !important;
    gap: 3px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(40px, 2.6vw, 46px) !important;
    line-height: 1.2 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(48px, 3.25vw, 60px) !important;
    line-height: 1.18 !important;
    margin: 2px 0 4px !important;
  }
  body.p1-shell .st-hero .st-hero-copy > p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 0 5px !important;
  }
}


/* Calm, compact desktop banner hierarchy. Phone/tablet design remains untouched. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(64%, 800px) !important;
    max-width: none !important;
    padding: 22px 40px !important;
    gap: 3px !important;
    font-family: "Cairo", sans-serif !important;
  }
  body.p1-shell .st-hero.admin .st-hero-role { display: none !important; }
  body.p1-shell .st-hero .st-hero-copy > h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(32px, 2.1vw, 38px) !important;
    line-height: 1.3 !important;
    margin: 5px 0 0 !important;
    color: #19365f !important;
  }
  body.p1-shell .st-hero .st-hero-copy > .st-hero-role,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > .tn-hero-subject {
    font-size: 11px !important;
    line-height: 1.55 !important;
    margin: 0 0 5px !important;
    color: #687b96 !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(40px, 2.8vw, 48px) !important;
    line-height: 1.22 !important;
    margin: 5px 0 7px !important;
    color: #19365f !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2 em,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 :is(em, span, strong) {
    color: #1762bb !important;
  }
  body.p1-shell .st-hero .st-hero-copy > p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    max-width: 620px;
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin: 0 0 7px !important;
    color: #61758f !important;
  }
  body.p1-shell .st-hero .st-hero-actions,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-actions {
    gap: 9px !important;
    align-items: center !important;
  }
}


/* Desktop banner concept: one clear slogan, calmer type and restrained color. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(64%, 800px) !important;
    max-width: none !important;
    padding: 22px 40px !important;
    gap: 4px !important;
    font-family: "Cairo", sans-serif !important;
  }
  body.p1-shell .st-hero.admin .st-hero-role { display: none !important; }
  body.p1-shell .st-hero .st-hero-copy > h1,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(29px, 2vw, 36px) !important;
    line-height: 1.35 !important;
    margin: 5px 0 2px !important;
    color: #19365f !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(37px, 2.45vw, 45px) !important;
    line-height: 1.35 !important;
    margin: 6px 0 8px !important;
    color: #19365f !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2 br,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 br {
    display: none !important;
  }
  body.p1-shell .st-hero .st-hero-copy > h2 em,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 :is(em, span, strong) {
    color: #1762bb !important;
  }
  body.p1-shell .st-hero .st-hero-copy > p,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    max-width: 650px;
    font-size: 12px !important;
    line-height: 1.7 !important;
    margin: 0 0 9px !important;
    color: #63758d !important;
  }
  body.p1-shell .st-hero .st-hero-actions,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-actions {
    gap: 9px !important;
    align-items: center !important;
  }
}


/* Keep a clear word gap when the desktop slogan is on one line. */
@media (min-width: 981px) {
  body.p1-shell .st-hero .st-hero-copy > h2 em,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 :is(em, span, strong) {
    margin-inline-start: .16em !important;
  }
}


/* Compact mobile student hero and match the teacher encouragement control. */
body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger {
  display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
  box-sizing:border-box!important; flex:0 0 54px!important; width:54px!important; min-width:54px!important;
  height:54px!important; min-height:54px!important; padding:4px!important; border-radius:50%!important;
}
body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger svg { width:17px!important; height:17px!important; }
body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger span { font-size:8px!important; line-height:1.1!important; }
@media (max-width:700px) {
  body.p1-shell .st-hero.student { height:auto!important; min-height:270px!important; align-items:flex-start!important; }
  body.p1-shell .st-hero.student > .st-hero-copy {
    position:absolute!important; top:10px!important; right:10px!important; left:auto!important;
    width:min(64%,320px)!important; max-width:calc(100% - 20px)!important;
    min-height:0!important; margin:0!important; padding:8px 10px 0!important; gap:1px!important;
  }
  body.p1-shell .st-hero.student .st-hero-copy > h1 { font-size:clamp(15px,4.1vw,18px)!important; line-height:1.3!important; margin:2px 0 0!important; }
  body.p1-shell .st-hero.student .st-hero-copy > .st-hero-role { font-size:9px!important; line-height:1.4!important; margin:0 0 2px!important; }
  body.p1-shell .st-hero.student .st-hero-copy > h2 { font-size:clamp(19px,5.2vw,23px)!important; line-height:1.2!important; margin:2px 0 3px!important; }
  body.p1-shell .st-hero.student .st-hero-copy > p { font-size:9px!important; line-height:1.45!important; margin:0!important; }
  body.p1-shell .st-hero.student > .st-hero-actions {
    right:8px!important; bottom:8px!important; left:8px!important;
    display:grid!important; grid-template-columns:minmax(0,1fr) 48px!important;
    align-items:center!important; gap:6px!important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > :not(.p1-cheer-trigger) { width:100%!important; min-height:44px!important; padding:7px 8px!important; font-size:10px!important; }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger {
    flex:0 0 48px!important; width:48px!important; min-width:48px!important;
    height:48px!important; min-height:48px!important; padding:4px!important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger svg { width:15px!important; height:15px!important; }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger span { font-size:7px!important; }
}
@media (max-width:360px) {
  body.p1-shell .st-hero.student { min-height:286px!important; }
  body.p1-shell .st-hero.student > .st-hero-actions {
    right:8px!important; left:8px!important; grid-template-columns:minmax(0,1fr) 44px!important; gap:4px!important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > :not(.p1-cheer-trigger) { min-height:42px!important; font-size:9px!important; }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger {
    flex-basis:44px!important; width:44px!important; min-width:44px!important; height:44px!important; min-height:44px!important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger svg { width:14px!important; height:14px!important; }
}



/* Student mobile banner: remove the dead gap and center the encouragement badge. */
@media (max-width: 700px) {
  body.p1-shell .st-hero.student {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    align-items: stretch !important;
  }
  body.p1-shell .st-hero.student > .st-hero-copy {
    top: auto !important;
    bottom: 64px !important;
    right: 10px !important;
    left: auto !important;
    width: min(64%, 320px) !important;
    margin: 0 !important;
    padding: 0 10px !important;
    gap: 1px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: center !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 3px !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger svg {
    display: block !important;
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 auto !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger span {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    direction: rtl !important;
    line-height: 1 !important;
    font-size: 7px !important;
    transform: none !important;
  }
}
@media (max-width: 360px) {
  body.p1-shell .st-hero.student {
    height: 286px !important;
    min-height: 286px !important;
    max-height: 286px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-copy {
    bottom: 60px !important;
    width: min(66%, 250px) !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-actions > .p1-cheer-trigger svg {
    flex-basis: 14px !important;
    width: 14px !important;
    height: 14px !important;
  }
}


/* Final student mobile balance: shorten the card and keep copy close to the CTA. */
@media (min-width: 361px) and (max-width: 700px) {
  body.p1-shell .st-hero.student {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-copy {
    bottom: 64px !important;
    transform: none !important;
  }
}
@media (max-width: 360px) {
  body.p1-shell .st-hero.student {
    height: 244px !important;
    min-height: 244px !important;
    max-height: 244px !important;
  }
  body.p1-shell .st-hero.student > .st-hero-copy {
    bottom: 60px !important;
    transform: none !important;
  }
}


/* Match the teacher mobile banner to the compact student banner. */
@media (min-width: 361px) and (max-width: 700px) {
  body.p1-shell .tn-dashboard .tn-hero {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    align-items: stretch !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-copy {
    position: absolute !important;
    top: auto !important;
    right: 10px !important;
    bottom: 64px !important;
    left: auto !important;
    width: min(64%, 320px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 !important;
    padding: 0 10px !important;
    gap: 1px !important;
    text-align: right !important;
    transform: none !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-kicker {
    margin: 0 0 3px !important;
    padding: 3px 9px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    margin: 2px 0 0 !important;
    font-size: clamp(15px, 4.1vw, 18px) !important;
    line-height: 1.3 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > .tn-hero-subject {
    margin: 0 0 2px !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    margin: 2px 0 3px !important;
    font-size: clamp(19px, 5.2vw, 23px) !important;
    line-height: 1.2 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.45 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 48px !important;
    align-items: center !important;
    gap: 6px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-btn,
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-soft-btn {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 7px 8px !important;
    font-size: 9px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-cheer-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 3px !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-cheer-trigger svg {
    display: block !important;
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
    margin: 0 auto !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-cheer-trigger span {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    direction: rtl !important;
    line-height: 1 !important;
    font-size: 7px !important;
    transform: none !important;
  }
}
@media (max-width: 360px) {
  body.p1-shell .tn-dashboard .tn-hero {
    height: 244px !important;
    min-height: 244px !important;
    max-height: 244px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-copy {
    right: 10px !important;
    bottom: 60px !important;
    width: min(66%, 250px) !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) 44px !important;
    gap: 4px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-btn,
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-soft-btn {
    min-height: 42px !important;
    padding: 5px 4px !important;
    font-size: 8px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-cheer-trigger {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-cheer-trigger svg {
    flex-basis: 14px !important;
    width: 14px !important;
    height: 14px !important;
  }
}


/* Teacher dashboard only: calm, readable desktop banner.
   The min-width guard intentionally leaves mobile and tablet banners unchanged. */
@media (min-width: 981px) {
  body.p1-shell .tn-dashboard .tn-hero {
    min-height: 360px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    width: min(61%, 760px) !important;
    margin: 12px 24px 12px auto !important;
    padding: 18px 28px 84px !important;
    gap: 4px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-kicker {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(30px, 2.15vw, 40px) !important;
    line-height: 1.35 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-subject {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    font-size: clamp(36px, 2.55vw, 47px) !important;
    line-height: 1.24 !important;
    margin: 5px 0 7px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    max-width: 620px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    margin: 0 0 6px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions {
    right: 24px !important;
    bottom: 18px !important;
    left: auto !important;
    width: min(430px, calc(61% - 24px)) !important;
    max-width: calc(100% - 48px) !important;
    grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) 54px !important;
    gap: 8px !important;
  }
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-btn,
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions > .p1-soft-btn {
    min-height: 48px !important;
    padding: 8px 11px !important;
    font-size: 11px !important;
  }
}


/* /cheer-polish.css */
/* Refined encouragement card, floating confetti, and centered circular label. */
.p1-cheer-trigger { box-sizing:border-box!important; align-items:center!important; justify-content:center!important; text-align:center!important; }
.p1-cheer-trigger span {
  display:block!important; width:100%!important; margin:0!important; padding:0!important;
  direction:rtl!important; text-align:center!important; white-space:normal!important;
  line-height:1.15!important; font-size:9px!important; font-weight:800!important;
}
.p1-cheer-dialog {
  width:min(490px,calc(100vw - 24px))!important; max-width:none!important;
  max-height:min(600px,calc(100dvh - 28px))!important;
  border:1px solid rgba(255,255,255,.78)!important; border-radius:30px!important;
  background:radial-gradient(ellipse at 50% 8%,#f4f7ff 0%,#f8faff 46%,#fff7fa 100%)!important;
  color:#19345f!important; box-shadow:0 30px 90px rgba(8,25,58,.36)!important;
  isolation:isolate;
}
.p1-cheer-dialog::backdrop { background:rgba(10,22,48,.56)!important; backdrop-filter:blur(6px); }
.p1-cheer-scene {
  display:grid!important; place-items:center!important; min-height:355px!important;
  padding:24px!important;
  background:radial-gradient(circle at 12% 14%,rgba(130,177,255,.18),transparent 26%),
             radial-gradient(circle at 88% 78%,rgba(246,170,190,.18),transparent 28%);
}
.p1-cheer-hearts { z-index:0!important; }
.p1-cheer-heart {
  z-index:0!important; filter:drop-shadow(0 4px 10px rgba(53,86,154,.16))!important;
}
.p1-cheer-confetti {
  position:absolute; z-index:1; inset:0; overflow:hidden; pointer-events:none;
}
.p1-cheer-confetti i {
  position:absolute; top:49%; left:50%; width:8px; height:15px; border-radius:3px;
  opacity:0; background:#4788ee;
  animation:p1-cheer-paper-fly 1.65s cubic-bezier(.16,.68,.24,1) both;
  animation-delay:calc(var(--piece) * 24ms);
}
.p1-cheer-confetti i:nth-child(1){--dx:-190px;--dy:-62px;background:#4384ec}
.p1-cheer-confetti i:nth-child(2){--dx:188px;--dy:-85px;background:#f3a1b7}
.p1-cheer-confetti i:nth-child(3){--dx:-155px;--dy:-145px;background:#f0bf59}
.p1-cheer-confetti i:nth-child(4){--dx:147px;--dy:-152px;background:#8377dd}
.p1-cheer-confetti i:nth-child(5){--dx:-202px;--dy:38px;background:#62b6a6}
.p1-cheer-confetti i:nth-child(6){--dx:202px;--dy:27px;background:#4c91eb}
.p1-cheer-confetti i:nth-child(7){--dx:-155px;--dy:132px;background:#ed9ab4}
.p1-cheer-confetti i:nth-child(8){--dx:157px;--dy:130px;background:#e5b64f}
.p1-cheer-confetti i:nth-child(9){--dx:-82px;--dy:-184px;background:#74bca9}
.p1-cheer-confetti i:nth-child(10){--dx:82px;--dy:-183px;background:#577be0}
.p1-cheer-confetti i:nth-child(11){--dx:-72px;--dy:176px;background:#eba0b4}
.p1-cheer-confetti i:nth-child(12){--dx:79px;--dy:177px;background:#e5b64f}
.p1-cheer-confetti i:nth-child(13){--dx:-226px;--dy:-6px;width:6px;height:12px;background:#907be0}
.p1-cheer-confetti i:nth-child(14){--dx:225px;--dy:3px;width:6px;height:12px;background:#62b6a6}
.p1-cheer-confetti i:nth-child(15){--dx:-42px;--dy:-185px;width:6px;height:12px;background:#e996ad}
.p1-cheer-confetti i:nth-child(16){--dx:41px;--dy:183px;width:6px;height:12px;background:#5388e9}
.p1-cheer-confetti i:nth-child(3n) { border-radius:50%; }
.p1-cheer-confetti i:nth-child(2n) { transform:rotate(22deg); }
.p1-cheer-message {
  z-index:2!important; width:min(100%,390px)!important; padding:29px 25px 24px!important;
  border:1px solid rgba(255,255,255,.95)!important; border-radius:28px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 20px 55px rgba(35,69,132,.18),inset 0 1px 0 #fff!important;
  backdrop-filter:blur(12px)!important;
}
.p1-cheer-label {
  padding:7px 15px!important; border:1px solid #e1eafa!important;
  background:linear-gradient(100deg,#f0f5ff,#fff4f7)!important;
  color:#315ca8!important; font-size:12px!important; letter-spacing:.1px;
}
.p1-cheer-symbol {
  display:grid!important; place-items:center!important; width:72px; height:72px; margin:14px auto 9px!important;
  border:1px solid rgba(255,255,255,.9); border-radius:24px;
  background:linear-gradient(145deg,#eaf2ff,#fff0f4);
  box-shadow:0 11px 27px rgba(70,100,164,.15),inset 0 1px 0 #fff;
  font-size:39px!important;
}
.p1-cheer-message h2 {
  max-width:335px!important; margin:7px auto 10px!important;
  color:#203e70!important; font-size:clamp(18px,4.1vw,23px)!important;
  line-height:1.8!important; font-weight:850!important; text-wrap:pretty;
}
.p1-cheer-message p {
  max-width:320px; margin:0 auto 18px!important; color:#687991!important;
  font-size:13px!important; line-height:1.8!important;
}
.p1-cheer-message .p1-btn {
  min-width:205px; min-height:47px!important; padding:11px 23px!important;
  border:1px solid rgba(255,255,255,.18); border-radius:15px!important;
  background:linear-gradient(110deg,#1768dc,#3158c2 70%,#6350bd)!important;
  color:#fff!important; font-size:13px!important; font-weight:800!important;
  box-shadow:0 10px 23px rgba(40,88,190,.24)!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
.p1-cheer-message .p1-btn:hover { transform:translateY(-2px); box-shadow:0 13px 28px rgba(40,88,190,.3)!important; }
.p1-cheer-dismiss {
  display:grid!important; place-items:center!important; top:12px!important; left:12px!important;
  width:35px!important; height:35px!important; border:1px solid #e7ecf4!important;
  background:#f6f8fc!important; color:#5c6b81!important; line-height:1!important;
}
@keyframes p1-cheer-paper-fly {
  0% { opacity:0; transform:translate(-50%,-50%) rotate(0deg) scale(.5); }
  13% { opacity:.95; }
  100% { opacity:0; transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(260deg) scale(.78); }
}
body.dark .p1-cheer-dialog, html.dark .p1-cheer-dialog {
  border-color:#314562!important;
  background:radial-gradient(ellipse at 50% 8%,#203452 0%,#172840 54%,#29253e 100%)!important;
  color:#eef4ff!important; box-shadow:0 32px 90px rgba(0,0,0,.58)!important;
}
body.dark .p1-cheer-scene, html.dark .p1-cheer-scene {
  background:radial-gradient(circle at 12% 14%,rgba(85,132,215,.18),transparent 26%),
             radial-gradient(circle at 88% 78%,rgba(172,91,130,.12),transparent 28%);
}
body.dark .p1-cheer-message, html.dark .p1-cheer-message {
  border-color:rgba(129,158,205,.28)!important; background:rgba(25,42,67,.94)!important;
  box-shadow:0 20px 55px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.dark .p1-cheer-label, html.dark .p1-cheer-label {
  border-color:#344c70!important; background:linear-gradient(100deg,#203b60,#3c2d4e)!important; color:#c7dcff!important;
}
body.dark .p1-cheer-symbol, html.dark .p1-cheer-symbol {
  border-color:#3c5275; background:linear-gradient(145deg,#203d63,#472c50);
  box-shadow:0 11px 27px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.04);
}
body.dark .p1-cheer-message h2, html.dark .p1-cheer-message h2 { color:#f0f5ff!important; }
body.dark .p1-cheer-message p, html.dark .p1-cheer-message p { color:#b2c2dc!important; }
body.dark .p1-cheer-dismiss, html.dark .p1-cheer-dismiss {
  border-color:#3a4b66!important; background:#243954!important; color:#dce7f7!important;
}
@media(max-width:560px) {
  .p1-cheer-dialog { width:calc(100vw - 22px)!important; max-height:calc(100dvh - 20px)!important; border-radius:24px!important; }
  .p1-cheer-scene { min-height:min(410px,calc(100dvh - 22px))!important; padding:13px!important; }
  .p1-cheer-message { padding:27px 19px 21px!important; border-radius:23px!important; }
  .p1-cheer-symbol { width:64px; height:64px; border-radius:21px; font-size:35px!important; }
  .p1-cheer-message h2 { font-size:18px!important; line-height:1.8!important; }
  .p1-cheer-message p { font-size:12px!important; margin-bottom:15px!important; }
  .p1-cheer-message .p1-btn { min-width:185px; min-height:44px!important; font-size:12px!important; }
  .p1-cheer-confetti i { width:6px; height:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .p1-cheer-confetti i,.p1-cheer-heart,.p1-cheer-message,.p1-cheer-symbol { animation:none!important; }
  .p1-cheer-confetti i { display:none; }
  .p1-cheer-heart { opacity:.25!important; }
}


/* Celebration card v2: one compact illustrated card; remove the oversized heart tile. */
.p1-cheer-dialog {
  width:min(450px,calc(100vw - 38px))!important;
  max-height:calc(100dvh - 28px)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.p1-cheer-dialog::backdrop {
  background:rgba(13,25,48,.58)!important;
  backdrop-filter:blur(7px);
}
.p1-cheer-scene {
  display:grid!important;
  place-items:center!important;
  min-height:0!important;
  padding:8px!important;
  overflow:visible!important;
  background:transparent!important;
}
.p1-cheer-hearts { z-index:0!important; }
.p1-cheer-confetti { z-index:1!important; }
.p1-cheer-message {
  z-index:2!important;
  width:min(100%,410px)!important;
  padding:27px 50px 23px!important;
  border:1px solid rgba(255,255,255,.94)!important;
  border-radius:30px 18px 30px 18px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(224,235,255,.58),transparent 35%),
    linear-gradient(145deg,#fff 0%,#fbfcff 68%,#fffaf6 100%)!important;
  box-shadow:0 22px 56px rgba(11,30,66,.2),inset 0 1px 0 #fff!important;
  backdrop-filter:blur(12px)!important;
}
/* Small hand-drawn encouragement marks sit in the card margins, away from the words. */
.p1-cheer-message::before,
.p1-cheer-message::after {
  content:"";
  position:absolute;
  top:48%;
  width:36px;
  height:60px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.92;
  pointer-events:none;
}
.p1-cheer-message::before {
  left:8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 72' fill='none'%3E%3Cpath d='M10 27c8-12 17-11 27-23' stroke='%235889D8' stroke-width='2' stroke-linecap='round' stroke-dasharray='1 5'/%3E%3Cpath d='m17 40 3.2 8.2 8.8 3.2-8.8 3.2L17 63l-3.2-8.4L5 51.4l8.8-3.2L17 40Z' fill='%23FFF3D2' stroke='%23D6A340' stroke-width='1.7' stroke-linejoin='round'/%3E%3Ccircle cx='42' cy='43' r='3.5' fill='%23E596AE'/%3E%3C/svg%3E");
  animation:p1-cheer-side-left 3.1s ease-in-out infinite;
}
.p1-cheer-message::after {
  right:8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 72' fill='none'%3E%3Cpath d='M8 61h36M12 55l9-10 8 6 13-20' stroke='%234C83D7' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M34 31h8v8' stroke='%234C83D7' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m17 5 2.5 5.5L25 13l-5.5 2.5L17 21l-2.5-5.5L9 13l5.5-2.5L17 5Z' fill='%23FCEBC3' stroke='%23D6A340' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation:p1-cheer-side-right 3.4s ease-in-out .2s infinite;
}
.p1-cheer-symbol { display:none!important; }
.p1-cheer-label {
  position:relative;
  z-index:1;
  padding:6px 13px!important;
  border:1px solid #e0e9f8!important;
  background:linear-gradient(100deg,#eef4ff,#fff6f7)!important;
  color:#31599c!important;
  font-size:11px!important;
}
.p1-cheer-message h2 {
  position:relative;
  z-index:1;
  max-width:330px!important;
  margin:13px auto 9px!important;
  color:#203a67!important;
  font-size:clamp(18px,4.1vw,22px)!important;
  font-weight:800!important;
  line-height:1.7!important;
}
.p1-cheer-message p {
  position:relative;
  z-index:1;
  max-width:320px;
  margin:0 auto 15px!important;
  color:#718097!important;
  font-size:12px!important;
  line-height:1.7!important;
}
.p1-cheer-message .p1-btn {
  position:relative;
  z-index:1;
  min-width:195px;
  min-height:44px!important;
  padding:10px 22px!important;
  border:0!important;
  border-radius:13px!important;
  outline:0!important;
  background:linear-gradient(110deg,#1768dc,#3158c2 70%,#6250ba)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:0 8px 19px rgba(40,88,190,.2)!important;
}
.p1-cheer-dismiss {
  z-index:3!important;
  top:11px!important;
  left:11px!important;
  width:32px!important;
  height:32px!important;
  border:1px solid #e4eaf3!important;
  background:#f7f9fd!important;
  color:#5a6a80!important;
}
.p1-cheer-confetti i { animation-duration:2.05s!important; }
body.dark .p1-cheer-dialog::backdrop { background:rgba(2,9,21,.72)!important; }
body.dark .p1-cheer-message {
  border-color:#3a4c68!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(59,86,132,.28),transparent 35%),
    linear-gradient(145deg,#1b2c45 0%,#1b2b43 68%,#28253d 100%)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.dark .p1-cheer-label {
  border-color:#394d6c!important;
  background:linear-gradient(100deg,#223858,#3b2b49)!important;
  color:#c6d9fa!important;
}
body.dark .p1-cheer-message h2 { color:#eef4ff!important; }
body.dark .p1-cheer-message p { color:#b5c3d9!important; }
body.dark .p1-cheer-dismiss {
  border-color:#40516b!important;
  background:#263852!important;
  color:#e0e8f5!important;
}
@keyframes p1-cheer-side-left {
  0%,100% { transform:translateY(0) rotate(-3deg); }
  50% { transform:translateY(-5px) rotate(2deg); }
}
@keyframes p1-cheer-side-right {
  0%,100% { transform:translateY(0) rotate(2deg); }
  50% { transform:translateY(5px) rotate(-3deg); }
}
@media(max-width:560px) {
  .p1-cheer-dialog { width:calc(100vw - 38px)!important; max-height:calc(100dvh - 24px)!important; }
  .p1-cheer-scene { padding:5px!important; }
  .p1-cheer-message {
    width:100%!important;
    padding:25px 37px 21px!important;
    border-radius:26px 15px 26px 15px!important;
  }
  .p1-cheer-message::before,.p1-cheer-message::after {
    top:49%;
    width:27px;
    height:49px;
  }
  .p1-cheer-message::before { left:5px; }
  .p1-cheer-message::after { right:5px; }
  .p1-cheer-message h2 {
    max-width:290px!important;
    margin-top:11px!important;
    font-size:17px!important;
    line-height:1.75!important;
  }
  .p1-cheer-message p { font-size:11px!important; margin-bottom:13px!important; }
  .p1-cheer-message .p1-btn { min-width:178px; min-height:42px!important; }
}
@media(prefers-reduced-motion:reduce) {
  .p1-cheer-message::before,.p1-cheer-message::after { animation:none!important; }
}


/* Full-viewport celebration: independently scattered hearts and uplifting sparkles. */
.p1-cheer-dialog { overflow:visible!important; }
.p1-cheer-scene { position:relative!important; overflow:visible!important; }
.p1-cheer-hearts {
  position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important;
  overflow:hidden!important; pointer-events:none!important; z-index:0!important;
}
.p1-cheer-float {
  position:absolute!important; left:var(--float-x)!important; top:var(--float-y)!important;
  bottom:auto!important; z-index:0!important; display:block!important;
  width:auto!important; height:auto!important; padding:0!important; margin:0!important;
  font-size:var(--float-size)!important; line-height:1!important;
  opacity:0; white-space:nowrap!important; user-select:none!important;
  filter:drop-shadow(0 3px 9px rgba(38,66,125,.19))!important;
  animation:p1-cheer-screen-float var(--float-duration) cubic-bezier(.2,.65,.3,1) var(--float-delay) both!important;
}
.p1-cheer-motif { filter:drop-shadow(0 2px 8px rgba(221,163,54,.24))!important; }
.p1-cheer-message { z-index:2!important; }
.p1-cheer-confetti { z-index:1!important; }
@keyframes p1-cheer-screen-float {
  0% { opacity:0; transform:translate3d(0,0,0) scale(.48) rotate(0); }
  12% { opacity:.9; }
  72% { opacity:.85; }
  100% { opacity:0; transform:translate3d(var(--float-dx),var(--float-dy),0) scale(1.12) rotate(var(--float-turn)); }
}
@media(prefers-reduced-motion:reduce) {
  .p1-cheer-float { animation:none!important; opacity:.22!important; }
}


/* Keep the celebration layer visible across the viewport for the full open-dialog time. */
.p1-cheer-hearts {
  position:absolute!important;
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  width:100vw!important;
  height:100dvh!important;
  overflow:hidden!important;
  transform:translate(-50%,-50%)!important;
  pointer-events:none!important;
  z-index:0!important;
}
.p1-cheer-float {
  animation-iteration-count:infinite!important;
  animation-duration:var(--float-duration)!important;
}
.p1-cheer-dialog,.p1-cheer-scene { overflow:visible!important; }
@media(prefers-reduced-motion:reduce) {
  .p1-cheer-float { animation:none!important; opacity:.32!important; }
}


/* Keep visible confetti falling around the cheer card until it closes. */
.p1-cheer-rain {
  position:absolute!important;
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:100vw!important;
  height:100dvh!important;
  overflow:hidden!important;
  pointer-events:none!important;
  z-index:1!important;
}
.p1-cheer-rain i {
  position:absolute!important;
  top:var(--rain-start)!important;
  left:var(--rain-x)!important;
  width:var(--rain-w)!important;
  height:var(--rain-h)!important;
  border-radius:var(--rain-shape)!important;
  background:var(--rain-color)!important;
  opacity:0;
  box-shadow:0 1px 2px rgba(21,39,72,.14);
  animation:p1-cheer-paper-rain var(--rain-duration) linear var(--rain-delay) infinite!important;
}
@keyframes p1-cheer-paper-rain {
  0% { opacity:0; transform:translate3d(0,-8vh,0) rotate(0deg); }
  8% { opacity:.94; }
  88% { opacity:.86; }
  100% { opacity:0; transform:translate3d(var(--rain-dx),var(--rain-fall),0) rotate(var(--rain-turn)); }
}
@media(prefers-reduced-motion:reduce) {
  .p1-cheer-rain i {
    display:block!important;
    animation:none!important;
    opacity:.78!important;
    top:var(--rain-static-y)!important;
    transform:rotate(var(--rain-turn))!important;
  }
}


/* /parent-interface-fix.css */
/* Parent-only banner repair: keep the copy and its actions in normal flow. */
.id-parent-dashboard .st-hero.parent {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 320px !important;
  height: auto !important;
  overflow: hidden !important;
}
.id-parent-dashboard .st-hero.parent .st-hero-copy {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: min(68%, 640px) !important;
  min-height: 0 !important;
  margin: 0 18px 0 auto !important;
  padding: 20px 22px !important;
}
.id-parent-dashboard .st-hero.parent .st-hero-actions {
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px 0 0 !important;
  direction: rtl !important;
}
.id-parent-dashboard .st-hero.parent .st-hero-actions > button:not(.p1-cheer-trigger) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-height: 46px !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.id-parent-dashboard .st-hero.parent .st-hero-actions > button:first-child:not(.p1-cheer-trigger) {
  flex-grow: 1.15 !important;
}
.id-parent-dashboard .st-hero.parent .st-hero-actions > .p1-cheer-trigger {
  box-sizing: border-box !important;
  position: relative !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  padding: 3px !important;
  font-size: 7px !important;
  line-height: 1.05 !important;
}
@media (max-width: 700px) {
  .id-parent-dashboard .st-hero.parent {
    min-height: 320px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-copy {
    width: min(76%, 390px) !important;
    margin: 0 9px 0 auto !important;
    padding: 12px 10px !important;
    gap: 2px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-copy > h1 {
    font-size: clamp(15px, 4.2vw, 18px) !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-copy > h2 {
    font-size: clamp(20px, 5.4vw, 24px) !important;
    line-height: 1.3 !important;
    margin: 3px 0 4px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-copy > p {
    font-size: 9px !important;
    line-height: 1.55 !important;
    margin: 1px 0 5px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-actions {
    gap: 5px !important;
    margin-top: 3px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-actions > button:not(.p1-cheer-trigger) {
    min-height: 38px !important;
    padding-inline: 5px !important;
    font-size: 9px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-actions > .p1-cheer-trigger {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 6.5px !important;
  }
}
@media (max-width: 360px) {
  .id-parent-dashboard .st-hero.parent .st-hero-copy {
    width: 80% !important;
    padding-inline: 8px !important;
  }
  .id-parent-dashboard .st-hero.parent .st-hero-actions > button:not(.p1-cheer-trigger) {
    padding-inline: 3px !important;
    font-size: 8px !important;
  }
}


/* /admin-classes.css */
/* Admin-only mobile banner and class roster improvements. */
body.p1-shell .st-hero.admin {
  min-height: 390px !important;
}
body.p1-shell .p1-admin-class-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.p1-shell .p1-admin-students-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.p1-shell .p1-admin-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: min(100%, 250px);
  color: var(--p1-muted);
  font-size: 11px;
  font-weight: 700;
}
body.p1-shell .p1-admin-filter > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
body.p1-shell .p1-admin-filter > span .p1-icon {
  width: 17px;
  height: 17px;
  color: var(--p1-blue);
}
body.p1-shell .p1-admin-filter select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--p1-line);
  border-radius: 12px;
  background: var(--p1-surface);
  color: var(--p1-ink);
  font: inherit;
  font-size: 12px;
}
body.p1-shell .p1-admin-students-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 15px;
}
body.p1-shell .p1-admin-students-toolbar .p1-student-search {
  flex: 1 1 220px;
  margin: 0;
}
body.p1-shell .p1-admin-student-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 16px;
}
body.p1-shell .p1-admin-student-card .p1-avatar {
  grid-row: 1;
}
body.p1-shell .p1-admin-student-card .p1-student-name {
  min-width: 0;
}
body.p1-shell .p1-admin-student-card .p1-student-name h3 {
  display: block;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
body.p1-shell .p1-admin-student-card .p1-student-name > small {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.p1-shell .p1-admin-student-card .p1-student-teachers {
  color: var(--p1-blue);
  font-weight: 700;
}
body.p1-shell .p1-admin-student-card .p1-student-numbers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--p1-line);
  border-bottom: 1px solid var(--p1-line);
}
body.p1-shell .p1-admin-student-card .p1-student-numbers > span {
  min-width: 0;
  padding: 6px 3px;
  border-radius: 10px;
  background: var(--p1-bg);
  line-height: 1.6;
}
body.p1-shell .p1-admin-student-card .p1-student-numbers b {
  font-size: 18px;
}
body.p1-shell .p1-admin-student-card > button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  justify-content: center;
}
body.p1-shell .p1-admin-filter-empty {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px dashed var(--p1-line);
  border-radius: 13px;
  color: var(--p1-muted);
  font-size: 12px;
  text-align: center;
}
body.p1-shell .p1-admin-filter-empty[hidden] { display: none !important; }
@media (max-width: 1180px) {
  body.p1-shell .p1-admin-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  body.p1-shell .st-hero.admin {
    height: 258px !important;
    min-height: 258px !important;
    max-height: 258px !important;
    padding-block: 0 !important;
    overflow: hidden !important;
  }
  body.p1-shell .st-hero.admin > .st-hero-copy {
    width: min(76%, 350px) !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 8px 42px auto !important;
    padding: 12px 10px 8px !important;
    transform: none !important;
    overflow: visible !important;
  }
  body.p1-shell .st-hero.admin > .st-hero-actions {
    right: 8px !important;
    left: 8px !important;
    bottom: 8px !important;
  }
  body.p1-shell .p1-admin-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-card {
    min-width: 0;
    padding: 13px 11px;
    border-radius: 16px;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-card h2 {
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-card > strong {
    font-size: 21px;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-stats {
    gap: 5px;
    flex-wrap: wrap;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-stats span {
    font-size: 9px;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-leader {
    font-size: 9px;
    line-height: 1.7;
  }
  body.p1-shell .p1-admin-students-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.p1-shell .p1-admin-student-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 10px;
    border-radius: 15px;
  }
  body.p1-shell .p1-admin-student-card .p1-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 15px;
  }
  body.p1-shell .p1-admin-student-card .p1-student-name h3 {
    font-size: 11px;
    line-height: 1.6;
  }
  body.p1-shell .p1-admin-student-card .p1-pill {
    font-size: 9px;
    padding: 3px 6px;
  }
  body.p1-shell .p1-admin-student-card .p1-student-name > small {
    font-size: 9px;
  }
  body.p1-shell .p1-admin-student-card .p1-student-numbers {
    gap: 6px;
  }
  body.p1-shell .p1-admin-student-card .p1-student-numbers > span {
    font-size: 8px;
  }
  body.p1-shell .p1-admin-student-card .p1-student-numbers b {
    font-size: 16px;
  }
  body.p1-shell .p1-admin-student-card > button {
    font-size: 9px;
    padding-inline: 6px;
  }
  body.p1-shell .p1-admin-students-toolbar {
    align-items: stretch;
  }
  body.p1-shell .p1-admin-filter {
    flex: 1 1 160px;
    min-width: min(100%, 160px);
  }
}
@media (max-width: 360px) {
  body.p1-shell .st-hero.admin {
    height: 274px !important;
    min-height: 274px !important;
    max-height: 274px !important;
  }
  body.p1-shell .st-hero.admin > .st-hero-copy {
    width: 82% !important;
    margin-right: 6px !important;
  }
  body.p1-shell .p1-admin-class-grid,
  body.p1-shell .p1-admin-students-grid {
    gap: 8px !important;
  }
  body.p1-shell .p1-admin-class-grid .p1-class-card {
    padding: 11px 8px;
  }
}


/* /staff-sections-polish.css */
/* Admin and teacher mobile section cards + dependable in-dialog scrolling */
@media (max-width: 700px) {
  body.p1-staff-shell #p1SectionDialog.p1-section-dialog[open] {
    display: block !important;
    width: min(94vw, 430px) !important;
    height: auto !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }

  body.p1-staff-shell #p1SectionDialog .p1-section-menu-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 9px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-menu-head h2 {
    font-size: 19px;
    line-height: 1.55;
    margin: 2px 0;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-menu-head p {
    font-size: 10px;
    line-height: 1.65;
    margin-top: 2px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-groups {
    display: block;
    overflow: visible !important;
    max-height: none !important;
    padding-bottom: 10px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-group {
    gap: 6px;
    margin-bottom: 10px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-tile {
    min-height: 54px;
    padding: 8px 9px;
    border-radius: 12px;
    gap: 7px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-tile .p1-square {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-tile .p1-square .p1-icon {
    width: 17px;
    height: 17px;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-tile b {
    font-size: 9.5px;
    line-height: 1.5;
  }
  body.p1-staff-shell #p1SectionDialog .p1-section-tile > .p1-icon {
    width: 14px;
    height: 14px;
  }
  body.p1-staff-shell #p1SectionDialog .ac-menu-account {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
  }
}


/* /desktop-sidebar-sections.css */
/* Desktop sidebar sections: reuse the mobile card treatment without changing mobile rules. */
@media (min-width: 981px) {
  .rf-shell .sidebar.rf-sidebar .side-brand.id-brand {
    min-height: 76px !important;
    padding: 11px 7px 9px !important;
    gap: 8px !important;
  }

  .rf-shell .sidebar.rf-sidebar .side-brand img.id-brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .rf-shell .rf-sidebar .side-brand .id-brand-copy b {
    font-size: 23px;
  }

  .rf-shell .rf-sidebar .side-brand .id-brand-copy small {
    font-size: 10px;
  }

  .rf-shell .sidebar.rf-sidebar {
    width: 270px;
    min-width: 270px;
  }

  .rf-shell .rf-sidebar .rf-navigation {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 1px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 2px 9px;
    scrollbar-width: thin;
    scrollbar-color: #c6d3e7 transparent;
  }

  .rf-shell .rf-sidebar .rf-nav-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin: 0 0 5px;
    padding: 6px 9px;
    border: 1px solid #cbdcf6;
    border-radius: 15px;
    background: #eaf2ff;
    color: #075fdc;
    font-size: 10px;
    font-weight: 800;
    box-sizing: border-box;
  }

  .rf-shell .rf-sidebar .rf-nav-home .nav-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    background: #dceaff;
    color: #0866ed;
  }

  .rf-shell .rf-sidebar .rf-nav-group {
    min-width: 0;
    margin: 6px 0 0;
  }

  .rf-shell .rf-sidebar .rf-nav-group > h2 {
    margin: 0 7px 5px;
    color: #7890b0;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.7;
  }

  .rf-shell .rf-sidebar .rf-nav-quick,
  .rf-shell .rf-sidebar .rf-nav-links {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 8px 8px;
    gap: 6px;
    border: 1px solid #dfe8f5;
    border-radius: 13px;
    background: #f5f8fd;
    color: #102651;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    transition: background .16s, border-color .16s, box-shadow .16s, transform .16s;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item .nav-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    background: #eaf1ff;
    color: #1768d7;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item:hover {
    transform: translateY(-1px);
    border-color: #b9cff0;
    background: #eef4ff;
    box-shadow: 0 7px 17px #173a720d;
    color: #075fdc;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item.active {
    border-color: #3b83ed;
    background: #eaf2ff;
    color: #075fdc;
    box-shadow: 0 4px 12px #1768d71a;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item.active .nav-icon {
    background: #dceaff;
    color: #0866ed;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-home {
    border-color: #375784;
    background: #1c3459;
    color: #9bc3ff;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-home .nav-icon,
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item .nav-icon {
    background: #243c60;
    color: #9fc7ff;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group > h2 {
    color: #8ca2c2;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item {
    border-color: #2a3b55;
    background: #16273e;
    color: #c2d1e6;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:hover,
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item.active {
    border-color: #375784;
    background: #1c3459;
    color: #9bc3ff;
  }

  .rf-shell .rf-sidebar .rf-navigation .nav-item:focus-visible {
    outline: 3px solid #e4ad39;
    outline-offset: 2px;
  }
}

@media (min-width: 981px) {
  .rf-shell .rf-sidebar .rf-nav-group .nav-item {
    position: relative;
    padding-inline-start: 26px;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item::after {
    content: "←";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8da3;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item[data-page="monthlyReviews"] .nav-icon,
  .rf-shell .rf-sidebar .rf-nav-group .nav-item[data-page="reviewMistakes"] .nav-icon {
    background: #fff2d9;
    color: #cb8b00;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item[data-page="onlineClasses"] .nav-icon {
    background: #e3f5f2;
    color: #149e91;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item::after {
    color: #a7bad4;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item[data-page="monthlyReviews"] .nav-icon,
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item[data-page="reviewMistakes"] .nav-icon {
    background: #413629;
    color: #f2cc83;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item[data-page="onlineClasses"] .nav-icon {
    background: #203f3f;
    color: #81d5c5;
  }
}

/* Quiet, consistent desktop card palette; no decorative arrows. */
@media (min-width: 981px) {
  .rf-shell .rf-sidebar .rf-nav-home {
    border-color: #e3eaf4;
    background: #fff;
    color: #17305a;
    box-shadow: 0 3px 10px rgba(20, 45, 86, .035);
  }

  .rf-shell .rf-sidebar .rf-nav-home .nav-icon,
  .rf-shell .rf-sidebar .rf-nav-group .nav-item .nav-icon {
    background: #eff5ff;
    color: #1768d7;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item {
    padding-inline-start: 8px;
    border-color: #e4eaf3;
    background: #fff;
    color: #193251;
    box-shadow: 0 3px 10px rgba(20, 45, 86, .035);
    transition: background .16s, border-color .16s, box-shadow .16s, transform .16s;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item::after {
    content: none;
    display: none;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item:hover {
    transform: translateY(-1px);
    border-color: #c8d8ed;
    background: #f8faff;
    color: #17305a;
    box-shadow: 0 6px 14px rgba(20, 45, 86, .07);
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item.active {
    border-color: #8fb5ed;
    background: #f3f7ff;
    color: #075fdc;
    box-shadow: inset 3px 0 0 #2875df, 0 4px 12px rgba(23, 104, 215, .08);
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item.active .nav-icon {
    background: #e8f0ff;
    color: #1768d7;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-home {
    border-color: #324765;
    background: #182a43;
    color: #d3e1f5;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-home .nav-icon,
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item .nav-icon {
    background: #203754;
    color: #9fc7ff;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item {
    border-color: #2c3e57;
    background: #17283f;
    color: #c7d5e9;
    box-shadow: none;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:hover,
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item.active {
    border-color: #42618c;
    background: #1c3454;
    color: #b7d2ff;
  }
}


/* Desktop: one continuous card grid, without section headers or separators. */
@media (min-width: 981px) {
  .rf-shell .rf-sidebar .rf-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-content: start;
    align-items: stretch;
    gap: 7px;
    padding: 0 2px 9px;
  }

  .rf-shell .rf-sidebar .rf-nav-home {
    grid-column: 1 / -1;
    min-height: 42px;
    margin: 0 0 1px;
    font-size: 11px;
    font-weight: 650;
  }

  .rf-shell .rf-sidebar .rf-nav-group {
    display: contents;
  }

  .rf-shell .rf-sidebar .rf-nav-group > h2 {
    display: none;
  }

  .rf-shell .rf-sidebar .rf-nav-quick,
  .rf-shell .rf-sidebar .rf-nav-links {
    display: contents;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item {
    min-height: 72px;
    padding: 8px;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: normal;
    word-break: normal;
  }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item .nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .rf-shell .rf-sidebar .rf-navigation .nav-item:focus-visible {
    outline-offset: 1px;
  }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item {
    font-weight: 600;
  }
}


/* Subtle color families make each desktop sidebar destination easier to scan. */
@media (min-width: 981px) {
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"]) { --nav-bg:#f1f6ff; --nav-border:#dbe8ff; --nav-strong:#b9d0f4; --nav-text:#244c82; --nav-active:#e8f0ff; --nav-icon-bg:#e3edff; --nav-icon-ink:#2469ca; }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"]) { --nav-bg:#eef9f6; --nav-border:#d6eee7; --nav-strong:#a9ddd0; --nav-text:#155a54; --nav-active:#e3f5f1; --nav-icon-bg:#def3ed; --nav-icon-ink:#168575; }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"]) { --nav-bg:#fff8ec; --nav-border:#f3e6c8; --nav-strong:#ecd39d; --nav-text:#6f5019; --nav-active:#fff4df; --nav-icon-bg:#fff0d3; --nav-icon-ink:#b87808; }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"]) { --nav-bg:#f6f2ff; --nav-border:#e6ddfb; --nav-strong:#d0c1f1; --nav-text:#51417c; --nav-active:#f1ebff; --nav-icon-bg:#eee7ff; --nav-icon-ink:#7954c1; }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="news"],[data-page="forum"],[data-page="teacherStart"]) { --nav-bg:#eff8fb; --nav-border:#d9edf2; --nav-strong:#b6dce5; --nav-text:#235b67; --nav-active:#e5f4f7; --nav-icon-bg:#e1f3f6; --nav-icon-ink:#358e9c; }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) { --nav-bg:#fff3f4; --nav-border:#f3dbdf; --nav-strong:#ecc1ca; --nav-text:#743d4e; --nav-active:#ffedef; --nav-icon-bg:#ffe7ea; --nav-icon-ink:#c95770; }

  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) { background:var(--nav-bg); border-color:var(--nav-border); color:var(--nav-text); }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) .nav-icon { background:var(--nav-icon-bg); color:var(--nav-icon-ink); }
  .rf-shell .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]):is(:hover,:focus-visible) { border-color:var(--nav-strong); }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"]) { --nav-bg:#1a2d49; --nav-border:#304968; --nav-strong:#476b9a; --nav-text:#c5d8f5; --nav-active:#213b60; --nav-icon-bg:#24446e; --nav-icon-ink:#a8caff; }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"]) { --nav-bg:#183437; --nav-border:#2b5759; --nav-strong:#3c7774; --nav-text:#c2e8e1; --nav-active:#204548; --nav-icon-bg:#25534f; --nav-icon-ink:#8de0d0; }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"]) { --nav-bg:#352c20; --nav-border:#5b4b31; --nav-strong:#826c43; --nav-text:#f0ddae; --nav-active:#453824; --nav-icon-bg:#554329; --nav-icon-ink:#f5ce78; }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"]) { --nav-bg:#2b2540; --nav-border:#4a3e66; --nav-strong:#685995; --nav-text:#d9cdf7; --nav-active:#3a2f52; --nav-icon-bg:#493b68; --nav-icon-ink:#d0baff; }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="news"],[data-page="forum"],[data-page="teacherStart"]) { --nav-bg:#1c303d; --nav-border:#345666; --nav-strong:#4d7181; --nav-text:#c8e5ee; --nav-active:#25404d; --nav-icon-bg:#2b4f61; --nav-icon-ink:#9ce0ed; }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) { --nav-bg:#382630; --nav-border:#5c3d49; --nav-strong:#805362; --nav-text:#f0cbd4; --nav-active:#49303c; --nav-icon-bg:#5c3545; --nav-icon-ink:#ffb9c8; }

  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) { background:var(--nav-bg); border-color:var(--nav-border); color:var(--nav-text); }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) .nav-icon { background:var(--nav-icon-bg); color:var(--nav-icon-ink); }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]):is(:hover,:focus-visible) { border-color:var(--nav-strong); }
  .rf-shell.dark .rf-sidebar .rf-nav-group .nav-item.active:is([data-page="courses"],[data-page="assessments"],[data-page="classes"],[data-page="submissions"],[data-page="academicPlan"],[data-page="studyWeek"],[data-page="questionBank"],[data-page="onlineClasses"],[data-page="attendance"],[data-page="studentFollowup"],[data-page="assistant"],[data-page="monthlyReviews"],[data-page="reviewMistakes"],[data-page="reviewPolicy"],[data-page="rewards"],[data-page="teacherBilling"],[data-page="payments"],[data-page="progress"],[data-page="grades"],[data-page="academicResults"],[data-page="weeklyReport"],[data-page="learningInsights"],[data-page="learningReport"],[data-page="news"],[data-page="forum"],[data-page="teacherStart"],[data-page="users"],[data-page="teachers"],[data-page="settings"],[data-page="security"],[data-page="approvals"],[data-page="activityLog"],[data-page="phaseSettings"],[data-page="launchReadiness"]) { background:var(--nav-active); color:var(--nav-text); border-color:var(--nav-strong); }
}


/* /compact-role-welcome-cards.css */
/* Compact welcome banners for every signed-in role; mobile is intentionally untouched. */
@media (min-width: 981px) {
  body.p1-shell .st-hero {
    height: auto !important;
    min-height: 270px !important;
    max-height: 320px !important;
    margin-bottom: 10px !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy {
    min-height: 0 !important;
    padding: 12px 20px 62px !important;
    margin: 8px 14px 8px auto !important;
    gap: 1px !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > h1 {
    margin: 1px 0 0 !important;
    font-size: clamp(18px, 1.55vw, 22px) !important;
    line-height: 1.35 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(24px, 2vw, 28px) !important;
    line-height: 1.24 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > p {
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) > .st-hero-actions {
    bottom: 12px !important;
  }

  body.p1-shell .tn-dashboard .tn-hero {
    height: auto !important;
    min-height: 300px !important;
    max-height: 340px !important;
    margin-bottom: 10px !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy {
    min-height: 0 !important;
    padding: 12px 24px 66px !important;
    margin: 8px 18px 8px auto !important;
    gap: 2px !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(23px, 1.8vw, 30px) !important;
    line-height: 1.3 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    margin: 3px 0 4px !important;
    font-size: clamp(26px, 2.1vw, 34px) !important;
    line-height: 1.22 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    margin: 0 0 4px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions {
    bottom: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.p1-shell .st-hero,
  body.p1-shell .tn-dashboard .tn-hero {
    scroll-behavior: auto;
  }
}


/* Parent desktop banner has its own flow-based layout; keep it equally compact. */
@media (min-width: 981px) {
  .id-parent-dashboard .st-hero.parent {
    height: auto !important;
    min-height: 270px !important;
    max-height: 320px !important;
    margin-bottom: 10px !important;
    padding-block: 10px !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-copy {
    min-height: 0 !important;
    margin: 0 14px 0 auto !important;
    padding: 12px 18px !important;
    gap: 1px !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-copy > h1 {
    margin: 1px 0 0 !important;
    font-size: clamp(18px, 1.55vw, 22px) !important;
    line-height: 1.35 !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-copy > h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(24px, 2vw, 28px) !important;
    line-height: 1.24 !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-copy > p {
    margin: 0 0 4px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-actions {
    gap: 6px !important;
    margin-top: 2px !important;
  }

  .id-parent-dashboard .st-hero.parent .st-hero-actions > button:not(.p1-cheer-trigger) {
    min-height: 40px !important;
    max-height: 42px !important;
    font-size: 10px !important;
  }
}


/* Keep role welcome copy readable and bring the action row directly beneath it. */
@media (min-width: 981px) {
  body.p1-shell .st-hero:is(.student, .admin),
  body.p1-shell .tn-dashboard .tn-hero,
  .id-parent-dashboard .st-hero.parent {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 7px !important;
    height: auto !important;
    min-height: 300px !important;
    max-height: none !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy,
  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy,
  .id-parent-dashboard .st-hero.parent .st-hero-copy {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 680px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    text-align: right !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > h1,
  .id-parent-dashboard .st-hero.parent .st-hero-copy > h1 {
    margin: 0 0 1px !important;
    font-size: clamp(23px, 1.75vw, 30px) !important;
    line-height: 1.4 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > h2,
  .id-parent-dashboard .st-hero.parent .st-hero-copy > h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(32px, 2.5vw, 38px) !important;
    line-height: 1.26 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) .st-hero-copy > p,
  .id-parent-dashboard .st-hero.parent .st-hero-copy > p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) > .st-hero-actions,
  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions,
  .id-parent-dashboard .st-hero.parent > .st-hero-actions {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: stretch !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) > .st-hero-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) > .st-hero-actions > button:not(.p1-cheer-trigger),
  .id-parent-dashboard .st-hero.parent > .st-hero-actions > button:not(.p1-cheer-trigger) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 44px !important;
    font-size: 11px !important;
  }

  body.p1-shell .st-hero:is(.student, .admin) > .st-hero-actions > .p1-cheer-trigger,
  .id-parent-dashboard .st-hero.parent > .st-hero-actions > .p1-cheer-trigger {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1 {
    font-size: clamp(25px, 1.9vw, 32px) !important;
    line-height: 1.4 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(32px, 2.45vw, 40px) !important;
    line-height: 1.24 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  body.p1-shell .tn-dashboard .tn-hero > .tn-hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 50px !important;
    align-items: center !important;
    gap: 8px !important;
  }
}


/* Reveal more of the top of each desktop role banner image. */
@media (min-width: 981px) {
  body.p1-shell .st-hero:is(.student, .admin) picture img,
  body.p1-shell .st-hero:is(.student, .admin) > img,
  body.p1-shell .tn-dashboard .tn-hero picture img,
  body.p1-shell .tn-dashboard .tn-hero > img,
  .id-parent-dashboard .st-hero.parent picture img,
  .id-parent-dashboard .st-hero.parent > img {
    object-position: left 38% !important;
  }
}


/* Override legacy crop rules with higher specificity on desktop. */
@media (min-width: 981px) {
  html body.p1-shell .st-hero.admin picture img,
  html body.p1-shell .st-hero.admin > img,
  html body.p1-shell .st-hero.student picture img,
  html body.p1-shell .st-hero.student > img,
  html body.p1-shell .tn-dashboard .tn-hero picture img,
  html body.p1-shell .tn-dashboard .tn-hero > img,
  html body .id-parent-dashboard .st-hero.parent picture img,
  html body .id-parent-dashboard .st-hero.parent > img,
  html body.dark.p1-shell .st-hero.admin picture img,
  html body.dark.p1-shell .st-hero.admin > img,
  html body.dark.p1-shell .st-hero.student picture img,
  html body.dark.p1-shell .st-hero.student > img,
  html body.dark.p1-shell .tn-dashboard .tn-hero picture img,
  html body.dark.p1-shell .tn-dashboard .tn-hero > img {
    object-position: left 38% !important;
  }
}


/* Add a little vertical room so the lower edge of the image remains visible. */
@media (min-width: 981px) {
  html body.p1-shell .st-hero.admin,
  html body.p1-shell .st-hero.student {
    min-height: 410px !important;
  }

  html body.p1-shell .tn-dashboard .tn-hero {
    min-height: 380px !important;
  }

  html body .id-parent-dashboard .st-hero.parent {
    min-height: 340px !important;
  }
}


/* Distribute role banner copy and frame its key messages in soft text panels. */
@media (min-width: 981px) {
  html body.p1-shell .st-hero.admin,
  html body.p1-shell .st-hero.student,
  html body.p1-shell .tn-dashboard .tn-hero,
  html body .id-parent-dashboard .st-hero.parent {
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    row-gap: 12px !important;
    padding: 20px 22px !important;
  }

  html body.p1-shell .st-hero.admin .st-hero-copy,
  html body.p1-shell .st-hero.student .st-hero-copy,
  html body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy,
  html body .id-parent-dashboard .st-hero.parent .st-hero-copy {
    align-self: stretch !important;
    height: 100% !important;
    justify-content: space-evenly !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.58) !important;
    box-shadow: 0 8px 24px rgba(23,52,92,.07) !important;
    backdrop-filter: blur(5px);
  }

  html body.p1-shell .st-hero.admin .st-hero-copy > h1,
  html body.p1-shell .st-hero.student .st-hero-copy > h1,
  html body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1,
  html body .id-parent-dashboard .st-hero.parent .st-hero-copy > h1 {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px 11px !important;
    border-right: 3px solid #8eafe0 !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.78) !important;
  }

  html body.p1-shell .st-hero.admin .st-hero-copy > h2,
  html body.p1-shell .st-hero.student .st-hero-copy > h2,
  html body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2,
  html body .id-parent-dashboard .st-hero.parent .st-hero-copy > h2 {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border-right: 4px solid #1872db !important;
    border-radius: 14px !important;
    background: rgba(232,241,255,.88) !important;
  }

  html body.p1-shell .st-hero.admin .st-hero-copy > p,
  html body.p1-shell .st-hero.student .st-hero-copy > p,
  html body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p,
  html body .id-parent-dashboard .st-hero.parent .st-hero-copy > p {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid #e0e9f5 !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.82) !important;
  }

  html body.dark.p1-shell .st-hero.admin .st-hero-copy,
  html body.dark.p1-shell .st-hero.student .st-hero-copy,
  html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy,
  html body.dark .id-parent-dashboard .st-hero.parent .st-hero-copy {
    border-color: rgba(91,119,151,.75) !important;
    background: rgba(17,32,51,.68) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.2) !important;
  }

  html body.dark.p1-shell .st-hero.admin .st-hero-copy > h1,
  html body.dark.p1-shell .st-hero.student .st-hero-copy > h1,
  html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h1,
  html body.dark .id-parent-dashboard .st-hero.parent .st-hero-copy > h1,
  html body.dark.p1-shell .st-hero.admin .st-hero-copy > h2,
  html body.dark.p1-shell .st-hero.student .st-hero-copy > h2,
  html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > h2,
  html body.dark .id-parent-dashboard .st-hero.parent .st-hero-copy > h2,
  html body.dark.p1-shell .st-hero.admin .st-hero-copy > p,
  html body.dark.p1-shell .st-hero.student .st-hero-copy > p,
  html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy > p,
  html body.dark .id-parent-dashboard .st-hero.parent .st-hero-copy > p {
    border-color: #405875 !important;
    background: rgba(28,47,71,.9) !important;
  }
}


/* Remove only the large white panel behind the banner copy on desktop. */
@media (min-width: 981px) {
  html body.p1-shell .st-hero.admin .st-hero-copy,
  html body.p1-shell .st-hero.student .st-hero-copy,
  html body.p1-shell .tn-dashboard .tn-hero .tn-hero-copy,
  html body .id-parent-dashboard .st-hero.parent .st-hero-copy {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  html body.dark.p1-shell .st-hero.admin .st-hero-copy,
  html body.dark.p1-shell .st-hero.student .st-hero-copy,
  html body.dark.p1-shell .tn-dashboard .tn-hero .tn-hero-copy,
  html body.dark .id-parent-dashboard .st-hero.parent .st-hero-copy {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}


/* /home-cards-compact.css */
/* Compact dashboard shortcuts on phones for every signed-in role. */
@media (max-width: 700px) {
  .tn-teacher-tools,
  .st-tools,
  .st-tools.admin {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 12px 0 16px !important;
  }

  .tn-tool-card {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0;
    min-height: 82px !important;
    height: auto !important;
    max-height: 98px !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }

  .p1-teacher-dashboard .tn-tool-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
  }

  .p1-teacher-dashboard .tn-tool-icon .p1-icon {
    width: 19px;
    height: 19px;
  }

  .p1-teacher-dashboard .tn-tool-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
  }

  .p1-teacher-dashboard .tn-tool-copy b {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .p1-teacher-dashboard .tn-tool-copy small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8.5px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .tn-tool-card > .p1-icon {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    opacity: .55;
  }

  .st-tool {
    box-sizing: border-box;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
    min-height: 78px !important;
    height: auto !important;
    max-height: 98px !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }

  .st-tool-icon {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  .st-tool-icon .p1-icon {
    width: 19px;
    height: 19px;
  }

  .st-tool-copy {
    gap: 2px !important;
  }

  .st-tool-copy b {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .st-tool-copy small {
    font-size: 8.5px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 370px) {
  .tn-tool-card,
  .st-tool {
    gap: 6px !important;
    padding-inline: 8px !important;
  }

  .p1-teacher-dashboard .tn-tool-icon,
  .st-tool-icon {
    flex-basis: 30px;
    width: 30px !important;
    height: 30px !important;
  }

  .p1-teacher-dashboard .tn-tool-copy b,
  .st-tool-copy b {
    font-size: 9.5px !important;
  }
}

/* The student home uses refined path tiles rather than the shared dashboard tools. */
@media (max-width: 700px) {
  .rf-learning-paths {
    margin: 12px 0 0 !important;
  }

  .rf-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .rf-path {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    min-height: 88px !important;
    max-height: 102px !important;
    height: auto !important;
    padding: 9px 10px !important;
    padding-inline-end: 25px !important;
    border-radius: 15px !important;
  }

  .rf-path-symbol {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  .rf-path-symbol .rf-icon {
    width: 19px !important;
    height: 19px !important;
  }

  .rf-path-arrow {
    inset-block-start: 50% !important;
    inset-inline-end: 7px !important;
    transform: translateY(-50%);
  }

  .rf-path-arrow .rf-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .rf-path b,
  .rf-path small {
    grid-column: 2;
    min-width: 0;
    margin: 0 !important;
    line-height: 1.35 !important;
  }

  .rf-path b {
    grid-row: 1;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .rf-path small {
    grid-row: 2;
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .rf-path:before {
    width: 78px !important;
    height: 78px !important;
    border-width: 12px !important;
    inset-block-start: -26px !important;
    inset-inline-end: -28px !important;
    opacity: .35 !important;
  }

  /* Keep the encouragement ticker visible below the sticky mobile header. */
  .rf-shell .rf-ticker {
    position: sticky !important;
    top: var(--rf-sticky-top, 76px) !important;
    z-index: 31 !important;
  }
}

@media (max-width: 370px) {
  .rf-path {
    grid-template-columns: 29px minmax(0, 1fr);
    column-gap: 6px;
    min-height: 84px !important;
    padding-inline-end: 22px !important;
  }

  .rf-path-symbol {
    width: 29px !important;
    height: 29px !important;
  }

  .rf-path b {
    font-size: 9px !important;
  }

  .rf-path small {
    font-size: 7.5px !important;
  }
}

/* Parent home keeps the child progress cards compact as well. */
@media (max-width: 700px) {
  .id-parent-dashboard .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .id-parent-dashboard .stat-card,
  .id-parent-dashboard .quick-card {
    box-sizing: border-box;
    min-height: 78px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .id-parent-dashboard .stat-card h3 {
    margin: 3px 0 1px !important;
    font-size: 19px !important;
  }

  .id-parent-dashboard .stat-icon,
  .id-parent-dashboard .quick-card span {
    font-size: 20px !important;
  }

  .id-parent-dashboard .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}
/* Admin dashboard on phones: keep shortcut labels readable and stop per-letter wrapping. */
@media (max-width: 700px) {
  .st-tools.admin .st-tool {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: initial !important;
    flex-direction: initial !important;
    gap: 9px !important;
    min-height: 78px !important;
    max-height: none !important;
    height: auto !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  .st-tools.admin .st-tool-icon {
    grid-column: 1;
    grid-row: 1;
    flex: none !important;
    width: 34px !important;
    height: 34px !important;
  }

  .st-tools.admin .st-tool-copy {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    gap: 2px !important;
  }

  .st-tools.admin .st-tool-copy b {
    display: block;
    width: 100%;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .st-tools.admin .st-tool-copy small,
  .st-tools.admin .st-tool > .p1-icon {
    display: none !important;
  }
}
