/* Dance Manager V6.145 — shared visual system.
   Presentation only. School colors and all operational functions are preserved. */
:root{
 --dm-ink:#182c35;--dm-muted:#637780;--dm-canvas:#f4f7f8;
 --dm-line:#dde6e9;--dm-coral:#e78461;--dm-radius:16px;
 --bg:var(--dm-canvas);--surface:#fff;--surface-2:#f6f8f9;
 --ink:var(--dm-ink);--muted:var(--dm-muted);--line:var(--dm-line);
 --nav:#182c35;--nav-muted:#b0c1c9;--shadow:0 8px 28px rgba(24,44,53,.045);
}
body{font-family:'DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important;background:var(--dm-canvas)!important;color:var(--dm-ink)!important;line-height:1.5}
body h1,body h2,body h3{color:var(--dm-ink);font-weight:650!important;letter-spacing:-.035em!important;line-height:1.2!important}
body .shell{background:var(--dm-canvas)!important}
body .main{background:transparent!important;min-width:0}
body .content{padding:30px 32px 40px!important;max-width:1600px;margin-inline:auto;min-width:0}
body .sidebar{background:#182c35!important;border-right:0!important;padding:25px 15px!important;box-shadow:none!important}
body .sidebar .dm-brand-name,body .sidebar .dm-brand-name span,body .sidebar .dm-brand-name strong{color:#fff!important}
body .sidebar .dm-brand-tagline{color:#adbec6!important;font-size:11px!important;letter-spacing:.035em!important}
body .sidebar .school-chip{background:#ffffff08!important;border:1px solid #ffffff15!important;border-radius:12px!important;padding:15px 12px!important}
body .school-chip-school-copy strong{font-size:15px!important;line-height:1.35!important;color:#fff!important;overflow-wrap:anywhere}
body .school-chip-school-copy small,body .school-chip span{color:#b0c1c9!important;font-weight:500!important;line-height:1.5!important}
body .nav button{font-size:14px!important;font-weight:500!important;border-radius:9px!important;padding:12px 13px!important;color:#b9cbd3!important;transition:background .18s,color .18s}
body .nav button:hover{background:#ffffff0a!important;color:#fff!important;transform:none!important}
body .nav button.active{background:#ffffff0e!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--primary)!important}
body .user-box{border:1px solid #ffffff15!important;background:#ffffff06!important;border-radius:12px!important}
body .user-box strong{font-size:14px!important;color:#fff!important;font-weight:600!important}
body .user-box small{font-size:12px!important;color:#b3c6ce!important}
body .logout{min-height:40px!important;border:1px solid #ffffff1a!important;background:#ffffff08!important;font-size:13px!important;font-weight:500!important}
body .topbar{height:auto!important;min-height:76px!important;padding:12px 32px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--dm-line)!important;box-shadow:none!important;gap:16px!important}
body .topbar-main,body .topbar-right{min-width:0;flex-wrap:wrap;gap:10px!important}
body .topbar h2{font-size:18px!important;font-weight:600!important;line-height:1.4!important}
body .role-badge{background:#eef3f5!important;border:1px solid #dde7eb!important;color:#536d79!important;font-size:11px!important;font-weight:550!important;letter-spacing:.03em!important}
body .topbar-scope-chip{border:1px solid var(--dm-line)!important;background:#fff!important;border-radius:9px!important;box-shadow:none!important;min-height:40px!important}
body .topbar-scope-chip small,body .topbar-scope-chip strong{font-size:12px!important}
body .db-live-text{font-size:12px!important;color:var(--dm-muted)!important}
body .hero{align-items:center!important;margin-bottom:25px!important;gap:18px!important;flex-wrap:wrap}
body .hero h1{font-size:clamp(27px,2.8vw,36px)!important;font-weight:650!important;line-height:1.15!important;margin:0 0 8px!important}
body .hero p{font-size:14px!important;line-height:1.6!important;color:var(--dm-muted)!important;max-width:760px}
body .eyebrow{font-size:11px!important;letter-spacing:.10em!important;font-weight:600!important;color:var(--dm-muted)!important}
body .dashboard-date-card{background:#fff!important;border:1px solid var(--dm-line)!important;border-radius:12px!important;box-shadow:none!important;min-width:200px!important;padding:15px 20px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important}
body .dashboard-date-card>div{text-align:center!important;display:grid!important;gap:3px!important;flex:none!important}
body .dashboard-date-card small{font-size:12px!important;font-weight:500!important;color:#70838d!important}
body .dashboard-date-card strong{font-size:14px!important;font-weight:600!important;color:var(--dm-ink)!important}
body .dashboard-date-card>.icon{color:#8498a2!important;width:22px!important;height:22px!important}
body .btn{min-height:42px!important;border-radius:9px!important;font-size:14px!important;font-weight:600!important;padding:10px 15px!important;line-height:1.3!important;white-space:normal!important;transition:background .18s,box-shadow .18s,transform .18s}
body .btn-primary{background:var(--dm-ink)!important;color:#fff!important;box-shadow:0 3px 0 rgba(var(--primary-rgb),.18),0 6px 14px #182c3510!important;border:1px solid var(--dm-ink)!important}
body .btn-primary:hover{background:#294650!important;transform:translateY(-1px)!important}
body .btn-soft{background:rgba(var(--primary-rgb),.06)!important;color:var(--dm-ink)!important;border:1px solid rgba(var(--primary-rgb),.10)!important;box-shadow:none!important}
body .btn-ghost{background:#f0f4f6!important;color:#46616e!important;border:1px solid #dde7ec!important;box-shadow:none!important}
body .btn-success{background:#3e7c62!important;color:#fff!important;box-shadow:none!important}
body .btn-danger{background:#fbefed!important;color:#a74d47!important;box-shadow:none!important}
body .icon-btn{width:40px!important;height:40px!important;border-radius:9px!important;background:#f0f4f6!important;color:#5d7885!important;border:1px solid #e3ebee!important;flex-shrink:0}
body button:focus-visible,body a:focus-visible,body [role=button]:focus-visible{outline:3px solid #bb6b48!important;outline-offset:3px!important}
body input:focus-visible,body select:focus-visible,body textarea:focus-visible{outline:2px solid #6d929f!important;outline-offset:2px!important}
body .field label{font-size:12px!important;font-weight:600!important;letter-spacing:.025em!important;color:#506b78!important;text-transform:none!important}
body .field input,body .field select,body .field textarea,body .toolbar input,body .toolbar select{min-height:44px!important;border-radius:9px!important;border:1px solid #d8e3e8!important;box-shadow:none!important;background:#fff!important;font-size:15px!important;padding:11px 13px!important;color:var(--dm-ink)!important}
body .field textarea{min-height:100px!important}
body .toolbar,body .students-toolbar{gap:12px!important;flex-wrap:wrap!important;margin-bottom:20px!important}
body .search-box{background:white!important;border:1px solid #d8e3e8!important;border-radius:9px!important;box-shadow:none!important;min-height:44px!important;min-width:0!important;flex:1 1 260px!important}
body .search-box input{border:0!important;background:transparent!important;box-shadow:none!important}
body .panel,body .card,body .table-wrap,body .economic-overview-card{background:white!important;border:1px solid var(--dm-line)!important;border-radius:var(--dm-radius)!important;box-shadow:var(--shadow)!important}
body .panel-head{padding:21px 22px!important;background:transparent!important;border-bottom:1px solid #e8eef1!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
body .panel-head h3{font-size:17px!important;font-weight:600!important;line-height:1.35!important}
body .panel-sub{font-size:12px!important;line-height:1.5!important;color:var(--dm-muted)!important;margin-top:5px!important}
body .panel-body{padding:22px!important}
body .panel-body p,body .note{font-size:14px!important;line-height:1.65!important}
body .kpi-grid{gap:15px!important;margin-bottom:22px!important}
body .kpi,body .dashboard-kpi{background:#fff!important;border:1px solid var(--dm-line)!important;border-radius:14px!important;padding:20px!important;box-shadow:var(--shadow)!important;min-height:139px!important;transform:none!important}
body .kpi::before,body .kpi::after,body .dashboard-kpi::before,body .dashboard-kpi::after{display:none!important}
body .kpi-label,body .kpi>span,body .dashboard-kpi>span{font-size:12px!important;font-weight:550!important;color:var(--dm-muted)!important;line-height:1.5!important;letter-spacing:.015em!important}
body .kpi strong,body .dashboard-kpi strong{font-size:30px!important;font-weight:650!important;letter-spacing:-.045em!important;color:var(--dm-ink)!important;line-height:1.2!important}
body .kpi small,body .dashboard-kpi small{font-size:12px!important;line-height:1.5!important;color:var(--dm-muted)!important;font-weight:400!important}
body .kpi.red,body .dashboard-kpi.red{border-color:#efd6d0!important;background:#fff8f6!important}
body .kpi.red strong,body .dashboard-kpi.red strong{color:#a85145!important}
body .kpi-icon{box-shadow:none!important;background:#f0f5f7!important;color:#587482!important}
body .kpi.red .kpi-icon{background:#f8e7e2!important;color:#ac5a45!important}
body .kpi.orange .kpi-icon{background:#fcf0e5!important;color:#ac733e!important}
body .kpi.green .kpi-icon{background:#e9f3ed!important;color:#54846b!important}
body .admin-quick-strip,body .student-summary-grid{gap:13px!important}
body .student-summary-card{border:1px solid var(--dm-line)!important;border-radius:12px!important;background:white!important;box-shadow:none!important;padding:16px!important}
body .student-summary-card strong{font-size:26px!important;font-weight:650!important;color:var(--dm-ink)!important}
body .student-summary-card small{font-size:12px!important;color:var(--dm-muted)!important;line-height:1.4!important}
body .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
body .table-wrap th{font-size:11px!important;letter-spacing:.04em!important;font-weight:600!important;color:var(--dm-muted)!important;background:#f6f9fa!important;padding:15px 16px!important;border-bottom:1px solid #e3ebef!important;white-space:nowrap}
body .table-wrap td{font-size:14px!important;color:#476371!important;padding:18px 16px!important;border-bottom:1px solid #edf1f3!important;vertical-align:middle!important}
body .table-wrap td small{font-size:12px!important;line-height:1.5!important;color:var(--dm-muted)!important}
body .student-name-link{font-size:15px!important;color:var(--dm-ink)!important;font-weight:600!important;line-height:1.4!important}
body .student-table-avatar{background:#eaf1f4!important;color:#5e7c8b!important;border-radius:12px!important;box-shadow:none!important;font-weight:550!important}
body .tag{background:#f0f5f7!important;color:#5b7684!important;border:1px solid #dfe9ed!important;font-size:12px!important;font-weight:500!important;padding:5px 8px!important;border-radius:6px!important;margin:3px 2px!important;white-space:normal!important}
body .status{font-size:11px!important;font-weight:600!important;letter-spacing:0!important;border-radius:6px!important;padding:5px 8px!important;line-height:1.4!important}
body .status.ok{background:#ebf5ef!important;color:#44765b!important}
body .status.warn{background:#fcf1e8!important;color:#9b693d!important}
body .status.bad{background:#fcefeb!important;color:#a45042!important}
body .amount-due{color:#a75548!important}
body .concept-course-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;gap:20px!important;align-items:stretch!important}
body .premium-course-card{padding:24px!important;background:#fff!important;border:1px solid var(--dm-line)!important;border-radius:16px!important;box-shadow:var(--shadow)!important;transform:none!important;transition:box-shadow .2s,border-color .2s!important}
body .premium-course-card:hover{border-color:#b8cbd3!important;box-shadow:0 12px 30px #182c350b!important;transform:none!important}
body .course-card-glow{opacity:.18!important}
body .premium-course-initials,body .teacher-lesson-initial,body .teacher-own-course-initial{border-radius:12px!important;box-shadow:none!important;background:#edf3f5!important;color:#496a7a!important;font-weight:600!important}
body .premium-course-title h3{font-size:22px!important;font-weight:650!important;line-height:1.25!important;color:var(--dm-ink)!important;overflow-wrap:anywhere}
body .premium-course-title p{font-size:13px!important;color:var(--dm-muted)!important;line-height:1.5!important}
body .premium-course-info{margin-top:22px!important;background:transparent!important;border-color:#e4edf0!important}
body .premium-course-info-row small{font-size:10px!important;letter-spacing:.06em!important;color:var(--dm-muted)!important}
body .premium-course-info-row strong{font-size:14px!important;font-weight:550!important;color:#355464!important}
body .premium-course-info-row em{font-size:12px!important;font-style:normal!important;color:var(--dm-muted)!important}
body .premium-course-enrolled small{font-size:11px!important}
body .premium-course-price{border-color:#e5edf1!important;background:transparent!important}
body .premium-course-price>span{font-size:27px!important;font-weight:650!important;color:var(--dm-ink)!important}
body .premium-course-price small,body .premium-course-price em{font-size:12px!important;color:var(--dm-muted)!important;font-style:normal!important}
body .premium-course-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body .premium-course-actions .btn{flex:1 1 auto!important;padding-inline:11px!important;font-size:13px!important}
body .report-link-card{background:#edf3f6!important;border:1px solid #dce7ec!important;box-shadow:none!important;border-radius:14px!important}
body .report-link-card h3{font-size:19px!important;color:var(--dm-ink)!important}
body .report-link-card p{font-size:13px!important;color:var(--dm-muted)!important}
body .report-link-icon{background:#dae7ed!important;color:#547585!important;box-shadow:none!important}
body .modal{border-radius:18px!important;border:1px solid #dde7eb!important;box-shadow:0 25px 90px #122a3540!important;max-height:calc(100dvh - 40px)!important;max-width:calc(100vw - 32px)!important}
body .modal-head{padding:21px 24px!important;background:#fff!important;gap:15px!important;border-bottom:1px solid #e3ebef!important}
body .modal-head strong{font-size:20px!important;font-weight:600!important;line-height:1.3!important}
body .modal-body{padding:24px!important}
body .modal-foot{padding:18px 24px!important;border-top:1px solid #e3ebef!important;background:#f7fafb!important;gap:10px!important;flex-wrap:wrap!important}
body .attendance-row,body .teacher-student-row{border-radius:11px!important;border:1px solid #e1eaef!important;box-shadow:none!important;padding:16px!important;gap:13px!important}
body .attendance-row strong{font-size:14px!important;line-height:1.45!important}
body .attendance-row small{font-size:12px!important;line-height:1.5!important}
body .login-wrap{background:radial-gradient(ellipse at 18% 15%,#2a4854,transparent 60%),#182c35!important;padding:30px 20px!important}
body .login-card{background:#fff!important;border:1px solid #ffffff60!important;border-radius:22px!important;padding:36px!important;box-shadow:0 24px 80px #0c202a50!important}
body .login-card h1{font-size:29px!important;font-weight:600!important;margin-top:32px!important}
body .login-card>p{font-size:15px!important;color:#6d8591!important}
body .login-live-badge{background:#f0f5f7!important;border:1px solid #deeaef!important;color:#66838e!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important}
body .login-security{font-size:12px!important;color:var(--dm-muted)!important;line-height:1.6!important}
/* Teacher experience */
body .premium-teacher-app{background:var(--dm-canvas)!important;padding-bottom:110px!important;min-height:100dvh!important}
body .premium-teacher-head{background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--dm-line)!important;box-shadow:none!important;height:auto!important;min-height:78px!important;padding:14px 28px!important;gap:14px!important}
body .teacher-school-brand{min-width:0!important;gap:12px!important}
body .teacher-school-brand strong{font-size:17px!important;line-height:1.3!important;color:var(--dm-ink)!important;overflow-wrap:anywhere}
body .teacher-school-brand small{font-size:12px!important;color:var(--dm-muted)!important;font-weight:450!important;line-height:1.5!important}
body .teacher-head-actions{flex-shrink:0!important}
body .teacher-logout{min-height:42px!important;border-radius:9px!important;background:#f1f5f7!important;border:1px solid #dce7ed!important;color:#55717f!important;font-size:13px!important;font-weight:550!important;padding:9px 12px!important}
body .teacher-sync{font-size:11px!important;color:#718b96!important}
body .premium-teacher-hero{background:#182c35!important;border:1px solid #274550!important;border-radius:18px!important;padding:30px!important;margin:28px!important;box-shadow:0 8px 24px #182c3510!important;min-height:0!important;gap:20px!important}
body .premium-teacher-hero:before,body .premium-teacher-hero:after{display:none!important}
body .premium-teacher-hero .eyebrow{color:#c3d3da!important;font-size:11px!important}
body .premium-teacher-hero h1{font-size:32px!important;color:white!important;font-weight:600!important;line-height:1.2!important;overflow-wrap:anywhere}
body .premium-teacher-hero p{color:#bbced7!important;font-size:14px!important;line-height:1.6!important}
body .teacher-hero-badge{background:#ffffff09!important;border:1px solid #ffffff1b!important;box-shadow:none!important;border-radius:12px!important;padding:14px!important;color:#fff!important}
body .teacher-hero-badge span{color:#fff!important;font-size:26px!important}
body .teacher-hero-badge small{font-size:12px!important;color:#bdd0d9!important}
body .premium-teacher-kpis{gap:14px!important;margin:0 28px 26px!important}
body .teacher-payroll-kpi{background:white!important;border:1px solid var(--dm-line)!important;border-radius:13px!important;padding:20px!important;box-shadow:none!important;min-height:125px!important}
body .teacher-payroll-kpi>span{font-size:12px!important;font-weight:500!important;color:var(--dm-muted)!important;line-height:1.5!important;flex-wrap:wrap!important}
body .teacher-payroll-kpi strong{font-size:32px!important;font-weight:600!important;color:var(--dm-ink)!important;line-height:1.2!important}
body .teacher-payroll-kpi small{font-size:12px!important;color:var(--dm-muted)!important;line-height:1.4!important}
body .teacher-premium-section,body .teacher-blocked-card{margin:0 28px 24px!important;background:#fff!important;border:1px solid var(--dm-line)!important;border-radius:16px!important;box-shadow:none!important;padding:24px!important}
body .teacher-section-head h2{font-size:24px!important;font-weight:600!important;line-height:1.3!important}
body .teacher-section-head p{font-size:13px!important;color:var(--dm-muted)!important;line-height:1.6!important}
body .premium-teacher-lesson,body .teacher-own-course{background:#f8fafb!important;border:1px solid #e0eaef!important;border-radius:12px!important;box-shadow:none!important;padding:20px!important;gap:14px!important}
body .teacher-lesson-topline{font-size:12px!important;color:#6f8997!important;gap:12px!important;flex-wrap:wrap!important}
body .teacher-lesson-main h3,body .teacher-own-course h3{font-size:22px!important;font-weight:600!important;color:var(--dm-ink)!important;line-height:1.3!important;overflow-wrap:anywhere}
body .teacher-lesson-main p,body .teacher-own-course p{font-size:13px!important;color:var(--dm-muted)!important;line-height:1.5!important}
body .teacher-lesson-actions{gap:10px!important;flex-wrap:wrap!important}
body .teacher-lesson-actions .btn{min-height:45px!important;font-size:14px!important}
body .teacher-blocked-card h3{font-size:22px!important;color:var(--dm-ink)!important}
body .teacher-blocked-card p{font-size:13px!important;color:var(--dm-muted)!important;line-height:1.6!important}
body .teacher-bottom-nav,body .mobile-nav{background:rgba(255,255,255,.97)!important;border:1px solid #dbe6eb!important;box-shadow:0 8px 30px #182c3512!important;backdrop-filter:blur(16px);border-radius:16px!important;gap:4px!important}
body .teacher-bottom-nav button,body .mobile-nav button{min-height:49px!important;border-radius:10px!important;padding:8px 5px!important;color:var(--dm-muted)!important;background:transparent!important;box-shadow:none!important;font-weight:500!important}
body .teacher-bottom-nav button span,body .mobile-nav button span{font-size:11px!important;line-height:1.4!important;letter-spacing:0!important}
body .mobile-nav button.active{background:rgba(var(--primary-rgb),.07)!important;color:var(--dm-ink)!important;box-shadow:inset 0 -2px rgba(var(--primary-rgb),.35)!important}
body .mobile-more-sheet{border-radius:22px 22px 0 0!important;background:#fff!important;padding:20px 20px calc(25px + env(safe-area-inset-bottom))!important;max-height:85dvh!important;overflow:auto!important}
body .mobile-more-grid{gap:12px!important}
body .mobile-more-grid button{border-radius:12px!important;background:#f5f8fa!important;border:1px solid #deeaef!important;min-height:84px!important;font-size:13px!important;color:#3e6274!important;font-weight:550!important}
@media(min-width:1101px){body .teacher-bottom-nav{max-width:600px!important;margin-inline:auto!important}body .kpi-grid.admin-ops-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(min-width:701px) and (max-width:1100px){body .content{padding:25px 22px!important}body .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}body .topbar{padding-inline:22px!important}body .topbar-right .db-live-text{display:none!important}}
@media(max-width:700px){
 body .shell{display:block!important}body .sidebar{display:none!important}
 body .content{padding:22px 16px calc(105px + env(safe-area-inset-bottom))!important;width:100%;max-width:100%}
 body .topbar{padding:12px 16px!important;min-height:76px!important;height:auto!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
 body .topbar-main{flex:1 1 180px!important;min-width:0!important}body .topbar-right{gap:7px!important}
 body .topbar .db-live-text,body .topbar .db-live-dot,body .topbar .role-badge{display:none!important}
 body .mobile-school-brand{min-width:0!important;gap:10px!important}body .mobile-school-brand>div{min-width:0!important}
 body .mobile-school-brand strong{font-size:15px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere}
 body .mobile-school-brand small{font-size:11px!important;line-height:1.5!important;color:#718895!important}
 body .hero{margin-bottom:21px!important;gap:16px!important}body .hero h1{font-size:29px!important;line-height:1.2!important}body .hero p{font-size:14px!important;line-height:1.55!important}
 body .hero-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;width:100%!important}body .hero-actions .btn{flex:1 1 auto!important}
 body .dashboard-date-card{min-width:0!important;padding:11px 15px!important;justify-content:center!important;width:100%!important;margin-top:0!important}
 body .dashboard-date-card strong{font-size:13px!important}body .dashboard-date-card small{font-size:11px!important}
 body .btn{min-height:44px!important;font-size:14px!important;padding:11px 13px!important}
 body .icon-btn{width:44px!important;height:44px!important}
 body .field input,body .field select,body .field textarea,body .toolbar input,body .toolbar select{font-size:16px!important;min-height:46px!important}
 body .toolbar{gap:10px!important}body .students-toolbar .search-box{flex-basis:100%!important;width:100%!important}
 body .students-toolbar select{flex:1 1 140px!important;min-width:0!important;width:auto!important}body .students-clear-filters{flex-basis:100%!important}
 body .kpi-grid,body .kpi-grid.admin-ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
 body .kpi,body .dashboard-kpi{padding:16px 13px!important;min-height:130px!important;border-radius:12px!important}
 body .kpi-label,body .kpi>span,body .dashboard-kpi>span{font-size:12px!important;line-height:1.5!important}
 body .kpi strong,body .dashboard-kpi strong{font-size:27px!important;line-height:1.3!important;overflow-wrap:anywhere}
 body .kpi small,body .dashboard-kpi small{font-size:11px!important;line-height:1.5!important}
 body .panel-head,body .panel-body{padding:18px 16px!important}body .panel-head h3{font-size:18px!important}body .panel-sub{font-size:12px!important}
 body .grid-2,body .grid-equal,body .ops-main-grid{grid-template-columns:1fr!important;gap:15px!important}
 body .student-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:19px!important}body .student-summary-card{padding:14px!important}
 /* Actual V6.144 student markup: cards on mobile, native table on desktop. */
 body .students-table-wrap{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;border-radius:0!important}
 body .students-table-wrap table{display:block!important;min-width:0!important;width:100%!important;border-spacing:0!important}
 body .students-table-wrap thead{display:none!important}
 body .students-table-wrap tbody{display:grid!important;gap:14px!important}
 body .students-table-wrap tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;background:#fff!important;border:1px solid var(--dm-line)!important;border-radius:14px!important;padding:17px!important;gap:12px 14px!important;position:relative!important}
 body .students-table-wrap td{display:block!important;padding:0!important;border:0!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:14px!important}
 body .students-table-wrap td:first-child{grid-column:1/-1!important;padding-bottom:12px!important;border-bottom:1px solid #e7eef2!important}
 body .student-table-person{gap:11px!important}body .student-table-avatar{width:42px!important;height:42px!important;font-size:15px!important;flex-shrink:0!important}body .student-name-link{font-size:17px!important}
 body .students-table-wrap td:nth-child(2){grid-column:1/-1!important}body .students-table-wrap td:nth-child(3){grid-column:1/-1!important}
 body .students-table-wrap td:nth-child(2):before,body .students-table-wrap td:nth-child(3):before,body .students-table-wrap td:nth-child(4):before,body .students-table-wrap td:nth-child(5):before{display:block;font-size:11px;letter-spacing:.025em;color:#7c929e;margin-bottom:5px;font-weight:500}
 body .students-table-wrap td:nth-child(2):before{content:'Contatti'}body .students-table-wrap td:nth-child(3):before{content:'Corsi e quote'}body .students-table-wrap td:nth-child(4):before{content:'Iscrizione'}body .students-table-wrap td:nth-child(5):before{content:'Da incassare'}
 body .students-table-wrap td:nth-child(6){align-self:center!important}body .students-table-wrap td:last-child{grid-column:1/-1!important;padding-top:12px!important;border-top:1px solid #e7eef2!important}
 body .students-table-wrap .concept-row-actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;flex-wrap:wrap!important}
 body .students-table-wrap .tag{display:inline-block!important;font-size:12px!important;max-width:100%!important;margin:3px 4px 3px 0!important}
 body .students-table-wrap .status{display:inline-flex!important;max-width:100%!important;font-size:11px!important;white-space:normal!important;gap:4px!important}
 body .concept-course-grid{grid-template-columns:1fr!important;gap:15px!important}body .premium-course-card{padding:21px!important}body .premium-course-title h3{font-size:23px!important}
 body .premium-course-actions .btn{min-height:45px!important;font-size:13px!important}body .premium-course-info-row strong{font-size:15px!important}
 body .modal{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;border-radius:16px!important}
 body .modal-head,body .modal-body,body .modal-foot{padding:18px 16px!important}body .modal-head strong{font-size:21px!important}body .form-grid{grid-template-columns:1fr!important;gap:10px!important}body .span-2{grid-column:1!important}
 body .modal-foot{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}body .modal-foot .btn{flex:1 1 auto!important}
 body .mobile-nav,body .teacher-bottom-nav{left:12px!important;right:12px!important;width:auto!important;bottom:0!important;padding:7px 5px calc(7px + env(safe-area-inset-bottom))!important;border-radius:15px 15px 0 0!important;max-width:none!important}
 body .mobile-nav button .icon,body .teacher-bottom-nav button .icon{width:20px!important;height:20px!important}body .mobile-nav button span,body .teacher-bottom-nav button span{font-size:11px!important}
 body .premium-teacher-app{padding:0 0 calc(110px + env(safe-area-inset-bottom))!important;max-width:100%!important}
 body .premium-teacher-head{margin:0!important;padding:14px 16px!important;min-height:78px!important;position:sticky!important;top:0!important;z-index:20!important}
 body .teacher-school-brand{flex:1!important;gap:9px!important}body .teacher-school-brand strong{font-size:15px!important}body .teacher-school-brand small{font-size:11px!important}body .teacher-school-logo{width:38px!important;height:38px!important;flex-shrink:0!important}
 body .teacher-sync{display:none!important}body .teacher-logout{min-height:42px!important;padding:9px 10px!important;gap:5px!important}body .teacher-logout span{display:inline!important;font-size:12px!important}
 body .premium-teacher-hero{margin:20px 16px!important;padding:24px 20px!important;display:flex!important;flex-wrap:wrap!important;align-items:start!important;gap:18px!important}
 body .premium-teacher-hero .teacher-hero-copy{min-width:0!important;flex:1 1 190px!important}body .premium-teacher-hero h1{font-size:28px!important}body .premium-teacher-hero p{font-size:13px!important}
 body .teacher-hero-badge{display:flex!important;gap:8px!important;align-items:center!important;padding:10px!important;min-width:0!important;margin:0!important}body .teacher-hero-badge span{font-size:18px!important}body .teacher-hero-badge small{font-size:11px!important}
 body .premium-teacher-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0 16px 20px!important}
 body .teacher-payroll-kpi{padding:14px 10px!important;border-radius:11px!important;min-height:130px!important}body .teacher-payroll-kpi>span{font-size:11px!important;gap:5px!important;line-height:1.4!important}body .teacher-payroll-kpi>span .icon{width:14px!important;height:14px!important}
 body .teacher-payroll-kpi strong{font-size:28px!important;margin:10px 0 6px!important}body .teacher-payroll-kpi small{font-size:11px!important;line-height:1.4!important}
 body .teacher-premium-section,body .teacher-blocked-card{margin:0 16px 18px!important;padding:20px 16px!important;border-radius:14px!important}
 body .teacher-section-head h2{font-size:24px!important}body .teacher-section-head p{font-size:13px!important}
 body .premium-teacher-lesson{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:14px 12px!important;padding:18px 14px!important}
 body .teacher-lesson-initial{width:42px!important;height:42px!important;font-size:17px!important}body .teacher-lesson-main{min-width:0!important}body .teacher-lesson-main h3{font-size:21px!important}
 body .teacher-lesson-main p{font-size:12px!important;flex-wrap:wrap!important;line-height:1.6!important}body .teacher-lesson-topline{font-size:12px!important;gap:5px!important;display:flex!important;flex-wrap:wrap!important}
 body .teacher-lesson-state{grid-column:1/-1!important;justify-self:start!important}body .teacher-lesson-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
 body .teacher-lesson-actions .btn{min-height:46px!important;font-size:13px!important;padding:10px!important;min-width:0!important}body .teacher-lesson-actions .btn:first-child{grid-column:1/-1!important}body .teacher-lesson-actions .btn:only-child{grid-column:1/-1!important}
 body .teacher-own-courses-grid{grid-template-columns:1fr!important}body .teacher-own-course{padding:16px 12px!important;gap:10px!important;flex-wrap:wrap!important}body .teacher-own-course h3{font-size:19px!important}body .teacher-own-course p{font-size:12px!important}
 body .teacher-own-course .grow{min-width:120px!important;flex:1!important}body .teacher-own-course-actions{display:flex!important;gap:7px!important}body .teacher-own-course span{font-size:12px!important}
 body .teacher-blocked-card{flex-wrap:wrap!important;gap:13px!important}body .teacher-blocked-card h3{font-size:21px!important}body .teacher-blocked-card-actions{width:100%!important;display:flex!important;gap:9px!important;flex-wrap:wrap!important}
 body .teacher-student-row{flex-wrap:wrap!important;padding:15px!important;gap:11px!important}body .teacher-student-copy{min-width:170px!important}body .teacher-student-name-line{flex-wrap:wrap!important}body .teacher-edit-action{min-height:44px!important;font-size:13px!important}
 body .teacher-students-toolbar{flex-wrap:wrap!important}body .teacher-search-wrap{width:100%!important}body .teacher-search-wrap input{font-size:16px!important}body .teacher-list-hint{font-size:12px!important}
 body .login-card{padding:28px 22px!important;border-radius:18px!important}body .login-card h1{font-size:27px!important}body .login-security{font-size:11px!important}
}
@media(max-width:359px){body .premium-teacher-kpis{grid-template-columns:1fr!important}body .teacher-payroll-kpi{min-height:0!important;display:grid!important;grid-template-columns:1fr auto!important;gap:7px!important}body .teacher-payroll-kpi strong{grid-column:2!important;grid-row:1/3!important;margin:0!important}body .teacher-payroll-kpi small{grid-column:1!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}body *,body *:before,body *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Printed reports and receipts keep their original document typography. */
@media print{body .content{padding:0!important}body .sidebar,body .topbar,body .mobile-nav,body .teacher-bottom-nav{display:none!important}}
/* Override legacy contextual button rules as well as global rules. */
body .content .btn-primary,body .teacher-app .btn-primary,body .modal .btn-primary{background:var(--dm-ink)!important;color:#fff!important;border:1px solid var(--dm-ink)!important}
body .content .btn-soft,body .teacher-app .btn-soft,body .modal .btn-soft{background:rgba(var(--primary-rgb),.06)!important;color:var(--dm-ink)!important;border:1px solid rgba(var(--primary-rgb),.10)!important}
body .content .btn-ghost,body .teacher-app .btn-ghost,body .modal .btn-ghost{background:#f0f4f6!important;color:#46616e!important;border:1px solid #dde7ec!important}
@media(max-width:700px){body .students-table-wrap td:last-child>.concept-row-actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;flex-wrap:wrap!important}}

/* V6.146 — bounded navigation, profile hierarchy and restrained motion. */
body .teacher-app nav.teacher-bottom-nav{
 position:fixed!important;inset:auto auto max(12px,env(safe-area-inset-bottom)) 50%!important;
 width:min(600px,calc(100% - 32px))!important;max-width:600px!important;min-width:0!important;
 height:auto!important;min-height:66px!important;margin:0!important;
 transform:translateX(-50%)!important;box-sizing:border-box!important;z-index:45!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;
 padding:7px!important;border-radius:18px!important;overflow:hidden!important;
}
body .teacher-app nav.teacher-bottom-nav button{
 min-width:0!important;width:100%!important;min-height:50px!important;margin:0!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:5px!important;transform:none!important;transition:background .2s,color .2s,box-shadow .2s!important;
}
body .teacher-app nav.teacher-bottom-nav button.active{
 background:#eaf1f4!important;color:#254d60!important;box-shadow:inset 0 -2px 0 rgba(var(--primary-rgb),.4)!important;
}
body .teacher-app nav.teacher-bottom-nav button span{font-size:12px!important;line-height:1.3!important;white-space:nowrap!important}
body .teacher-app nav.teacher-bottom-nav .icon{width:21px!important;height:21px!important;flex-shrink:0!important}
body svg.icon{stroke-width:1.7!important;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
body .nav .icon{width:20px!important;height:20px!important;color:inherit!important;opacity:.92}
body .icon-btn svg.icon{width:19px!important;height:19px!important}
body .btn svg.icon{width:18px!important;height:18px!important}
body .icon-btn:hover{background:#e6eff3!important;color:#2b5265!important;border-color:#cfdee5!important}
body .teacher-lesson-initial,body .teacher-own-course-initial,body .premium-course-initials{
 background:linear-gradient(145deg,#eef5f8,#e4edf2)!important;border:1px solid #dbe7ee!important;
 color:#496f82!important;box-shadow:inset 0 1px 0 #ffffffb3!important;
}
body .modal-head{flex-shrink:0!important;align-items:center!important}
body .modal-head>.icon-btn{margin-left:auto!important;flex-shrink:0!important}
body .modal-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body .modal-foot{flex-shrink:0!important}
body .student-profile-modal,body .teacher-profile-modal,body .staff-profile-modal{background:#f6f9fa!important}
body .student-profile-head,body .teacher-profile-head,body .staff-profile-head{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:17px!important;
 background:#fff!important;padding:24px!important;border:1px solid #dfe9ee!important;
 border-radius:15px!important;margin-bottom:20px!important;box-shadow:0 5px 18px #182c3504!important;
}
body .student-profile-head>.grow,body .teacher-profile-head>.grow,body .staff-profile-head>.grow{min-width:180px!important;flex:1 1 180px!important}
body .student-profile-head h2,body .teacher-profile-head h2,body .staff-profile-head h2{font-size:27px!important;font-weight:650!important;margin:4px 0 8px!important;line-height:1.3!important;overflow-wrap:anywhere}
body .student-profile-avatar,body .teacher-profile-avatar,body .staff-profile-avatar{
 width:62px!important;height:62px!important;min-width:62px!important;border-radius:17px!important;
 display:grid!important;place-items:center!important;background:#eaf2f6!important;
 color:#416d83!important;border:1px solid #d7e5ed!important;box-shadow:none!important;
 font-size:23px!important;font-weight:550!important;line-height:1!important;
}
body .student-profile-contact,body .teacher-profile-contact,body .staff-profile-contact{font-size:14px!important;line-height:1.65!important;color:var(--dm-muted)!important;overflow-wrap:anywhere;word-break:normal!important}
body .student-profile-state,body .teacher-profile-access-state,body .staff-profile-state{display:grid!important;justify-items:start!important;gap:7px!important;max-width:230px!important}
body .student-profile-state small,body .teacher-profile-access-state small,body .staff-profile-state small{font-size:12px!important;color:var(--dm-muted)!important;line-height:1.5!important}
body .student-profile-head-actions,body .teacher-profile-actions,body .staff-profile-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;align-items:center!important}
body .student-profile-kpis,body .teacher-profile-kpis,body .staff-profile-kpis{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 22px!important;
}
body .student-profile-kpis>div,body .teacher-profile-kpis>div,body .staff-profile-kpis>div{
 background:#fff!important;padding:18px!important;border:1px solid #dfe9ee!important;
 border-radius:12px!important;min-width:0!important;box-shadow:none!important;display:flex!important;
 flex-direction:column!important;gap:7px!important;align-items:start!important;
}
body .student-profile-kpis small,body .teacher-profile-kpis small,body .staff-profile-kpis small{font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:#6e8997!important;text-transform:none!important;letter-spacing:0!important}
body .student-profile-kpis strong,body .teacher-profile-kpis strong,body .staff-profile-kpis strong{font-size:24px!important;letter-spacing:-.03em!important;font-weight:600!important;line-height:1.3!important;overflow-wrap:anywhere;max-width:100%}
body .student-profile-kpis span,body .teacher-profile-kpis span,body .staff-profile-kpis span{font-size:12px!important;color:var(--dm-muted)!important;line-height:1.5!important;overflow-wrap:anywhere}
body .staff-profile-kpis strong{font-size:18px!important}.staff-profile-email{word-break:normal!important}
body .student-profile-grid,body .teacher-profile-grid,body .staff-profile-grid,body .student-due-summary-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;margin-bottom:20px!important}
body .profile-data-list{padding:8px 20px 14px!important}
body .profile-data-list>div{display:grid!important;grid-template-columns:minmax(100px,.65fr) minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:15px 0!important;border-bottom:1px solid #e9eff2!important}
body .profile-data-list>div:last-child{border-bottom:0!important}
body .profile-data-list span{font-size:13px!important;color:var(--dm-muted)!important;line-height:1.6!important}
body .profile-data-list strong{font-size:14px!important;line-height:1.6!important;color:#365868!important;font-weight:550!important;text-align:left!important;overflow-wrap:anywhere;word-break:normal!important}
body .profile-course-list,body .teacher-profile-course-list,body .profile-history-list{padding:9px 20px 15px!important}
body .profile-course-row,body .teacher-profile-course-row,body .profile-history-row,body .student-due-preview-row{
 display:flex!important;justify-content:space-between!important;align-items:center!important;gap:15px!important;
 padding:15px 0!important;border-bottom:1px solid #e6eef2!important;background:transparent!important;
 border-radius:0!important;box-shadow:none!important;min-width:0!important;flex-wrap:wrap!important;
}
body .profile-course-row:last-child,body .teacher-profile-course-row:last-child,body .profile-history-row:last-child{border-bottom:0!important}
body .profile-course-row>div:first-child,body .teacher-profile-course-row>div:first-child,body .profile-history-row:not(.payment-history-row)>div:first-child,body .student-due-preview-row>div:first-child{flex:1 1 180px!important;min-width:0!important}
body .profile-course-row strong,body .teacher-profile-course-row strong,body .profile-history-row strong,body .student-due-preview-row strong{font-size:14px!important;line-height:1.5!important;font-weight:600!important;color:#355868!important;overflow-wrap:anywhere}
body .profile-course-row small,body .teacher-profile-course-row small,body .profile-history-row small,body .student-due-preview-row small{display:block!important;font-size:12px!important;line-height:1.6!important;color:#7992a0!important;margin-top:4px!important;overflow-wrap:anywhere}
body .profile-history-right,body .student-due-preview-right{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;max-width:100%!important}
body .student-profile-notes{padding:16px 20px!important;background:#f8fafb!important;border-top:1px solid #e5eef2!important}
body .student-profile-notes strong{font-size:13px!important;color:#567685!important;font-weight:600!important}
body .student-profile-notes p{font-size:14px!important;line-height:1.7!important;color:#6f8a98!important;margin:8px 0 0!important;overflow-wrap:anywhere}
body .teacher-student-row{background:#fff!important;border:1px solid #e0eaef!important;padding:17px!important;border-radius:12px!important}
body .teacher-student-avatar{width:43px!important;height:43px!important;border-radius:12px!important;font-size:15px!important;background:#eaf2f6!important;color:#466f83!important;box-shadow:none!important;display:grid!important;place-items:center!important;flex-shrink:0!important}
body .teacher-student-copy strong{font-size:16px!important;font-weight:600!important;line-height:1.5!important}
body .teacher-student-copy small{font-size:13px!important;line-height:1.65!important;overflow-wrap:anywhere}
body .teacher-edit-action{border-radius:8px!important;border:1px solid #dae7ee!important;background:#f0f6f9!important;color:#426e85!important;font-size:13px!important;font-weight:550!important;min-height:42px!important;padding:10px 13px!important}
body .teacher-student-name-line{gap:10px!important;align-items:center!important}
body .att-btn{width:43px!important;height:43px!important;font-size:14px!important;border-radius:10px!important;font-weight:600!important;transition:background .18s,color .18s,box-shadow .18s!important}
body .attendance-choice{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
body .teacher-app section[id]{scroll-margin-top:100px!important}
@keyframes dm-page-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes dm-dialog-arrive{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dm-backdrop-arrive{from{background-color:rgba(17,22,36,0)}to{background-color:rgba(17,22,36,.58)}}
@media(prefers-reduced-motion:no-preference){
 body #content>.hero{animation:dm-page-arrive .32s cubic-bezier(.2,.8,.2,1) both!important}
 body #content>.hero~.panel,body #content>.hero~.card-grid,body #content>.hero~.table-wrap,body #content>.hero~.kpi-grid{animation:dm-page-arrive .36s cubic-bezier(.2,.8,.2,1) both!important}
 body .modal-backdrop{animation:dm-backdrop-arrive .2s ease both!important}
 body .modal{animation:dm-dialog-arrive .27s cubic-bezier(.2,.8,.2,1) both!important}
 body .icon-btn,body .teacher-edit-action{transition:background .18s,color .18s,border-color .18s,box-shadow .18s!important}
 body .btn:active,body .icon-btn:active,body .teacher-edit-action:active{transform:scale(.98)!important}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body .premium-course-card:hover,body .teacher-own-course:hover{transform:translateY(-2px)!important;transition:transform .2s,box-shadow .2s,border-color .2s!important;box-shadow:0 14px 30px #182c350c!important}
}
@media(max-width:900px){
 body .teacher-app nav.teacher-bottom-nav{
  inset:auto 12px 0 12px!important;width:auto!important;max-width:none!important;
  transform:none!important;margin:0!important;padding:8px 5px calc(8px + env(safe-area-inset-bottom))!important;
  border-radius:17px 17px 0 0!important;height:auto!important;min-height:68px!important;
 }
 body .premium-teacher-app{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}
 body .student-profile-kpis,body .teacher-profile-kpis,body .staff-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .student-profile-grid,body .teacher-profile-grid,body .staff-profile-grid,body .student-due-summary-grid{grid-template-columns:1fr!important}
}
@media(max-width:700px){
 body .student-profile-head,body .teacher-profile-head,body .staff-profile-head{padding:19px 16px!important;gap:12px!important;align-items:start!important}
 body .student-profile-head>.grow,body .teacher-profile-head>.grow,body .staff-profile-head>.grow{min-width:0!important;flex:1 1 calc(100% - 75px)!important}
 body .student-profile-head h2,body .teacher-profile-head h2,body .staff-profile-head h2{font-size:24px!important;line-height:1.3!important}
 body .student-profile-avatar,body .teacher-profile-avatar,body .staff-profile-avatar{width:52px!important;height:52px!important;min-width:52px!important;font-size:20px!important;border-radius:14px!important}
 body .student-profile-state,body .teacher-profile-access-state,body .staff-profile-state{width:100%!important;max-width:none!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important}
 body .student-profile-head-actions,body .teacher-profile-actions,body .staff-profile-actions{width:100%!important;padding-top:13px!important;border-top:1px solid #e6eef2!important;gap:8px!important}
 body .student-profile-head-actions .btn,body .teacher-profile-actions .btn,body .staff-profile-actions .btn{flex:1 1 120px!important;min-height:45px!important}
 body .student-profile-kpis,body .teacher-profile-kpis,body .staff-profile-kpis{gap:10px!important;margin-bottom:18px!important}
 body .student-profile-kpis>div,body .teacher-profile-kpis>div,body .staff-profile-kpis>div{padding:16px 13px!important;gap:6px!important}
 body .student-profile-kpis strong,body .teacher-profile-kpis strong{font-size:22px!important}
 body .profile-data-list{padding:5px 16px 12px!important}
 body .profile-data-list>div{grid-template-columns:minmax(85px,.6fr) minmax(0,1fr)!important;gap:12px!important;padding:13px 0!important}
 body .profile-data-list span{font-size:12px!important}body .profile-data-list strong{font-size:14px!important}
 body .profile-course-list,body .teacher-profile-course-list,body .profile-history-list{padding:5px 16px 12px!important}
 body .profile-course-row,body .teacher-profile-course-row,body .profile-history-row{gap:10px!important}
 body .teacher-student-copy{min-width:0!important;flex:1 1 calc(100% - 65px)!important}
 body .teacher-student-copy small{font-size:13px!important;white-space:normal!important;word-break:normal!important}
 body .teacher-edit-action{width:100%!important;justify-content:center!important;min-height:44px!important}
 body .teacher-student-row{gap:12px!important}
 body .teacher-list-hint{line-height:1.5!important}
 body .attendance-row>.grow{min-width:145px!important;flex:1 1 145px!important}
 body .attendance-choice{max-width:100%!important}
 body .modal .field label{font-size:13px!important}
}
@media print{body .modal,body #content>*{animation:none!important;transform:none!important}}

/* V6.147 — explicit layout for payment rows, course cards and enrollment menus. */
body .student-profile-modal .profile-history-row.payment-history-row{
 display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;
 align-items:center!important;gap:12px!important;
}
body .student-profile-modal .profile-history-row.payment-history-row>.payment-history-icon{
 width:36px!important;height:36px!important;min-width:36px!important;
 flex:none!important;padding:0!important;border-radius:10px!important;
 background:#edf4f2!important;color:#33765f!important;
}
body .payment-history-row>.grow{min-width:0!important;width:auto!important}
body .payment-history-row>.grow strong,body .payment-history-row>.grow small{
 white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
}
body .payment-history-tools{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:7px!important;min-width:0!important}
body .payment-history-row .payment-history-amount{color:#33765f!important;white-space:nowrap!important}
body .payment-history-tools .receipt-mini-btn{font-size:11px!important;line-height:1.4!important;min-height:34px!important;padding:6px 9px!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
body .payment-history-tools .receipt-mini-btn .icon{width:15px!important;height:15px!important}
body .premium-course-card{
 display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;
 gap:0!important;padding:22px!important;
}
body .premium-course-card .premium-course-head{min-width:0!important;align-items:flex-start!important}
body .premium-course-card .premium-course-title{min-width:0!important}
body .premium-course-card .premium-course-title h3{overflow-wrap:break-word!important}
body .premium-course-card .premium-course-price{
 position:static!important;inset:auto!important;transform:none!important;flex:none!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;flex-wrap:wrap!important;margin:18px 0 0!important;padding:16px 0 0!important;
}
body .premium-course-card .premium-course-price>span{line-height:1.3!important;display:inline-flex!important;align-items:baseline!important;gap:6px!important;flex-wrap:wrap!important}
body .premium-course-card .course-card-actions.premium-course-actions{
 position:static!important;inset:auto!important;transform:none!important;width:100%!important;
 display:flex!important;flex-wrap:wrap!important;margin:16px 0 0!important;padding:0!important;
 gap:8px!important;flex:none!important;
}
body .premium-course-card .premium-course-info{flex:1 1 auto!important;min-width:0!important}
body .premium-course-card .premium-course-enrolled{min-width:64px!important}
body .premium-course-card .premium-course-actions .btn{min-height:42px!important;flex:1 1 100px!important;white-space:normal!important}
body .premium-course-card .course-card-glow{display:none!important}
body .premium-course-card.tone-violet{--course-tint:#f1edf7;--course-accent:#70598f}
body .premium-course-card.tone-orange{--course-tint:#faf0e6;--course-accent:#a36e36}
body .premium-course-card.tone-green{--course-tint:#eaf3ef;--course-accent:#347963}
body .premium-course-card.tone-blue{--course-tint:#eaf1f8;--course-accent:#416a98}
body .premium-course-card.tone-pink{--course-tint:#f8edf0;--course-accent:#9b6274}
body .premium-course-card .premium-course-initials{background:var(--course-tint,#eaf1f8)!important;color:var(--course-accent,#416a98)!important;border-color:transparent!important}
body .premium-course-more{flex-shrink:0!important;background:#f5f8fa!important;border:1px solid #e3ebef!important}
body .existing-student-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:14px!important;padding:0!important;margin-bottom:18px!important}
body .existing-student-toolbar .existing-student-search{
 display:flex!important;align-items:center!important;gap:10px!important;
 position:relative!important;flex:1 1 280px!important;min-width:0!important;width:auto!important;
 height:auto!important;min-height:48px!important;padding:0 14px!important;
 background:#f6f9fa!important;border:1px solid #d7e3e8!important;border-radius:12px!important;
}
body .existing-student-search>.icon{position:static!important;width:19px!important;height:19px!important;color:#69838e!important;transform:none!important;flex:none!important}
body .existing-student-search input{
 display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;
 min-height:46px!important;font:inherit!important;font-size:14px!important;padding:10px 0!important;
 border:0!important;box-shadow:none!important;outline:none!important;background:transparent!important;color:#243f4c!important;
}
body .existing-student-search:focus-within,body .price-input-wrap:focus-within{border-color:#567f91!important;box-shadow:0 0 0 3px #567f911a!important}
body .select-visible-students{font-size:13px!important;font-weight:500!important;color:#49616c!important;min-height:44px!important;cursor:pointer;gap:9px!important}
body .add-existing-students-modal input[type=checkbox]{width:20px!important;height:20px!important;accent-color:#315e70;flex-shrink:0!important;cursor:pointer}
body .existing-students-list{max-height:none!important;overflow:visible!important;padding:0!important;gap:10px!important}
body .existing-student-row{grid-template-columns:minmax(0,1fr) 140px!important;padding:16px!important;border:1px solid #dde7eb!important;border-radius:12px!important;background:#fff!important}
body .existing-student-row:hover{background:#f8fbfc!important;border-color:#b9ccd5!important}
body .existing-student-row:has(input[type=checkbox]:checked){background:#eff6f8!important;border-color:#8cabb9!important}
body .existing-student-check{align-items:center!important;gap:13px!important}
body .existing-student-person strong{font-size:15px!important;font-weight:600!important;line-height:1.5!important;color:#294552!important}
body .existing-student-person small{font-size:12px!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere!important;color:var(--dm-muted)!important}
body .existing-student-person .existing-student-courses{color:#587788!important;font-weight:400!important}
body .existing-student-price label{font-size:11px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:var(--dm-muted)!important}
body .existing-student-price .price-input-wrap{height:44px!important;border:1px solid #d5e1e7!important;border-radius:9px!important;padding:0 10px!important;background:#f9fbfc!important}
body .existing-student-price input{font-size:16px!important;font-weight:550!important;min-height:40px!important;color:#294552!important}
body .teacher-profile-head{padding:20px!important;gap:14px!important}
body .teacher-profile-head .teacher-profile-access-state{max-width:210px!important}
body .teacher-profile-access-state small{overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;text-align:left!important}
body .teacher-profile-kpis>div:nth-child(1){background:#eef4f9!important;border-color:#dce7f0!important}
body .teacher-profile-kpis>div:nth-child(2){background:#f3eff8!important;border-color:#e7dff0!important}
body .teacher-profile-kpis>div:nth-child(3){background:#eff6f2!important;border-color:#dcebe3!important}
body .teacher-profile-kpis>div:nth-child(4){background:#fbf4ea!important;border-color:#efdfc6!important}
body .teacher-profile-kpis .text-danger{color:#a35443!important}body .teacher-profile-kpis .text-success{color:#33765f!important}
/* Calendar events keep real schedule states; color supports their existing labels. */
body .calendar-premium-toolbar{flex-wrap:wrap!important;gap:16px!important;padding:18px!important;background:#fff!important}
body .calendar-period-block,body .calendar-toolbar-actions{flex-wrap:wrap!important;gap:12px!important;min-width:0!important}
body .calendar-nav strong{font-size:20px!important;color:#294552!important}
body .calendar-nav small{font-size:10px!important;color:var(--dm-muted)!important}
body .calendar-summary span{font-size:12px!important;line-height:1.5!important}
body .calendar-arrow{width:40px!important;height:40px!important;font-size:22px!important;color:#476575!important}
body .calendar-toolbar-actions select{min-height:42px!important;font-size:14px!important}
body .calendar-scroll-shell{overflow-x:auto!important;scrollbar-width:thin}
body .premium-month-calendar{min-width:910px!important;grid-template-columns:repeat(7,minmax(130px,1fr))!important}
body .premium-month-calendar .month-weekday{font-size:12px!important;font-weight:600!important;min-height:42px!important;background:#eef3f6!important;color:#526d7b!important}
body .premium-month-calendar .month-day{min-height:166px!important;padding:10px!important}
body .month-day-number{font-size:14px!important;font-weight:600!important}
body .month-day.today .month-day-number{background:#315e70!important;color:#fff!important}
body .premium-month-calendar .month-day.today{background:#f3f8fa!important;box-shadow:inset 0 0 0 1px #afc6d1!important}
body .month-event{display:flex!important;align-items:flex-start!important;min-height:64px!important;padding:10px 8px!important;background:#f0f5f9!important;border:1px solid #dce7ee!important;border-left:3px solid #759bb0!important;gap:5px!important}
body .month-event-copy>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important}
body .month-event b{font-size:11px!important;line-height:1.4!important;color:#41697e!important;white-space:normal!important}
body .month-event strong{font-size:13px!important;line-height:1.4!important;color:#294552!important;white-space:normal!important;overflow-wrap:anywhere!important}
body .month-event small{font-size:11px!important;line-height:1.5!important;color:#637d8b!important;white-space:normal!important;display:block!important;margin-top:4px!important}
body .month-event.has-override,body .month-event.has-series-change{background:#fbf4e8!important;border-color:#ebdcc3!important;border-left-color:#be925b!important}
body .month-event.is-moved{background:#f3eef8!important;border-color:#e2d7ed!important;border-left-color:#9376af!important}
body .month-event-edit{width:28px!important;height:28px!important;flex:0 0 28px!important;opacity:1!important;color:#587586!important;background:#ffffffaa!important;position:static!important}
body .month-event-edit .icon{width:15px!important;height:15px!important}
/* Admin dashboard: four priorities, quieter secondary summaries and disclosure. */
body .admin-dashboard-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body .admin-dashboard-scope{margin-bottom:20px}
body .admin-section-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;gap:12px}
body .admin-section-heading h2{font-size:19px;font-weight:600;line-height:1.4;margin:0;color:#294552}
body .admin-section-heading p{font-size:13px;color:var(--dm-muted);line-height:1.5;margin:4px 0 0}
body .content .kpi-grid.admin-ops-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
body .admin-ops-kpis .kpi{min-height:170px!important;padding:19px!important;display:flex!important;flex-direction:column!important;gap:9px!important}
body .admin-ops-kpis .kpi .label{font-size:13px!important;font-weight:550!important;line-height:1.5!important;color:#4b6471!important;letter-spacing:0!important}
body .admin-ops-kpis .kpi strong.value{font-size:clamp(24px,2.4vw,34px)!important;overflow-wrap:anywhere!important;margin:0!important}
body .admin-ops-kpis .dashboard-kpi-action{margin-top:auto!important;padding-top:8px!important;font-size:12px!important;color:#4b6471!important}
body .admin-ops-kpis .admin-kpi-due{background:#fcf7ee!important;border-color:#ebdcc3!important}
body .admin-ops-kpis .admin-kpi-overdue,body .admin-ops-kpis .admin-kpi-blocked{background:#fcf2ef!important;border-color:#ecd7d0!important}
body .admin-ops-kpis .admin-kpi-collected,body .admin-ops-kpis .admin-kpi-clear{background:#eff7f3!important;border-color:#d5e6dc!important}
body .kpi-icon.orange{background:#f5e9d6!important;color:#a2713c!important}
body .kpi-icon.red{background:#f5e4df!important;color:#aa5d49!important}
body .kpi-icon.green{background:#e0efe7!important;color:#37765d!important}
body .kpi-icon.cyan{background:#e5eff5!important;color:#446e86!important}
body .kpi-icon.pink,body .kpi-icon.primary{background:#eee9f4!important;color:#76618f!important}
body .admin-dashboard-summary{padding:16px 18px!important;margin-bottom:22px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border:1px solid #dce6eb!important;background:#fff!important;border-radius:12px!important}
body .admin-dashboard-summary .quick-item{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px!important;gap:10px!important;min-width:0!important}
body .admin-dashboard-summary .quick-item strong{font-size:21px!important;color:#294552!important}
body .admin-dashboard-summary .quick-item small{font-size:12px!important;line-height:1.5!important;color:var(--dm-muted)!important}
body .admin-dashboard-summary .quick-item>span{background:#eff4f7!important;color:#628092!important;box-shadow:none!important;width:35px!important;height:35px!important}
body .admin-dashboard-details{margin:20px 0;border:1px solid #dce6eb;border-radius:14px;background:#fff;overflow:hidden}
body .admin-dashboard-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;cursor:pointer;list-style:none;color:#294552;font-size:15px;font-weight:600;min-height:64px}
body .admin-dashboard-details>summary::-webkit-details-marker{display:none}
body .admin-dashboard-details>summary>span:first-child{display:flex;align-items:center;gap:10px}
body .admin-dashboard-details>summary::after{content:'+';font-size:23px;font-weight:400;color:#65818d}
body .admin-dashboard-details[open]>summary::after{content:'−'}
body .admin-details-hint{margin-left:auto;color:var(--dm-muted);font-size:12px;font-weight:400}
body .admin-dashboard-details-body{padding:0 20px 20px}
body .admin-dashboard-details[open]>summary{border-bottom:1px solid #e5edf0;margin-bottom:18px}
body .admin-dashboard-details:focus-within{border-color:#a3bdc9}
@media(max-width:1100px){body .content .kpi-grid.admin-ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
 body .premium-course-card{padding:18px!important}
 body .existing-student-toolbar .existing-student-search{flex:0 0 auto!important;width:100%!important}
 body .existing-student-search input{font-size:16px!important}
 body .existing-student-row{grid-template-columns:1fr!important;gap:13px!important;padding:15px!important}
 body .existing-student-price{padding-left:33px!important;max-width:200px!important;width:100%!important}
 body .student-profile-modal .profile-history-row.payment-history-row{grid-template-columns:36px minmax(0,1fr)!important;align-items:start!important}
 body .payment-history-tools{grid-column:2!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;width:100%!important}
 body .teacher-profile-head .teacher-profile-access-state{max-width:100%!important;width:100%!important}
 body .calendar-period-block,body .calendar-toolbar-actions{width:100%!important}
 body .calendar-toolbar-actions{justify-content:flex-start!important}
 body .calendar-toolbar-actions .location-filter{flex:1 1 100%!important;max-width:100%!important}
 body .admin-dashboard-head-actions{width:100%;justify-content:space-between}
 body .admin-dashboard-head-actions .dashboard-date-card{width:auto!important;flex:1!important}
 body .admin-ops-kpis .kpi{min-height:168px!important;padding:15px!important}
 body .admin-ops-kpis .kpi strong.value{font-size:25px!important}
 body .admin-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;padding:14px!important}
 body .admin-details-hint{display:none}
 body .admin-dashboard-details>summary{padding:17px;font-size:14px}
 body .admin-dashboard-details-body{padding:0 12px 12px}
}
@media(max-width:359px){body .content .kpi-grid.admin-ops-kpis{grid-template-columns:1fr!important}}

/* V6.148 — notification center and private staff messages. */
body .dm-communication-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #dce6eb;border-radius:12px;background:#f6f9fa;color:#385c6d;cursor:pointer}
body .dm-communication-button:hover{background:#eaf2f6;border-color:#b7cdd8}
body .dm-communication-button>.icon{width:21px;height:21px}
body .dm-communication-count{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;background:#b96b55;color:#fff;border:2px solid white;border-radius:20px;font-size:10px;font-weight:600;display:grid;place-items:center;line-height:1}
body .dm-communication-count.hidden{display:none!important}
body .dm-notice-panel{position:fixed;z-index:120;display:flex;flex-direction:column;max-height:min(680px,calc(100dvh - 115px));background:#fff;border:1px solid #d7e4ea;border-radius:18px;box-shadow:0 18px 70px #182c3530;overflow:hidden}
body .dm-notice-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid #e6edf0}
body .dm-notice-panel-head strong{font-size:18px;font-weight:600;color:#294653}
body .dm-notice-panel-head small{display:block;font-size:12px;color:var(--dm-muted);margin-top:4px}
body .dm-notice-panel-head .icon-btn{width:34px!important;height:34px!important}
body .dm-notice-panel-list{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 18px 10px}
body .dm-notice-panel-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid #e6edf0;background:#f8fafb}
body .dm-notice-panel-foot .btn{font-size:13px!important;min-height:39px!important}
body .dm-notice-row{display:flex;align-items:flex-start;gap:13px;padding:17px 10px;border-bottom:1px solid #e6edf0;min-width:0;background:#fff}
body .dm-notice-row:last-child{border-bottom:0}
body .dm-notice-row.is-unread{background:#f4f8fa}
body .dm-notice-row.is-important .dm-notice-icon{background:#f9ece5;color:#a66b4b}
body .dm-notice-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#edf3f7;color:#54778b}
body .dm-notice-icon.payments{background:#edf5f0;color:#407963}
body .dm-notice-icon.students{background:#f1edf7;color:#7a6393}
body .dm-notice-icon.courses{background:#edf3f9;color:#567b9c}
body .dm-notice-icon .icon{width:18px;height:18px}
body .dm-notice-copy{flex:1;min-width:0}
body .dm-notice-copy strong{font-size:14px;font-weight:600;line-height:1.5;color:#294653;overflow-wrap:anywhere}
body .dm-notice-copy p{font-size:13px!important;line-height:1.6!important;color:#587480;margin:5px 0 8px;overflow-wrap:anywhere;white-space:pre-wrap}
body .dm-notice-copy>small{font-size:11px;line-height:1.5;color:#6b838f}
body .dm-notice-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-top:8px}
body .dm-text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 0;min-height:32px;border:0;background:transparent;color:#3b6b80;font-size:12px;font-weight:550;cursor:pointer;text-align:left;font-family:inherit}
body .dm-text-button .icon{width:14px;height:14px}
body .dm-text-button:hover{color:#193f51;text-decoration:underline}
body .dm-notice-read{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:#fff;border:1px solid #d9e6ec;border-radius:9px;color:#4f7588;cursor:pointer}
body .dm-notice-read .icon{width:16px;height:16px}
body .dm-notice-day{font-size:11px;font-weight:600;color:#6b838f;padding:17px 10px 9px;text-transform:uppercase;letter-spacing:.05em}
body .dm-notice-home{margin-bottom:22px!important;overflow:hidden}
body .dm-notice-home-list{padding:0 12px 6px}
body .dm-notice-home-list .dm-notice-row{padding:14px 10px}
body .dm-notice-home-list .dm-notice-day{padding-top:12px}
body .dm-notice-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 20px}
body .dm-communication-search{display:flex;align-items:center;gap:10px;padding:0 13px;min-height:46px;background:#fff;border:1px solid #d6e3e9;border-radius:11px;min-width:0;flex:1 1 260px}
body .dm-communication-search>.icon{width:19px;height:19px;color:#698591;flex-shrink:0}
body .dm-communication-search input{width:100%;min-width:0;min-height:44px;font-family:inherit;font-size:14px;border:0;background:transparent;padding:10px 0;color:#294653;outline:0}
body .dm-communication-search:focus-within{border-color:#648c9e;box-shadow:0 0 0 3px #648c9e14}
body .dm-filter-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:4px;background:#eaf0f3;border-radius:11px}
body .dm-filter-tabs button{padding:9px 13px;min-height:38px;background:transparent;border:1px solid transparent;border-radius:8px;font-family:inherit;font-size:13px;color:var(--dm-muted);cursor:pointer;white-space:nowrap}
body .dm-filter-tabs button.active{background:#fff;border-color:#d8e5eb;color:#294653;box-shadow:0 2px 5px #182c3506}
body .dm-category-tabs{background:transparent;padding:0;flex-basis:100%}
body .dm-category-tabs button{border-color:#dae5eb;background:#f5f8fa}
body .dm-category-tabs button.active{background:#315e70;color:#fff;border-color:#315e70;box-shadow:none}
body .dm-notice-center-list{padding:0 16px 10px!important;overflow:hidden;margin-bottom:18px}
body .dm-communication-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:35px 20px;font-size:14px;line-height:1.6;color:#69828f;text-align:center;min-height:90px}
body .dm-notice-detail h2{font-size:23px;line-height:1.4;color:#294653;overflow-wrap:anywhere}
body .dm-notice-detail p{font-size:15px;line-height:1.7;color:#587480;white-space:pre-wrap;overflow-wrap:anywhere}
body .dm-notice-detail small{font-size:13px;color:#6b838f}
body .dm-chat-shell{display:grid;grid-template-columns:285px minmax(0,1fr);height:650px;max-height:calc(100dvh - 225px);min-height:420px;border:1px solid #dbe6eb;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 30px #182c3506}
body .dm-chat-sidebar{border-right:1px solid #e1e9ed;overflow:auto;min-height:0;background:#fbfcfd}
body .dm-chat-sidebar-head{position:sticky;top:0;background:#fbfcfd;z-index:1;padding:20px 16px;border-bottom:1px solid #e6edf0}
body .dm-chat-sidebar-head h2{font-size:16px;font-weight:600;color:#294653;margin:0 0 14px}
body .dm-chat-sidebar-head .dm-communication-search{min-height:42px}
body .dm-chat-sidebar-head input{min-height:40px;font-size:13px}
body .dm-chat-contact{display:flex;align-items:center;gap:11px;width:100%;padding:16px;border:0;border-bottom:1px solid #edf2f5;background:transparent;cursor:pointer;text-align:left;font-family:inherit;color:#294653;min-width:0}
body .dm-chat-contact[hidden]{display:none!important}
body .dm-chat-contact:hover{background:#f0f5f8}
body .dm-chat-contact.active{background:#eaf2f6;box-shadow:inset 3px 0 #5a8396}
body .dm-chat-avatar{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;background:#e6eef3;border:1px solid #dae6ee;border-radius:12px;color:#5a7c8f;font-size:13px;font-weight:600}
body .dm-chat-contact-copy{min-width:0;flex:1}
body .dm-chat-contact-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:1.5}
body .dm-chat-contact-copy small{display:block;font-size:12px;color:var(--dm-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;line-height:1.5}
body .dm-chat-unread{display:grid;place-items:center;min-width:21px;height:21px;background:#315e70;border-radius:20px;padding:0 5px;color:#fff;font-size:11px}
body .dm-chat-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f6f9fa}
body .dm-chat-thread-head{display:flex;align-items:center;gap:12px;padding:18px 22px;flex-shrink:0;background:#fff;border-bottom:1px solid #e1e9ed}
body .dm-chat-thread-head strong{font-size:15px;font-weight:600;color:#294653;overflow-wrap:anywhere}
body .dm-chat-thread-head small{display:block;font-size:12px;line-height:1.5;color:#738995;margin-top:3px}
body .dm-chat-back{display:none!important}
body .dm-chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}
body .dm-chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:14px 0;gap:5px}
body .dm-chat-message.own{align-items:flex-end}
body .dm-chat-bubble{max-width:82%;background:#fff;border:1px solid #dfe8ed;border-radius:14px 14px 14px 4px;padding:12px 15px;font-size:14px;line-height:1.65;color:#294653;white-space:pre-wrap;overflow-wrap:anywhere}
body .dm-chat-message.own .dm-chat-bubble{background:#315e70;border-color:#315e70;color:#fff;border-radius:14px 14px 4px 14px}
body .dm-chat-message>small{font-size:10px;color:var(--dm-muted);line-height:1.5}
body .dm-chat-day{margin:18px auto;text-align:center;font-size:11px;color:var(--dm-muted);font-weight:500}
body .dm-chat-compose{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:16px 20px;background:#fff;border-top:1px solid #e1e9ed;flex-shrink:0}
body .dm-chat-compose textarea{flex:1;min-width:0;min-height:52px;max-height:120px;font:inherit;font-size:14px;line-height:1.5;padding:12px 14px;border:1px solid #d6e3e9;border-radius:11px;background:#f8fafb;color:#294653;resize:vertical}
body .dm-chat-compose>small{flex-basis:100%;font-size:11px;color:var(--dm-muted);line-height:1.4}
body .dm-chat-compose textarea:focus{outline:2px solid #9fbcc9;outline-offset:1px}
body .dm-chat-compose .btn{min-height:48px!important;font-size:13px!important}
body .dm-chat-intro{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;color:#758e9a}
body .dm-chat-intro>.icon{width:42px;height:42px;color:#8cabbc;margin-bottom:18px}
body .dm-chat-intro h2{font-size:24px;font-weight:600;color:#385d6e;margin:0 0 10px}
body .dm-chat-intro p{font-size:14px;line-height:1.7;max-width:320px;margin:0}
body .dm-chat-error{font-size:12px;line-height:1.5;color:#a56646;padding:0 22px;background:#fbf3e8}
body .dm-chat-error:not(:empty){padding:10px 22px}
body .dm-teacher-messages{max-width:1100px!important;margin:auto!important;padding:0!important;min-height:100dvh;background:#f4f7f8}
body .dm-teacher-message-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;background:#fff;border-bottom:1px solid #dce6eb}
body .dm-teacher-message-head strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
body .dm-teacher-messages .content{padding:24px!important}
body .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:no-preference){body .dm-notice-panel{animation:dm-dialog-arrive .2s ease-out}body .dm-chat-contact,body .dm-communication-button{transition:background .18s,border-color .18s}}
@media(max-width:900px){body .dm-chat-shell{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:700px){
 body .dm-notice-panel{left:12px!important;right:12px!important;top:90px!important;width:auto!important;max-height:calc(100dvh - 112px - env(safe-area-inset-bottom));border-radius:16px}
 body .dm-notice-panel-head{padding:16px}
 body .dm-notice-panel-list{padding:0 10px 8px}
 body .dm-notice-copy strong{font-size:14px}
 body .dm-notice-row{gap:10px;padding:15px 8px}
 body .dm-notice-icon{width:31px;height:31px;flex-basis:31px;border-radius:9px}
 body .dm-notice-home-list{padding:0 6px 6px}
 body .dm-notice-center-list{padding:0 6px 8px!important}
 body .dm-communication-search input{font-size:16px}
 body .dm-notice-controls{gap:12px}
 body .dm-notice-controls>.dm-communication-search{flex-basis:100%}
 body .dm-filter-tabs button{font-size:12px;min-height:40px;padding:9px 11px}
 body .dm-chat-shell{display:flex;flex-direction:column;height:calc(100dvh - 260px - env(safe-area-inset-bottom));max-height:none;min-height:400px;border-radius:14px}
 body .dm-chat-sidebar{flex:1;border:0;min-height:0}
 body .dm-chat-shell:not(.has-peer) .dm-chat-thread{display:none}
 body .dm-chat-shell.has-peer .dm-chat-sidebar{display:none}
 body .dm-chat-shell.has-peer .dm-chat-thread{flex:1}
 body .dm-chat-back{display:inline-flex!important;flex-shrink:0}
 body .dm-chat-thread-head{padding:13px 12px;gap:9px}
 body .dm-chat-thread-head .icon-btn{width:36px!important;height:36px!important}
 body .dm-chat-thread-head small{font-size:11px}
 body .dm-chat-thread-head strong{font-size:14px}
 body .dm-chat-messages{padding:12px 14px}
 body .dm-chat-bubble{max-width:90%;font-size:14px;padding:10px 12px}
 body .dm-chat-compose{padding:12px;gap:8px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
 body .dm-chat-compose textarea{font-size:16px;min-height:48px;padding:10px}
 body .dm-chat-compose .btn{padding-inline:11px!important}
 body .dm-chat-compose .btn .icon{display:none}
 body .dm-chat-contact{min-height:75px;padding:16px}
 body .dm-teacher-messages .content{padding:20px 12px!important}
 body .dm-teacher-message-head{padding:13px 12px}
 body .teacher-head-actions{gap:7px!important;flex-wrap:wrap}
 body .teacher-head-actions .teacher-sync{display:none!important}
}

/* V6.149 — compact alerts and chat tied to the visible mobile viewport. */
body .dm-chat-home{display:none!important}
body .dm-message-alert{position:fixed;top:max(18px,env(safe-area-inset-top));right:20px;z-index:180;width:min(400px,calc(100vw - 28px));display:flex;align-items:flex-start;gap:12px;padding:17px;background:#fff;border:1px solid #cbdfe8;border-radius:16px;box-shadow:0 16px 55px #182c3530}
body .dm-message-alert-symbol{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;background:#e8f1f5;color:#315e70;border-radius:11px}
body .dm-message-alert-symbol .icon{width:19px;height:19px}
body .dm-message-alert-copy{min-width:0;flex:1}
body .dm-message-alert-copy strong{font-size:14px;font-weight:600;color:#294653;line-height:1.5}
body .dm-message-alert-copy p{margin:4px 0 5px;color:#5e7a88;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body .dm-message-alert-close{width:28px;height:28px;flex:0 0 28px;border:0;background:#f4f7f9;color:#698793;border-radius:8px;display:grid;place-items:center;cursor:pointer}
body .dm-message-alert-close .icon{width:15px;height:15px}
@media(prefers-reduced-motion:no-preference){body .dm-message-alert{animation:dm-dialog-arrive .22s ease-out}}
@media(max-width:700px){
 html.dm-chat-page,body.dm-chat-page{overflow:hidden!important;overscroll-behavior:none;height:100%!important}
 body.dm-chat-page #app{position:fixed!important;left:0!important;right:0!important;top:var(--dm-chat-viewport-top,0px)!important;height:var(--dm-chat-viewport-height,100dvh)!important;overflow:hidden!important}
 body.dm-chat-page #app>.shell{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important}
 body.dm-chat-page .main{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important;width:100%!important;margin-left:0!important}
 body.dm-chat-page .topbar{position:static!important;flex-shrink:0!important;min-height:64px!important;padding:9px 12px!important}
 body.dm-chat-page .topbar .dm-browser-nav,body.dm-chat-page .topbar .role-badge{display:none!important}
 body.dm-chat-page .content{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;overflow:hidden!important;padding:10px 12px 12px!important;width:100%!important}
 body.dm-chat-page .content>.hero{flex-shrink:0!important;margin:0 0 10px!important;gap:7px!important;align-items:center!important}
 body.dm-chat-page .content>.hero h1{font-size:21px!important;line-height:1.3!important;margin:0!important}
 body.dm-chat-page .content>.hero p,body.dm-chat-page .content>.hero .eyebrow{display:none!important}
 body.dm-chat-page .content>.hero .hero-actions{width:auto!important;gap:6px!important;flex-wrap:wrap!important;justify-content:flex-end!important;margin:0!important}
 body.dm-chat-page .content>.hero .hero-actions>.btn{min-height:36px!important;font-size:11px!important;padding:7px 9px!important;flex:none!important}
 body.dm-chat-page .content>.hero .hero-actions>.btn .icon{width:15px!important;height:15px!important}
 body.dm-chat-page .dm-chat-home{display:inline-flex!important}
 body.dm-chat-page .dm-chat-shell{flex:1!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
 body.dm-chat-page .dm-chat-thread{min-height:0!important}
 body.dm-chat-page .dm-chat-thread-head{padding:10px!important;flex-shrink:0!important}
 body.dm-chat-page .dm-chat-compose{padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important}
 body.dm-chat-page .dm-chat-compose textarea{resize:none!important;max-height:82px!important}
 body.dm-chat-page .dm-chat-compose>small{display:none!important}
 body.dm-chat-page .mobile-nav{display:none!important}
 body.dm-chat-page .dm-teacher-messages{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-width:none!important}
 body.dm-chat-page .dm-teacher-message-head{flex-shrink:0!important;padding:10px 12px!important}
 body.dm-chat-page .dm-teacher-message-head .btn{min-height:36px!important;padding:7px 10px!important;font-size:12px!important}
 body .dm-message-alert{left:14px;right:14px;width:auto;top:max(12px,env(safe-area-inset-top));padding:14px}
}
@media(max-width:700px){body.dm-chat-page.dm-keyboard-open .content>.hero{display:none!important}}
@media(max-width:700px){body.dm-chat-page.dm-keyboard-open .dm-chat-compose{padding-bottom:10px!important}}

/* V6.150 — teacher navigation and access briefing. */
body .teacher-app nav.teacher-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body .teacher-app nav.teacher-bottom-nav .teacher-nav-messages{position:relative!important}
body .teacher-nav-message-count{position:absolute;top:2px;right:10%;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:12px;background:#a86a55;color:white;font-size:9px;line-height:1;pointer-events:none}
body .teacher-nav-message-count.hidden{display:none!important}
body .modal.dm-access-summary{width:880px!important;max-width:calc(100vw - 32px)!important}
body .dm-access-head{background:linear-gradient(120deg,#f0f6f9,#fff)!important;align-items:flex-start!important}
body .dm-access-head .eyebrow{font-size:10px!important;color:#6d8b9b!important;margin-bottom:9px!important}
body .dm-access-head #dmAccessSummaryTitle{font-size:25px!important;font-weight:600!important;line-height:1.3!important;color:#294653!important}
body .dm-access-body{background:#f6f9fa!important}
body .dm-access-intro{margin:0 0 18px;font-size:14px;line-height:1.6;color:#67818f}
body .dm-access-communication-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:23px}
body .dm-access-stat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border:1px solid #d9e6ed;border-radius:13px;background:#edf4f9;min-width:0}
body .dm-access-stat small{font-size:12px;font-weight:500;line-height:1.5;color:#617b89}
body .dm-access-stat strong{font-size:29px;font-weight:600;line-height:1.3;letter-spacing:-.025em;color:#294653;overflow-wrap:anywhere}
body .dm-access-stat span{font-size:12px;color:var(--dm-muted);line-height:1.5}
body .dm-access-stat.green{background:#edf6f1;border-color:#d6e7dd}
body .dm-access-stat.amber{background:#fbf5ea;border-color:#eedec3}
body .dm-access-stat.coral{background:#fbefea;border-color:#edd6cc}
body .dm-access-section{padding:20px;background:#fff;border:1px solid #dce7ed;border-radius:14px;margin-bottom:18px}
body .dm-access-section:last-child{margin-bottom:0}
body .dm-access-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
body .dm-access-section-heading h3{font-size:16px;line-height:1.4;font-weight:600;color:#294653;margin:0}
body .dm-access-section-heading>span{font-size:12px;color:var(--dm-muted)}
body .dm-access-threads>button{display:flex;align-items:center;width:100%;padding:14px 0;gap:12px;border:0;border-bottom:1px solid #e9eff3;background:transparent;cursor:pointer;text-align:left;font-family:inherit}
body .dm-access-threads>button:last-child{border-bottom:0}
body .dm-access-threads>button:hover{background:#f6f9fb}
body .dm-access-thread-copy{flex:1;min-width:0}
body .dm-access-thread-copy strong{font-size:14px;line-height:1.5;color:#294653;font-weight:600;display:block}
body .dm-access-thread-copy small{font-size:12px;line-height:1.6;color:var(--dm-muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
body .dm-access-threads>button>.icon{width:17px;height:17px;color:#8ba3af}
body .dm-access-clear{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.6;color:#718a97;padding:10px 0}
body .dm-access-clear .icon{width:18px;height:18px;color:#729582}
body .dm-access-more{display:block;margin-top:12px;color:#718a97;font-size:12px;line-height:1.6}
body .dm-access-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body .dm-access-stats .dm-access-stat{padding:14px}
body .dm-access-stats .dm-access-stat strong{font-size:23px}
body .dm-access-inline-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
body .dm-access-day-courses{border-top:1px solid #e7eff3;margin-top:18px;padding-top:9px}
body .dm-access-day-courses>div{display:flex;align-items:center;gap:11px;padding:12px 0}
body .dm-access-day-courses>div>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eef4f8;color:#6e91a6;flex-shrink:0}
body .dm-access-day-courses>div .icon{width:17px;height:17px}
body .dm-access-day-courses strong{font-size:14px;line-height:1.5;color:#294653;font-weight:600}
body .dm-access-day-courses small{display:block;font-size:12px;line-height:1.5;color:var(--dm-muted);margin-top:3px}
body .dm-access-teacher-today{display:flex;align-items:center;gap:13px;padding:18px 20px;background:#edf4f9;border:1px solid #dce8f0;border-radius:13px;color:#587d93}
body .dm-access-teacher-today>.icon{width:25px;height:25px}
body .dm-access-teacher-today strong{font-size:14px;font-weight:600;line-height:1.5;color:#385b70}
body .dm-access-teacher-today small{display:block;font-size:12px;line-height:1.6;color:var(--dm-muted);margin-top:4px}
body .dm-access-foot{justify-content:space-between!important}
body .dm-access-foot>small{font-size:12px;color:var(--dm-muted);line-height:1.5}
@media(max-width:700px){
 body .teacher-app nav.teacher-bottom-nav button span{font-size:11px!important}
 body .modal.dm-access-summary{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important}
 body .dm-access-head{padding:19px 18px!important}
 body .dm-access-head #dmAccessSummaryTitle{font-size:23px!important}
 body .dm-access-body{padding:18px 14px!important}
 body .dm-access-communication-totals{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}
 body .dm-access-stat{padding:14px}
 body .dm-access-stat strong{font-size:26px}
 body .dm-access-section{padding:16px 13px}
 body .dm-access-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .dm-access-foot{padding:16px!important}
 body .dm-access-foot .btn{width:100%!important;justify-content:center!important}
}
body .dm-access-notices>button{display:flex;align-items:flex-start;gap:12px;width:100%;padding:16px 0;background:transparent;border:0;border-bottom:1px solid #e7eff3;cursor:pointer;text-align:left;font-family:inherit}
body .dm-access-notices>button:last-child{border-bottom:0}
body .dm-access-notices>button:hover{background:#f6f9fb}
body .dm-access-notices>button>.icon{width:16px;height:16px;flex-shrink:0;margin-top:9px;color:#8ba3af}

/* V6.151 — aligned briefing and a shared, quiet mobile interface. */
body .dm-access-head{display:flex!important;align-items:flex-start!important;background:#fff!important}
body .dm-access-heading{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px;min-width:0;flex:1}
body .dm-access-heading>.eyebrow{display:block!important;margin:0!important;line-height:1.4!important}
body .dm-access-head #dmAccessSummaryTitle{display:block!important;margin:0!important;max-width:100%;overflow-wrap:anywhere;letter-spacing:-.025em!important}
body .dm-access-heading>.panel-sub{margin:0!important;line-height:1.5!important}
body .dm-access-head>.icon-btn{align-self:flex-start!important;margin:0!important;flex:0 0 auto}
body .dm-access-body{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
body .dm-access-foot{align-items:center!important;box-shadow:none!important}
body .dm-access-foot>.btn{flex:0 0 auto!important}
body .dm-access-section-heading>.dm-text-button{min-height:44px;display:inline-flex;align-items:center;gap:6px;white-space:normal;text-align:left}
body .dm-access-section-heading>.dm-text-button .icon{width:15px;height:15px}
body .dm-access-stat strong{font-variant-numeric:tabular-nums}

@media screen and (max-width:700px){
 :root{--dm-ink:#1d2430;--dm-muted:#626b77;--dm-canvas:#f2f2f7;--dm-line:#e5e5ea;--dm-radius:18px;--shadow:0 2px 10px #1d243005;--dm-mobile-accent:#0066cc}
 body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;-webkit-font-smoothing:antialiased}
 body button,body input,body select,body textarea{font-family:inherit}
 body .shell,body .premium-teacher-app,body .dm-teacher-messages{background:var(--dm-canvas)!important}
 body .content{padding:22px 16px calc(105px + env(safe-area-inset-bottom))!important}
 body .topbar,body .premium-teacher-head,body .dm-teacher-message-head{background:rgba(255,255,255,.96)!important;border-bottom-color:var(--dm-line)!important;box-shadow:none!important}
 body .mobile-school-brand strong,body .teacher-school-brand strong{color:var(--dm-ink)!important;font-weight:600!important;letter-spacing:-.015em!important}
 body .hero h1{font-size:28px!important;letter-spacing:-.035em!important}
 body .hero p,body .panel-sub{color:var(--dm-muted)!important}
 body .hero .eyebrow{letter-spacing:.07em!important;font-size:10px!important}
 body .btn{min-height:46px!important;border-radius:12px!important;font-weight:600!important;box-shadow:none!important}
 body .content .btn-primary,body .teacher-app .btn-primary,body .modal .btn-primary,body .btn-primary{background:var(--dm-mobile-accent)!important;border-color:var(--dm-mobile-accent)!important;color:#fff!important;box-shadow:none!important}
 body .content .btn-soft,body .teacher-app .btn-soft,body .modal .btn-soft,body .btn-soft{background:#edf4ff!important;border:1px solid #dae8fb!important;color:#075eb5!important}
 body .content .btn-ghost,body .teacher-app .btn-ghost,body .modal .btn-ghost,body .btn-ghost{background:#f2f2f7!important;border:1px solid #e5e5ea!important;color:#505b6a!important}
 body .icon-btn,body .teacher-logout{border-radius:12px!important;background:#f2f2f7!important;border-color:#e5e5ea!important;color:#505b6a!important}
 body .btn:hover{transform:none!important}
 body button:focus-visible,body a:focus-visible,body [role=button]:focus-visible{outline-color:#0066cc!important}
 body input:focus-visible,body select:focus-visible,body textarea:focus-visible{outline-color:#0066cc!important}
 body .field{min-width:0}
 body .field label{color:#505b6a!important;font-size:13px!important;letter-spacing:0!important;margin-bottom:7px}
 body .field input,body .field select,body .field textarea,body .toolbar input,body .toolbar select{border-color:#dedee6!important;border-radius:12px!important;font-size:16px!important;max-width:100%;min-width:0}
 body .search-box,body .dm-communication-search{border-color:#e5e5ea!important;border-radius:12px!important;background:#fff!important}
 body .panel,body .card,body .economic-overview-card,body .premium-course-card,body .student-summary-card,body .teacher-premium-section,body .teacher-blocked-card{border-color:#e5e5ea!important;border-radius:18px!important;box-shadow:var(--shadow)!important}
 body .panel-head{border-bottom-color:#ededf2!important}
 body .panel-head h3,body .teacher-section-head h2{font-size:19px!important;font-weight:600!important;letter-spacing:-.025em!important}
 body .kpi,body .dashboard-kpi,body .teacher-payroll-kpi{border-radius:16px!important;border-color:#e5e5ea!important;box-shadow:none!important}
 body .kpi strong,body .dashboard-kpi strong,body .teacher-payroll-kpi strong,body .student-summary-card strong{font-variant-numeric:tabular-nums;font-weight:600!important}
 body .kpi-icon,body .student-table-avatar{background:#edf4ff!important;color:#2868ab!important}
 body .students-table-wrap tr{border-radius:18px!important;border-color:#e5e5ea!important;box-shadow:none!important}
 body .students-table-wrap td:before{color:var(--dm-muted)!important;letter-spacing:.025em!important}
 body .student-name-link{font-size:16px!important;font-weight:600!important}
 body .students-table-wrap .concept-row-actions .btn{min-height:44px!important}
 body .premium-course-title h3,body .teacher-lesson-main h3,body .teacher-own-course h3{font-size:21px!important;letter-spacing:-.025em!important}
 body .premium-course-info{border-color:#ededf2!important}
 body .course-card-glow{display:none!important}
 body .premium-teacher-hero{background:#fff!important;border-color:#e5e5ea!important;border-radius:20px!important;box-shadow:none!important;padding:22px 20px!important}
 body .premium-teacher-hero h1{color:var(--dm-ink)!important}
 body .premium-teacher-hero p,body .premium-teacher-hero .eyebrow{color:var(--dm-muted)!important}
 body .teacher-hero-badge{background:#edf4ff!important;border:1px solid #dae8fb!important;color:#075eb5!important}
 body .teacher-hero-badge span{color:#075eb5!important}
 body .teacher-hero-badge small{color:#52677e!important}
 body .premium-teacher-lesson,body .teacher-own-course,body .attendance-row,body .teacher-student-row{background:#fff!important;border-color:#e5e5ea!important;border-radius:14px!important;box-shadow:none!important}
 body .premium-teacher-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body .premium-teacher-kpis>.teacher-payroll-kpi:last-child:nth-child(odd){grid-column:1/-1}
 body .teacher-payroll-kpi strong{font-size:clamp(20px,6vw,27px)!important;overflow-wrap:anywhere}
 body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{background:rgba(255,255,255,.97)!important;border-color:#e5e5ea!important;box-shadow:0 -3px 18px #1d243006!important}
 body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{color:var(--dm-muted)!important}
 body .mobile-nav button.active,body .teacher-app nav.teacher-bottom-nav button.active{background:#edf4ff!important;color:#0066cc!important;box-shadow:none!important}
 body .teacher-nav-message-count{background:#c83e42}
 body .mobile-more-sheet{border-radius:24px 24px 0 0!important;background:#f2f2f7!important;padding:14px 16px calc(20px + env(safe-area-inset-bottom))!important}
 body .mobile-more-head{padding:6px 2px 12px}
 body .mobile-more-head strong{font-size:22px!important;font-weight:600!important;letter-spacing:-.025em}
 body .mobile-more-head small{color:var(--dm-muted)!important;font-size:13px}
 body .mobile-more-grid{grid-template-columns:1fr!important;gap:0!important;border-radius:16px;overflow:hidden;background:#fff}
 body .mobile-more-grid button{min-height:54px!important;border:0!important;border-bottom:1px solid #ededf2!important;border-radius:0!important;background:#fff!important;color:var(--dm-ink)!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;padding:14px 16px!important;font-size:15px!important;font-weight:500!important;box-shadow:none!important}
 body .mobile-more-grid button:last-child{border-bottom:0!important}
 body .mobile-more-grid button svg{color:#0066cc!important;width:21px!important;height:21px!important;flex-shrink:0}
 body .mobile-more-logout{margin-top:16px;border-radius:14px;background:#fff;color:#b52c35;font-weight:600;min-height:48px}
 body .modal-backdrop{padding:10px!important;padding-top:max(10px,env(safe-area-inset-top))!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
 body .modal{border-color:#e5e5ea!important;border-radius:22px!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;box-shadow:0 24px 70px #1d243033!important}
 body .modal.dm-access-summary{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
 body .modal-head{align-items:flex-start!important;gap:12px!important;background:#fff!important;border-bottom-color:#e5e5ea!important}
 body .modal-head>strong{min-width:0;overflow-wrap:anywhere;padding-top:7px}
 body .modal-head>.icon-btn{flex-shrink:0!important}
 body .modal-body{min-height:0;overscroll-behavior:contain}
 body .modal-foot{background:#fafafa!important;border-top-color:#e5e5ea!important;box-shadow:none!important;gap:10px!important}
 body .dm-access-head #dmAccessSummaryTitle{font-size:22px!important;line-height:1.25!important;color:var(--dm-ink)!important}
 body .dm-access-head .eyebrow{font-size:9px!important;color:var(--dm-muted)!important}
 body .dm-access-body{background:#f2f2f7!important}
 body .dm-access-intro{color:var(--dm-muted);font-size:14px}
 body .dm-access-section{border-color:#e5e5ea;border-radius:16px;padding:14px;margin-bottom:14px}
 body .dm-access-section-heading{align-items:flex-start;gap:6px;margin-bottom:10px}
 body .dm-access-section-heading h3{flex:1 1 140px;font-size:16px;line-height:1.5;padding-top:9px;color:var(--dm-ink)}
 body .dm-access-section-heading>span{padding-top:11px}
 body .dm-access-stat{gap:6px;border-radius:14px}
 body .dm-access-stats .dm-access-stat strong{font-size:clamp(19px,5.5vw,23px)}
 body .dm-access-foot{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 body .dm-access-foot>small{color:var(--dm-muted);order:2;text-align:center;font-size:11px}
 body .dm-access-foot>.btn{order:1;min-height:48px!important}
 body .dm-access-inline-actions .btn{flex:1 1 130px!important}
 body .dm-text-button{color:#0066cc}
 body .dm-notice-panel,body .dm-message-alert,body .dm-chat-shell{border-color:#e5e5ea!important;border-radius:18px!important}
 body .dm-chat-thread,body .dm-chat-messages{background:#f2f2f7}
 body .dm-chat-message.own .dm-chat-bubble{background:#0066cc;border-color:#0066cc}
 body .dm-chat-bubble{border-color:#e5e5ea;line-height:1.5}
 body .dm-chat-contact.active{background:#edf4ff}
 body .dm-chat-compose textarea{border-color:#e5e5ea;border-radius:16px;background:#f2f2f7}
 body .dm-chat-unread{background:#0066cc}
}
@media screen and (max-width:360px){
 body .dm-access-communication-totals{grid-template-columns:1fr}
 body .dm-access-stats{gap:8px}
 body .dm-access-stats .dm-access-stat{padding:11px 9px}
 body .dm-access-head{padding:16px 14px!important}
 body .dm-access-head #dmAccessSummaryTitle{font-size:20px!important}
}
@media screen and (max-width:700px) and (prefers-reduced-motion:no-preference){
 body .mobile-more-grid button,body .btn,body .icon-btn{transition:background .18s ease,color .18s ease,opacity .18s ease!important}
 body .mobile-more-grid button:active,body .btn:active,body .icon-btn:active{opacity:.72}
}

/* V6.152 — compact courses, coherent branding and polished mobile chrome. */
body .dm-brand-lockup{gap:11px!important}
body .dm-brand-mark{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:12px!important;overflow:visible!important}
body .dm-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;filter:none!important}
body .dm-brand-name{font-weight:500!important;letter-spacing:-.035em!important}
body .dm-brand-name strong{color:inherit!important;font-weight:650!important;background:none!important;-webkit-text-fill-color:currentColor!important}
body .dm-brand-tagline{font-size:9px!important;letter-spacing:.055em!important;line-height:1.5!important}
body .sidebar{background:#172338!important}
body .login-wrap{background:radial-gradient(ellipse at 20% 15%,#2b3c55,transparent 65%),#101a2b!important}
body .concept-course-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:14px!important}
body .premium-course-card.dm-course-compact{padding:18px!important;min-height:0!important;height:auto!important;gap:0!important;background:#fff!important}
body .dm-course-top{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:15px}
body .dm-course-top .premium-course-initials{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;font-size:16px!important;border-radius:12px!important;margin:0!important;display:grid;place-items:center}
body .dm-course-heading{flex:1;min-width:0}
body .dm-course-heading h3{font-size:19px!important;line-height:1.3!important;letter-spacing:-.025em!important;margin:0!important;overflow-wrap:anywhere}
body .dm-course-heading p{font-size:12px;line-height:1.5;color:var(--dm-muted);margin:4px 0 0;overflow-wrap:anywhere}
body .dm-course-facts{display:flex;flex-direction:column;gap:10px}
body .dm-course-facts>div{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5;color:var(--dm-muted);min-width:0}
body .dm-course-facts .icon{width:17px!important;height:17px!important;flex:0 0 17px;margin-top:2px;color:#7d8b9b}
body .dm-course-facts span{min-width:0;overflow-wrap:anywhere}
body .dm-course-facts strong{font-weight:550;display:block;color:#344454}
body .dm-course-facts small{display:block;color:var(--dm-muted);font-size:12px;margin-top:2px}
body .dm-course-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ededf2;padding-top:13px;margin-top:13px}
body .dm-course-students{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;font-size:12px;color:var(--dm-muted)}
body .dm-course-students .icon{width:16px!important;height:16px!important}
body .dm-course-fee{text-align:right;min-width:0;color:#1d2430}
body .dm-course-fee strong{font-size:21px;letter-spacing:-.03em;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}
body .dm-course-fee small{font-size:11px;color:var(--dm-muted);margin-left:4px}
body .dm-course-fee em{display:block;font-size:11px;line-height:1.5;color:var(--dm-muted);font-style:normal;margin-top:2px}
body .dm-course-actions{display:flex;gap:8px;margin-top:14px}
body .dm-course-actions>.btn{flex:1;min-width:0;min-height:44px!important;padding:9px!important;font-size:13px!important}
body .dm-chat-contact-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
body .dm-chat-contact-meta time{font-size:10px;color:var(--dm-muted);white-space:nowrap}
body .dm-chat-peer-copy{flex:1;min-width:0}
body .dm-chat-peer-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media screen and (max-width:700px){
 body .topbar{min-height:68px!important;padding:10px 16px!important;gap:10px!important;align-items:center!important;background:rgba(255,255,255,.97)!important}
 body .topbar-main{flex:1 1 0!important;min-width:0!important;gap:0!important}
 body .topbar .dm-browser-nav{display:none!important}
 body .topbar-title-wrap{min-width:0!important;width:100%}
 body .topbar-right{flex:0 1 auto!important;max-width:48%;justify-content:flex-end;gap:7px!important}
 body .topbar-right .topbar-scope-chip{max-width:100%;min-width:0!important}
 body .mobile-school-brand{gap:10px!important;min-width:0!important}
 body .mobile-school-brand .school-brand-logo,body .teacher-school-brand .school-brand-logo{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;box-shadow:none!important;border:1px solid #ededf2!important;background:#f7f8fa!important}
 body .mobile-school-brand .school-brand-logo img,body .teacher-school-brand .school-brand-logo img{object-fit:contain!important}
 body .school-brand-initials{background:#edf4ff!important;color:#0066cc!important;font-size:13px!important;font-weight:600!important}
 body .mobile-school-brand strong,body .teacher-school-brand strong{font-size:15px!important;line-height:1.3!important;letter-spacing:-.02em!important}
 body .mobile-school-brand small,body .teacher-school-brand small{font-size:11px!important;line-height:1.4!important;margin-top:3px;color:var(--dm-muted)!important}
 body .dm-communication-button{width:42px!important;height:42px!important;min-width:42px!important;border:0!important;background:#f2f2f7!important;border-radius:13px!important;color:#48596b!important;box-shadow:none!important}
 body .dm-communication-button .icon{width:21px!important;height:21px!important}
 body .premium-teacher-head{min-height:68px!important;padding:10px 16px!important;gap:10px!important}
 body .teacher-school-brand>div{min-width:0}
 body .teacher-head-actions{gap:7px!important;flex-wrap:nowrap!important}
 body .teacher-logout{min-height:42px!important;padding:10px!important;border:0!important;border-radius:13px!important}
 body .teacher-logout span{display:none!important}
 body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{border-radius:21px 21px 0 0!important;border:1px solid #e5e5ea!important;border-bottom:0!important;padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important;gap:3px!important;box-shadow:0 -4px 24px #17233809!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
 body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{border-radius:14px!important;gap:5px!important;min-height:52px!important;font-weight:500!important;min-width:0!important;transform:none!important}
 body .mobile-nav button.active,body .teacher-app nav.teacher-bottom-nav button.active{background:#edf4ff!important;color:#0066cc!important;box-shadow:none!important}
 body .mobile-nav button .icon,body .teacher-app nav.teacher-bottom-nav button .icon{width:22px!important;height:22px!important;stroke-width:1.7!important}
 body .mobile-nav button span,body .teacher-app nav.teacher-bottom-nav button span{font-size:10px!important;letter-spacing:0!important;white-space:nowrap!important}
 body .teacher-nav-message-count{top:1px;right:12%}
 body .premium-course-card.dm-course-compact{padding:16px!important;border-radius:18px!important}
 body .dm-course-heading h3{font-size:19px!important}
 body .concept-course-grid{gap:12px!important}
 /* Keep V149 visual viewport sizing and keyboard recovery; refine its contents. */
 body.dm-chat-page .content>.dm-messages-hero{align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;margin-bottom:12px!important}
 body.dm-chat-page .content>.dm-messages-hero>div:first-child{flex:1;min-width:0}
 body.dm-chat-page .content>.dm-messages-hero h1{font-size:24px!important;letter-spacing:-.03em!important}
 body.dm-chat-page .dm-messages-hero .hero-actions{flex-shrink:0!important;gap:7px!important}
 body.dm-chat-page .dm-messages-hero .hero-actions>.btn{width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important}
 body.dm-chat-page .dm-messages-hero .hero-actions>.btn .icon{display:block!important;width:19px!important;height:19px!important}
 body.dm-chat-page .dm-chat-sound[aria-pressed=true]{background:#edf4ff!important;border-color:#dae8fb!important;color:#0066cc!important}
 body .dm-chat-sidebar{background:#fff}
 body .dm-chat-sidebar-head{background:#fff;padding:18px 16px 14px;border-bottom:1px solid #ededf2}
 body .dm-chat-sidebar-head h2{font-size:15px!important;margin-bottom:12px;letter-spacing:-.02em!important;color:var(--dm-muted)}
 body .dm-chat-sidebar-head .dm-communication-search{background:#f2f2f7!important;border:0!important;min-height:44px}
 body .dm-chat-sidebar-head input{font-size:16px!important;min-height:44px}
 body .dm-chat-contact{min-height:80px;padding:16px;gap:12px;border-bottom-color:#ededf2}
 body .dm-chat-contact-copy strong{font-size:15px;color:#1d2430;line-height:1.4}
 body .dm-chat-contact-copy small{font-size:13px;color:var(--dm-muted);line-height:1.5}
 body .dm-chat-avatar{width:42px;height:42px;flex-basis:42px;border-radius:14px;background:#edf4ff;border:0;color:#2967a6;font-size:14px}
 body.dm-chat-page .dm-chat-thread-head{padding:12px!important;gap:10px;border-bottom:1px solid #ededf2}
 body .dm-chat-thread-head .dm-chat-avatar{width:36px;height:36px;flex-basis:36px;border-radius:12px;font-size:12px}
 body .dm-chat-peer-copy small{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .dm-chat-day{display:table;margin:18px auto;padding:5px 10px;background:#e8e8ef;border-radius:12px;font-size:10px;color:var(--dm-muted)}
 body .dm-chat-bubble{font-size:15px!important;line-height:1.55!important;padding:11px 14px!important;border-radius:18px 18px 18px 5px;border-color:#e5e5ea;box-shadow:0 1px 3px #17233804}
 body .dm-chat-message.own .dm-chat-bubble{border-radius:18px 18px 5px 18px}
 body .dm-chat-message>small{color:var(--dm-muted);font-size:10px;padding-inline:4px}
 body.dm-chat-page .dm-chat-compose{align-items:flex-end!important;gap:8px!important;background:#fff!important;border-top:1px solid #e5e5ea!important}
 body.dm-chat-page .dm-chat-compose textarea{min-height:44px!important;height:44px;max-height:82px!important;border:1px solid #e5e5ea;border-radius:20px!important;line-height:1.45!important;padding:10px 14px!important;resize:none!important}
 body.dm-chat-page .dm-chat-compose .btn{width:44px!important;height:44px!important;min-height:44px!important;border-radius:50%!important;padding:0!important;font-size:0!important;flex:0 0 44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 body.dm-chat-page .dm-chat-compose .btn .icon{display:block!important;width:21px!important;height:21px!important}
}
@media screen and (max-width:360px){body .topbar,body .premium-teacher-head{padding-inline:12px!important}body .mobile-school-brand strong,body .teacher-school-brand strong{font-size:14px!important}body .dm-course-students{font-size:11px}}

/* V6.153 — independent teacher screens and dedicated, collision-free chrome. */
body .dm-header-context:empty{display:none}
body .dm-header-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body .dm-page-kicker{font-size:10px;line-height:1.4;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--dm-muted)}
body .dm-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
body .dm-page-heading h1{font-size:30px!important;line-height:1.2!important;margin:8px 0!important}
body .dm-page-heading p{font-size:14px;line-height:1.5;color:var(--dm-muted);margin:0}
body .dm-master-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
body .dm-master-filters{display:flex;gap:4px;padding:4px;border-radius:12px;background:#eaeef3;max-width:100%}
body .dm-master-filters button{display:flex;align-items:center;gap:7px;border:0;background:transparent;border-radius:9px;padding:10px 12px;font:inherit;font-size:13px;font-weight:500;min-height:40px;color:var(--dm-muted);cursor:pointer}
body .dm-master-filters button.active{background:#fff;color:#1d2430;box-shadow:0 1px 5px #17233810}
body .dm-master-filters span{font-size:11px;color:var(--dm-muted)}
body .dm-master-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e5e5ea;border-radius:12px;padding:0 13px;min-height:44px;flex:0 1 340px;min-width:0}
body .dm-master-search .icon{width:18px;height:18px;color:#7d8b9b}
body .dm-master-search input{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;font:inherit;font-size:14px;color:#1d2430}
body .dm-master-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;align-items:start}
body .dm-master-card{background:#fff;border:1px solid #e5e5ea;border-radius:18px;padding:20px;min-width:0;box-shadow:0 3px 12px #17233804}
body .dm-master-card[hidden],body .dm-master-search-empty[hidden]{display:none!important}
body .dm-master-card-head{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
body .dm-master-avatar{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;background:#edf4ff;color:#2868ab;border-radius:14px;font-weight:600;font-size:15px}
body .dm-master-card-head>div{flex:1;min-width:100px}
body .dm-master-name{display:block;background:none;border:0;padding:0;cursor:pointer;font:inherit;font-size:17px;line-height:1.4;font-weight:600;color:#1d2430;text-align:left;overflow-wrap:anywhere}
body .dm-master-card-head small{display:block;font-size:12px;line-height:1.5;color:var(--dm-muted);overflow-wrap:anywhere;margin-top:3px}
body .dm-master-card-head>.status{flex-shrink:0;white-space:normal!important;font-size:10px!important}
body .dm-master-course-count{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--dm-muted);margin:16px 0 9px}
body .dm-master-course-count .icon{width:16px;height:16px}
body .dm-master-courses{display:flex;gap:6px;flex-wrap:wrap}
body .dm-master-courses span{font-size:11px;line-height:1.5;color:#536780;padding:4px 8px;background:#f2f5f9;border-radius:7px;max-width:100%;overflow-wrap:anywhere}
body .dm-master-pay{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #ededf2}
body .dm-master-pay>div:last-child{text-align:right}
body .dm-master-pay small{display:block;font-size:11px;color:var(--dm-muted);margin-bottom:4px}
body .dm-master-pay strong{font-size:13px;line-height:1.5;color:#344454;overflow-wrap:anywhere;font-weight:550}
body .dm-master-pay>div:last-child strong{font-size:18px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
body .dm-master-pay .dm-master-due{color:#a45145}
body .dm-master-card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:17px}
body .dm-master-card-actions>.btn{min-height:44px!important;font-size:13px!important;flex:1;padding:10px!important}
body .dm-master-more{flex:0 0 82px;min-width:0}
body .dm-master-more[open]{flex-basis:100%}
body .dm-master-more summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;background:#f2f2f7;border-radius:12px;padding:10px;cursor:pointer;color:#505b6a;font-size:12px}
body .dm-master-more summary::-webkit-details-marker{display:none}
body .dm-master-more summary .icon{width:17px;height:17px}
body .dm-master-more>div{margin-top:8px;background:#fafafa;border:1px solid #ededf2;border-radius:12px;padding:4px;display:flex;flex-direction:column}
body .dm-master-more button{display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:8px;background:transparent;color:#344454;font:inherit;font-size:13px;padding:12px;min-height:44px;cursor:pointer}
body .dm-master-more button:hover{background:#edf4ff}
body .dm-master-more button .icon{width:17px;height:17px}
body .dm-master-more button.dm-master-state-action{color:#a45145}
body .dm-master-search-empty{padding:30px;text-align:center;color:var(--dm-muted)}
/* Inline tags must occupy one box when a table column narrows. */
body .students-table-wrap td .tag{display:inline-flex!important;align-items:baseline!important;vertical-align:top!important;max-width:100%!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:3px 4px 3px 0!important;box-sizing:border-box!important}
@media screen and (min-width:701px){body .students-table-wrap table{min-width:1100px!important;table-layout:auto!important}body .students-table-wrap td:nth-child(3){min-width:225px!important;max-width:320px!important}body .students-table-wrap td:nth-child(2){overflow-wrap:anywhere!important}}
body .dm-teacher-screen{max-width:900px;margin:0 auto;padding:24px 24px 28px}
body .dm-teacher-routed .dm-teacher-screen>.teacher-premium-section,body .dm-teacher-routed .dm-teacher-screen>.teacher-blocked-card{margin:0!important;padding:22px!important}
body .dm-teacher-greeting{margin-bottom:20px;padding:0;background:none;min-height:0}
body .dm-teacher-greeting h1{font-size:30px!important;line-height:1.25!important;letter-spacing:-.035em!important;margin:7px 0!important;overflow-wrap:anywhere}
body .dm-teacher-greeting p{font-size:14px;line-height:1.5;color:var(--dm-muted);margin:0}
body .dm-teacher-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
body .dm-teacher-overview>button{font:inherit;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;min-height:112px;padding:16px;background:#fff;border:1px solid #e5e5ea;border-radius:16px;cursor:pointer;color:#1d2430}
body .dm-teacher-overview>button>span{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.4;color:var(--dm-muted)}
body .dm-teacher-overview .icon{width:17px;height:17px;color:#2868ab}
body .dm-teacher-overview strong{font-size:28px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
body .dm-teacher-overview small{font-size:11px;line-height:1.5;color:var(--dm-muted)}
body .dm-teacher-home-section{padding:18px 20px;background:#fff;border:1px solid #e5e5ea;border-radius:18px;margin-bottom:16px}
body .dm-teacher-home-section h2{font-size:17px!important;line-height:1.4!important;margin:0!important;font-weight:600!important;letter-spacing:-.02em!important}
body .dm-teacher-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
body .dm-teacher-home-section-head>.dm-text-button{display:flex;align-items:center;gap:5px;font-size:12px;min-height:36px;white-space:nowrap}
body .dm-teacher-home-section-head>.dm-text-button .icon{width:14px;height:14px}
body .dm-teacher-priority{font-size:12px;line-height:1.5;color:var(--dm-muted);margin:5px 0 10px}
body .dm-teacher-agenda>button,body .dm-teacher-shortcuts>button{display:flex;align-items:center;gap:12px;width:100%;padding:14px 0;border:0;border-bottom:1px solid #ededf2;background:none;font:inherit;text-align:left;cursor:pointer;color:#1d2430;min-height:62px}
body .dm-teacher-agenda>button:last-child,body .dm-teacher-shortcuts>button:last-child{border-bottom:0;padding-bottom:0}
body .dm-teacher-agenda>button>span:nth-child(2),body .dm-teacher-shortcuts>button>div{flex:1;min-width:0}
body .dm-teacher-agenda strong,body .dm-teacher-shortcuts strong{display:block;font-size:14px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}
body .dm-teacher-agenda small,body .dm-teacher-shortcuts small{display:block;font-size:11px;line-height:1.5;color:var(--dm-muted);margin-top:3px;overflow-wrap:anywhere}
body .dm-teacher-agenda-icon,body .dm-teacher-shortcuts>button>span{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#edf4ff;color:#2868ab}
body .dm-teacher-agenda .icon,body .dm-teacher-shortcuts .icon{width:17px;height:17px}
body .dm-teacher-agenda>button>.icon,body .dm-teacher-shortcuts>button>.icon{width:15px;height:15px;color:#7d8b9b}
body .dm-teacher-no-lessons{display:flex;align-items:center;gap:12px;margin-top:14px;padding:10px 0;color:var(--dm-muted)}
body .dm-teacher-no-lessons>.icon{width:24px;height:24px;flex:0 0 24px;color:#7d8b9b}
body .dm-teacher-no-lessons strong{display:block;font-size:14px;font-weight:500;color:#344454}
body .dm-teacher-no-lessons small{display:block;font-size:12px;line-height:1.5;margin-top:5px}
body .dm-chat-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 18px;background:transparent;min-width:0}
body .dm-chat-toolbar-back{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid #e5e5ea;border-radius:12px;background:#fff;color:#505b6a;cursor:pointer}
body .dm-chat-toolbar-back .icon{width:20px;height:20px}
body .dm-chat-toolbar-title{flex:1;min-width:0}
body .dm-chat-toolbar-title h1{font-size:26px!important;line-height:1.25!important;margin:0!important;letter-spacing:-.03em!important}
body .dm-chat-toolbar-title small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:var(--dm-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body .dm-chat-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
@media screen and (max-width:700px){
 body .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:10px 16px!important;min-height:66px!important;position:sticky!important;top:0!important}
 body .topbar .topbar-brand,body .topbar .dm-browser-nav,body .topbar .topbar-title-wrap>h2{display:none!important}
 body .topbar .topbar-main{display:block!important;min-width:0!important;width:100%!important;flex:none!important}
 body .topbar .topbar-title-wrap,body .topbar .mobile-school-brand{display:flex!important;min-width:0!important;width:100%!important}
 body .topbar .mobile-school-brand>div{flex:1;min-width:0}
 body .topbar .mobile-school-brand strong,body .teacher-school-brand strong{max-width:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.35!important}
 body .topbar .mobile-school-brand small{max-width:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:11px!important}
 body .topbar .topbar-right{display:flex!important;flex-wrap:nowrap!important;max-width:none!important;gap:7px!important}
 body .topbar .dm-header-context{grid-column:1/-1;min-width:0}
 body .topbar .dm-header-context .topbar-scope-chip{background:#f7f8fa!important;border:0!important;padding:7px 10px!important;min-height:32px!important;max-width:100%}
 body .dm-page-heading{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:20px}
 body .dm-page-heading h1{font-size:28px!important}
 body .dm-page-heading>.btn{font-size:13px!important}
 body .dm-master-toolbar{gap:12px}
 body .dm-master-filters{width:100%;justify-content:space-between}
 body .dm-master-filters button{justify-content:center;flex:1;padding:10px 7px;font-size:12px}
 body .dm-master-search{flex-basis:100%}
 body .dm-master-search input{font-size:16px}
 body .dm-master-grid{grid-template-columns:1fr;gap:12px}
 body .dm-master-card{padding:16px}
 body .dm-master-card-head>.status{margin-left:56px}
 body .dm-master-card-head>div{flex-basis:calc(100% - 56px)}
 body .dm-master-pay{grid-template-columns:minmax(0,1fr) auto}
 body .dm-master-pay strong{font-size:12px}
 body .dm-master-pay>div:last-child strong{font-size:17px}
 body .dm-teacher-screen{padding:20px 16px 12px;max-width:100%}
 body .dm-teacher-routed .dm-teacher-screen>.teacher-premium-section,body .dm-teacher-routed .dm-teacher-screen>.teacher-blocked-card{padding:18px 16px!important}
 body .dm-teacher-greeting{margin-bottom:18px}
 body .dm-teacher-greeting h1{font-size:25px!important;line-height:1.25!important}
 body .dm-teacher-greeting p{font-size:13px}
 body .dm-teacher-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
 body .dm-teacher-overview>button{min-height:106px;padding:14px;gap:5px}
 body .dm-teacher-overview strong{font-size:27px}
 body .dm-teacher-home-section{padding:16px;margin-bottom:12px}
 body .dm-teacher-routed .teacher-section-head h2{font-size:23px!important}
 body .dm-teacher-routed .premium-teacher-lesson{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:16px!important}
 body .dm-teacher-routed .teacher-lesson-main{flex:1;min-width:0}
 body .dm-teacher-routed .teacher-lesson-state,body .dm-teacher-routed .teacher-lesson-actions{position:static!important;flex-basis:100%!important;margin:0!important}
 body .dm-teacher-routed .teacher-lesson-state{padding-top:4px}
 body .dm-teacher-routed .teacher-lesson-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 body .dm-teacher-routed .teacher-lesson-actions .btn{flex:1 1 130px!important}
 body .dm-teacher-routed .teacher-own-course{padding:16px!important;gap:12px!important}
 body .dm-teacher-routed .teacher-own-course .grow{min-width:0!important}
 /* Remove both inherited page hero styling and duplicate school headers in chat. */
 body.dm-chat-page #app .topbar,body.dm-chat-page #app .dm-teacher-message-head{display:none!important}
 body.dm-chat-page #app #content{display:flex!important;flex-direction:column!important;padding:0!important;gap:0!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 body.dm-chat-page #app #content>.dm-chat-toolbar{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:10px!important;padding:calc(10px + env(safe-area-inset-top)) 14px 10px!important;margin:0!important;background:#fff!important;border-bottom:1px solid #e5e5ea!important;min-height:64px!important;box-sizing:border-box!important}
 body.dm-chat-page #content .dm-chat-toolbar-title h1{font-size:20px!important;line-height:1.25!important;margin:0!important}
 body.dm-chat-page #content .dm-chat-toolbar-title small{font-size:10px!important;margin-top:2px!important;line-height:1.35!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions{gap:6px!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:0!important;border-radius:12px!important;flex:0 0 40px!important;overflow:hidden!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.btn .icon{width:19px!important;height:19px!important;display:block!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.btn span{display:none!important}
 body.dm-chat-page #content .dm-chat-toolbar-back{width:40px!important;height:40px!important;flex-basis:40px!important;border:0!important;background:#f2f2f7!important}
 body.dm-chat-page #content .dm-chat-toolbar .dm-chat-sound[aria-pressed=true]{background:#edf4ff!important;color:#0066cc!important;border-color:#dae8fb!important}
 body.dm-chat-page #content .dm-chat-shell{flex:1!important;height:auto!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 body.dm-chat-page #content .dm-chat-sidebar-head{padding:16px!important;border-bottom:1px solid #ededf2;background:#fff!important}
 body.dm-chat-page #content .dm-chat-sidebar-head h2{font-size:14px!important;font-weight:500!important;margin:0 0 12px!important;color:var(--dm-muted)!important}
 body.dm-chat-page #content .dm-chat-compose{background:#fff!important;border-top:1px solid #e5e5ea!important;flex-shrink:0!important}
 body.dm-chat-page #content .dm-chat-error:not(:empty){padding:10px 14px;font-size:12px}
}
@media screen and (max-width:360px){body .dm-teacher-home-section{padding:14px}body .dm-teacher-home-section-head{gap:6px}body .dm-master-pay{grid-template-columns:1fr}body .dm-master-pay>div:last-child{text-align:left}body.dm-chat-page #app #content>.dm-chat-toolbar{padding-inline:10px!important;gap:7px!important}}
@media(prefers-reduced-motion:no-preference){body .dm-teacher-screen{animation:dm-dialog-arrive .18s ease-out}body .dm-teacher-overview>button,body .dm-teacher-shortcuts>button{transition:background .15s}body .dm-teacher-overview>button:active,body .dm-teacher-shortcuts>button:active{background:#edf4ff}}

/* V6.154 — visible navigation in chat and bounded student cards. */
body .dm-chat-messages{overflow-anchor:none}
body .dm-appearance-panel{margin-bottom:22px}
body .dm-appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body .dm-appearance-options button{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 10px;font:inherit;background:#f2f2f7;border:1px solid #e5e5ea;border-radius:16px;cursor:pointer;color:#505b6a;min-height:110px}
body .dm-appearance-options button>span{font-size:28px;line-height:1}
body .dm-appearance-options strong{font-size:14px;font-weight:600}
body .dm-appearance-options button.active{background:#edf4ff;border-color:#0066cc;color:#0066cc}
body .dm-appearance-note{font-size:12px;line-height:1.6;color:var(--dm-muted);margin:16px 0 0}
body .students-table-wrap .concept-row-actions>.btn{min-height:38px!important;font-size:12px!important;padding:8px 10px!important}
@media screen and (max-width:700px){
 body.dm-chat-page #content .dm-chat-toolbar-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.dm-chat-page .mobile-more-sheet{max-height:calc(var(--dm-chat-viewport-height,100dvh) - 20px)!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.dm-chat-refresh{display:none!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.dm-chat-menu{width:58px!important;flex-basis:58px!important;font-size:11px!important;gap:4px!important;flex-direction:column!important}
 body.dm-chat-page #content .dm-chat-toolbar-actions>.dm-chat-menu span{display:block!important;line-height:1!important;font-weight:500}
 body.dm-chat-page.dm-keyboard-open #content .dm-chat-toolbar-title small{display:none!important}
 body.dm-chat-page.dm-keyboard-open #app #content>.dm-chat-toolbar{min-height:52px!important;padding-top:6px!important;padding-bottom:6px!important}
 body #app .students-table-wrap tbody{gap:12px!important}
 body #app .students-table-wrap tbody>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:11px 14px!important;padding:16px!important;min-height:0!important;height:auto!important}
 body #app .students-table-wrap tbody>tr>td{position:static!important;display:block!important;height:auto!important;min-height:0!important;width:auto!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;transform:none!important;float:none!important;line-height:1.5!important;overflow-wrap:anywhere!important}
 body #app .students-table-wrap tbody>tr>td:first-child{grid-column:1/-1!important;padding-bottom:11px!important;border-bottom:1px solid #ededf2!important}
 body #app .students-table-wrap .student-table-person{display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important}
 body #app .students-table-wrap .student-table-person>div:last-child{min-width:0!important;flex:1!important}
 body #app .students-table-wrap .student-table-avatar{width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;border-radius:11px!important;font-size:12px!important}
 body #app .students-table-wrap .student-name-link{font-size:16px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body #app .students-table-wrap .student-table-person small{font-size:11px!important;line-height:1.4!important;margin-top:3px!important}
 body #app .students-table-wrap tbody>tr>td:before{font-size:10px!important;line-height:1.4!important;letter-spacing:.025em!important;margin:0 0 4px!important;color:var(--dm-muted)!important}
 body #app .students-table-wrap tbody>tr>.dm-student-contact,body #app .students-table-wrap tbody>tr>.dm-student-courses{grid-column:1/-1!important}
 body #app .students-table-wrap .dm-student-contact{font-size:13px!important}
 body #app .students-table-wrap .dm-student-contact small{font-size:12px!important}
 body #app .students-table-wrap .dm-student-courses .tag{font-size:11px!important;line-height:1.45!important;padding:4px 7px!important;margin:2px 5px 2px 0!important}
 body #app .students-table-wrap tbody>tr>.dm-student-registration{grid-column:1!important;font-size:13px!important}
 body #app .students-table-wrap tbody>tr>.dm-student-balance{grid-column:2!important;font-size:16px!important}
 body #app .students-table-wrap tbody>tr>.dm-student-state{grid-column:1/-1!important;align-self:start!important}
 body #app .students-table-wrap .status{font-size:10px!important;line-height:1.4!important;padding:4px 7px!important;margin-top:3px!important}
 body #app .students-table-wrap tbody>tr>.dm-student-actions{grid-column:1/-1!important;width:100%!important;padding-top:11px!important;border-top:1px solid #ededf2!important}
 body #app .students-table-wrap .dm-student-actions>.concept-row-actions{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:stretch!important;gap:7px!important;min-height:0!important;height:auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important}
 body #app .students-table-wrap .dm-student-actions .btn{position:static!important;flex:1 1 80px!important;min-width:0!important;width:auto!important;min-height:42px!important;height:auto!important;padding:9px 7px!important;font-size:12px!important;white-space:normal!important;transform:none!important}
 body #app .students-table-wrap .dm-student-actions .btn .icon{width:15px!important;height:15px!important}
}

/* V6.155: account actions and a single conversation header on phones. */
body #app .sidebar-bottom .user-box .dm-account-action{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:11px 14px!important;min-height:44px!important;width:100%!important;text-align:left!important;line-height:1.25!important}
body #app .sidebar-bottom .user-box .dm-account-action .icon{position:static!important;display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important;transform:none!important}
body .dm-chat-mobile-peer,body .dm-chat-mobile-avatar{display:none}
body #app #content .dm-chat-message{margin:10px 0 0!important;gap:0!important}
body #app #content .dm-chat-message.is-grouped{margin-top:4px!important}
body #app #content .dm-chat-bubble{padding:9px 12px 6px!important;max-width:82%!important;line-height:1.5!important;white-space:normal!important;box-shadow:0 1px 2px #15273b08!important}
body .dm-chat-body{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
body .dm-chat-stamp{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:3px;font-size:10px;line-height:1.3;white-space:nowrap;color:#657080}
body .dm-chat-message.own .dm-chat-stamp{color:#ffffffd9}
body .dm-chat-receipt{display:inline-flex;align-items:center}
body .dm-chat-receipt svg{width:21px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body #app #content .dm-chat-day{display:table;max-width:90%;padding:5px 11px!important;margin:18px auto 12px!important;background:#e8edf3;border-radius:20px;font-size:11px;line-height:1.4;color:#596575}
@media screen and (max-width:700px){
 body.dm-chat-page #app #content>.dm-chat-toolbar{gap:8px!important;padding-inline:10px!important;min-height:62px!important}
 body.dm-chat-page #app #content>.dm-chat-toolbar.has-peer .dm-chat-desktop-title{display:none!important}
 body.dm-chat-page #app #content>.dm-chat-toolbar.has-peer .dm-chat-mobile-peer{display:block!important;min-width:0}
 body.dm-chat-page #app #content>.dm-chat-toolbar.has-peer .dm-chat-mobile-avatar{display:grid!important;flex:0 0 34px!important;width:34px!important;height:34px!important;font-size:12px!important;border-radius:50%!important}
 body.dm-chat-page #app #content .dm-chat-mobile-peer strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.3;color:#202b3c;font-weight:600}
 body.dm-chat-page #app #content .dm-chat-mobile-peer small{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;margin-top:2px!important}
 body.dm-chat-page #app #content .dm-chat-toolbar.has-peer~.dm-chat-shell .dm-chat-thread-head{display:none!important}
 body.dm-chat-page #app #content .dm-chat-toolbar-back{width:32px!important;flex-basis:32px!important;background:transparent!important}
 body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-menu{width:44px!important;flex-basis:44px!important;gap:2px!important;border:0!important;background:transparent!important}
 body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-sound{width:32px!important;flex-basis:32px!important;border:0!important;background:transparent!important}
 body.dm-chat-page #app #content .dm-chat-messages{padding:10px 12px 16px!important}
 body.dm-chat-page #app #content .dm-chat-bubble{font-size:15px!important;max-width:88%!important;border-radius:17px 17px 17px 5px!important}
 body.dm-chat-page #app #content .dm-chat-message.own .dm-chat-bubble{border-radius:17px 17px 5px 17px!important}
 body.dm-chat-page #app #content .dm-chat-compose{padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;gap:8px!important}
 body.dm-chat-page.dm-keyboard-open #app #content .dm-chat-compose{padding-bottom:8px!important}
 body.dm-chat-page #app #content .dm-chat-contact{padding:15px 14px!important;gap:12px!important}
 body.dm-chat-page #app #content .dm-chat-contact .dm-chat-avatar{border-radius:50%!important;width:46px!important;height:46px!important;flex-basis:46px!important}
}
@media(prefers-reduced-motion:no-preference){body .dm-chat-contact,body .dm-account-action{transition:background-color .18s ease,border-color .18s ease}}
/* V159: compact schedules and resilient report controls. */
.dm-course-schedule{display:grid;gap:5px;min-width:0}
.dm-course-schedule-line{display:flex;flex-wrap:wrap;gap:3px 8px;align-items:baseline}
.dm-course-schedule-line strong{font-size:12px}.dm-course-schedule-line small{font-size:12px;overflow-wrap:anywhere}
#content .report-hub-grid{min-width:0}#content .report-hub-card,#content .report-card-content{min-width:0}
#content :is(.report-hub-controls,.report-export-actions,.teacher-expense-controls,.report-hub-actions){display:flex;flex-wrap:wrap;gap:10px;min-width:0}
#content :is(.monthly-report-field,.annual-report-field,.teacher-expense-field){min-width:0;max-width:100%;flex:1 1 150px}
#content :is(.report-export-actions,.teacher-expense-controls,.report-hub-actions) .btn{white-space:normal;max-width:100%;height:auto;min-height:40px}
#content .teacher-expense-field :is(input,select){width:100%;min-width:0;max-width:100%}
.dm-search-modal{width:min(600px,calc(100vw - 28px));max-height:calc(100dvh - 48px);padding:20px;display:flex;flex-direction:column;overflow:hidden}
.dm-search-head{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:16px}.dm-search-head h2{margin:0;font-size:20px}.dm-search-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.dm-search-field{display:flex;align-items:center;gap:10px;background:#f3f6fa;border:1px solid #dbe2ec;border-radius:12px;padding:10px 12px}.dm-search-field svg{width:20px;height:20px;flex-shrink:0}.dm-search-field input{width:100%;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:16px;padding:3px!important;color:inherit}
.dm-search-status{font-size:12px;color:var(--muted);margin:12px 0 6px}.dm-search-results{overflow-y:auto;overscroll-behavior:contain;min-height:0}
.dm-search-result{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 8px;border:0;border-bottom:1px solid #e6eaf0;background:transparent;color:#172338;border-radius:8px;cursor:pointer}.dm-search-result>span:nth-child(2){flex:1;min-width:0}.dm-search-result strong{display:block;overflow-wrap:anywhere}.dm-search-result small{display:block;color:#66768a;margin-top:3px}.dm-search-result svg{width:20px;height:20px;flex-shrink:0}.dm-search-result:is(:hover,:focus-visible){background:#edf3fa}.dm-search-result:focus-visible{outline:2px solid #448bdd;outline-offset:-2px}
@media(max-width:700px){.dm-quick-search-trigger{display:none!important}#content .report-export-actions{width:100%}#content .report-export-actions .btn{flex:1 1 130px}.dm-search-modal{padding:16px}}
@media(prefers-reduced-motion:reduce){.dm-search-result{transition:none}}
#content .teacher-expense-controls-premium .teacher-expense-buttons{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;flex:1 1 280px;width:auto}
#content .teacher-expense-controls-premium .teacher-expense-buttons .btn{flex:1 1 130px;min-width:0;max-width:100%;white-space:normal;height:auto;min-height:40px}
/* V160: calendar dialog alignment and search categories. */
body #modalWrap .calendar-day-modal-head>div{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
body #modalWrap .calendar-day-modal-head .eyebrow{display:block;position:static!important;margin:0!important;transform:none!important;font-size:10px;line-height:1.4}
body #modalWrap .calendar-day-modal-head strong{display:block;font-size:19px;line-height:1.35;overflow-wrap:anywhere}
body #modalWrap .calendar-day-modal-head .panel-sub{margin:0}
body #modalWrap .calendar-day-modal-head>.icon-btn{flex-shrink:0;align-self:flex-start}
body #modalWrap .calendar-day-lesson{flex-wrap:wrap;gap:12px}
body #modalWrap .calendar-day-lesson>.grow{min-width:160px;flex:1 1 180px;overflow-wrap:anywhere}
body #modalWrap .calendar-day-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;margin-left:auto}
body #modalWrap .calendar-day-actions .btn{min-height:42px;white-space:normal}
.dm-search-filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.dm-search-filters button{padding:7px 10px;border:1px solid #dbe2ec;border-radius:9px;background:#f3f6fa;color:#526379;cursor:pointer;font:inherit;font-size:12px}.dm-search-filters button[aria-pressed=true]{background:#e2edfb;color:#214f85;border-color:#9dbbe1}.dm-search-filters button:focus-visible{outline:2px solid #448bdd;outline-offset:2px}
@media(max-width:700px){body #modalWrap .calendar-day-modal-head strong{font-size:17px}body #modalWrap .calendar-day-actions{width:100%;margin-left:0}body #modalWrap .calendar-day-actions .btn{flex:1 1 130px}}
body #modalWrap .dm-calendar-day-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dm-calendar-day-navigation{display:flex;gap:8px;flex-wrap:wrap}.dm-calendar-day-navigation .btn{min-height:42px}
@media(max-width:480px){.dm-calendar-day-navigation{width:100%}.dm-calendar-day-navigation .btn{flex:1}}
/* V161: shared operational reminders. */
body .dm-tasks-home{margin:18px 0}.dm-task-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line,#e1e6ed)}.dm-task-row>div:first-child{flex:1;min-width:0}.dm-task-row strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.dm-task-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px;line-height:1.5}.dm-task-row.is-overdue{border-left:3px solid #bf7751;padding-left:12px}.dm-task-actions,.dm-task-tabs{display:flex;gap:8px;flex-wrap:wrap}.dm-task-tabs{margin-bottom:16px}.dm-task-actions .btn{min-height:40px;white-space:normal}.dm-tasks-home .panel-head{gap:12px;flex-wrap:wrap}.dm-tasks-modal{width:min(760px,calc(100vw - 28px))}
@media(max-width:700px){.dm-task-row{align-items:flex-start;flex-wrap:wrap}.dm-task-actions{width:100%}.dm-task-actions .btn{flex:1}.dm-tasks-home .panel-head h3{font-size:16px}.dm-task-tabs .btn{flex:1 1 auto}}
/* V162: visible search capsule and compact shared agenda. */
body .dm-search-banner{width:100%;max-width:1600px;margin:18px auto 0;padding:0 32px;box-sizing:border-box}
body .dm-search-banner form{display:flex;align-items:center;gap:12px;padding:8px 10px 8px 18px;border:1px solid #dce3ed;border-radius:22px;background:#fff;box-shadow:0 5px 18px #17233806;max-width:780px;margin:auto;min-width:0}
.dm-search-banner label{display:flex;color:#718096;flex-shrink:0}.dm-search-banner svg{width:20px;height:20px}.dm-search-banner input{flex:1;min-width:0;width:100%;background:transparent!important;border:0!important;box-shadow:none!important;padding:9px 0!important;font:inherit;font-size:15px;color:#263449;outline-offset:4px}.dm-search-banner button{display:flex;align-items:center;gap:10px;flex-shrink:0;border:0;border-radius:15px;background:#edf3fa;color:#31567c;padding:11px 14px;font:inherit;font-size:13px;cursor:pointer}.dm-search-banner button span{font-size:10px;opacity:.7}.dm-search-banner p{font-size:11px;color:var(--dm-muted);text-align:center;margin:7px 0 0}.dm-search-banner form:focus-within{border-color:#7aa5d7;box-shadow:0 0 0 3px #347cca12}
body .dm-tasks-home .panel-head{border-bottom:0;padding-bottom:12px}.dm-task-eyebrow{font-size:10px;color:#718198;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px}.dm-task-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}.dm-task-filters button{display:flex;gap:6px;align-items:center;padding:7px 11px;border:1px solid #e1e6ee;border-radius:10px;background:#f5f7fa;color:#526379;font:inherit;font-size:12px;cursor:pointer}.dm-task-filters button span{font-size:10px;min-width:18px;text-align:center;opacity:.8}.dm-task-filters button[aria-pressed=true]{background:#e6effa;color:#245887;border-color:#b4cce8}
body .dm-task-row{padding:12px 0;gap:12px;flex-wrap:nowrap}body .dm-task-row.is-overdue{padding-left:10px;border-left-width:2px}body .dm-task-row .dm-task-copy{flex:1;min-width:0}body .dm-task-row .dm-task-copy strong{font-size:13px;font-weight:600;line-height:1.45}.dm-task-row.is-done strong{text-decoration:line-through;opacity:.75}
.dm-task-check{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #a8c8b9;border-radius:12px;color:#357456;background:#eef6f1;cursor:pointer}.dm-task-check svg{width:18px;height:18px}.dm-task-check:hover{background:#d8ece0}.dm-task-check:disabled{opacity:.45;cursor:wait}.dm-task-check:focus-visible,.dm-task-filters button:focus-visible{outline:2px solid #448bdd;outline-offset:3px}body .dm-task-edit{width:36px;height:36px;flex-shrink:0}
.dm-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin-top:6px}.dm-task-date{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#66768a}.dm-task-date svg{width:12px;height:12px}.dm-task-date.late{color:#a55139}.dm-task-date.today{color:#2d638f}.dm-task-priority{padding:3px 6px;font-size:10px;color:#996134;background:#f7eee3;border-radius:6px}
.dm-task-empty{display:flex;align-items:center;gap:12px;padding:22px 0}.dm-task-empty>svg{width:28px;height:28px;color:#63967f;flex-shrink:0}.dm-task-empty strong{display:block;font-size:13px}.dm-task-empty small{display:block;font-size:12px;color:var(--dm-muted);line-height:1.5;margin-top:4px}
.dm-task-view-all{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:13px 0 3px;border:0;background:transparent;color:#466383;font:inherit;font-size:12px;text-align:left;cursor:pointer}.dm-task-view-all svg{width:16px;height:16px;flex-shrink:0}
.dm-task-list-search{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f4f6f9;border:1px solid #dce3ed;border-radius:12px;margin:12px 0}.dm-task-list-search svg{width:18px;height:18px}.dm-task-list-search input{width:100%;min-width:0;padding:5px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;font:inherit;font-size:16px;color:inherit}
.dm-task-date-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.dm-task-date-shortcuts button{padding:6px 9px;border:1px solid #dce3ed;background:#f4f6f9;color:#526379;border-radius:8px;font:inherit;font-size:11px;cursor:pointer}
@media(max-width:700px){body .dm-search-banner{padding:0 16px;margin-top:12px}.dm-search-banner input{font-size:16px}.dm-search-banner button span,.dm-search-banner p{display:none}.dm-search-banner button{padding:10px}.dm-search-banner form{border-radius:17px;padding-left:12px;gap:8px}body .dm-task-row{align-items:center;gap:10px}body .dm-task-row .dm-task-check{width:40px;height:40px;flex-basis:40px}body .dm-task-edit{width:40px;height:40px}body .dm-tasks-home .panel-head{align-items:flex-start}.dm-task-filters button{min-height:36px}}
/* V163: discreet search and dedicated monthly agenda. */
body .dm-search-banner{margin-top:8px;display:flex;justify-content:flex-end;padding-inline:32px}
body .dm-search-banner form{width:min(100%,390px);max-width:390px;margin:0;padding:3px 5px 3px 12px;border-radius:14px;gap:8px;box-shadow:none}
body .dm-search-banner input{font-size:13px;padding:7px 0!important}
body .dm-search-banner button{font-size:11px;padding:8px 10px;border-radius:10px}
body .dm-search-banner button span,body .dm-search-banner p{display:none}
body .dm-search-banner svg{width:16px;height:16px}
body .dm-search-banner+.content{padding-top:16px!important}
.dm-agenda-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:20px;align-items:start}
.dm-agenda-layout .panel{min-width:0}.dm-agenda-month-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:16px}.dm-agenda-month-head h3{font-size:16px;margin:0;text-transform:capitalize;line-height:1.4}.dm-agenda-month-head .icon-btn{width:38px;height:38px;flex-shrink:0}
.dm-agenda-weekdays,.dm-agenda-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.dm-agenda-weekdays{margin-bottom:8px}.dm-agenda-weekdays span{text-align:center;font-size:10px;color:var(--dm-muted);padding:4px 0}
.dm-agenda-day{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:48px;border:1px solid transparent;border-radius:10px;background:#f4f6fa;color:#34465d;cursor:pointer;padding:5px 2px;font:inherit;min-width:0}.dm-agenda-day strong{font-size:12px}.dm-agenda-day>span{font-size:9px;font-weight:600;background:#e2ebf7;border-radius:5px;min-width:14px;color:#315f93}.dm-agenda-day .dm-agenda-day-empty{background:transparent;color:#b7c3d0}.dm-agenda-day.today{border-color:#91b3db}.dm-agenda-day.selected{background:#315f93;color:#fff;border-color:#315f93}.dm-agenda-day.selected strong{color:#fff!important}.dm-agenda-day.late>span{background:#f6e5d5;color:#a55135}.dm-agenda-day.selected>span{background:#fff2;color:#fff}.dm-agenda-day:focus-visible{outline:2px solid #448bdd;outline-offset:2px}
.dm-agenda-legend{font-size:10px;color:var(--dm-muted);line-height:1.5;margin:14px 0}.dm-agenda-list .panel-head{gap:12px}.dm-agenda-list .panel-head h3{font-size:17px;margin:0}
.dm-access-agenda-counts{font-size:12px;color:#687d91;margin:10px 0}.dm-access-agenda-list{display:grid;gap:7px}.dm-access-agenda-list button{display:flex;align-items:center;gap:10px;border:1px solid #e1e6ee;background:#f6f8fb;border-radius:12px;padding:12px;text-align:left;font:inherit;cursor:pointer;color:#25354a}.dm-access-agenda-list button>span:nth-child(2){flex:1;min-width:0}.dm-access-agenda-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.dm-access-agenda-list small{display:block;font-size:11px;color:#687d91;margin-top:4px}.dm-access-agenda-list svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:900px){.dm-agenda-layout{grid-template-columns:1fr;gap:16px}.dm-agenda-month{width:100%;max-width:480px;justify-self:center}}
@media(max-width:700px){body .dm-search-banner{padding-inline:16px;margin-top:8px}body .dm-search-banner form{max-width:100%;width:100%;padding-block:2px}body .dm-search-banner input{font-size:16px}body .dm-search-banner+.content{padding-top:12px!important}.dm-agenda-day{min-height:44px}.dm-agenda-list .panel-head h3{font-size:15px}.dm-agenda-layout .panel-body{padding:16px}}
@media(prefers-reduced-motion:reduce){.dm-agenda-day{transition:none}}
/* V164: one coherent header, no separate search row. */
body .topbar{display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(180px,270px) auto auto;grid-template-areas:"main search context actions";gap:12px!important;min-height:64px!important;padding:10px 24px!important;align-items:center!important}
body .topbar .topbar-main{grid-area:main;display:flex!important;flex-wrap:nowrap!important;align-items:center;min-width:0;gap:12px!important}
body .topbar .topbar-title-wrap{min-width:0;width:auto}.topbar .topbar-title-wrap>h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .topbar .topbar-right{grid-area:actions;display:flex!important;flex-wrap:nowrap!important;gap:7px!important;max-width:none!important;align-items:center}
body .topbar .dm-header-context{grid-area:context;flex-wrap:nowrap;max-width:220px;min-width:0}
body .topbar .dm-header-context .topbar-scope-chip{min-width:0;max-width:100%;min-height:36px!important;padding:6px 9px!important;background:#f7f9fb!important}
body .topbar .dm-header-context .topbar-scope-chip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
body .topbar .dm-header-search{grid-area:search;display:flex;align-items:center;gap:7px;width:100%;min-width:0;margin:0;padding:4px 7px 4px 11px;border:1px solid #e1e6ee;border-radius:12px;background:#f6f8fb;box-sizing:border-box}
.dm-header-search label{display:flex;flex-shrink:0;color:#718198}.dm-header-search svg{width:16px;height:16px}.dm-header-search input{min-width:0;width:100%;border:0!important;box-shadow:none!important;background:transparent!important;color:#25354a;padding:6px 0!important;font:inherit;font-size:13px}.dm-header-search button{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border:0;background:transparent;color:#718198;border-radius:6px;cursor:pointer}.dm-header-search:focus-within{outline:2px solid #448bdd55;outline-offset:2px}
body .topbar .dm-header-search-mobile{display:none!important}.dm-header-connection{display:grid;place-items:center;width:18px;height:28px;flex-shrink:0}.dm-header-connection i{width:6px;height:6px;background:#32a379;border-radius:50%;box-shadow:0 0 0 3px #32a37915}.dm-header-connection.offline i{background:#c18b4f;box-shadow:0 0 0 3px #c18b4f15}
@media(min-width:701px){body .topbar .topbar-brand .dm-brand-copy{display:none!important}body .topbar .topbar-brand{flex-shrink:0}body .topbar .dm-browser-nav{gap:1px;padding:4px}body .topbar .dm-browser-nav button{width:28px;height:30px}body .topbar .mobile-school-brand{display:none!important}}
@media(min-width:701px) and (max-width:1200px){body .topbar{grid-template-columns:minmax(120px,1fr) minmax(160px,210px) auto auto;gap:8px!important;padding-inline:16px!important}body .topbar .topbar-brand{display:none!important}body .topbar .topbar-main{gap:8px!important}body .topbar .dm-header-context{max-width:140px}}
@media(min-width:701px) and (max-width:1000px){body .topbar{grid-template-columns:minmax(120px,1fr) auto auto;grid-template-areas:"main context actions"}body .topbar .dm-header-search{display:none}body .topbar .dm-header-search-mobile{display:grid!important}}
@media(max-width:700px){body .topbar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main actions" "context context";min-height:60px!important;gap:7px!important;padding:9px 12px!important}body .topbar .topbar-main{display:block!important}body .topbar .dm-header-search{display:none}body .topbar .dm-header-search-mobile{display:grid!important;width:36px;height:36px}body .topbar .dm-header-context{grid-column:1/-1;max-width:100%;justify-content:flex-start}body .topbar .dm-header-connection{display:none}body .topbar .topbar-right{gap:5px!important}body .topbar .dm-header-context:empty{display:none}body .topbar .mobile-school-brand{display:flex!important}}
@media(min-width:701px){body .topbar:not(.dm-header-has-search){grid-template-columns:minmax(160px,1fr) auto auto;grid-template-areas:"main context actions"}}
/* V165: compact access briefing, clear close control and distinct agenda. */
body #modalWrap .modal.dm-access-summary{width:820px!important;max-height:calc(100dvh - 32px)!important;outline:none}
body #modalWrap .dm-access-head{padding:16px 20px!important;gap:12px!important}
body #modalWrap .dm-access-heading{gap:4px!important}
body #modalWrap .dm-access-head #dmAccessSummaryTitle{font-size:21px!important;line-height:1.3!important}
body #modalWrap .dm-access-heading>.eyebrow{font-size:9px!important}
body #modalWrap .dm-access-heading>.panel-sub{font-size:11px!important}
body #modalWrap .dm-access-close{display:grid;place-items:center;width:34px;height:34px;min-height:34px;border-radius:50%!important;border:1px solid #dce3ed;background:#f2f5f8;color:#657a90;padding:0;box-shadow:none!important;flex:0 0 34px!important}
body #modalWrap .dm-access-close svg{width:16px;height:16px}body #modalWrap .dm-access-close:hover{background:#e5edf6;color:#294f76}body #modalWrap .dm-access-close:focus-visible{outline:2px solid #448bdd;outline-offset:3px}
body #modalWrap .dm-access-body{padding:14px 20px!important}
body #modalWrap .dm-access-intro{font-size:12px;line-height:1.45;margin:0 0 10px}
body #modalWrap .dm-access-communication-totals{gap:8px;margin-bottom:10px}
body #modalWrap .dm-access-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 12px;gap:3px 10px;border-radius:10px}
body #modalWrap .dm-access-stat small{font-size:11px;line-height:1.35}body #modalWrap .dm-access-stat strong{font-size:22px;line-height:1.3;grid-column:2;grid-row:1/3}body #modalWrap .dm-access-stat span{font-size:10px;line-height:1.4;grid-column:1}
body #modalWrap .dm-access-section{padding:12px 14px;margin-bottom:10px;border-radius:12px}
body #modalWrap .dm-access-section-heading{gap:8px;margin-bottom:7px}
body #modalWrap .dm-access-section-heading h3{font-size:13px;line-height:1.4}
body #modalWrap .dm-access-section-heading>.dm-text-button{min-height:30px;font-size:11px}
body #modalWrap .dm-access-clear{padding:3px 0;font-size:11px;line-height:1.4}
body #modalWrap .dm-access-section-clear{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;padding-block:8px}
body #modalWrap .dm-access-section-clear .dm-access-section-heading{margin:0;flex:1}
body #modalWrap .dm-access-agenda-counts{font-size:11px;margin:4px 0 8px}
body #modalWrap .dm-access-agenda-list{gap:5px}
body #modalWrap .dm-access-agenda-list button{padding:8px 10px;border-radius:9px}
body #modalWrap .dm-access-agenda-list strong{font-size:12px}body #modalWrap .dm-access-agenda-list small{font-size:10px;margin-top:2px}
body #modalWrap .dm-access-stats{gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}
body #modalWrap .dm-access-inline-actions{gap:7px;margin-top:8px}body #modalWrap .dm-access-inline-actions .btn{min-height:32px;font-size:11px;padding:7px 10px}
body #modalWrap .dm-access-day-courses{margin-top:8px;padding-top:4px}body #modalWrap .dm-access-day-courses>div{padding:6px 0}body #modalWrap .dm-access-day-courses strong{font-size:12px}
body #modalWrap .dm-access-threads>button,body #modalWrap .dm-access-notices>button{padding:8px 0;gap:8px}
body #modalWrap .dm-access-more{font-size:10px;margin-top:6px}
body #modalWrap .dm-access-foot{padding:12px 20px!important;gap:10px!important}body #modalWrap .dm-access-foot small{font-size:10px}body #modalWrap .dm-access-foot .btn{min-height:36px;font-size:12px;padding:8px 12px}
@media(max-width:700px){body #modalWrap .dm-access-head{padding:14px!important}body #modalWrap .dm-access-body{padding:12px!important}body #modalWrap .dm-access-head #dmAccessSummaryTitle{font-size:19px!important}body #modalWrap .dm-access-section{padding:10px}body #modalWrap .dm-access-stat{padding:8px;gap:3px 5px}body #modalWrap .dm-access-stat strong{font-size:18px}body #modalWrap .dm-access-foot{padding:10px 14px!important}body #modalWrap .dm-access-foot small{display:none}body #modalWrap .dm-access-section-clear{display:block}}
/* V166: dedicated briefing controls avoid inherited button decoration. */
body #modalWrap .dm-access-close{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;flex:0 0 38px!important;border:1px solid #e0e5ec!important;border-radius:50%!important;background:#f3f5f8!important;color:#607086!important;padding:0!important;margin:0!important;box-shadow:none!important;cursor:pointer;transition:background .15s,color .15s}
body #modalWrap .dm-access-close svg{width:15px!important;height:15px!important;stroke-width:1.7}
body #modalWrap .dm-access-close:hover{background:#e7ecf3!important;color:#24364c!important}
body #modalWrap .dm-access-close:focus-visible{outline:2px solid #448bdd!important;outline-offset:3px!important}
body #modalWrap .dm-access-foot .dm-access-enter{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;min-height:42px!important;border-radius:12px!important;background:linear-gradient(135deg,#263b57,#17283e)!important;border:1px solid #263b57!important;color:#fff!important;font-size:12px!important;font-weight:600!important;padding:11px 18px!important;box-shadow:0 3px 9px #17283e18!important;text-shadow:none!important;transition:background .15s,box-shadow .15s}
body #modalWrap .dm-access-enter:before,body #modalWrap .dm-access-enter:after{display:none!important}
body #modalWrap .dm-access-enter span{color:#fff!important}.dm-access-enter svg{width:17px;height:17px;color:#c5d8ee}
body #modalWrap .dm-access-enter:hover{background:#315577!important;box-shadow:0 4px 12px #17283e22!important}
body #modalWrap .dm-access-enter:focus-visible{outline:2px solid #448bdd!important;outline-offset:3px!important}
@media(max-width:700px){
 body .topbar{padding:10px 12px!important;gap:7px 10px!important;min-height:62px!important;border-bottom:1px solid #e2e7ef!important;box-shadow:0 2px 8px #17233803!important}
 body .topbar .mobile-school-brand{gap:9px!important;align-items:center!important;min-width:0}
 body .topbar .mobile-school-brand>div{min-width:0}
 body .topbar .mobile-school-brand strong{font-size:14px!important;font-weight:600!important;line-height:1.35!important}
 body .topbar .mobile-school-brand small{font-size:10px!important;line-height:1.4!important;margin-top:2px!important}
 body .topbar .mobile-school-brand :is(img,.school-brand-mark){width:31px!important;height:31px!important;object-fit:contain;flex-shrink:0;border-radius:9px}
 body .topbar .topbar-right{padding:3px!important;background:#f5f7fa;border:1px solid #e4e9f0;border-radius:14px;gap:3px!important;align-items:center!important}
 body .topbar .topbar-right :is(.icon-btn,.dm-profile-button,.dm-communication-button,.dm-notification-bell){width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;flex:0 0 34px!important}
 body .topbar .topbar-right svg{width:18px!important;height:18px!important}body .topbar .dm-person-avatar{width:30px!important;height:30px!important;font-size:10px!important}
 body .topbar .dm-header-context{padding-top:5px!important;border-top:1px solid #edf0f5;gap:5px!important;justify-content:flex-start!important;min-width:0}
 body .topbar .dm-header-context:empty{padding:0!important;border:0!important;display:none!important}
 body .topbar .dm-header-context .topbar-scope-chip{min-height:26px!important;padding:3px 7px!important;border:0!important;border-radius:7px!important;background:#f4f6f9!important;gap:5px!important;max-width:100%;margin:0!important}
 body .topbar .dm-header-context .topbar-scope-chip :is(small,strong){font-size:10px!important;line-height:1.4!important}
 body .topbar .dm-header-context .topbar-scope-chip :is(img,.topbar-location-logo){width:18px!important;height:18px!important;object-fit:contain;border-radius:5px!important}
 body .premium-teacher-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important;min-height:62px!important}
 body .premium-teacher-head .teacher-school-brand{flex:1;min-width:0;gap:9px!important}
 body .premium-teacher-head .teacher-school-brand strong{font-size:14px!important;line-height:1.35!important}
 body .premium-teacher-head .teacher-school-brand small{font-size:10px!important}
 body .premium-teacher-head .teacher-head-actions{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;align-items:center!important;padding:3px;border:1px solid #e4e9f0;border-radius:14px;background:#f5f7fa;flex:0 0 auto}
 body .premium-teacher-head .teacher-head-actions :is(.dm-communication-button,.dm-profile-button,.teacher-logout){width:34px!important;height:34px!important;min-height:34px!important;border:0!important;padding:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;flex:0 0 34px!important}
 body .premium-teacher-head .teacher-logout span,body .premium-teacher-head .dm-header-connection{display:none!important}
 body .premium-teacher-head .teacher-head-actions svg{width:18px;height:18px}body .premium-teacher-head .dm-person-avatar{width:30px!important;height:30px!important}
 body #modalWrap .dm-access-close{width:40px!important;height:40px!important;flex-basis:40px!important}
 body #modalWrap .dm-access-foot .dm-access-enter{width:100%!important;min-height:44px!important}
}
@media(prefers-reduced-motion:reduce){body #modalWrap :is(.dm-access-close,.dm-access-enter){transition:none!important}}
@media(max-width:700px){body .topbar .mobile-school-brand .school-brand-logo,body .premium-teacher-head .teacher-school-brand .school-brand-logo{width:31px!important;height:31px!important;min-width:31px!important;flex:0 0 31px!important;border-radius:9px!important;font-size:11px!important}body .premium-teacher-head .teacher-school-brand .school-brand-logo img{width:100%!important;height:100%!important;object-fit:contain}}
.dm-task-student-context{padding:12px 14px;margin-bottom:16px;background:#f4f7fb;border:1px solid #e0e7ef;border-radius:12px}.dm-task-student-context strong{display:block;font-size:14px}.dm-task-student-context small{display:block;font-size:11px;color:#718198;margin-top:4px;line-height:1.5}
@media(max-width:700px){
 body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{left:10px!important;right:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;border:1px solid #dfe5ed!important;border-radius:20px!important;padding:6px!important;gap:3px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 5px 24px #17233812!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{min-height:50px!important;border-radius:14px!important;padding:7px 3px!important;gap:4px!important;color:#718095!important;transition:background .15s,color .15s}
 body .mobile-nav button.active,body .teacher-app nav.teacher-bottom-nav button.active{background:#eaf0f8!important;color:#294f7b!important;box-shadow:none!important;font-weight:600!important}
 body .mobile-nav button .icon,body .teacher-app nav.teacher-bottom-nav button .icon{width:21px!important;height:21px!important;stroke-width:1.7!important}
 body .mobile-nav button span,body .teacher-app nav.teacher-bottom-nav button span{font-size:10px!important;line-height:1.3!important}
 body .mobile-nav button:focus-visible,body .teacher-app nav.teacher-bottom-nav button:focus-visible{outline:2px solid #448bdd;outline-offset:-2px}
 body:not(.dm-chat-page) .main .content,body .dm-teacher-screen{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
 body .mobile-more-sheet{border-radius:24px 24px 0 0!important;padding:16px!important}.mobile-more-grid{gap:8px!important}.mobile-more-grid button{border-radius:13px!important;padding:12px!important;min-height:50px!important}
}
@media(prefers-reduced-motion:reduce){body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{transition:none!important}}
.dm-task-repeat{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:var(--dm-muted);padding:3px 6px;background:#edf3fa;border-radius:6px}.dm-task-repeat svg{width:11px;height:11px}
@media(max-width:700px){
 body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{padding:5px 6px!important;gap:2px!important;border-radius:23px!important;border-color:#dbe3ed!important;background:rgba(255,255,255,.98)!important;box-shadow:0 6px 24px #10274414,0 1px 3px #10274408!important}
 body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{min-height:56px!important;padding:3px 2px!important;gap:3px!important;background:transparent!important;border-radius:16px!important;color:#738097!important;display:flex;flex-direction:column;align-items:center;justify-content:center}
 body .mobile-nav button.active,body .teacher-app nav.teacher-bottom-nav button.active{background:transparent!important;color:#253f60!important;box-shadow:none!important}
 body .mobile-nav button>.dm-tab-icon,body .teacher-app nav.teacher-bottom-nav button>.dm-tab-icon{display:grid!important;place-items:center!important;width:40px;height:30px;border-radius:11px;background:transparent;transition:background .16s,color .16s;font-size:inherit!important}
 body .mobile-nav button.active>.dm-tab-icon,body .teacher-app nav.teacher-bottom-nav button.active>.dm-tab-icon{background:linear-gradient(135deg,#345474,#203550)!important;color:#fff!important;box-shadow:0 2px 5px #20355018}
 body .mobile-nav button>.dm-tab-icon .icon,body .teacher-app nav.teacher-bottom-nav button>.dm-tab-icon .icon{width:19px!important;height:19px!important;stroke-width:1.75!important}
 body .mobile-nav button>span:not(.dm-tab-icon),body .teacher-app nav.teacher-bottom-nav button>span:not(.dm-tab-icon){font-size:9px!important;font-weight:550!important;line-height:1.4!important;letter-spacing:.01em!important}
 body .mobile-nav button.active>span:not(.dm-tab-icon),body .teacher-app nav.teacher-bottom-nav button.active>span:not(.dm-tab-icon){font-weight:650!important}
 body .mobile-more-sheet .mobile-more-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 body .mobile-more-sheet .mobile-more-grid button{display:flex;flex-direction:row!important;align-items:center;justify-content:flex-start!important;gap:10px!important;padding:12px!important;min-height:50px!important;text-align:left;font-size:12px;box-shadow:none!important}
 body .mobile-more-sheet .mobile-more-grid button svg{width:19px;height:19px;flex-shrink:0}body .mobile-more-sheet .mobile-more-grid button span{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.dm-tab-icon{transition:none!important}}
/* V169: compact reminder editor, calm mobile header and private document archive. */
body #modalWrap .dm-task-editor{width:min(540px,calc(100vw - 24px))!important;max-width:540px!important;border-radius:20px!important}
body #modalWrap .dm-task-editor .modal-head{padding:17px 20px!important;align-items:center!important}
body #modalWrap .dm-task-editor h2{font-size:19px!important;margin:0!important}
body #modalWrap .dm-task-editor .modal-body{padding:17px 20px!important}
body #modalWrap .dm-task-editor .form-grid{align-items:start!important;gap:12px!important}
body #modalWrap .dm-task-editor .field{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:7px!important;margin:0 0 13px!important}
body #modalWrap .dm-task-editor .field label{margin:0!important;font-size:11px!important}
body #modalWrap :is(.dm-task-editor,.dm-doc-modal) .field :is(input:not([type=file]),select){height:42px!important;min-height:42px!important;padding:9px 11px!important;border:1px solid #dce3ec!important;border-radius:11px!important;font-size:13px!important;background:#f9fafc!important;color:#24354b!important;box-shadow:none!important;margin:0!important;box-sizing:border-box!important;width:100%;max-width:100%;min-width:0}
body #modalWrap :is(.dm-task-editor,.dm-doc-modal) .field :is(input,select):focus{border-color:#6294ca!important;outline:2px solid #6294ca26!important;outline-offset:1px!important;box-shadow:none!important}
body #modalWrap .dm-task-editor .dm-task-date-shortcuts{margin:0!important;gap:5px!important}
body #modalWrap .dm-task-editor .dm-task-date-shortcuts button{min-height:28px!important;border-radius:8px!important}
body #modalWrap .dm-task-editor .panel-sub{font-size:11px!important;line-height:1.5!important;margin:0!important}
body #modalWrap .dm-task-editor .modal-foot{padding:12px 20px!important;gap:8px!important}
body #modalWrap .dm-task-editor .modal-foot .btn{min-height:40px!important;border-radius:11px!important;box-shadow:none!important;font-size:12px!important}
body #modalWrap .dm-task-editor .modal-head>.icon-btn{border-radius:50%!important;width:32px!important;height:32px!important;min-height:32px!important;box-shadow:none!important;background:#f2f5f9!important;border:0!important;color:#61748c!important}
body #modalWrap .dm-task-editor :is(#dmTaskStatus:empty,.panel-sub:empty){display:none!important}
body #modalWrap .dm-doc-modal{max-width:650px!important;border-radius:20px!important}
.dm-doc-modal h2{margin:0;font-size:20px}.dm-doc-modal .modal-head small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.dm-document-list{display:grid;gap:10px}.dm-doc-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:10px;padding:12px;border:1px solid #e2e7ee;border-radius:13px;background:#fafbfd}.dm-doc-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.dm-doc-row small{display:block;font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;margin-top:3px}.dm-doc-row .btn{font-size:11px;min-height:34px!important;padding:7px 10px!important;box-shadow:none!important}.dm-doc-file-icon{display:grid;place-items:center;width:32px;height:36px;border-radius:9px;color:#47749d;background:#eaf1f8}.dm-doc-file-icon svg{width:18px;height:18px}
.dm-doc-state{display:inline-block;font-size:10px;font-weight:600;padding:4px 7px;border-radius:6px;background:#edf1f6;color:#6a788b;margin-top:6px;white-space:nowrap}.dm-doc-state.valid{background:#e9f5ee;color:#287450}.dm-doc-state.soon{background:#fff3df;color:#8c6223}.dm-doc-state.expired{background:#fcebed;color:#a63b4b}
.dm-doc-upload{margin-top:18px;border:1px solid #dce5ef;border-radius:13px;padding:13px}.dm-doc-upload summary{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;cursor:pointer;list-style:none;color:#345d87}.dm-doc-upload summary::-webkit-details-marker{display:none}.dm-doc-upload summary svg{width:17px;height:17px}.dm-doc-upload form{margin-top:16px}.dm-doc-upload .field{min-width:0}.dm-doc-upload input[type=file]{width:100%;max-width:100%;font-size:12px;min-width:0}.dm-doc-upload .btn{box-shadow:none!important}.dm-doc-privacy{display:block;margin-top:12px;font-size:10px;color:var(--muted);line-height:1.5}.dm-doc-empty{padding:14px;border:1px dashed #dce3ec;border-radius:12px;font-size:12px;color:var(--muted)}
.dm-doc-home{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;margin:14px 0;border:1px solid #e1e6ee;border-radius:14px;background:#fff}.dm-doc-home strong{display:flex;align-items:center;gap:7px;font-size:13px}.dm-doc-home strong svg{width:17px;height:17px}.dm-doc-home strong span{color:#9b6224;background:#fff0da;padding:2px 6px;border-radius:5px;font-size:11px}.dm-doc-home small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.dm-doc-home .btn{font-size:11px!important;white-space:nowrap}.dm-doc-alert{display:flex;gap:10px;align-items:center;justify-content:space-between;text-align:left;border:1px solid #e2e7ee;background:#fafbfd;color:var(--text);padding:12px;border-radius:12px;width:100%}.dm-doc-alert>span:first-child{flex:1;min-width:0}.dm-doc-alert strong,.dm-doc-alert small{display:block;overflow-wrap:anywhere}.dm-doc-alert strong{font-size:13px}.dm-doc-alert small{font-size:11px;color:var(--muted);margin-top:4px}.dm-doc-alert>svg{width:16px;height:16px;flex-shrink:0}
.dm-pack-entry{margin:0 0 16px}.dm-pack-table{overflow:auto}.dm-pack-table table{width:100%;font-size:12px;border-collapse:collapse}.dm-pack-table th,.dm-pack-table td{padding:10px;text-align:left;border-bottom:1px solid #e2e7ee}.dm-pack-modal .note{font-size:12px;margin-top:16px}
@media(max-width:700px){
 body .topbar{gap:5px 8px!important;padding:8px 12px!important;grid-template-areas:"main actions" "context context"!important}
 body .topbar .mobile-school-brand strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important}
 body .topbar .topbar-right{padding:0!important;gap:1px!important;border:0!important;background:transparent!important;border-radius:0!important}
 body .topbar .topbar-right :is(.icon-btn,.dm-profile-button,.dm-communication-button,.dm-notification-bell){width:36px!important;height:36px!important;min-height:36px!important;flex:0 0 36px!important}
 body .topbar .dm-header-context{padding-top:0!important;border:0!important;margin:0!important}
 body .topbar .dm-header-context .topbar-scope-chip{min-height:23px!important;padding:2px 6px!important;background:#f0f3f8!important}
 body #app #content .dm-secretary-hero{padding:4px 0 10px!important;margin-bottom:6px!important;min-height:0!important;background:none!important;display:flex!important;align-items:center!important;gap:8px!important}
 body #app #content .dm-secretary-hero:before,body #app #content .dm-secretary-hero:after{display:none!important}
 body #app #content .dm-secretary-hero .eyebrow{display:none!important}body #app #content .dm-secretary-hero h1{font-size:24px!important;line-height:1.2!important;margin:0 0 5px!important}body #app #content .dm-secretary-hero p{font-size:11px!important;margin:0!important}
 body #app #content .dm-secretary-hero>div{flex:1;min-width:0}body #app #content .dm-secretary-hero>.btn{width:36px!important;height:36px!important;min-height:36px!important;padding:8px!important;flex:0 0 36px!important;font-size:0!important;gap:0!important;border-radius:11px!important;box-shadow:none!important}body #app #content .dm-secretary-hero>.btn svg{width:19px!important;height:19px!important}
 body #app #content .secretary-home-actions{gap:8px!important;margin-bottom:12px!important}body #app #content .secretary-home-actions>button{padding:10px!important;gap:8px!important;min-height:62px!important;border-radius:15px!important}body #app #content .secretary-home-actions>button>span{width:32px!important;height:32px!important;border-radius:10px!important;flex:0 0 32px!important}body #app #content .secretary-home-actions>button>span svg{width:17px!important;height:17px!important}body #app #content .secretary-home-actions strong{font-size:12px!important}body #app #content .secretary-home-actions small{font-size:10px!important}body #app #content .secretary-home-actions>button>svg{display:none!important}
 body #app #content .dm-tasks-home .panel-head{padding:12px!important;align-items:center!important;gap:8px!important}body #app #content .dm-tasks-home .dm-task-eyebrow{display:none!important}body #app #content .dm-tasks-home h3{font-size:15px!important;margin:0!important}body #app #content .dm-tasks-home .panel-sub{font-size:10px!important;margin-top:4px!important}body #app #content .dm-tasks-home .panel-head>.btn{padding:7px 9px!important;min-height:34px!important;font-size:11px!important;gap:4px!important;box-shadow:none!important}body #app #content .dm-tasks-home .panel-body{padding:10px 12px!important}body #app #content .dm-tasks-home .dm-task-filters{gap:5px!important;margin-bottom:6px!important}body #app #content .dm-tasks-home .dm-task-filters button{padding:6px 8px!important;min-height:30px!important;font-size:11px!important}body #app #content .dm-tasks-home .dm-task-row{padding:10px 0!important;gap:9px!important}body #app #content .dm-tasks-home .dm-task-copy strong{font-size:12px!important}body #app #content .dm-tasks-home .dm-task-check{width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px!important}body #app #content .dm-tasks-home .dm-task-edit{width:32px!important;height:32px!important;min-height:32px!important}body #app #content .dm-tasks-home #dmTaskHomeStatus:empty{display:none!important}
 body #modalWrap .dm-task-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body #modalWrap .dm-task-editor .modal-body{padding:15px!important}body #modalWrap .dm-task-editor .dm-task-date-shortcuts{flex-wrap:wrap!important}body #modalWrap .dm-task-editor .dm-task-date-shortcuts button{font-size:10px!important;padding:4px 6px!important}body #modalWrap .dm-task-editor .modal-foot{padding:12px 15px!important}
 .dm-doc-row{grid-template-columns:28px minmax(0,1fr) auto;padding:10px;gap:8px}.dm-doc-file-icon{width:28px;height:32px}.dm-doc-home{padding:10px 12px}.dm-doc-home strong{font-size:12px}.dm-doc-home small{font-size:10px}.dm-doc-alert .dm-doc-state{font-size:9px}.dm-doc-upload .form-grid{grid-template-columns:1fr!important}
}
@media(max-width:359px){body #modalWrap .dm-task-editor .form-grid{grid-template-columns:1fr!important}body .topbar .mobile-school-brand :is(img,.school-brand-mark){width:25px!important;height:25px!important}body .topbar .topbar-right :is(.icon-btn,.dm-profile-button,.dm-communication-button,.dm-notification-bell){width:32px!important;flex-basis:32px!important}}
/* V170: fixed geometry keeps active plate, icons and labels on the same axis. */
@media(max-width:700px){
 body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;gap:0!important;padding:5px!important}
 body .mobile-nav button,body .teacher-app nav.teacher-bottom-nav button{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:32px 14px!important;justify-items:center!important;align-items:center!important;align-content:center!important;gap:3px!important;padding:4px 0!important;margin:0!important;min-width:0!important;height:57px!important;min-height:57px!important;line-height:1!important;position:relative!important;transform:none!important;box-sizing:border-box!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
 body .mobile-nav button>.dm-tab-icon,body .teacher-app nav.teacher-bottom-nav button>.dm-tab-icon{grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;width:40px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;line-height:0!important;box-sizing:border-box!important;transform:none!important}
 body .mobile-nav button>.dm-tab-icon svg,body .teacher-app nav.teacher-bottom-nav button>.dm-tab-icon svg{display:block!important;width:19px!important;height:19px!important;margin:0!important;padding:0!important;vertical-align:middle!important;transform:none!important;flex-shrink:0!important}
 body .mobile-nav button>span:not(.dm-tab-icon),body .teacher-app nav.teacher-bottom-nav button>span:not(.dm-tab-icon){grid-column:1!important;grid-row:2!important;display:block!important;align-self:center!important;justify-self:center!important;text-align:center!important;font-size:9px!important;line-height:14px!important;height:14px!important;padding:0!important;margin:0!important;letter-spacing:0!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;transform:none!important}
 body .mobile-nav button:before,body .mobile-nav button:after,body .teacher-app nav.teacher-bottom-nav button:before,body .teacher-app nav.teacher-bottom-nav button:after{display:none!important}
 body .mobile-nav button.active,body .teacher-app nav.teacher-bottom-nav button.active{box-shadow:none!important;transform:none!important}
 body .mobile-more-sheet .mobile-more-grid button{align-items:center!important;text-align:left!important;line-height:1.3!important;min-width:0!important}
 body .mobile-more-sheet .mobile-more-grid button span{display:block!important;margin:0!important;line-height:1.3!important}
}
.dm-doc-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:66px}.dm-doc-delete{display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 8px;border:1px solid #efd9dd;border-radius:9px;background:#fdf4f5;color:#a34253;font-size:10px;font-weight:600;min-height:32px;cursor:pointer;box-shadow:none}.dm-doc-delete svg{width:12px;height:12px}.dm-doc-delete:disabled{opacity:.5;cursor:wait}.dm-doc-delete:focus-visible{outline:2px solid #b9576b;outline-offset:2px}.dm-doc-pending{font-size:9px;color:#8f6532;max-width:88px;line-height:1.4;text-align:center}.dm-doc-modal #dmDocStatus{font-size:12px;color:var(--muted);line-height:1.5;margin:12px 0}.dm-doc-modal #dmDocStatus:empty{display:none}
@media(max-width:700px){body .mobile-nav,body .teacher-app nav.teacher-bottom-nav{height:auto!important;min-height:67px!important;box-sizing:border-box!important}body .teacher-nav-message-count{top:2px!important;right:calc(50% - 25px)!important;line-height:16px!important;margin:0!important}}
/* V171: a short welcome and compact mobile student rows. */
.dm-mobile-welcome,.dm-student-mobile-detail{display:none}
@media(max-width:700px){
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero){padding:6px 0 12px!important;margin:0 0 8px!important;min-height:0!important;display:flex!important;align-items:center!important;gap:12px!important;background:none!important}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero):before,body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero):after{display:none!important}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero)>div:first-child{flex:1;min-width:0}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero) :is(h1,.eyebrow){display:none!important}
 body #app #content .dm-mobile-welcome{display:block!important;margin:0 0 5px!important}
 body #app #content .dm-mobile-welcome strong{display:block;font-size:21px!important;font-weight:650!important;line-height:1.3!important;overflow-wrap:anywhere}
 body #app #content .dm-mobile-welcome strong span{font-size:17px}
 body #app #content .dm-mobile-welcome small{display:block;font-size:12px!important;color:var(--muted);line-height:1.4;margin-top:3px}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero) p{font-size:10px!important;margin:0!important;line-height:1.4!important;color:var(--muted)}
 body #app #content .admin-dashboard-head-actions{flex:0 0 auto!important;margin:0!important;gap:0!important}.admin-dashboard-head-actions .dashboard-date-card{display:none!important}body #app #content .admin-dashboard-head-actions .btn{width:36px!important;height:36px!important;min-height:36px!important;padding:8px!important;font-size:0!important;gap:0!important;border-radius:11px!important;box-shadow:none!important}body #app #content .admin-dashboard-head-actions .btn svg{width:18px!important;height:18px!important}
 body .dm-teacher-greeting{padding:4px 0 12px!important;margin:0!important}body .dm-teacher-greeting .dm-page-kicker{display:none!important}body .dm-teacher-greeting h1{font-size:22px!important;line-height:1.3!important;margin:0 0 5px!important}body .dm-teacher-greeting p{font-size:11px!important;margin:0!important}
 body #app .students-table-wrap:after{display:none!important;content:none!important}
 body #app .students-table-wrap tbody{gap:7px!important}
 body #app .students-table-wrap tbody>tr{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:3px 10px!important;padding:11px 12px!important;border-radius:13px!important;align-items:center!important}
 body #app .students-table-wrap tbody>tr>td:first-child{grid-column:1!important;grid-row:1/3!important;border:0!important;padding:0!important}
 body #app .students-table-wrap .student-table-person{gap:9px!important;align-items:center!important}
 body #app .students-table-wrap .student-table-avatar{width:32px!important;height:32px!important;min-width:32px!important;flex-basis:32px!important;border-radius:10px!important;font-size:11px!important}
 body #app .students-table-wrap .student-name-link{font-size:13px!important;line-height:1.35!important;font-weight:600!important;text-align:left!important;margin:0!important;padding:0!important}
 body #app .students-table-wrap .dm-student-desktop-detail,body #app .students-table-wrap .student-note-preview{display:none!important}
 body #app .students-table-wrap .dm-student-mobile-detail{display:block!important;font-size:10px!important;margin-top:3px!important;line-height:1.4!important;color:var(--muted)!important}
 body #app .students-table-wrap tbody>tr>td:is(.dm-student-contact,.dm-student-courses,.dm-student-registration,.dm-student-state){display:none!important}
 body #app .students-table-wrap tbody>tr>.dm-student-balance{grid-column:2!important;grid-row:1!important;text-align:right!important;font-size:13px!important;white-space:nowrap!important}
 body #app .students-table-wrap tbody>tr>.dm-student-balance:before{display:none!important}
 body #app .students-table-wrap tbody>tr>.dm-student-actions{grid-column:2!important;grid-row:2!important;padding:0!important;border:0!important;width:auto!important}
 body #app .students-table-wrap .dm-student-actions>.concept-row-actions{gap:4px!important;justify-content:flex-end!important}
 body #app .students-table-wrap .dm-student-actions .btn{min-height:28px!important;height:28px!important;min-width:0!important;width:auto!important;flex:0 0 auto!important;padding:4px 7px!important;font-size:10px!important;line-height:1.2!important;box-shadow:none!important;border-radius:7px!important;white-space:nowrap!important}
 body #app .students-table-wrap .dm-student-actions .btn[title="Modifica"]{display:none!important}
 body #app .students-table-wrap .dm-student-actions .btn .icon{display:none!important}
 body #app .students-hero{padding:4px 0 10px!important;margin-bottom:5px!important;gap:8px!important}.students-hero .eyebrow,.students-hero p{display:none!important}body #app .students-hero h1{font-size:23px!important;margin:0!important}body #app .students-hero .hero-actions>.icon-btn{display:none!important}
 body #app .student-summary-grid{gap:6px!important;margin:8px 0 10px!important}body #app .student-summary-card{padding:9px!important;gap:7px!important;min-height:0!important}body #app .student-summary-card strong{font-size:18px!important}body #app .student-summary-card small{font-size:9px!important}
}
@media(max-width:700px){body #app .students-table-wrap tbody>tr>td:before{display:none!important;content:none!important}}
/* V172: explicit row layout defeats legacy hero column rules. */
@media(max-width:700px){
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero){flex-direction:row!important;justify-content:space-between!important;text-align:left!important;align-items:center!important;max-width:none!important;padding:14px 15px!important;margin:0 0 14px!important;border:1px solid #e3e7ee!important;border-radius:17px!important;background:#fff!important;box-shadow:0 2px 8px #17233803!important;gap:12px!important}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero)>div:first-child{max-width:none!important;width:auto!important;text-align:left!important;margin:0!important;flex:1 1 auto!important;min-width:0!important}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero) .dm-mobile-welcome{margin:0!important;text-align:left!important}
 body #app #content .dm-mobile-welcome strong{font-size:19px!important;line-height:1.3!important;letter-spacing:-.025em!important;color:#26394f!important}
 body #app #content .dm-mobile-welcome small{font-size:11px!important;line-height:1.4!important;margin-top:4px!important;color:var(--dm-muted)!important}
 body #app #content :is(.dm-secretary-hero,.admin-dashboard-hero) p{display:none!important}
 body #app #content .dm-secretary-hero>.btn,body #app #content .admin-dashboard-head-actions .btn{width:40px!important;height:40px!important;min-height:40px!important;flex:0 0 40px!important;margin:0!important;padding:10px!important;border:1px solid #e2e8f0!important;background:#f4f7fb!important;color:#426184!important;border-radius:12px!important;box-shadow:none!important}
 body #app #content .admin-dashboard-head-actions{flex:0 0 40px!important;max-width:40px!important;margin:0!important}
}
body #modalWrap .dm-secretary-edit{max-width:560px!important;border-radius:20px!important}.dm-secretary-edit h2{margin:0;font-size:20px}.dm-secretary-edit .panel-sub{font-size:11px;line-height:1.5}.dm-secretary-edit input[readonly]{color:var(--muted);background:#f3f5f8}.dm-secretary-edit #dmSecretaryEditStatus{font-size:12px;line-height:1.5}.dm-secretary-edit #dmSecretaryEditStatus:empty{display:none}
/* V173: quick actions first, concise priorities, secondary data on demand. */
body #app #content .dm-dashboard-top-actions{margin:0 0 16px!important;padding:0!important}
body #app #content .dm-dashboard-top-actions .home-quick-actions{margin:0!important;gap:10px!important}
body #app #content .dm-dashboard-top-actions .home-quick-actions>button{min-height:68px!important;padding:12px!important;border-radius:15px!important;gap:10px!important;box-shadow:0 2px 8px #17233803!important}
body #app #content .dm-dashboard-top-actions .home-quick-actions>button>span{width:35px!important;height:35px!important;border-radius:11px!important;flex:0 0 35px!important}
body #app #content .dm-dashboard-top-actions .home-quick-actions strong{font-size:13px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions small{font-size:10px!important}
.dm-dashboard-section-label{font-size:11px;font-weight:600;color:var(--muted);margin:16px 0 9px;letter-spacing:.015em}
.dm-dashboard-briefing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin:14px 0}.dm-dashboard-briefing>div{min-width:0}.dm-dashboard-briefing>div:empty{display:none}.dm-dashboard-briefing .panel{margin:0!important}.dm-dashboard-briefing .dm-tasks-home{margin:0!important}
body #app #content .admin-ops-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important}
body #app #content .dm-dashboard-today{gap:14px!important;margin-bottom:14px!important}
body #app #content .dm-dashboard-secondary{margin:10px 0!important;border-radius:14px!important}
body #app #content .dm-dashboard-secondary summary{min-height:48px!important;padding:12px 15px!important;font-size:13px!important}
body #app #content .dm-dashboard-secondary .admin-dashboard-details-body{padding:12px!important}
@media(max-width:900px){.dm-dashboard-briefing{grid-template-columns:1fr;gap:12px}body #app #content .admin-ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body #app #content .dm-dashboard-top-actions{margin-bottom:12px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions>button{min-height:54px!important;padding:10px!important;gap:8px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions small{display:none!important}body #app #content .dm-dashboard-top-actions .home-quick-actions>button>span{width:30px!important;height:30px!important;flex-basis:30px!important;border-radius:9px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions strong{font-size:12px!important}body #app #content .dm-dashboard-top-actions .home-quick-actions>button>svg{display:none!important}.dm-dashboard-section-label{margin:12px 0 7px;font-size:10px}.dm-dashboard-briefing{margin:12px 0}.dm-dashboard-secondary .admin-details-hint{font-size:10px!important}body #app #content .dm-dashboard-secondary summary{font-size:12px!important;min-height:46px!important}}
/* V174: dashboard sections expand in document flow below their heading. */
body #app #content .admin-dashboard-details,body #app #content .admin-dashboard-details-body{overflow-anchor:none!important}
body #app #content:has(.admin-dashboard-details){overflow-anchor:none!important}
body #app #content .admin-dashboard-details{display:block!important;position:relative!important;transform:none!important}
body #app #content .admin-dashboard-details-body{position:static!important;transform:none!important;clear:both!important}
body #app #content .admin-dashboard-details>summary:after{content:'⌄'!important;font-size:20px!important;line-height:1!important;flex-shrink:0;transform:none!important}
body #app #content .admin-dashboard-details[open]>summary:after{content:'⌃'!important}
html:has(#content .admin-dashboard-details){scroll-behavior:auto!important}
/* V175 controls retain the same spacing in both themes. */
body .dm-student-chips .btn.selected{background:var(--dm-ink)!important;color:var(--dm-bg,#fff)!important;border-color:var(--dm-ink)!important}
.dm-doc-row .dm-doc-actions{max-width:140px}
@media(max-width:640px){.dm-doc-row .dm-doc-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;max-width:none;min-width:0;justify-content:flex-start}.dm-doc-row .dm-doc-actions .btn,.dm-doc-row .dm-doc-delete{flex:0 1 auto}}
/* V176: Allievi forms one compact workspace across window sizes. */
body .dm-student-workspace{border:1px solid var(--line);border-radius:18px;background:var(--dm-surface,#fff);overflow:hidden;margin-top:12px;box-shadow:0 6px 24px #182c3505}
body .dm-student-filter-panel{padding:14px 16px 12px;border-bottom:1px solid var(--line)}
body .dm-student-filter-panel .students-toolbar{display:grid!important;grid-template-columns:minmax(200px,1fr) minmax(145px,190px) minmax(170px,210px) auto!important;gap:10px!important;margin:0!important;align-items:center!important;min-height:0!important;justify-content:stretch!important}
body .dm-student-filter-panel .students-toolbar>*{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;justify-self:stretch!important}
body .dm-student-filter-panel .students-toolbar .search-box{height:42px!important;flex-basis:auto!important;grid-column:auto;padding:0 12px}
body .dm-student-filter-panel .students-toolbar select{height:42px!important;font-size:13px!important;padding-right:28px!important}
body .dm-student-filter-panel .students-clear-filters{height:42px!important;min-height:42px!important;padding:8px 12px!important;font-size:12px!important;flex-basis:auto!important}
body .dm-student-filter-panel .dm-student-chips{margin:12px 0 0!important;gap:6px}
body .dm-student-filter-panel .dm-student-chips .btn{height:auto!important;min-height:32px!important;padding:6px 10px!important;font-size:12px!important;border-radius:9px!important}
body .dm-student-workspace .students-table-wrap{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
body .dm-student-workspace .student-table-footer{padding:11px 16px!important;border-top:1px solid var(--line);font-size:12px!important;min-height:50px;line-height:1.5}
body .dm-student-workspace .dm-student-pagination{gap:9px;font-size:12px}
body .dm-student-workspace .dm-student-pagination .btn{min-width:32px;min-height:32px!important;padding:6px!important}
body .dm-student-page-size{color:var(--muted);font-size:11px}
body .dm-student-workspace td.dm-student-empty-cell{padding:0!important;display:table-cell!important}
body .dm-student-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:180px;padding:24px 16px;text-align:center}
body .dm-student-empty>svg,body .dm-student-empty>.icon{width:24px;height:24px;color:var(--muted);margin-bottom:2px}
body .dm-student-empty strong{font-size:14px;color:var(--dm-ink)}
body .dm-student-empty span{font-size:12px;color:var(--muted)}
body .dm-student-empty .btn{margin-top:4px;min-height:34px!important;font-size:12px!important}
.dm-task-assignee{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border-radius:6px;background:rgba(var(--primary-rgb),.06);color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.dm-agenda-scope{display:flex;gap:10px;align-items:center;margin:0 0 12px}
.dm-agenda-scope label{font-size:12px;color:var(--muted)}
.dm-agenda-scope select{width:auto;min-width:170px;max-width:100%;font-size:13px}
@media(max-width:1000px){body .dm-student-filter-panel .students-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important}body .dm-student-filter-panel .students-toolbar .search-box{grid-column:1/-1!important}}
@media(max-width:600px){body .dm-student-filter-panel{padding:12px}body .dm-student-filter-panel .students-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}body .dm-student-filter-panel .students-clear-filters{grid-column:1/-1!important;justify-self:stretch!important}body .dm-student-workspace .student-table-footer{padding:10px 12px!important}body .dm-student-workspace .students-table-wrap tr:has(.dm-student-empty-cell){display:block!important;border:0!important;margin:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}body .dm-student-workspace td.dm-student-empty-cell{display:block!important;width:100%!important}body .dm-student-empty-cell:before{display:none!important}.dm-agenda-scope{align-items:flex-start;flex-direction:column;gap:5px}.dm-agenda-scope select{width:100%}}
body .students-hero{min-height:0!important;padding-top:18px!important;padding-bottom:18px!important;margin-bottom:14px!important}
body .students-hero p{font-size:13px!important;margin-top:7px!important}
body .student-summary-card{min-height:68px!important}
/* V177: inline history search never replaces the mobile navigation or composer. */
body .dm-chat-search-panel{flex:0 0 auto;min-height:0;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--dm-surface,#fff)}
body .dm-chat-search-panel[hidden]{display:none!important}
body .dm-chat-search-panel form{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:6px;align-items:center}
body .dm-chat-search-panel input{width:100%;min-width:0;height:38px;padding:8px 10px;font-size:14px;border-radius:10px}
body .dm-chat-search-panel .icon-btn{width:36px;height:36px;min-height:36px;border-radius:10px;padding:8px}
body .dm-chat-search-panel small{display:block;margin-top:6px;font-size:11px;color:var(--muted);line-height:1.4}
body .dm-chat-search-result{padding:12px 14px;margin:0 0 10px;border:1px solid var(--line);border-radius:13px;background:var(--dm-surface,#fff)}
body .dm-chat-search-result small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
body .dm-chat-search-result p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
body .dm-chat-search-result mark{background:#fff1b8;color:#283844;border-radius:3px;padding:0 2px}
body .dm-chat-search-more{display:block;margin:12px auto}
body .dm-chat-receipt{display:inline-flex;align-items:center;gap:4px}
body .dm-chat-receipt-label{font-size:10px;line-height:1.3}
@media(max-width:700px){body.dm-chat-page #app #content .dm-chat-toolbar-actions>.dm-chat-find{width:32px!important;flex-basis:32px!important;border:0!important;background:transparent!important}body .dm-chat-search-panel input{font-size:16px}body .dm-chat-search-panel{padding:8px 12px}body .dm-chat-search-result{padding:10px 12px}}
/* V178: section menu belongs to mobile; message states are visible for each bubble. */
@media(min-width:701px){body .dm-chat-toolbar-actions>.dm-chat-menu{display:none!important}}
body .dm-chat-stamp{flex-wrap:wrap;white-space:normal;row-gap:3px;max-width:100%}
body .dm-chat-receipt{flex-wrap:wrap;justify-content:flex-end;max-width:100%}
body .dm-chat-receipt svg{flex:0 0 21px}
body .dm-chat-receipt-label,body .dm-chat-incoming-state{display:inline!important;font-size:11px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere;color:inherit}
@media(max-width:700px){body .dm-chat-stamp{font-size:11px!important;gap:5px;margin-top:5px}body .dm-chat-message.own .dm-chat-receipt-label{color:#fff!important}}
/* V179 plan information stays compact and neutral. */
.dm-plan-blocked{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--dm-bg,#f2f2f7)}
.dm-plan-blocked>.panel{width:min(520px,100%);padding:28px;border-radius:22px}
.dm-plan-blocked h1{font-size:26px;line-height:1.2;margin:14px 0}
.dm-plan-blocked p{font-size:15px;line-height:1.6}
.dm-plan-blocked small{display:block;color:var(--muted);margin:14px 0 22px}
.dm-plan-school-field{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:12px}
.dm-plan-school-field>label{display:flex;align-items:center;gap:8px}
.dm-plan-school-field input[type=checkbox]{width:18px!important;height:18px!important;flex:0 0 18px}
.dm-plan-school-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:13px;background:var(--dm-surface,#fff);font-size:13px}
.dm-plan-school-status span{color:var(--muted);font-size:12px}
@media(max-width:700px){body #app #content .admin-dashboard-hero{flex-wrap:wrap!important}body #app #content .admin-dashboard-head-actions{display:flex!important;flex:0 0 100%!important;max-width:100%!important;width:100%!important;gap:10px!important;align-items:center!important;margin-top:12px!important}body #app #content .admin-dashboard-head-actions .dm-home-support{flex:1!important;width:auto!important;margin:0!important;min-width:0!important}}
/* V194: le regole di layout mobile non devono riaprire i badge a zero. */
html body #app .dm-menu-count.hidden,html body #app .dm-menu-count[hidden],html body .mobile-more-grid .dm-menu-count.hidden,html body .mobile-more-grid .dm-menu-count[hidden],html body #app [data-chat-unread].hidden,html body #app [data-chat-unread][hidden],html body #app .dm-super-bell>span.hidden,html body #app .dm-super-bell>span[hidden]{display:none!important;visibility:hidden!important}
@media(max-width:700px){html body #app .mobile-nav button>.dm-menu-count:not(.hidden):not([hidden]){position:absolute!important;display:grid!important;grid-column:auto!important;grid-row:auto!important;right:calc(50% - 27px)!important;top:2px!important;min-width:19px!important;width:auto!important;height:19px!important;line-height:19px!important;padding:0 5px!important;overflow:visible!important;font-size:10px!important;align-self:auto!important;justify-self:auto!important}}
/* V195: un accento neon, leggibile anche con tema chiaro e movimento ridotto. */
html body .dm-support-incoming,html body .dm-message-alert.dm-support-incoming{
 border:1px solid #699cdf!important;
 box-shadow:0 16px 48px #0003,0 0 0 1px #82baff40,0 0 22px #579ee633,0 0 38px #9674df24!important;
 animation:dm-notice-glow-in .48s ease-out both;
}
html body .dm-support-incoming .dm-home-support-icon{background:linear-gradient(145deg,#78b9ef22,#ad91ef22)!important;color:var(--ink)!important;border:1px solid #8fafe066;box-shadow:0 0 14px #79aaf326}
html body .dm-support-incoming>.icon-btn{flex:0 0 30px;width:30px;height:30px;min-height:30px;border-radius:50%;padding:6px;background:transparent;color:var(--muted)}
html body .dm-support-incoming>.icon-btn:hover{background:var(--line);color:var(--ink)}
html body .dm-support-incoming:focus-within{outline:2px solid #699cdf;outline-offset:3px}
@keyframes dm-notice-glow-in{from{opacity:0;filter:brightness(1.06)}to{opacity:1;filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){html body .dm-support-incoming,html body .dm-message-alert.dm-support-incoming{animation:none!important}}
/* V196: one compact notice, clear of the mobile navigation. */
html body .dm-unified-notice{max-height:min(420px,calc(100dvh - 120px));overflow-y:auto;overscroll-behavior:contain}
html body .dm-toast-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
html body .dm-toast-actions .btn{min-height:36px;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:8px 10px;gap:5px}
html body .dm-toast-actions .icon{width:14px;height:14px;flex:0 0 14px}
html body .dm-notification-settings section{padding:16px 0;border-bottom:1px solid var(--line)}
html body .dm-notification-settings h3{margin:0 0 8px}
html body .dm-notification-settings p,html body .dm-notification-settings small{color:var(--muted);line-height:1.5}
html body .dm-preview-toggle{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
html body .dm-preview-toggle input{width:20px!important;height:20px!important;flex:0 0 20px;margin:2px 0;accent-color:#699cdf}
html body .dm-preview-toggle small{display:block;margin-top:5px}
@media(max-width:700px){html body .dm-unified-notice{top:max(var(--dm-notice-top,72px),calc(env(safe-area-inset-top) + 12px))!important;bottom:auto!important;left:12px!important;right:12px!important;width:auto!important;padding:14px!important;gap:10px;border-radius:18px!important;max-height:calc(100dvh - var(--dm-notice-top,72px) - 105px)}html body .dm-unified-notice .dm-home-support-icon{width:34px;height:34px;flex:0 0 34px}html body .dm-notification-settings .actions{flex-wrap:wrap}}
/* V197: complete Super Admin navigation and compact mobile workspace. */
html body .dm-super-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
html body .dm-super-header-copy{min-width:0;flex:1}
html body .dm-super-header-copy>span{display:block;color:var(--muted);font-size:11px;font-weight:550;line-height:1.4}
html body .dm-super-header-copy h2{display:block!important;margin:4px 0 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%!important;font-size:20px!important;line-height:1.3}
html body .dm-super-header-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
html body .dm-super-exit{display:flex!important;align-items:center;gap:6px;min-height:44px!important;padding:10px 12px!important;border:1px solid var(--line)!important;border-radius:13px!important;color:var(--ink)!important;background:var(--surface)!important}
html body .dm-super-trends{margin:20px 0;padding:0;overflow:hidden}
html body .dm-super-trends>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:18px 20px;cursor:pointer;font-weight:600}
html body .dm-super-trends>summary::-webkit-details-marker{display:none}
html body .dm-super-trends>summary>.icon{width:18px;height:18px;transition:transform .18s}
html body .dm-super-trends[open]>summary>.icon{transform:rotate(90deg)}
html body .dm-super-trends-content{padding:0 16px 16px}
html body .dm-super-menu{display:flex;flex-direction:column;max-height:85dvh;overflow:hidden;background:var(--surface)!important;color:var(--ink)!important}
html body .dm-super-menu .mobile-more-head{flex-shrink:0}
html body .dm-super-menu .mobile-more-grid{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-bottom:8px}
html body .dm-super-menu .mobile-more-logout{display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:48px;border:1px solid var(--line);background:var(--surface-2)!important;color:var(--ink)!important;font-size:14px;font-weight:600}
html body .dm-super-menu .mobile-more-logout>.icon{width:18px;height:18px}
@media(max-width:780px){
 html body #app .dm-super-shell .topbar.dm-super-topbar{min-height:72px!important;height:auto!important;padding:12px 14px!important;flex-wrap:nowrap!important;gap:10px!important;grid-template-columns:none!important}
 html body .dm-super-header-copy h2{font-size:17px!important}
 html body .dm-super-header-copy>span{font-size:10px}
 html body .dm-super-header-actions{gap:6px}
 html body .dm-super-header-actions .dm-profile-button{display:none!important}
 html body .dm-super-header-actions .icon-btn{width:40px!important;height:44px!important;min-height:44px!important}
 html body .dm-super-exit{font-size:12px!important;padding:9px!important;gap:5px}
 html body .dm-super-exit .icon{width:17px;height:17px}
 html body #app .dm-super-shell .content{padding:16px 12px calc(100px + env(safe-area-inset-bottom))!important}
 html body #app .dm-super-mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-bottom:calc(5px + env(safe-area-inset-bottom))!important}
 html body #app .dm-super-shell .super-hero{padding:16px!important;gap:12px!important;min-height:0!important;margin-bottom:14px!important}
 html body #app .dm-super-shell .super-hero h1{font-size:24px!important;margin:5px 0!important}
 html body #app .dm-super-shell .super-hero p{font-size:12px!important;line-height:1.5!important}
 html body #app .dm-super-shell .super-hero>.btn{width:100%;justify-content:center;min-height:44px}
 html body #app .dm-super-shell .dm-super-inbox{padding:16px;gap:14px;border-radius:18px}
 html body #app .dm-super-shell .dm-super-inbox h2{font-size:20px;margin:6px 0}
 html body #app .dm-super-shell .dm-super-inbox-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 html body #app .dm-super-shell .dm-super-inbox-actions button{min-width:0;padding:12px 8px;gap:6px;border-radius:12px}
 html body #app .dm-super-shell .dm-super-inbox-actions strong{font-size:24px}
 html body #app .dm-super-shell .dm-super-inbox-actions span{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
 html body #app .dm-super-shell .dm-super-primary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
 html body #app .dm-super-shell .dm-super-primary .kpi{min-width:0;padding:13px}
 html body #app .dm-super-shell .dm-super-primary .value{font-size:23px!important;overflow-wrap:anywhere}
 html body #app .dm-super-shell .super-billing-alert-main{flex-wrap:wrap;gap:10px}
 html body #app .dm-super-shell .super-billing-alert-main>.btn{width:100%}
 html body #app .dm-super-shell .super-school-row{flex-wrap:wrap;gap:10px}
 html body #app .dm-super-shell .super-school-row .grow{min-width:0;flex-basis:calc(100% - 60px)}
 html body #app .dm-super-shell .super-school-row strong,html body #app .dm-super-shell .super-school-row small{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){html body .dm-super-trends>summary>.icon{transition:none}}
@media(max-width:780px){
 html body #app .dm-super-shell .dm-super-schools-list{overflow:visible;border:0;background:transparent}
 html body #app .dm-super-shell .dm-super-schools-list table,html body #app .dm-super-shell .dm-super-schools-list tbody{display:block;min-width:0!important;width:100%}
 html body #app .dm-super-shell .dm-super-schools-list thead{display:none}
 html body #app .dm-super-shell .dm-super-schools-list tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;margin-bottom:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink)}
 html body #app .dm-super-shell .dm-super-schools-list td{display:block;min-width:0;border:0;padding:0!important;white-space:normal;font-size:12px;overflow-wrap:anywhere}
 html body #app .dm-super-shell .dm-super-schools-list td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
 html body #app .dm-super-shell .dm-super-schools-list .dm-school-card-name{grid-column:1/-1;padding-bottom:8px!important;border-bottom:1px solid var(--line)}
 html body #app .dm-super-shell .dm-school-card-name strong{font-size:17px;line-height:1.4}
 html body #app .dm-super-shell .dm-school-card-actions{grid-column:1/-1;padding-top:10px!important;border-top:1px solid var(--line)}
 html body #app .dm-super-shell .dm-school-card-actions .actions{flex-wrap:wrap;gap:8px}
 html body #app .dm-super-shell .dm-school-card-actions .btn,html body #app .dm-super-shell .dm-school-card-actions .icon-btn{min-height:44px!important}
}
@media print{html body #app .dm-super-mobile-nav,html body #app .dm-super-shell .topbar.dm-super-topbar{display:none!important}}

/* V6.201 · compact operational controls, shared light/dark surfaces. */
.dm-search-action-row{border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:6px}
.dm-search-action-row .dm-search-result{width:100%;border-bottom:0}
.dm-search-shortcuts{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 0 52px}
.dm-search-shortcuts .btn{min-height:36px;padding:7px 11px;font-size:12px}
.dm-notice-advanced{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}
.dm-notice-advanced label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.dm-notice-advanced input,.dm-notice-advanced select{width:100%;min-width:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;font:inherit;color-scheme:inherit}
.dm-attendance-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.dm-attendance-tools small{flex-basis:100%;color:var(--muted)}
.dm-attendance-tools [role=status]{font-size:13px;color:var(--ink)}
.dm-document-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.dm-document-filters [aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--accent,#6e65db)}
.dm-document-list .dm-doc-alert{flex-wrap:wrap;gap:10px}
.dm-document-list .dm-doc-alert>span:first-child{flex:1;min-width:140px}
@media(max-width:600px){.dm-notice-advanced{grid-template-columns:1fr 1fr}.dm-notice-advanced label:first-child{grid-column:1/-1}.dm-notice-advanced>.btn{grid-column:1/-1;justify-self:start}.dm-search-shortcuts{padding-left:12px}.dm-document-filters .btn{flex:1 1 42%;font-size:12px}.dm-document-list .dm-doc-actions{width:100%;justify-content:flex-end}.dm-attendance-tools [role=status]{flex-basis:100%}}

/* V6.202 · notifications filters aligned in three clear rows. */
body .dm-notice-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:14px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
body .dm-notice-controls>.dm-communication-search{width:100%;box-sizing:border-box}
body .dm-notice-controls>.dm-filter-tabs:not(.dm-category-tabs){align-self:center;justify-self:end}
body .dm-notice-controls>.dm-notice-advanced{grid-column:1/-1;grid-template-columns:minmax(180px,1.4fr) minmax(140px,1fr) minmax(140px,1fr) auto;align-items:end;padding-top:14px;border-top:1px solid var(--line)}
body .dm-notice-advanced label{color:var(--muted);font-size:12px;font-weight:600;min-width:0}
body .dm-notice-advanced input,body .dm-notice-advanced select{height:44px;box-sizing:border-box;border-radius:11px;font-size:14px;color:var(--ink);background:var(--surface-2)}
body .dm-notice-advanced>.btn{min-height:44px}
body .dm-notice-controls>.dm-category-tabs{grid-column:1/-1;gap:8px;margin:0;padding-top:2px}
body .teacher-empty-premium p{max-width:340px;color:var(--muted);font-size:14px;line-height:1.5;margin:0}
@media(max-width:760px){body .dm-notice-controls{grid-template-columns:1fr;padding:14px;gap:12px}body .dm-notice-controls>.dm-filter-tabs:not(.dm-category-tabs){justify-self:stretch;justify-content:space-between}body .dm-notice-controls>.dm-notice-advanced{grid-template-columns:1fr 1fr;gap:10px}body .dm-notice-advanced label:first-child{grid-column:1/-1}body .dm-notice-advanced>.btn{grid-column:1/-1;justify-self:start}body .dm-notice-controls>.dm-category-tabs{flex-wrap:wrap}body .dm-notice-controls>.dm-category-tabs button{flex:1 1 auto}}

/* School identity leads navigation; platform identity stays discreet. */
body .sidebar>.school-chip{margin-top:4px;margin-bottom:20px}
body .dm-sidebar-signature{font-size:10px;line-height:1.4;text-align:center;letter-spacing:.025em;color:#a6b2c2;padding:12px 8px 2px;opacity:.72}
