:root{font-family:"DM Sans","Noto Sans SC",sans-serif;color:#202c2a;background:#f6f7f5;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#20312e;--muted:#78847e;--line:#e8ece8;--paper:#fff;--wash:#f6f7f5;--green:#256c57;--green2:#e8f2ed;--lime:#d8ed87;--peach:#fff0dc;--red:#b7594a;--shadow:0 2px 10px #233d2d0a,0 12px 28px #233d2d08}*{box-sizing:border-box}body{margin:0;min-width:360px}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:#fff;border-right:1px solid var(--line);padding:25px 16px 18px;display:flex;flex-direction:column;z-index:8}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 27px}.brand-mark{height:37px;width:37px;border-radius:13px;background:var(--green);display:grid;place-items:center;color:#fff;font-size:20px;box-shadow:0 6px 14px #256c5730}.brand-name{font-size:17px;font-weight:800;letter-spacing:-.4px}.brand-sub{font-size:10px;letter-spacing:1.7px;color:#8b9990;margin-top:2px}.workspace-label{padding:0 10px 9px;font-size:10px;color:#a1aaa3;letter-spacing:1.35px;font-weight:700}.nav{display:grid;gap:4px}.nav-item{height:42px;padding:0 12px;display:flex;align-items:center;gap:12px;border-radius:10px;color:#748078;font-size:13px;border:0;background:transparent;text-align:left;width:100%;transition:.18s}.nav-item:hover{background:#f5f8f4;color:var(--ink)}.nav-item.active{background:#eaf3ed;color:var(--green);font-weight:700}.nav-icon{width:20px;text-align:center;font-size:16px;opacity:.9}.nav-count{margin-left:auto;padding:2px 7px;border-radius:20px;background:#fff0df;color:#a26c22;font-size:10px}.sidebar-bottom{margin-top:auto}.support-card{padding:14px;border-radius:14px;background:#f7f8f5;margin:10px 2px 15px}.support-card strong{display:block;font-size:12px;margin:0 0 4px}.support-card span{color:var(--muted);font-size:10px;line-height:1.7}.avatar-row{display:flex;align-items:center;gap:10px;padding:12px 7px 2px;border-top:1px solid var(--line)}.avatar{width:34px;height:34px;border-radius:50%;background:#f1dfc4;color:#805c30;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}.avatar.green{background:#dcece3;color:var(--green)}.avatar.lilac{background:#ebe3f7;color:#7052a2}.avatar.blue{background:#dfeaf5;color:#47719e}.avatar-info{min-width:0}.avatar-name{font-size:12px;font-weight:700}.avatar-role{font-size:10px;color:var(--muted);margin-top:3px}.main{margin-left:246px;min-height:100vh}.topbar{height:72px;padding:0 38px;background:#ffffffd9;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:6}.crumb{font-size:12px;color:#909a94}.crumb b{color:#45554d;font-weight:700}.top-actions{display:flex;align-items:center;gap:12px}.role-select,.subtle-button{border:1px solid var(--line);background:#fff;border-radius:9px;color:#53615a;padding:9px 12px;font-size:12px}.role-select{min-width:165px}.top-icon{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#66736c;position:relative}.notification-dot{position:absolute;width:6px;height:6px;background:#db8362;border:1px solid white;border-radius:50%;right:7px;top:6px}.content{max-width:1420px;margin:0 auto;padding:34px 38px 64px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;color:#8c9990;letter-spacing:1.7px;font-weight:700;margin:0 0 9px}.page-title{font-size:28px;letter-spacing:-.8px;margin:0;font-weight:750;line-height:1.25}.page-desc{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.7}.head-actions{display:flex;gap:9px;flex:none}.primary-button,.secondary-button,.danger-button{border-radius:9px;padding:10px 15px;font-size:12px;font-weight:700;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s}.primary-button{background:var(--green);color:#fff;box-shadow:0 4px 10px #256c571a}.primary-button:hover{background:#1c5c48;transform:translateY(-1px)}.secondary-button{background:#fff;border-color:#e2e8e2;color:#43544a}.secondary-button:hover{background:#f5f8f5}.danger-button{background:#fff;color:var(--red);border-color:#f0d7d3}.icon-button{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;border:0;background:transparent;color:#7b8780;font-size:14px}.icon-button:hover{background:#eff3ee}.grid{display:grid;gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0}.card{background:var(--paper);border:1px solid #eaeeea;border-radius:15px;box-shadow:var(--shadow)}.stat-card{padding:19px 19px 17px;min-height:122px;position:relative;overflow:hidden}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#77837b;font-size:11px}.stat-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:var(--green2);color:var(--green);font-size:15px}.stat-value{font-size:29px;letter-spacing:-1.1px;font-weight:700;margin-top:11px;line-height:1}.stat-foot{color:#909a94;font-size:10px;margin-top:10px}.stat-foot .positive{color:#388362;font-weight:700}.dashboard-grid{grid-template-columns:1.4fr 1fr;align-items:start}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.panel-title{font-size:14px;font-weight:750;margin:0}.panel-note{font-size:10px;color:#929d96;margin:5px 0 0}.text-link{color:var(--green);font-weight:700;font-size:11px;border:0;background:transparent}.chart-wrap{height:224px;position:relative;padding:14px 4px 0}.chart-wrap svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:#edf0ec;stroke-width:1}.chart-area{fill:url(#paint)}.chart-line{fill:none;stroke:#4d8f71;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-point{fill:#fff;stroke:#4d8f71;stroke-width:2}.chart-labels{display:flex;justify-content:space-between;color:#9da69f;font-size:10px;padding:3px 6px 0}.activity-list{display:grid;gap:0}.activity{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2ef}.activity:last-child{border:0}.activity-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f2f5f1;color:#5c7f69;flex:none;font-size:13px}.activity-copy{font-size:11px;color:#59665e;line-height:1.55;flex:1}.activity-copy b{color:#34443a}.activity-time{font-size:9px;color:#a4ada6;white-space:nowrap;padding-top:2px}.section{margin-top:20px}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}.search-box{height:37px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:230px;color:#8b9690}.search-box input{border:0;outline:0;width:100%;font-size:11px;color:var(--ink);background:transparent}.filter-select{height:37px;padding:0 30px 0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#66736b;font-size:11px}.spacer{flex:1}.table-card{overflow:hidden}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th{text-align:left;color:#89948d;font-size:10px;font-weight:600;letter-spacing:.2px;background:#fafbf9;padding:12px 17px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:14px 17px;font-size:11px;color:#536158;border-bottom:1px solid #f0f2ef;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.entity{display:flex;align-items:center;gap:10px;min-width:155px}.entity-logo{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;background:#edf3ec;color:#4c795d;flex:none}.entity-logo.orange{background:#fff0e2;color:#a56b37}.entity-logo.purple{background:#f0eafa;color:#7658a1}.entity-title{font-size:11px;font-weight:700;color:#34443b}.entity-sub{font-size:9px;color:#9aa39d;margin-top:4px}.badge{padding:5px 8px;display:inline-flex;align-items:center;gap:5px;border-radius:20px;font-size:9px;font-weight:700;white-space:nowrap}.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.green{color:#37795d;background:#ebf5ef}.badge.amber{color:#a77732;background:#fff5e5}.badge.gray{color:#78827b;background:#f0f2f0}.badge.red{color:#b55449;background:#fbefed}.badge.blue{color:#4974a0;background:#edf3fa}.badge.purple{color:#7656a1;background:#f3eef9}.row-actions{display:flex;gap:3px;justify-content:flex-end}.empty{padding:36px;text-align:center;color:#9aa49d;font-size:12px}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.metric{background:#f8faf7;border-radius:11px;padding:14px}.metric-label{font-size:10px;color:#89948d}.metric-value{font-size:19px;font-weight:700;margin-top:7px}.banner{padding:17px 19px;border-radius:13px;background:#edf5ef;display:flex;gap:12px;align-items:center;margin-bottom:19px}.banner-icon{width:34px;height:34px;border-radius:11px;background:#dcecdf;color:#387452;display:grid;place-items:center;flex:none}.banner-copy{font-size:11px;line-height:1.6;color:#617067;flex:1}.banner-copy b{color:#304f3c}.banner .text-link{white-space:nowrap}.status-line{display:flex;align-items:center;gap:8px}.dot{width:7px;height:7px;border-radius:50%;background:#57a574}.dot.off{background:#c27961}.progress{height:6px;background:#edf0ec;border-radius:9px;overflow:hidden}.progress>span{height:100%;display:block;background:#679b78;border-radius:9px}.search-summary{font-size:10px;color:#8b9690;margin:0 0 10px}.content-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson{overflow:hidden}.lesson-cover{height:128px;background:linear-gradient(135deg,#f6e6c7,#dcebdc);display:flex;align-items:flex-end;padding:13px;font-size:10px;font-weight:700;color:#53664e}.lesson-cover.blue{background:linear-gradient(135deg,#deebf6,#c9dfd7)}.lesson-cover.pink{background:linear-gradient(135deg,#f5ded6,#efe8cf)}.lesson-body{padding:13px}.lesson-body b{font-size:12px}.lesson-body p{font-size:10px;color:#849087;line-height:1.7;margin:7px 0 9px}.lesson-meta{font-size:9px;color:#9aa49d;display:flex;justify-content:space-between}.filter-pill{padding:7px 11px;border-radius:20px;border:1px solid var(--line);background:#fff;color:#78847d;font-size:10px}.filter-pill.selected{background:#eaf3ed;color:var(--green);border-color:#d4e5d9;font-weight:700}.phone-view{max-width:430px;margin:10px auto;background:#fff;border:1px solid #e7ece6;border-radius:25px;overflow:hidden;min-height:730px;box-shadow:0 18px 48px #28392e14}.phone-status{height:31px;padding:8px 18px 0;display:flex;justify-content:space-between;color:#334138;font-size:10px;font-weight:700}.mobile-top{padding:10px 17px 14px;display:flex;align-items:center;justify-content:space-between}.mobile-title{font-size:17px;font-weight:800}.mobile-greeting{font-size:10px;color:#849087;margin-top:4px}.mini-avatar{width:34px;height:34px;border-radius:50%;background:#f4ddc3;color:#855e32;display:grid;place-items:center;font-size:12px;font-weight:700}.mobile-content{padding:0 15px 80px}.child-selector{background:#eaf3ed;border-radius:15px;padding:14px;display:flex;align-items:center;gap:10px}.child-photo{width:39px;height:39px;border-radius:12px;background:#d5e8da;display:grid;place-items:center;font-size:18px}.child-name{font-size:12px;font-weight:700}.child-class{font-size:9px;color:#728078;margin-top:4px}.live-card{border-radius:16px;background:#25342e;color:#fff;margin-top:13px;overflow:hidden;position:relative;height:202px;display:flex;align-items:center;justify-content:center}.live-scene{position:absolute;inset:0;background:radial-gradient(ellipse at 28% 70%,#c9946455,transparent 24%),radial-gradient(ellipse at 73% 44%,#93ae7955,transparent 27%),linear-gradient(145deg,#63735a,#354b41 55%,#29372f)}.live-scan{position:absolute;inset:15px;border:1px solid #ffffff33;border-radius:9px}.play-button{position:relative;z-index:1;width:49px;height:49px;border-radius:50%;border:1px solid #ffffff75;color:#fff;background:#ffffff2a;backdrop-filter:blur(6px);font-size:17px;display:grid;place-items:center}.live-overlay{position:absolute;left:13px;right:13px;top:12px;display:flex;justify-content:space-between;align-items:center;z-index:1;font-size:9px}.live-bottom{position:absolute;left:13px;right:13px;bottom:12px;z-index:1;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#ffffffd9}.live-badge{background:#e9f5ec;color:#3c8158;padding:5px 7px;border-radius:20px;font-weight:700}.live-disabled{position:absolute;inset:0;background:#17231dbb;z-index:2;display:grid;place-items:center;text-align:center;font-size:11px;color:#fff;line-height:1.7;padding:30px}.home-section{margin-top:22px}.home-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.home-section-head b{font-size:13px}.home-section-head button{border:0;background:transparent;color:#758178;font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick{background:#f8f9f7;padding:13px 5px;border-radius:12px;text-align:center;color:#57645b;font-size:9px}.quick-icon{font-size:17px;margin-bottom:7px}.mini-lessons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mini-lesson{border:1px solid #edf0eb;border-radius:12px;overflow:hidden}.mini-lesson-art{height:75px;background:linear-gradient(135deg,#f7e6c9,#dcebdc);display:grid;place-items:center;font-size:29px}.mini-lesson:nth-child(2) .mini-lesson-art{background:linear-gradient(135deg,#deebf6,#cfe4d5)}.mini-lesson-caption{font-size:9px;font-weight:700;padding:9px 8px 10px}.ad-surface{font-size:9px;color:#897955;background:#faf6ec;border:1px solid #f2ecd9;border-radius:10px;padding:9px 11px;margin-top:14px}.mobile-tabs{position:absolute;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid #eff1ee;display:grid;grid-template-columns:repeat(5,1fr);padding:10px 5px 12px}.tab-item{text-align:center;color:#9aa49d;font-size:8px}.tab-item span{display:block;font-size:16px;margin-bottom:4px}.tab-item.active{color:var(--green);font-weight:700}.phone-shell{position:relative}.mobile-app-mode .sidebar{display:none}.mobile-app-mode .main{margin-left:0}.mobile-app-mode .topbar{padding:0 18px}.mobile-app-mode .content{padding:23px 15px 50px;max-width:620px}.mobile-app-mode .page-head{align-items:flex-start;margin-bottom:17px}.mobile-app-mode .page-title{font-size:23px}.mobile-app-mode .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mobile-app-mode .stat-card{padding:14px;min-height:109px}.mobile-app-mode .stat-value{font-size:25px}.mobile-app-mode .dashboard-grid{grid-template-columns:1fr}.mobile-app-mode .content-cards{grid-template-columns:1fr 1fr}.mobile-app-mode .nav-item{height:38px}.mobile-app-mode .data-table{min-width:700px}.mobile-app-mode .top-actions .role-select{min-width:135px}.mobile-app-mode .crumb{font-size:10px}.mobile-app-mode .head-actions{flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;background:#1f2f2880;display:grid;place-items:center;z-index:20;padding:18px;backdrop-filter:blur(3px)}.modal{width:min(530px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:17px;box-shadow:0 24px 70px #14251d33}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 23px 15px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:17px}.modal-head p{margin:6px 0 0;font-size:10px;color:var(--muted)}.modal-body{padding:20px 23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:10px;color:#657269;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #e4e9e4;border-radius:8px;padding:10px 11px;font-size:11px;color:#334139;outline:0;background:#fff}.field textarea{min-height:74px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#78a388;box-shadow:0 0 0 3px #e9f3ec}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 23px 20px}.modal-help{font-size:9px;color:#89958d;line-height:1.7;margin-top:12px}.danger-zone{background:#fbf4f2;border-radius:10px;padding:12px;color:#94574d;font-size:10px;line-height:1.6;margin-top:13px}.confirm-copy{font-size:12px;line-height:1.8;color:#627067;padding:8px 0 14px}.toast{position:fixed;right:22px;bottom:22px;background:#24382f;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 8px 28px #1c322755;font-size:11px;z-index:40;animation:toastIn .22s ease}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.mobile-menu{display:none}.inline-note{font-size:10px;color:#819087;background:#f6f8f5;padding:11px 13px;border-radius:10px;line-height:1.7}.activity-bar{height:30px;background:#eff3ee;border-radius:7px;overflow:hidden;display:flex;align-items:flex-end;gap:5px;padding:3px 7px}.activity-bar span{flex:1;background:#9bbda2;border-radius:4px 4px 1px 1px;min-height:8px}.activity-bar span:nth-child(3n){background:#d6e3b3}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid #f0f2ef;font-size:10px;color:#89948d}.toggle{width:34px;height:19px;border-radius:20px;border:0;background:#c9d0ca;padding:2px;display:inline-flex;align-items:center}.toggle::after{content:"";width:15px;height:15px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 3px #0002}.toggle.on{background:#62a57c;justify-content:flex-end}.mode-note{background:#fff7e7;color:#91713c;font-size:10px;padding:9px 12px;border-radius:9px;border:1px solid #f4e7c7;margin-bottom:15px}.toast-stack{position:fixed;right:20px;bottom:20px;z-index:40;display:grid;gap:8px}@media(max-width:1100px){.sidebar{width:215px}.main{margin-left:215px}.topbar{padding:0 25px}.content{padding:28px 25px 50px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.content-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){body{min-width:360px}.sidebar{display:none}.main{margin-left:0}.topbar{height:59px;padding:0 15px}.content{padding:23px 15px 48px}.page-head{align-items:flex-start;flex-direction:column}.page-title{font-size:24px}.head-actions{width:100%;justify-content:flex-start}.stats-grid{gap:9px;margin:14px 0}.stat-card{padding:14px;min-height:108px}.stat-value{font-size:25px}.dashboard-grid{grid-template-columns:1fr}.content-cards{grid-template-columns:1fr 1fr}.panel{padding:15px}.search-box{min-width:100%;flex:1}.toolbar{align-items:stretch}.toolbar .spacer{display:none}.filter-select{flex:1}.table-card{margin-left:-1px;margin-right:-1px}.data-table th,.data-table td{padding:11px 12px}.crumb{max-width:36vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-select{max-width:155px;min-width:130px!important;padding:8px}.top-icon{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-head{padding:19px 18px 13px}.modal-body{padding:16px 18px}.modal-foot{padding:12px 18px 17px}.mobile-menu{display:inline-grid}.mobile-app-mode .content{padding-left:12px;padding-right:12px}.support-card{display:none}}
.tenant-actions{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.tenant-action{border:1px solid #e4e9e4;background:#fff;color:#53615a;border-radius:7px;padding:6px 9px;font-size:11px;line-height:1;transition:.15s}.tenant-action:hover{background:#f3f7f3;border-color:#cddbd0;color:#235f4b}.tenant-action.view{color:#356d59}.tenant-action.edit{color:#536b9a}.tenant-action.status{color:#9a6b2d}.tenant-action.delete{color:#b7594a;border-color:#f0d7d3}.tenant-action.delete:hover{background:#fff4f1;border-color:#e8bdb5}.data-table th:last-child,.data-table td:last-child{min-width:230px;text-align:center}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#edf1ed;border:1px solid #edf1ed;border-radius:11px;overflow:hidden}.detail-grid>div{display:flex;flex-direction:column;gap:5px;padding:13px 14px;background:#fff;min-height:58px}.detail-grid>div:nth-child(odd):last-child{grid-column:1/-1}.detail-grid b{font-size:10px;color:#8a968e;font-weight:600}.detail-grid span{font-size:12px;color:#2e3c35;line-height:1.45;word-break:break-word}

.session-detail-grid>div{min-height:82px}.viewer-list{display:grid;gap:6px}.viewer-chip{display:grid;gap:3px;border:1px solid #edf1ed;background:#f9fbf8;border-radius:8px;padding:7px 8px}.viewer-chip b{font-size:12px!important;color:#20312e!important}.viewer-chip span{font-size:11px!important;color:#52635b!important}.viewer-chip small{font-size:9px;color:#98a39c}.session-detail-grid .viewer-chip+ .viewer-chip{margin-top:0}

.access-record-cell{grid-column:1/-1}.access-record-table{display:grid;gap:0;border:1px solid #e8eee8;border-radius:10px;overflow:hidden;background:#fff;margin-top:4px}.access-record-head,.access-record-row{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:0;align-items:center}.access-record-head{background:#f7faf7;color:#89958d;font-size:10px;font-weight:700}.access-record-head span,.access-record-row span{padding:8px 10px;border-right:1px solid #edf1ed}.access-record-head span:last-child,.access-record-row span:last-child{border-right:0}.access-record-row{border-top:1px solid #edf1ed;font-size:11px;color:#2f3d36}.access-record-row b{display:block;font-size:12px;color:#20312e;margin-bottom:3px}.access-record-row small{display:block;font-size:9px;color:#8e9992}.access-record-empty{font-size:12px;color:#8e9992;padding:10px 0}

.access-people-section{margin-top:14px;border:1px solid #edf1ed;border-radius:12px;background:#fff;overflow:hidden}.access-people-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:12px 14px;background:#f8faf7;border-bottom:1px solid #edf1ed}.access-people-title b{font-size:13px;color:#20312e}.access-people-title span{font-size:10px;color:#8b9690;line-height:1.5}.access-people-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.access-person-card{border:1px solid #e8eee8;background:#fbfcfb;border-radius:10px;padding:10px;display:grid;gap:7px}.access-person-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.access-person-top b{font-size:13px;color:#20312e}.access-person-top span{font-size:9px;color:#37795d;background:#ebf5ef;border-radius:20px;padding:4px 7px;white-space:nowrap}.access-person-meta{font-size:10px;color:#66746c}.access-person-time{display:grid;grid-template-columns:58px 1fr;gap:8px;align-items:start;font-size:10px}.access-person-time label{color:#8b9690}.access-person-time em{font-style:normal;color:#304038;line-height:1.45}.access-person-foot{font-size:9px;color:#98a39c;border-top:1px dashed #e4eae4;padding-top:7px}.access-people-empty{padding:14px;color:#8e9992;font-size:12px}@media(max-width:700px){.access-people-grid{grid-template-columns:1fr}.access-people-title{align-items:flex-start;flex-direction:column}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f2f5f3}.login-card{width:min(420px,100%);padding:36px;background:white;border:1px solid #e2e8e4;border-radius:16px}.login-card h1{font-size:24px}.login-card label{display:grid;gap:8px;font-size:13px;margin-top:20px}.login-card input{padding:12px;border:1px solid #d8e1da;border-radius:7px}.login-card button{width:100%;margin-top:16px;min-height:42px}#login-error{color:#a33333;min-height:18px}
.ops-section{margin-top:20px}.ops-grid{grid-template-columns:1.35fr 1fr;align-items:stretch}.ops-panel{min-height:286px}.ops-panel-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.ops-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eaf3ed;color:var(--green);font-size:18px;flex:none}.ops-icon.server{background:#f7f1e7;color:#9a733d}.ops-main-number{margin-left:auto;font-size:30px;font-weight:800;color:#20312e;letter-spacing:-1px}.ops-main-number span{font-size:11px;color:#89948d;margin-left:4px;font-weight:700}.ops-chart{height:210px}.ops-chart svg{width:100%;height:180px;display:block}.ops-grid-line{stroke:#edf1ec;stroke-width:1}.ops-area{fill:url(#onlinePaint)}.ops-line{fill:none;stroke:#2f8064;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.ops-point{fill:#fff;stroke:#2f8064;stroke-width:2}.ops-axis{display:flex;justify-content:space-between;color:#98a39c;font-size:10px;padding:0 10px}.ops-axis span{min-width:42px}.ops-foot,.server-meta{display:flex;justify-content:space-between;gap:10px;color:#8b9690;font-size:10px;margin-top:8px}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:8px}.resource-ring{height:118px;border-radius:13px;background:#f8faf7;position:relative;display:grid;place-items:center}.resource-ring svg{width:86px;height:86px;transform:rotate(-90deg)}.ring-bg{fill:none;stroke:#e8eee8;stroke-width:7}.ring-fg{fill:none;stroke:#3f8768;stroke-width:7;stroke-linecap:round}.resource-ring.amber .ring-fg{stroke:#c89445}.resource-ring.blue .ring-fg{stroke:#5c83a7}.resource-ring.purple .ring-fg{stroke:#8065a9}.ring-center{position:absolute;inset:0;display:grid;place-items:center;text-align:center;align-content:center;gap:2px}.ring-center b{font-size:18px;color:#263831}.ring-center span{font-size:9px;color:#8b9690;font-weight:700}.server-meta{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f8faf7}@media(max-width:1100px){.ops-grid{grid-template-columns:1fr}.resource-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-main-number{font-size:25px}.ops-panel{min-height:auto}}
.tenant-action.transfer{color:#256c57;border-color:#d4e5d9;background:#f8fbf8}.tenant-action.transfer:hover{background:#eaf3ed;border-color:#b9d5c3}.data-table th:last-child,.data-table td:last-child{min-width:275px}
.video-modal{width:min(860px,100%)}.video-modal .modal-body{padding:18px 22px}.video-modal-copy{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.video-modal-copy b{font-size:15px;color:#263b32}.video-modal-copy span{font-size:10px;color:#849087}.video-frame{height:430px;background:#15211c;border-radius:14px;overflow:hidden;display:grid;place-items:center;border:1px solid #20342b}.video-frame video{width:100%;height:100%;object-fit:contain;background:#000}.jessibuca-player{position:relative;width:100%;height:100%;background:#000;overflow:hidden}.jessibuca-player canvas,.jessibuca-player video{width:100%!important;height:100%!important;object-fit:contain!important;background:#000}.jessibuca-player .jessibuca-container{width:100%!important;height:100%!important}.video-player-tip{position:absolute;left:16px;right:16px;bottom:16px;z-index:3;padding:10px 12px;border-radius:10px;background:#2b1f1fcc;color:#fff4f1;font-size:11px;line-height:1.6}.video-placeholder{color:#dce9e2;text-align:center;display:grid;gap:8px;padding:30px}.video-placeholder b{font-size:15px}.video-placeholder span{font-size:11px;color:#aebdb5;line-height:1.7}.stream-list{display:grid;gap:7px;margin-top:12px}.stream-list div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;background:#f7f9f6;border:1px solid #edf1ed;border-radius:9px;padding:9px 11px;font-size:10px}.stream-list b{color:#486456}.stream-list span{color:#748179;word-break:break-all}@media(max-width:700px){.video-frame{height:260px}.video-modal-copy{display:grid}.stream-list div{grid-template-columns:1fr}}
.class-modal{width:min(720px,100%)}.class-form-grid{grid-template-columns:1fr 1fr}.class-tenant-picker{display:grid;gap:9px}.class-tenant-picker>input{width:100%;border:1px solid #e4e9e4;border-radius:9px;padding:11px 12px;font-size:12px;color:#334139;outline:0;background:#fff}.class-tenant-picker>input:focus{border-color:#78a388;box-shadow:0 0 0 3px #e9f3ec}.selected-tenant{min-height:38px;border:1px solid #dce9df;background:#f7faf7;border-radius:10px;padding:10px 12px;font-size:11px;color:#6d7a72;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.selected-tenant b{color:#1f4f3d;font-size:12px}.selected-tenant span{color:#8b9690}.class-tenant-results{display:grid;gap:8px;max-height:268px;overflow:auto;padding-right:4px}.class-tenant-card{width:100%;border:1px solid #e5ebe5;background:#fff;border-radius:12px;padding:12px 13px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:11px;text-align:left;align-items:center;cursor:pointer;transition:.15s}.class-tenant-card:hover{border-color:#bfd7c8;background:#fbfdfb;box-shadow:0 8px 22px #2743340b}.class-tenant-card.selected{border-color:#6fa383;background:#eef7f0;box-shadow:0 0 0 3px #e4f0e7}.class-tenant-card b{display:block;font-size:12px;color:#23372e;margin-bottom:4px}.class-tenant-card span{display:block;font-size:10px;color:#7d8982;line-height:1.55;word-break:break-word}.class-tenant-empty{padding:22px;border:1px dashed #dce5dd;border-radius:12px;text-align:center;color:#8d9991;font-size:11px;background:#fafcf9}@media(max-width:700px){.class-form-grid{grid-template-columns:1fr}.class-tenant-card{grid-template-columns:1fr}.class-tenant-results{max-height:300px}}
.class-card-meta{display:grid;gap:6px;margin-top:12px;padding:11px 12px;border-radius:11px;background:#f8faf7;color:#7d8982;font-size:10px;line-height:1.55}.class-card-meta span{word-break:break-word}
.class-tenant-picker{position:relative}.class-tenant-results{display:none;position:absolute;left:0;right:0;top:54px;z-index:5;max-height:248px;overflow:auto;padding:7px;background:#fff;border:1px solid #dfe8e1;border-radius:12px;box-shadow:0 16px 38px #172b2030}.class-tenant-results.show{display:grid}.class-tenant-card{grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr) auto;padding:10px 12px;border-radius:10px}.class-tenant-card+.class-tenant-card{margin-top:6px}.class-tenant-empty{padding:18px;margin:0}.selected-tenant{margin-top:2px}

.class-table{min-width:1280px}.class-table th:last-child,.class-table td:last-child{min-width:255px}.class-actions{justify-content:flex-start}.class-entity{min-width:132px}.class-table td:nth-child(7){font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#56655d}.class-table .tenant-actions{justify-content:flex-start}


.class-table{min-width:1120px}.class-table th,.class-table td{padding-left:11px;padding-right:11px}.class-table th:last-child,.class-table td:last-child{min-width:220px}.class-table td:nth-child(7){max-width:150px;white-space:normal;word-break:break-all}.class-table td:nth-child(8){max-width:115px}


.qr-preview{width:118px;height:118px;object-fit:contain;border:1px solid #e2e8e2;border-radius:10px;background:#fff;padding:6px;display:block}.field input[type=file]{padding:8px 10px}.field input[type=file]::file-selector-button{border:1px solid #dce7dd;background:#f7faf7;color:#36594a;border-radius:7px;padding:6px 10px;margin-right:10px;font-size:11px}

.member-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:18px;background:#f8fbf8}
.file-button{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#26413a;font-weight:700;cursor:pointer;box-shadow:0 8px 22px rgba(28,74,59,.04)}
.file-button input{display:none}
.member-guardian-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:260px;padding:4px 0;border-bottom:1px dashed rgba(28,74,59,.08)}
.member-guardian-row:last-child{border-bottom:0}
.member-guardian-row em{font-style:normal;color:#7c8b85;margin-left:6px;font-size:12px}
.inline-danger-button{border:1px solid #f2c8c2;background:#fff;color:#c65345;border-radius:10px;padding:5px 10px;font-weight:700;cursor:pointer;white-space:nowrap}
.inline-danger-button:hover{background:#fff3f1;border-color:#e8a59b}
.import-result{margin:0 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:#fff}
.import-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#20342f}
.import-summary span{color:#6f8079;font-size:13px}
.import-errors{padding:10px 12px;border-radius:12px;background:#fff5f3;color:#a13f33;line-height:1.7;font-size:13px}

.member-list-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:#fff}
.member-list-tools .search-box{min-width:300px;flex:1}
.member-list-tools .filter-select{min-width:190px}

.member-add-grid{padding-top:4px;border-top:1px solid rgba(28,74,59,.08)}
.child-family-preview{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid #dfeae4;border-radius:14px;background:#f7fbf8;color:#5f7069;font-size:13px;line-height:1.6}
.child-family-preview b{color:#213831;font-size:14px}
.child-family-preview div{display:flex;gap:8px;flex-wrap:wrap}
.child-family-preview em{font-style:normal;padding:4px 9px;border-radius:999px;background:#fff;border:1px solid #e1ebe5;color:#49615a}
.member-add-grid input[readonly]{background:#f3f7f5;color:#71827b;cursor:not-allowed}

.child-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.child-actions .tenant-action{padding:5px 9px;font-size:12px}
.status.muted{background:#eef2f0;color:#66736e}
.status.muted i{background:#87928d}

.child-combo-field{position:relative}
.child-suggestions{display:none;position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);max-height:220px;overflow:auto;padding:8px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(24,55,45,.16)}
.child-suggestions.open{display:block}
.child-suggestions button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:0;border-radius:10px;background:#fff;color:#1f362f;font-weight:700;text-align:left;cursor:pointer}
.child-suggestions button:hover{background:#f2f8f4}
.child-suggestions button span{color:#82918a;font-weight:500;font-size:12px}
.child-suggestion-empty{padding:10px 12px;color:#809089;font-size:13px}

/* Refined member management modal */
.member-modal{width:min(1180px,96vw)}
.member-layout{display:grid;gap:16px}
.member-section{border:1px solid #e5ece6;border-radius:16px;background:#fbfdfb;padding:16px;box-shadow:0 8px 22px rgba(31,56,45,.04)}
.member-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.member-section-head b{display:block;font-size:14px;color:#20352f}
.member-section-head span{display:block;margin-top:4px;font-size:11px;color:#89968f;line-height:1.5}
.member-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px dashed #dce8df;border-radius:14px;background:#f5faf6}
.member-search-box{min-width:300px;margin-left:auto}
.member-table{min-width:980px}
.member-table th:last-child,.member-table td:last-child{min-width:245px;text-align:left}
.member-table td:nth-child(2){min-width:390px}
.member-row-actions{justify-content:flex-start;gap:6px;flex-wrap:wrap}
.member-guardian-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:10px;min-width:340px;padding:7px 0;border-bottom:1px dashed rgba(28,74,59,.1)}
.member-guardian-row b{color:#24664f;font-size:11px}
.member-guardian-row em{font-style:normal;color:#7c8b85;margin-left:6px;font-size:11px}
.guardian-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.member-form-panel{background:#fff}
.member-add-grid{padding-top:0;border-top:0;grid-template-columns:1.2fr 1.2fr .8fr}
.member-add-grid .field.full{grid-column:1/-1}
.member-form-panel .child-family-preview{background:#f7fbf8;border-color:#dce9e0}
.member-form-panel .child-family-preview span{font-size:12px;color:#6a7972}
.member-form-panel .child-family-preview b{font-size:14px;color:#20352f}
.member-form-panel .child-family-preview em{font-size:11px}
.file-button{height:37px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid #e4e9e4;border-radius:9px;background:#fff;color:#53615a;font-size:11px;font-weight:700;cursor:pointer}
.file-button input{display:none}
.inline-danger-button{border:1px solid #f0d7d3;background:#fff;color:#b7594a;border-radius:7px;padding:6px 9px;font-size:11px;line-height:1;cursor:pointer}
.inline-danger-button:hover{background:#fff4f1;border-color:#e8bdb5}
.import-result{margin-top:12px;border:1px solid #e4ebe5;border-radius:14px;background:#fff;padding:12px 14px;font-size:12px;color:#5b6962}
.import-summary{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;color:#253a33}
.import-errors{background:#fff5f2;border:1px solid #f3d1c9;color:#a25043;border-radius:10px;padding:10px;line-height:1.7}
@media(max-width:760px){.member-modal{width:min(96vw,640px)}.member-section-head{align-items:flex-start;flex-direction:column}.member-search-box{min-width:100%;margin-left:0}.member-add-grid{grid-template-columns:1fr}.member-guardian-row{grid-template-columns:1fr;min-width:260px}.guardian-actions{justify-content:flex-start}.member-table{min-width:820px}}

/* Compact member management list: child + parents + actions */
.member-top-tools{display:grid;grid-template-columns:minmax(280px,1fr) minmax(420px,1.35fr) auto;gap:14px;align-items:stretch;background:#fbfdfb}
.member-top-left,.member-top-right{display:grid;gap:11px;padding:14px;border:1px solid #e4ece5;border-radius:14px;background:#fff}
.member-top-left b,.member-top-right b{display:block;font-size:14px;color:#20352f;margin-bottom:4px}
.member-top-left span,.member-top-right span{display:block;font-size:11px;color:#87948d;line-height:1.5}
.member-top-left .member-search-box{min-width:0;width:100%;margin-left:0;height:42px}
.member-top-right .member-toolbar{padding:0;border:0;background:transparent;gap:8px}
.member-top-right .member-toolbar .primary-button,.member-top-right .member-toolbar .secondary-button,.member-top-right .member-toolbar .file-button{height:38px}
.member-add-shortcut{align-self:start;min-height:42px;white-space:nowrap}
.member-import-slot{grid-column:1/-1}
.member-import-slot:empty{display:none}
.member-table{min-width:920px}
.member-table th:nth-child(1),.member-table td:nth-child(1){width:28%}
.member-table th:nth-child(2),.member-table td:nth-child(2){width:46%;min-width:420px}
.member-table th:nth-child(3),.member-table td:nth-child(3){width:26%;min-width:230px;text-align:left}
.parent-summary{display:grid;gap:8px;min-width:390px}
.parent-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;border-radius:11px;border:1px solid #edf1ed;background:#fff}
.parent-slot.filled{background:#fbfdfb;border-color:#dfe9e1}
.parent-slot.empty{background:#f7f8f6;color:#98a39c}
.parent-slot b{display:inline-block;min-width:34px;color:#23634e;font-size:11px;margin-right:7px}
.parent-slot span{font-size:11px;color:#46584f;line-height:1.45}
.parent-slot em{font-style:normal;color:#7f8c86;margin-left:6px}
.hidden-family-note{font-size:10px;color:#6d7d75;background:#f6faf7;border:1px dashed #dbe8df;border-radius:10px;padding:7px 9px;line-height:1.5}
.hidden-family-note.muted{color:#9aa49d;background:#fafbf9}
.member-status-actions{display:grid;gap:10px;align-content:start}
.member-status-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.member-action-stack{display:grid;gap:7px;justify-items:start}
.member-action-line{display:flex;gap:7px;flex-wrap:wrap}
.member-action-line .tenant-action{padding:7px 10px}
.family-detail-list{display:grid;gap:9px}
.family-detail-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e6ede7;border-radius:12px;background:#fbfdfb}
.family-detail-row b{display:inline-flex;min-width:40px;color:#23634e;font-size:12px;margin-right:10px}
.family-detail-row span{font-size:12px;color:#43544b;line-height:1.45}
.family-detail-row .guardian-actions{justify-content:flex-end}
@media(max-width:980px){.member-top-tools{grid-template-columns:1fr}.member-add-shortcut{justify-self:start}.member-table{min-width:820px}.member-table th:nth-child(2),.member-table td:nth-child(2){min-width:360px}}
@media(max-width:700px){.member-top-left,.member-top-right{padding:12px}.parent-summary{min-width:320px}.parent-slot{grid-template-columns:1fr}.family-detail-row{grid-template-columns:1fr}.member-action-stack{gap:6px}}

/* Member management: child-first workflow */
.member-table{min-width:1100px}
.member-table th:nth-child(1),.member-table td:nth-child(1){width:24%}
.member-table th:nth-child(2),.member-table td:nth-child(2){width:34%;min-width:330px}
.member-table th:nth-child(3),.member-table td:nth-child(3){width:12%;min-width:110px;text-align:left}
.member-table th:nth-child(4),.member-table td:nth-child(4){width:10%;min-width:90px;text-align:left}
.member-table th:nth-child(5),.member-table td:nth-child(5){width:20%;min-width:210px;text-align:left}
.parent-summary.compact{min-width:300px;gap:7px}
.parent-summary.compact .parent-slot{grid-template-columns:48px minmax(0,1fr);padding:9px 11px}
.parent-summary.compact .parent-slot b{margin:0;min-width:0}
.parent-summary.compact .parent-slot span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.family-count{display:grid;gap:4px;align-content:center;color:#6d7d75}
.family-count b{font-size:15px;color:#20352f;letter-spacing:.2px}
.family-count span{font-size:10px;color:#8e9a93;white-space:nowrap}
.member-table .member-status-line{min-width:80px}
.member-action-stack{min-width:188px}
@media(max-width:980px){.member-table{min-width:980px}.member-table th:nth-child(2),.member-table td:nth-child(2){min-width:300px}.member-table th:nth-child(5),.member-table td:nth-child(5){min-width:200px}}

/* Member management: keep dad and mom on one horizontal line in the child row */
.parent-summary.compact{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:360px;
  white-space:nowrap;
}
.parent-summary.compact .parent-slot{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:1 1 0;
  min-width:0;
  max-width:190px;
  padding:7px 10px;
}
.parent-summary.compact .parent-slot b{
  flex:0 0 auto;
  margin:0;
  min-width:auto;
}
.parent-summary.compact .parent-slot span{
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.parent-summary.compact .parent-slot em{
  margin-left:5px;
}
@media(max-width:980px){
  .parent-summary.compact{min-width:320px;gap:8px}
  .parent-summary.compact .parent-slot{max-width:160px;padding:7px 9px}
}


/* Member management: family count should only show the count */
.family-count.count-only{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:34px;
}
.family-count.count-only b{
  font-size:18px;
}
.family-count.count-only span{display:none}
/* People management tables */
.person-avatar{width:34px;height:34px;border-radius:12px;object-fit:cover;background:#e9f4ef;display:grid;place-items:center;color:#256c57;font-weight:800;flex:none}
.person-avatar.fallback{font-size:13px}
.member-child-avatar{width:44px;height:44px;border-radius:14px;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#e8f3ed;color:#1f735b;font-weight:900;flex:0 0 44px;box-shadow:0 8px 18px rgba(31,115,91,.12)}
.child-profile-admin .profile-preview-row{display:flex;gap:14px;align-items:center;margin-bottom:16px;padding:14px;border:1px solid #e4eee8;border-radius:18px;background:#f8fbf8}.child-profile-admin .member-child-avatar{width:72px;height:72px;border-radius:20px;font-size:26px}.child-profile-admin textarea{min-height:72px}

/* Sidebar grouping for people and audit sections */
.nav{display:grid;gap:6px;align-content:start;overflow:auto;padding-right:2px}
.nav-group{display:grid;gap:4px}
.nav-group-spaced{margin-top:8px;padding-top:8px;border-top:1px solid #f0f2ef}
.nav-group-title{padding:0 10px 3px;font-size:9px;color:#a1aaa3;letter-spacing:1.25px;font-weight:800}
.nav-item.sub-nav{height:36px;margin-left:8px;padding-left:10px;font-size:12px;border-left:2px solid #edf1ed;border-radius:8px}
.nav-item.sub-nav.active{border-left-color:var(--green);background:#eaf3ed}
.person-avatar{width:34px;height:34px;border-radius:12px;object-fit:cover;display:grid;place-items:center;background:#eaf3ed;color:var(--green);font-weight:800;flex:none;overflow:hidden}
.person-avatar.fallback{font-size:13px}

/* Restore clean sidebar navigation without inner scrollbars */
.sidebar{overflow:hidden}
.nav{overflow:visible!important;padding-right:0!important;gap:4px!important}
.nav-group{min-width:0}
.nav-item{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-item.sub-nav{height:36px;margin-left:0;padding-left:12px;border-left:0;border-radius:10px}
.nav-group-spaced{margin-top:6px;padding-top:8px;border-top:1px solid #f0f2ef}
.nav-group-title{padding:0 10px 3px;font-size:9px;color:#a1aaa3;letter-spacing:1.25px;font-weight:800}
.student-table{min-width:1120px}
.student-table th:nth-child(1),.student-table td:nth-child(1){width:24%}
.student-table th:nth-child(2),.student-table td:nth-child(2){width:20%}
.student-table th:nth-child(3),.student-table td:nth-child(3){width:13%}
.student-table th:nth-child(4),.student-table td:nth-child(4){width:13%;white-space:nowrap}
.student-table th:nth-child(5),.student-table td:nth-child(5){width:9%;text-align:left;min-width:92px}
.student-table th:nth-child(6),.student-table td:nth-child(6){width:21%;min-width:260px;text-align:left}
.student-actions{display:grid;gap:7px;justify-items:start}
.student-actions>div{display:flex;gap:6px;flex-wrap:wrap}
.student-actions .tenant-action{padding:7px 10px}

/* Guardian management compact table */
.guardian-table{min-width:1080px}
.guardian-table th:nth-child(1),.guardian-table td:nth-child(1){width:24%}
.guardian-table th:nth-child(2),.guardian-table td:nth-child(2){width:24%}
.guardian-table th:nth-child(3),.guardian-table td:nth-child(3){width:20%}
.guardian-table th:nth-child(4),.guardian-table td:nth-child(4){width:13%;white-space:nowrap}
.guardian-table th:nth-child(5),.guardian-table td:nth-child(5){width:8%;min-width:86px;text-align:left}
.guardian-table th:nth-child(6),.guardian-table td:nth-child(6){width:11%;min-width:150px;text-align:left}
.guardian-actions-cell{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-start}

/* Admin guardian QR upload preview */
.guardian-edit-form .qr-upload-preview{width:180px;height:180px;border:1px dashed #cfe0d4;border-radius:16px;background:#f8fbf8;color:#88958e;display:grid;place-items:center;font-size:12px;font-weight:700;overflow:hidden;position:relative}
.guardian-edit-form .qr-upload-preview img{width:100%;height:100%;object-fit:contain;background:#fff;padding:10px;display:block}
.guardian-edit-form .qr-upload-preview span{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:rgba(31,59,49,.72);color:#fff;border-radius:999px;padding:3px 9px;font-size:10px;white-space:nowrap}

/* Guardian table with phone column */
.guardian-table{min-width:1180px}
.guardian-table th:nth-child(1),.guardian-table td:nth-child(1){width:19%}
.guardian-table th:nth-child(2),.guardian-table td:nth-child(2){width:12%;white-space:nowrap}
.guardian-table th:nth-child(3),.guardian-table td:nth-child(3){width:21%}
.guardian-table th:nth-child(4),.guardian-table td:nth-child(4){width:18%}
.guardian-table th:nth-child(5),.guardian-table td:nth-child(5){width:12%;white-space:nowrap}
.guardian-table th:nth-child(6),.guardian-table td:nth-child(6){width:7%;min-width:82px;text-align:left}
.guardian-table th:nth-child(7),.guardian-table td:nth-child(7){width:11%;min-width:150px;text-align:left}

/* Sidebar vertical navigation scrollbar only */
.sidebar{overflow:hidden}
.nav{flex:1;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding-right:5px!important;scrollbar-width:thin;scrollbar-color:#c8d0ca transparent}
.nav::-webkit-scrollbar{width:6px;height:0}
.nav::-webkit-scrollbar-track{background:transparent}
.nav::-webkit-scrollbar-thumb{background:#c8d0ca;border-radius:999px}
.nav::-webkit-scrollbar-thumb:hover{background:#aab5ad}
.nav-item{max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-count{flex:none}


/* Guardian edit avatar preview */
.guardian-profile-head{grid-column:1/-1;display:flex;gap:16px;align-items:center;padding:16px;border-radius:20px;background:linear-gradient(135deg,#f3fbf7,#fff8eb);margin-bottom:14px}
.guardian-profile-head b{display:block;font-size:18px;color:#05251d;margin-bottom:6px}
.guardian-profile-head span{display:block;color:#718079;font-size:13px;line-height:1.6}
.guardian-avatar-preview{width:72px;height:72px;border-radius:18px;background:#e9f6ef;display:grid;place-items:center;overflow:hidden;flex:none;color:#14765c;font-size:24px;font-weight:900}
.guardian-avatar-preview img{width:100%;height:100%;object-fit:cover;display:block}
.guardian-actions-cell{display:flex;flex-wrap:wrap;gap:8px;align-items:center}


/* Teacher management operations */
.field select{height:42px;min-height:42px;padding:0 34px 0 11px;line-height:42px}
.guardian-edit-form .field select,.teacher-edit-form .field select{height:42px!important;min-height:42px!important;padding-top:0!important;padding-bottom:0!important}
.teacher-table{min-width:1120px}
.teacher-table th:nth-child(1),.teacher-table td:nth-child(1){width:18%}
.teacher-table th:nth-child(2),.teacher-table td:nth-child(2){width:12%;white-space:nowrap}
.teacher-table th:nth-child(3),.teacher-table td:nth-child(3){width:17%}
.teacher-table th:nth-child(4),.teacher-table td:nth-child(4){width:16%}
.teacher-table th:nth-child(5),.teacher-table td:nth-child(5){width:8%;white-space:nowrap}
.teacher-table th:nth-child(6),.teacher-table td:nth-child(6){width:13%;max-width:180px}
.teacher-table th:nth-child(7),.teacher-table td:nth-child(7){width:7%;white-space:nowrap}
.teacher-table th:nth-child(8),.teacher-table td:nth-child(8){width:9%;min-width:150px}
.teacher-actions-cell{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.teacher-profile-head{background:linear-gradient(135deg,#f2f8ff,#fff7e8)}


/* Teacher modal QR preview parity */
.teacher-edit-form .qr-upload-preview{width:180px;height:180px;border:1px dashed #cfe0d4;border-radius:16px;background:#f8fbf8;color:#88958e;display:grid;place-items:center;font-size:12px;font-weight:700;overflow:hidden;position:relative}
.teacher-edit-form .qr-upload-preview img{width:100%;height:100%;object-fit:contain;background:#fff;padding:10px;display:block}
.teacher-edit-form .qr-upload-preview span{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:rgba(31,59,49,.72);color:#fff;border-radius:999px;padding:3px 9px;font-size:10px;white-space:nowrap}
.teacher-edit-form .qr-upload-preview:not(.has-image) span{position:static;transform:none;background:transparent;color:#88958e;padding:0;font-size:13px}

/* Tenant workspace pages */
.tenant-banner{background:linear-gradient(135deg,#edf9f3,#fff7e7)}
.tenant-stat .stat-icon{background:#e7f5ed;color:#0c755c}
.tenant-settings-card .form-grid textarea{min-height:96px}
.content-cards .lesson{overflow:hidden;padding:0}
.lesson-cover.mint{background:linear-gradient(135deg,#dff7ec,#f9fff9);color:#11745b}
.lesson-cover.blue{background:linear-gradient(135deg,#dfeeff,#f7fbff);color:#2164ba}
.lesson-cover.pink{background:linear-gradient(135deg,#ffe6ef,#fff8fb);color:#c23f74}
.lesson-cover.orange{background:linear-gradient(135deg,#fff0d0,#fffaf0);color:#ad6500}

/* Safer school video policy editor */
.tenant-policy-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);align-items:start}
.policy-checks{display:flex;gap:14px;flex-wrap:wrap}
.policy-checks label{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid #e2ebe5;border-radius:14px;background:#fbfdfb;font-weight:800;color:#0b3027}
.policy-checks input{width:auto!important}
.strong-help{background:#fff7e8!important;border-color:#f3dfb8!important;color:#6b4b14!important}
.policy-block{grid-column:1/-1;margin-top:18px;padding:16px;border-radius:18px;background:#f8fbf8;border:1px solid #e4ece6}
.policy-block-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.policy-block-head b{display:block;color:#06251e;font-size:15px}
.policy-block-head span{display:block;color:#7b8981;font-size:12px;margin-top:4px}
.policy-segment-row{display:grid;grid-template-columns:70px minmax(130px,1fr) 24px minmax(130px,1fr) auto;gap:10px;align-items:center;margin-top:10px}
.policy-segment-row span{font-weight:800;color:#0a5b49}
.policy-segment-row em{font-style:normal;color:#849089;text-align:center}
.mobile-display-card{position:sticky;top:96px}
@media (max-width:1100px){.tenant-policy-grid{grid-template-columns:1fr}.mobile-display-card{position:static}.policy-segment-row{grid-template-columns:1fr 1fr}.policy-segment-row span,.policy-segment-row em{display:none}}

.settings-result-modal{display:flex;gap:16px;align-items:flex-start;padding:8px 2px 2px}.settings-result-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-size:24px;font-weight:900;flex:0 0 auto}.settings-result-ok .settings-result-icon{background:#e6f6ee;color:#1f735b}.settings-result-error .settings-result-icon{background:#fff1ed;color:#d55345}.settings-result-modal b{display:block;font-size:20px;color:#062620;margin-bottom:8px}.settings-result-modal p{margin:0;color:#6c7d78;line-height:1.7;font-size:15px}

.settings-result-dialog{width:430px;max-width:calc(100vw - 48px);border-radius:22px}.settings-result-dialog .modal-head{padding:22px 26px 14px}.settings-result-dialog .modal-head p{display:none}.settings-result-dialog .modal-body{padding:18px 26px 10px}.settings-result-dialog .modal-foot{padding:14px 26px 22px}.settings-result-dialog .primary-button{min-width:104px}.settings-result-dialog .settings-result-modal{gap:13px;padding:0}.settings-result-dialog .settings-result-icon{width:38px;height:38px;border-radius:13px;font-size:20px}.settings-result-dialog .settings-result-modal b{font-size:18px;margin-bottom:5px}.settings-result-dialog .settings-result-modal p{font-size:14px;line-height:1.55}

.platform-calendar-section,.tenant-special-calendar-section{margin-top:22px}
.calendar-year-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.calendar-year-tools input{width:120px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:800}
.calendar-rule-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 18px}
.calendar-rule-cards>div{border:1px solid var(--line);background:#fbfdfb;border-radius:18px;padding:14px 16px;min-height:86px}
.calendar-rule-cards b{display:block;color:var(--ink);margin-bottom:7px}
.calendar-rule-cards span{display:block;color:var(--muted);font-size:13px;line-height:1.6}
.calendar-edit-form{border:1px solid var(--line);background:linear-gradient(135deg,#fbfffc,#fff9ed);border-radius:20px;padding:18px;margin-bottom:18px}
.calendar-form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:12px}
.calendar-table-wrap{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.pill.open{display:inline-flex;align-items:center;border-radius:999px;background:#e8f7ef;color:#147452;padding:6px 10px;font-size:12px;font-weight:900}
.tenant-calendar-legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin:8px 0 16px}.tenant-calendar-legend span{display:flex;align-items:center;gap:7px}.tenant-calendar-legend i{width:10px;height:10px;border-radius:999px;display:inline-block}.inherit-dot{background:#c6d2cb}.open-dot{background:#2c8b6b}.closed-dot{background:#e36d5f}
.tenant-calendar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tenant-day-card{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fbfdfb;min-height:150px;display:flex;flex-direction:column;gap:8px}.tenant-day-card.open{background:#eefaf4;border-color:#bde8d2}.tenant-day-card.closed{background:#fff3f0;border-color:#ffd0c9}.tenant-day-top{display:flex;justify-content:space-between;align-items:center}.tenant-day-top b{font-size:18px;color:var(--ink)}.tenant-day-top span{font-size:12px;color:var(--muted)}.tenant-day-label{font-weight:900;color:var(--green)}.tenant-day-card.closed .tenant-day-label{color:#d14d3f}.tenant-day-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;min-height:34px}.tenant-day-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.tenant-day-actions button:disabled{opacity:.35;cursor:not-allowed}
@media (max-width:1400px){.tenant-calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}@media (max-width:1200px){.calendar-rule-cards{grid-template-columns:repeat(2,minmax(0,1fr));}.tenant-calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}@media (max-width:720px){.calendar-rule-cards,.tenant-calendar-grid{grid-template-columns:1fr}.calendar-year-tools{width:100%;}.calendar-form-actions{justify-content:stretch}.calendar-form-actions button{flex:1}}

.calendar-range-form{align-items:start}
.compact-range-field{margin-bottom:2px}
.calendar-date-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}
.calendar-date-range input{min-width:0}
.calendar-date-range span{font-size:22px;font-weight:900;color:#e45c55;line-height:1;text-align:center;padding:0 2px}
.calendar-edit-form .modal-help{margin-top:8px}
@media (max-width:720px){.calendar-date-range{grid-template-columns:1fr;gap:8px}.calendar-date-range span{font-size:18px}.calendar-date-range span::before{content:'至 ';font-size:14px;color:var(--muted)}}

.tenant-day-card.platform-closed{background:#fff8e6;border-color:#f3d795}.tenant-day-card.platform-closed .tenant-day-label{color:#a76800}.tenant-day-card.platform-open{background:#edf7ff;border-color:#b9dcff}.tenant-day-card.platform-open .tenant-day-label{color:#1769aa}


/* Overview panel alignment v46 */
.ops-grid{align-items:stretch;gap:16px}
.ops-grid>.ops-panel{height:100%;align-self:stretch;box-sizing:border-box}
.dashboard-grid{align-items:stretch;gap:16px}
.dashboard-grid>.card{height:100%;align-self:stretch;box-sizing:border-box}
.section+.section,.ops-section+.section{margin-top:18px}
.tenant-overview-layout{margin-top:20px}
.tenant-overview-layout>.panel-head{margin-bottom:16px}
.tenant-overview-grid{grid-template-columns:1.35fr 1fr;gap:16px;align-items:start}
.tenant-overview-left,.tenant-overview-right{display:grid;gap:16px;align-content:start}
.tenant-overview-online,.tenant-overview-today,.tenant-overview-maintenance{height:100%;box-sizing:border-box;align-self:stretch}
.tenant-overview-online{min-height:286px}
.tenant-overview-maintenance .activity,.tenant-overview-today .activity{align-items:center}
@media(max-width:1100px){.tenant-overview-grid{grid-template-columns:1fr}.tenant-overview-left,.tenant-overview-right{gap:14px}}

/* v47 emergency layout repair: keep sidebar bottom visible and constrain people avatars */
.sidebar{height:100vh!important;max-height:100vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding-bottom:12px!important}
.sidebar .brand{flex:0 0 auto!important;padding-bottom:18px!important}
.sidebar .nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:5px!important;margin-bottom:8px!important}
.sidebar .sidebar-bottom{flex:0 0 auto!important;margin-top:0!important;background:#fff!important}
.sidebar .support-card{margin:8px 2px 10px!important;padding:12px!important}
.sidebar .avatar-row{padding:10px 7px 2px!important}
.person-avatar,.member-child-avatar{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important;flex:0 0 38px!important;border-radius:12px!important;object-fit:cover!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.person-avatar.fallback,.member-child-avatar.fallback{font-size:13px!important;line-height:38px!important}
.entity>.person-avatar,.entity>.member-child-avatar{align-self:center!important}
.data-table td .entity img.person-avatar,.data-table td .entity img.member-child-avatar{display:block!important;width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;object-fit:cover!important}
.guardian-avatar-preview{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;overflow:hidden!important}
.guardian-avatar-preview img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
