@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#181d29;background:#faf9f7}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}h1,h2,h3,strong{font-family:Manrope,Arial,sans-serif}html[lang=ar]{font-family:Alexandria,Arial,sans-serif}html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{font-family:Alexandria,Arial,sans-serif}button:disabled{opacity:.52;cursor:not-allowed}
.button{border:1px solid #611e34;border-radius:10px;background:#611e34;color:#fff;padding:11px 17px;font-weight:750;min-height:43px}.button.outline{color:#611e34;border-color:#e4d9dc;background:#fff}.button:hover:not(:disabled),.nav:hover,.action:hover{filter:brightness(1.08)}.logo{display:grid;place-items:center;background:white;border-radius:14px;width:58px;height:58px;flex:0 0 auto}.logo img{width:51px;height:51px;object-fit:contain}.brand{display:flex;align-items:center;gap:13px}.brand strong{display:block;font-size:19px}.brand small{display:block;font-size:12px;opacity:.83;margin-top:3px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#9b6676}
.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{position:relative;overflow:hidden;background:#4b1d2a;color:white;padding:clamp(30px,5vw,80px);display:flex;flex-direction:column;justify-content:space-between}.login-brand:after{content:'';position:absolute;border:1px solid #ffffff21;border-radius:50%;width:700px;height:700px;top:12%;left:28%;pointer-events:none}.login-story{position:relative;z-index:1;max-width:590px}.login-story .eyebrow{color:#e8cdd6}.login-story h1{font-size:clamp(41px,5vw,69px);line-height:1.12;margin:20px 0}.login-story p{color:#ecdfe3;font-size:20px;line-height:1.7}.login-area{display:grid;place-items:center;padding:20px}.login-card{width:min(100%,490px);background:white;border:1px solid #eae2e3;border-radius:25px;padding:clamp(25px,4vw,48px);box-shadow:0 19px 55px #4b1d2a0a}.login-card h2{font-size:31px;margin:13px 0 8px}.login-card p{color:#72696b;line-height:1.55}.login-card label{display:block;font-size:14px;font-weight:750;margin:17px 0 8px}.login-card input{width:100%;height:49px;border:1px solid #d9cfd1;border-radius:10px;padding:0 15px}.login-card input:focus{outline:2px solid #a47684}.login-card .button{margin-top:24px;width:100%}.languages{display:flex;gap:7px;margin-top:20px}.languages button{background:white;color:#4b1d2a;border:1px solid #e9dfe2;border-radius:8px;padding:7px 10px}.languages button.active{background:#4b1d2a;color:white}.error,.alert{color:#aa2438;font-weight:700;line-height:1.5}.error{min-height:23px;margin-top:12px}.alert{background:#fff1f3;border:1px solid #f0cbd2;border-radius:11px;padding:13px 16px;margin-bottom:22px}
.app{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(165deg,#4b1d2a,#531b2d 65%,#673246);color:white;padding:25px 10px 16px;display:flex;flex-direction:column;z-index:5}.sidebar .brand{padding:0 8px}.sidebar .brand-top{letter-spacing:.12em;font-size:10px}.sidebar .brand strong{font-size:18px}.menu{margin-top:30px;overflow:auto;scrollbar-width:thin}.nav{display:flex;width:100%;align-items:center;gap:13px;background:transparent;color:#f5e9ed;border:0;border-radius:9px;padding:13px 16px;text-align:start;margin:3px 0;font-size:14px}.nav.active{background:#ffffff22;box-shadow:inset 3px 0 #f47a1f;color:white}.nav span{width:20px;display:inline-flex;font-size:19px;justify-content:center}.nav b{font-weight:600}.owner-tag{display:flex;align-items:center;gap:9px;margin-top:auto;background:#ffffff1b;border:1px solid #ffffff28;padding:10px;border-radius:12px;overflow:hidden}.owner-tag strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-tag small{opacity:.8;display:block;margin-top:3px}.avatar{background:#69273e;color:white;border-radius:50%;width:32px;height:32px;display:inline-grid;place-items:center;font-size:13px;font-weight:700;flex:0 0 auto}.owner-tag .avatar{background:#fff;color:#611e34}
.workspace{min-width:0}.topbar{min-height:74px;background:#fff;border-bottom:1px solid #e9e3e4;padding:10px clamp(17px,2vw,31px);display:flex;justify-content:space-between;align-items:center;gap:15px}.school-switch,.top-actions{display:flex;align-items:center;gap:9px;min-width:0}.school-switch select{min-width:175px;max-width:250px}.topbar select,.topbar input,.stage-button,.bell,.avatar-button{height:41px;border:1px solid #e6e1e0;border-radius:10px;background:#fff;color:#222839;padding:0 13px}.stage-button{white-space:nowrap;font-size:12px}.stage-button span{margin-inline-end:5px}.stage-button.primary span{color:#62aa18}.stage-button.college span{color:#ed761b}.stage-button.active{border-color:#803f55;background:#fbf1f4}.top-actions input{width:clamp(170px,20vw,310px);background:#fbfbfb}.top-actions select{padding:0 6px}.bell{position:relative;width:41px;font-size:23px;color:#612238;flex:0 0 auto}.bell span{position:absolute;top:-8px;right:-8px;background:#c5354a;color:#fff;min-width:21px;height:21px;border-radius:12px;display:grid;place-items:center;font-size:11px;font-weight:800;padding:0 4px}.avatar-button{display:flex;align-items:center;gap:7px;white-space:nowrap}.avatar-button .avatar{width:28px;height:28px}.main{max-width:1540px;margin:0 auto;padding:29px clamp(17px,2vw,31px) 75px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}.page-header h1{font-size:clamp(27px,2.7vw,36px);margin:0 0 4px}.page-header p{color:#7e8491;margin:0;font-size:14px}.sample{display:inline-block;vertical-align:middle;margin-inline-start:10px;background:#faecef;color:#9a4760;padding:8px 10px;border-radius:8px;font-size:10px;letter-spacing:.08em}.section-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:13px;margin-bottom:16px}.panel{background:#fff;border:1px solid #e5e1e1;border-radius:13px;padding:19px;min-width:0}.panel h2{font-size:18px;margin:0 0 7px}.panel-sub{color:#747d8d;margin:0 0 19px;font-size:13px}.attention .action-row{display:flex;align-items:center;gap:12px;border:1px solid #e6e7eb;border-radius:9px;margin-top:10px;padding:12px;text-align:start;width:100%;background:#fff;color:#1b2232}.action-row strong{font-size:19px}.action-row .title{font-size:13px;font-weight:750;display:block}.action-row .minor{color:#818797;font-size:11px;display:block;margin-top:4px}.action-row .go{margin-inline-start:auto;color:#672139;font-size:12px;white-space:nowrap}.round-icon{border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:19px;flex:0 0 auto;background:#fff0f1;color:#b03143}.round-icon.amber{background:#fff2df;color:#ce8610}.round-icon.violet{background:#f3ecff;color:#7338c4}.school-summary{display:flex;flex-direction:column}.school-title{font-weight:750;font-size:15px}.school-title .dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-inline-end:8px;background:var(--accent)}.school-summary small{color:#78808c}.stats{display:flex;justify-content:space-around;gap:5px;margin:20px 0 13px;background:var(--pale);border-radius:10px;padding:14px 6px}.stats div{text-align:center;flex:1;border-inline-end:1px solid #00000011}.stats div:last-child{border:0}.stats strong{display:block;font-size:20px}.stats small{font-size:11px}.mini-line{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid #eeeef0;font-size:12px;gap:6px}.school-summary .action{display:block;margin-top:auto;border:0;background:var(--pale);color:#5b2534;border-radius:8px;width:100%;padding:11px;font-weight:750}.secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ece9e9;padding-bottom:12px;margin-bottom:5px}.panel-heading h2{margin:0}.link{border:0;background:none;color:#65243a;font-weight:750;font-size:12px}.feed-row{border-bottom:1px solid #efeeee;padding:13px 3px;display:flex;gap:12px;align-items:flex-start}.feed-row:last-child{border:0}.feed-row .dot{width:9px;height:9px;border-radius:50%;background:#72b32a;margin-top:8px;flex:0 0 auto}.feed-body{min-width:0;flex:1}.feed-body strong{font-size:13px}.feed-body p{font-size:12px;color:#737b88;margin:5px 0 0;line-height:1.5}.feed-row time{font-size:11px;color:#808696;white-space:nowrap}.datebox{min-width:57px;height:59px;border-radius:9px;background:#faf3ef;display:grid;place-content:center;text-align:center;color:#60283b}.datebox strong{font-size:20px}.datebox small{font-size:10px}.empty{text-align:center;border:1px dashed #e8e1e4;border-radius:10px;padding:27px 13px;color:#7e818b;font-size:13px;line-height:1.5}.section-title{font-size:18px;margin:0 0 12px}.page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.item-card{background:#fff;border:1px solid #e7e1e3;border-radius:14px;padding:18px;min-width:0}.item-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.item-card h3{margin:8px 0;font-size:16px}.item-card p{font-size:13px;color:#737d89;line-height:1.55;margin:7px 0}.item-card .meta{font-size:11px;color:#687180}.item-card .button{margin-top:13px}.chip{display:inline-block;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:700;background:#f5eef1;color:#702c44}.chip.green{background:#eef8ea;color:#33732e}.chip.orange{background:#fff2e7;color:#a64f18}.levels{display:grid;gap:10px;margin-top:15px}.level{border:1px solid #efe9e9;border-radius:9px;padding:11px 13px}.level strong{font-size:13px}.group-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.group-pills button{border:1px solid #dce7d5;background:#f5f9f2;border-radius:7px;padding:6px 10px;color:#405e31;font-size:12px}.table-wrap{overflow:auto;background:white;border:1px solid #e8e1e2;border-radius:14px}.data-table{border-collapse:collapse;width:100%;font-size:13px;min-width:690px}.data-table th{text-align:start;background:#f9f6f6;color:#77808c;font-size:11px;letter-spacing:.04em}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid #f0ecec}.data-table tr:last-child td{border:0}.data-table tr:hover td{background:#fff9fa}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.toolbar select,.toolbar input{height:38px;border:1px solid #e2dbdd;border-radius:8px;padding:0 10px;background:white}.toolbar .right{display:flex;gap:8px}.message-card{padding:15px;border:1px solid #e8e0e0;border-radius:11px;background:#fff;margin:10px 0}.message-card h3{margin:7px 0;font-size:16px}.message-card p{font-size:13px;color:#757c8b;line-height:1.5}.message-card time{font-size:11px;color:#8d8990}.attachment-chip{display:inline-flex;margin:6px 6px 0 0;padding:6px;border:1px solid #e6dcdc;border-radius:7px;font-size:11px}.notice{display:flex;gap:13px;padding:15px;margin:8px 0;border:1px solid #e8e1e1;border-radius:9px;background:white}.notice.unread{background:#fff8f9;border-color:#efd0d8}.notice-main{flex:1}.notice-main strong{font-size:14px}.notice-main p{font-size:13px;color:#747b88;margin:6px 0}.notice small{color:#89909a}.notice button{border:1px solid #e3d6da;border-radius:8px;background:#fff;padding:7px 10px;color:#61233a;align-self:center}.alert{margin-bottom:18px}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.report-tile{padding:23px;border:1px solid #e8e1e1;border-radius:14px;background:#fff}.report-tile strong{display:block;font-size:29px;color:#602236}.report-tile span{color:#777e89;font-size:13px}.report-tile i{display:block;height:5px;border-radius:9px;background:#83bb2c;width:55px;margin-top:15px}dialog{border:1px solid #e7dce0;border-radius:16px;max-width:min(550px,95vw);width:100%;box-shadow:0 22px 80px #0003;padding:24px}dialog::backdrop{background:#23111980}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{border:0;background:transparent;font-size:20px}#detail-body p{font-size:14px;color:#505968;line-height:1.7}#detail-body .detail-line{padding:9px 0;border-bottom:1px solid #eee}.tabs{display:flex;gap:6px;margin-bottom:13px}.tabs button{border:1px solid #e4dce0;border-radius:9px;background:#fff;padding:9px 15px;color:#62233a}.tabs button.active{background:#62233a;color:white}
@media(max-width:1200px){.section-grid{grid-template-columns:1fr 1fr}.attention{grid-column:1/-1}.top-actions input{width:180px}.avatar-button span:not(.avatar){display:none}}@media(max-width:950px){.app{grid-template-columns:75px 1fr}.sidebar .brand div,.owner-tag,.nav b{display:none}.sidebar .brand .logo{width:48px;height:48px}.nav{justify-content:center;padding:11px}.nav span{width:auto}.school-switch .stage-button{display:none}.topbar{flex-wrap:wrap}}@media(max-width:650px){.app{display:block}.sidebar{position:relative;height:auto;padding:8px 12px;flex-direction:row;align-items:center;gap:8px}.sidebar .brand .logo{width:34px;height:34px}.sidebar .brand .logo img{width:31px;height:31px}.menu{display:flex;margin:0;overflow:auto}.nav{flex:0 0 auto;padding:8px 10px}.topbar{padding:9px 12px}.school-switch select{min-width:160px}.top-actions{width:100%;justify-content:flex-end}.top-actions input{flex:1;width:100px}.main{padding:19px 13px 40px}.section-grid,.secondary-grid,.page-grid,.report-grid{grid-template-columns:1fr}.attention{grid-column:auto}.login-view{grid-template-columns:1fr}.login-brand{min-height:250px;padding:23px}.login-story h1{font-size:34px}.login-story p{font-size:15px}.login-area{padding:18px}.login-card{padding:27px}}
html[dir=rtl] .nav.active{box-shadow:inset -3px 0 #f47a1f}html[dir=rtl] .nav{text-align:right}html[dir=rtl] .data-table th{text-align:right}
.sidebar{padding-bottom:18px}.sidebar .menu{min-height:0;flex:1;overscroll-behavior:contain}.owner-tag{flex:0 0 auto;margin-top:14px}
.topbar{flex-wrap:wrap}.top-actions{flex:1;justify-content:flex-end}.top-actions input{min-width:180px;max-width:330px;flex:1}
.quick-panel{position:relative;overflow:hidden;background:#4b1d2a;color:#fff;border-radius:20px;padding:19px 23px;margin-bottom:18px;box-shadow:0 12px 30px #4b1d2a17}
.quick-panel:after{content:'';position:absolute;width:200px;height:200px;border:1px solid #ffffff24;border-radius:50%;right:-60px;top:-95px;pointer-events:none}
.quick-panel strong{font-size:15px}.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.quick-panel .button{position:relative;background:#fff;color:#4b1d2a;border-color:#fff}.quick-panel .button.outline{background:transparent;border-color:#ffffff72;color:white}
.roster-filters{display:flex;gap:10px;background:white;border:1px solid #e9dfe2;padding:12px;border-radius:15px;margin-bottom:16px;flex-wrap:wrap}.roster-filters .form-field{min-width:205px;margin:0;flex:1}.roster-filters .form-field span{font-size:12px}
.roster-level{border:1px solid #e7dfe2;background:#fff;border-radius:17px;margin:15px 0;overflow:hidden;box-shadow:0 7px 27px #4b1d2a07}.roster-head{display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(100deg,#f7f0f2,#fff);padding:16px 20px;color:#4b1d2a;font-weight:800}.roster-count{background:#fff;border:1px solid #eadbdf;padding:7px 10px;border-radius:30px;font-weight:600;font-size:12px}.roster-group{padding:16px 19px;border-top:1px solid #f0e9ea;display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px}.roster-group h3{grid-column:1/-1;margin:0;font-size:14px;display:flex;align-items:center;gap:8px}.roster-group h3:before{content:'';width:6px;height:16px;border-radius:4px;background:#e7c928}
.person-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;align-items:center;border:1px solid #eee3e6;border-radius:13px;padding:14px;background:linear-gradient(135deg,#fff,#fefafa)}.person-avatar,.teacher-avatar{display:grid;place-items:center;background:#e7c92826;color:#74442e;width:42px;height:42px;border-radius:11px;font-weight:800}.person-text{min-width:0}.person-text strong{display:block;font-size:14px}.person-text small,.person-text .subtle{display:block;color:#737985;font-size:11px;line-height:1.6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #f1e9ea;padding-top:11px}.card-actions button{min-height:30px;padding:5px 9px;font-size:11px}.pager{display:flex;gap:15px;align-items:center;justify-content:center;margin:18px 0}
.teacher-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:13px}.teacher-card{border:1px solid #e7dfe2;border-radius:16px;padding:19px;background:#fff;display:flex;flex-direction:column;min-height:210px}.teacher-avatar{background:#f47a1f1e;color:#b45412}.teacher-card h3{font-size:15px;margin:13px 0 3px}.teacher-card p{font-size:12px;color:#7b7f89;margin:0 0 13px}.teacher-card .button{margin-top:auto;align-self:flex-start}.teacher-pills{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:15px}.teacher-pills .chip{font-size:10px}
.request-actions{display:grid;gap:8px;margin-top:15px}.request-line{background:#fff;border:1px solid #e9e0e2;border-radius:10px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.request-line span{font-size:13px}.report-actions{background:linear-gradient(120deg,#f7faf0,#fff);border:1px solid #dcebd0;border-radius:17px;padding:20px;margin-bottom:18px}.report-actions h2{margin:0}.report-actions p{color:#6c7480;font-size:13px}
dialog:has(.edit-form){max-width:min(760px,96vw);max-height:90vh;overflow:auto}.edit-form{margin-top:17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#424454;min-width:0}.form-field input,.form-field select,.form-field textarea{border:1px solid #ddd4d8;border-radius:9px;min-height:43px;padding:9px 12px;background:white;color:#202531;width:100%;font-size:14px}.form-field textarea{min-height:110px;resize:vertical}.form-field:has(textarea){grid-column:1/-1}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:2px solid #b77e8f}.form-field :disabled{background:#f7f5f5;color:#aaa}.form-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.form-error{color:#ad2a39;font-weight:700;margin-top:12px;font-size:13px}
.level-designed{background:linear-gradient(110deg,#fff,#faf8f5)}.item-card{box-shadow:0 6px 21px #4b1d2a08}.panel{box-shadow:0 6px 21px #4b1d2a06}
@media(max-width:750px){.form-grid{grid-template-columns:1fr}.roster-group{grid-template-columns:1fr}.quick-actions .button{flex:1 1 155px}.top-actions input{max-width:none}.sidebar .owner-tag{display:none}}
@media print{.sidebar,.topbar,.page-header>.button,.quick-panel,.report-actions .quick-actions,.roster-filters,.card-actions,.pager,.request-actions{display:none!important}.app{display:block}.workspace,.main{width:100%;max-width:none}.panel,.report-tile,.roster-level{break-inside:avoid;box-shadow:none}body{background:white}}
.media-holder{margin-top:16px;background:#faf7f7;border:1px solid #ebdee2;padding:12px;border-radius:12px}.media-holder strong{display:block;font-size:13px;margin-bottom:10px;overflow-wrap:anywhere}.media-display{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:8px}.media-file{color:#4b1d2a;font-weight:700}.announcement-thumb{width:100%;height:160px;object-fit:cover;border-radius:10px;margin:10px 0}.media-upload-button{display:inline-flex;align-items:center;cursor:pointer;margin-top:12px;margin-inline-start:7px}
.teacher-pills{display:grid}.assignment-pill{display:flex;justify-content:space-between;align-items:center;gap:8px;border-radius:7px;background:#f7f3f4;padding:6px 8px;font-size:11px}.assignment-end{background:#fff;border:1px solid #eadcdf;border-radius:6px;color:#a12d46}.group-edit{background:#fff!important;color:#4b1d2a!important;border-color:#eadcdf!important}
.nav svg,.bell svg{display:block}.nav span{width:20px;height:20px}.bell{display:grid;place-items:center}
.resource-section{margin-top:21px}.resource-section h2{font-size:19px}.resource-card{border-inline-start:4px solid #e7c928}
.record-screen,.school-directory{--burgundy:#4b1d2a;--ink:#242535;--muted:#6d7380;--border:#e8dfe1}.record-context{background:#fff;border:1px solid #e9e0e3;border-radius:14px;padding:13px 19px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:#4b1d2a;font-size:13px}.record-context span{color:#687080}.school-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:19px}.directory-school{background:#fff;border:1px solid var(--border);border-radius:19px;box-shadow:0 14px 35px #4b1d2a0a;padding:23px;min-width:0}.directory-school-head{display:flex;align-items:center;gap:15px}.school-symbol{height:51px;width:51px;display:grid;place-items:center;border-radius:15px;background:#4b1d2a;color:#fff;font-family:Manrope,sans-serif;font-weight:850;font-size:20px;flex:0 0 auto}.directory-school:nth-child(even) .school-symbol{background:#ed761b}.directory-name small{display:block;color:#89808b;text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:800}.directory-name h2{font-size:20px;line-height:1.22;margin:3px 0 0;color:#222636}.directory-stats{display:flex;gap:9px;margin:20px 0}.directory-stats .record-field{flex:1;background:#faf7f7;border:1px solid #f1e9eb;border-radius:11px;padding:12px}.directory-stats .record-field strong{font-size:19px}.directory-stage{border:1px solid #e8ece4;border-inline-start:4px solid var(--stage);border-radius:13px;padding:16px 15px 11px;margin-top:13px;background:linear-gradient(118deg,var(--stage-pale),#fff 38%)}.stage-maternelle{--stage:#79b928;--stage-pale:#f2fae9}.stage-primaire{--stage:#d7b517;--stage-pale:#fffbee}.stage-college{--stage:#f47a1f;--stage-pale:#fff5ec}.directory-stage-heading{display:flex;align-items:center;gap:9px;margin-bottom:11px}.directory-stage-heading h3{margin:0;font-size:15px}.stage-dot{background:var(--stage);height:10px;width:10px;border-radius:50%}.directory-level{padding:11px 0;border-top:1px solid #ebe7e5}.directory-level-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.directory-level-heading strong{font-size:13px}.record-text-button,.record-back{background:none;border:0;cursor:pointer;color:#6f3446;font-weight:750;font-size:12px;padding:8px 0}.record-text-button:hover,.record-back:hover{text-decoration:underline}.class-tiles{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.class-tile{background:#fff;border:1px solid #ded9d7;border-radius:10px;display:flex;align-items:center;gap:12px;padding:10px 13px;cursor:pointer;color:#282a33;transition:transform .16s,box-shadow .16s,border-color .16s}.class-tile:hover,.class-tile:focus-visible{border-color:var(--stage);box-shadow:0 6px 15px #4b1d2a12;transform:translateY(-2px)}.class-tile strong{font-size:16px}.class-tile span{font-size:11px;color:#777984}.record-hero{background:radial-gradient(circle at 88% 18%,#ffffff12 0 13%,transparent 13.2%),linear-gradient(120deg,#4b1d2a,#743e53);border-radius:20px;padding:24px 28px;color:#fff;position:relative;overflow:hidden}.record-hero.stage-maternelle{background:linear-gradient(117deg,#3d5b30,#5d8550)}.record-hero.stage-primaire{background:linear-gradient(117deg,#58402e,#79623d)}.record-hero.stage-college{background:linear-gradient(117deg,#592d2b,#9d5430)}.record-hero .record-back{color:#fff;opacity:.9}.record-eyebrow{font-size:12px;letter-spacing:.06em;opacity:.82;margin-top:10px}.record-hero h1{font-size:clamp(26px,3vw,38px);margin:10px 0 3px;color:#fff}.record-hero p{margin:0;opacity:.86;font-size:13px}.record-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.record-hero .button.outline{background:#ffffff14;color:#fff;border-color:#ffffff75}.record-hero .button.outline:hover{background:#ffffff30}.record-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}.record-metrics .record-field{background:#fff;border:1px solid #e7dfe2;border-radius:13px;padding:16px 19px;box-shadow:0 5px 18px #4b1d2a06}.record-field{display:grid;gap:6px;min-width:0}.record-field small{font-size:11px;color:#77808a}.record-field strong{font-size:15px;color:#292939;overflow-wrap:anywhere}.record-metrics .record-field strong{color:#4b1d2a;font-size:22px}.record-panel{background:#fff;border:1px solid #e8dfe2;border-radius:16px;padding:19px 21px;margin-bottom:15px;min-width:0;box-shadow:0 6px 19px #4b1d2a07}.record-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.record-section-heading h2{margin:0;color:#292b36;font-size:18px}.record-muted{font-size:12px;color:#79808b}.record-teachers{display:flex;flex-wrap:wrap;gap:10px}.teacher-line{display:flex;align-items:center;gap:10px;border:1px solid #eae4e6;background:#fbfaf9;padding:10px 13px;border-radius:11px;min-width:185px}.teacher-mark,.pupil-mark{display:grid;place-items:center;border-radius:12px;background:#fae9ed;color:#6a2840;width:40px;height:40px;flex:0 0 auto;font-weight:800}.teacher-line strong,.teacher-line small{display:block}.teacher-line strong{font-size:13px}.teacher-line small{font-size:11px;color:#747c88;margin-top:4px}.record-search{width:100%;border:1px solid #e3dbe0;border-radius:10px;padding:11px 14px;color:#272b34;margin-bottom:12px;font-size:13px}.record-search:focus{outline:2px solid #a46779}.record-roster{display:grid;gap:9px}.record-roster-row{display:flex;align-items:center;gap:14px;border:1px solid #ece5e6;background:#fff;border-radius:12px;padding:13px 15px}.record-roster-row[hidden]{display:none}.pupil-summary{flex:1;min-width:0}.pupil-summary strong,.pupil-summary small{display:block}.pupil-summary strong{font-size:14px;color:#212431}.pupil-summary small{font-size:11px;color:#737a86;margin-top:4px}.roster-row-actions{display:flex;gap:7px;flex-wrap:wrap}.roster-row-actions .button{font-size:11px;padding:8px 10px;white-space:nowrap}.attendance-pill{display:inline-flex;align-items:center;width:max-content;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:750;background:#f3f4f6;color:#636b77;white-space:nowrap}.attendance-pill.present{background:#edf8e7;color:#41732e}.attendance-pill.absent{background:#fce8e8;color:#a42e3c}.attendance-pill.late{background:#fff3dd;color:#a16616}.attendance-pill.excused{background:#edf3fc;color:#3b6597}.record-empty{padding:25px;border:1px dashed #e6dfe2;border-radius:10px;text-align:center;color:#787d88;font-size:13px}.record-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.85fr);gap:15px}.record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.record-fields .record-field{background:#faf9f8;padding:11px;border-radius:9px}.record-timeline-item{border-inline-start:3px solid #79b928;padding:5px 14px 18px;margin-inline-start:7px;display:grid;gap:7px}.record-timeline-item:last-child{padding-bottom:5px}.record-timeline-item strong{font-size:13px}.record-timeline-item small,.history-class{font-size:11px;color:#6e7681}.history-class{background:#f7f8f5;border:1px solid #e7ece1;border-radius:7px;padding:8px}.attendance-history,.request-history{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #efe9e9;flex-wrap:wrap;font-size:12px}.attendance-history:last-child,.request-history:last-child{border:0}.attendance-history time{min-width:87px;font-weight:750;color:#363944}.attendance-history small{color:#656f7d}.attendance-revision{width:100%;margin-inline-start:95px;background:#faf6eb;padding:7px;border-radius:7px}.request-history{display:grid;gap:4px}.request-history strong{font-size:12px}.family-entry{display:flex;align-items:center;gap:9px;border-top:1px solid #eee7e7;padding:12px 0}.family-entry .pupil-mark{height:34px;width:34px}.family-info{flex:1;min-width:0}.family-info strong,.family-info small{display:block;overflow-wrap:anywhere}.family-info strong{font-size:12px}.family-info small{font-size:11px;color:#747982;margin-top:3px}.family-entry .button{font-size:11px;padding:7px 9px}
@media(max-width:1150px){.school-directory{grid-template-columns:1fr}.record-columns{grid-template-columns:1fr}.record-roster-row{flex-wrap:wrap}.roster-row-actions{margin-inline-start:auto}}
@media(max-width:650px){.directory-school{padding:15px}.record-hero{padding:19px}.record-metrics{grid-template-columns:1fr}.record-roster-row{align-items:flex-start}.record-roster-row .attendance-pill{margin-inline-start:auto}.roster-row-actions{width:100%;margin:5px 0 0}.record-fields{grid-template-columns:1fr}.record-context{display:block}.record-context span{display:block;margin-top:6px}}
.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.metric-card{background:white;border:1px solid #e8e0e2;border-inline-start:4px solid var(--accent);border-radius:11px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 4px 16px #4b1d2a05}.metric-card span{font-size:12px;color:#646d7b}.metric-card strong{font-size:22px;color:#4b1d2a}@media(max-width:650px){.metric-strip{grid-template-columns:1fr 1fr}.metric-card:last-child{grid-column:1/-1}}

/* Owner pupil directory and daily attendance */
.student-workspace{--line:#eadfe2;--deep:#4b1d2a}.student-overview-metrics .metric-strip{margin:20px 0 13px}.student-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px;margin-bottom:17px}.student-filters .form-field{font-size:12px}.roster-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 2px 12px;color:var(--deep)}.roster-intro strong{font-size:15px}.roster-intro small{font-size:12px;color:#7e7880}.student-level-block{--stage:#79b928;--stage-pale:#eff8e8;background:white;border:1px solid var(--line);border-inline-start:5px solid var(--stage);border-radius:17px;margin-bottom:14px;box-shadow:0 8px 25px #4b1d2a08;overflow:hidden}.student-level-head{background:linear-gradient(110deg,var(--stage-pale),#fff 57%);display:flex;align-items:center;gap:12px;padding:17px 19px}.student-level-head .stage-dot{height:12px;width:12px}.student-level-title{flex:1;min-width:0}.student-level-title small{display:block;color:#70717a;font-size:11px}.student-level-title h2{font-size:19px;line-height:1.25;margin:3px 0 0}.level-count{border:1px solid #e8dfe2;border-radius:20px;background:white;color:#4b1d2a;font-size:12px;font-weight:700;padding:7px 10px;white-space:nowrap}.student-class-block{border-top:1px solid #ece8e6}.student-class-header{display:flex;align-items:center;gap:8px;padding:12px 18px}.student-class-toggle{border:0;background:none;display:flex;align-items:center;gap:12px;flex:1;text-align:start;color:#282735;cursor:pointer;min-width:0;padding:0}.class-letter{background:var(--stage-pale);border:1px solid color-mix(in srgb,var(--stage) 26%,#fff);color:#4b1d2a;min-width:43px;height:43px;display:grid;place-items:center;border-radius:11px;font-size:16px;font-weight:800}.class-name{flex:1}.class-name strong,.class-name small{display:block}.class-name strong{font-size:14px}.class-name small{font-size:11px;color:#787b82;margin-top:2px}.class-chevron{font-size:20px;color:#8a6871}.student-class-header .button{font-size:11px;padding:8px 10px;white-space:nowrap}.student-class-list{border-top:1px solid #f1ebeb;padding:8px 17px 17px;display:grid;gap:7px}.student-list-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #eee7e8;border-radius:11px;padding:10px 12px;min-width:0}.student-list-row .pupil-mark{width:35px;height:35px;border-radius:9px;background:var(--stage-pale);color:#4b1d2a}.student-list-identity{min-width:0;flex:1}.student-list-identity strong{font-size:13px;display:block}.student-list-identity small{display:block;color:#727680;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.record-completeness{display:inline-flex;border-radius:20px;background:#eef8e8;color:#3a732d;font-size:10px;font-weight:700;margin-top:3px;padding:3px 7px}.record-completeness.incomplete{background:#fff0db;color:#9f5c17}.student-list-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.student-list-actions .button{min-height:34px;font-size:11px;padding:7px 10px}.student-more{position:relative}.student-more summary{list-style:none;cursor:pointer;background:#faf7f7;border:1px solid #ecdedf;color:#67263d;border-radius:8px;font-size:11px;padding:8px 10px;font-weight:750}.student-more summary::-webkit-details-marker{display:none}.student-more[open]{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.student-more[open] summary{margin-inline-end:3px}.record-progress{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f0f8e9;color:#39602f;border-radius:13px;border:1px solid #dae9cf;padding:13px 17px;margin:14px 0}.record-progress.needs-details{background:#fff6e8;color:#865722;border-color:#f1e1c8}.record-progress span{font-size:12px;font-weight:800}.record-progress strong{margin-inline-start:auto}.record-progress small{width:100%;font-size:11px}.family-actions{display:flex;flex-wrap:wrap;gap:5px}.family-actions .button{min-height:30px;font-size:10px}.roll-call-note,.enrollment-hint,.transfer-preview{background:#f7f9f4;border:1px solid #e4eadc;color:#485242;border-radius:10px;line-height:1.6;padding:12px 14px;font-size:13px}.transfer-preview{background:#fff6ed;border-color:#f4dfc9;color:#5a3d26}.roll-call-status{font-size:12px;color:#6d7480;font-weight:750}.roll-call-list{display:grid;gap:7px;max-height:42vh;overflow:auto;padding:0 4px}.roll-call-item{display:grid;grid-template-columns:minmax(130px,1fr) minmax(140px,170px) minmax(130px,1fr);align-items:center;gap:9px;padding:8px 10px;border-radius:10px;border:1px solid #ece4e5;background:white}.roll-call-student{display:flex;align-items:center;gap:9px}.roll-call-student .pupil-mark{height:30px;width:30px;border-radius:8px}.roll-call-student strong{font-size:12px}.roll-call-item select,.roll-call-memo{border:1px solid #e2d8da;border-radius:8px;padding:8px;background:#fff;font-size:12px;width:100%}.form-group-heading{grid-column:1/-1;margin:12px 0 -5px;color:#4b1d2a;border-bottom:1px solid #ece5e6;padding:0 0 8px;font-size:15px}.edit-form:has(.form-group-heading) .form-grid{gap:13px}
@media(max-width:850px){.student-class-header{flex-wrap:wrap}.student-class-header .student-class-toggle{flex-basis:100%}.roll-call-item{grid-template-columns:1fr 1fr}.roll-call-student{grid-column:1/-1}.student-list-row{flex-wrap:wrap}.student-list-actions{width:100%}.student-list-identity{flex:1 1 calc(100% - 55px)}}
@media(max-width:570px){.student-filters{grid-template-columns:1fr}.student-class-header{padding:11px}.student-class-list{padding:8px 10px 12px}.roll-call-item{grid-template-columns:1fr}.roll-call-student{grid-column:auto}.roll-call-list{max-height:55vh}}
@media print{.student-list-actions,.student-class-header>.button,.record-actions{display:none!important}}
.teacher-workspace,.teacher-detail{--teacher-line:#e8dfe1;color:#282331}.teacher-page-metrics,.teacher-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:21px 0 15px}.teacher-page-metrics>div,.teacher-detail-metrics>div{background:#fff;border:1px solid var(--teacher-line);border-radius:16px;padding:17px 20px;box-shadow:0 7px 25px #4b1d2a07}.teacher-page-metrics strong,.teacher-detail-metrics strong{display:block;font-size:26px;line-height:1.1;color:#4b1d2a}.teacher-page-metrics small,.teacher-detail-metrics small{display:block;font-size:12px;color:#71727b;margin-top:5px}.teacher-filters{display:flex;gap:12px;align-items:end;margin:14px 0 20px}.teacher-filters .form-field{flex:1;min-width:0}.teacher-compact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px}.teacher-compact-card{min-width:0;background:#fff;border:1px solid var(--teacher-line);border-radius:17px;padding:20px;box-shadow:0 8px 26px #4b1d2a08;display:flex;flex-direction:column;gap:16px}.teacher-intro{display:flex;align-items:center;gap:12px;min-width:0}.teacher-intro .teacher-avatar{width:47px;height:47px;min-width:47px;border-radius:12px;display:grid;place-items:center;background:#fff1e7;color:#b35d20;font-size:18px;font-weight:800}.teacher-intro-text{min-width:0}.teacher-intro h3{font-size:16px;line-height:1.3;margin:0 0 5px}.teacher-account{font-size:11px;border-radius:20px;padding:5px 9px;background:#fff4e5;color:#9c652b;display:inline-block}.teacher-account.active{background:#edf7e8;color:#327228}.teacher-subject-tags{display:flex;flex-wrap:wrap;gap:6px;min-height:29px}.teacher-subject-tag{border-radius:22px;padding:6px 10px;font-size:11px;font-weight:700;background:#f7f0f2;color:#64283b}.teacher-counts{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #f1e9eb;padding:13px 0}.teacher-counts>div{padding:0 8px;border-inline-end:1px solid #f1e9eb}.teacher-counts>div:first-child{padding-inline-start:0}.teacher-counts>div:last-child{border:0}.teacher-counts strong{display:block;font-size:19px;color:#4b1d2a}.teacher-counts small{display:block;font-size:11px;color:#777782}.teacher-compact-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.teacher-compact-actions .button{font-size:11px}.teacher-detail-hero{background:linear-gradient(115deg,#4b1d2a,#743c53);border-radius:20px;color:#fff;padding:27px 30px;overflow:hidden}.teacher-detail-hero .record-back{color:white}.teacher-detail-hero small{display:block;opacity:.76;margin:12px 0 5px}.teacher-detail-hero h1{font-size:34px;margin:0 0 10px}.teacher-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.teacher-hero-actions .button{border-color:#ffffff55;color:white;background:#ffffff18}.teacher-hero-actions .button:not(.outline){background:white;color:#4b1d2a}.teacher-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.teacher-subject-panel,.teacher-school-panel{border-radius:17px;background:white;border:1px solid var(--teacher-line);padding:20px;margin:15px 0}.teacher-subject-panel h2,.teacher-school-title h2{font-size:19px;margin:0 0 11px}.teacher-school-title small{color:#797782}.teacher-level-cluster{--stage:#79b928;--stage-pale:#eff8e8;border-top:1px solid #eee7e9;margin-top:14px;padding-top:14px}.teacher-level-cluster h3{border-inline-start:4px solid var(--stage);padding-inline-start:10px;font-size:15px;margin:0 0 13px}.teacher-class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.teacher-class-tile{background:linear-gradient(130deg,var(--stage-pale),#fff 45%);border:1px solid #ece4e6;border-radius:13px;padding:14px;align-self:start}.teacher-class-cap{display:flex;align-items:center;justify-content:space-between;gap:10px}.teacher-class-letter{height:35px;min-width:35px;background:white;border-radius:9px;display:grid;place-items:center;color:#4b1d2a;font-weight:800}.teacher-class-cap strong{font-size:12px}.teacher-assignment-list{border-top:1px solid #eee3e5;margin:12px 0;padding-top:8px}.teacher-assignment-entry{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 0;font-size:12px}.teacher-assignment-entry .assignment-end{flex-shrink:0}.teacher-pupil-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:10px}.teacher-pupil{border:1px solid #ece4e6;background:#fff;color:#4b1d2a;border-radius:8px;text-align:start;font-size:11px;padding:8px;cursor:pointer}.teacher-pupil:hover{background:#faf3f5}
@media(max-width:760px){.teacher-page-metrics,.teacher-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-filters{flex-wrap:wrap}.teacher-filters .form-field{flex:1 1 180px}.teacher-detail-hero{padding:22px}.teacher-compact-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media(max-width:490px){.teacher-page-metrics,.teacher-detail-metrics{gap:7px}.teacher-page-metrics>div,.teacher-detail-metrics>div{padding:13px}.teacher-class-grid,.teacher-compact-grid{grid-template-columns:1fr}.teacher-pupil-list{grid-template-columns:1fr}}
/* Owner access and communication: responsive, grouped, purposeful surfaces */
.owner-access,.owner-communications{color:#222331}.owner-access-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.owner-access-metric{background:#fff;border:1px solid #ece5e6;border-radius:16px;padding:17px 20px;border-inline-start:4px solid #4b1d2a;box-shadow:0 6px 22px #4b1d2a08}.owner-access-metric.orange{border-inline-start-color:#f47a1f}.owner-access-metric.green{border-inline-start-color:#79b928}.owner-access-metric.yellow{border-inline-start-color:#e7c928}.owner-access-metric strong{display:block;color:#4b1d2a;font-size:28px;line-height:1.15}.owner-access-metric span{display:block;color:#676875;margin-top:5px;font-size:12px}.owner-access-tabs{display:flex;gap:7px;padding:6px;border:1px solid #eee5e8;border-radius:15px;width:max-content;max-width:100%;background:#fff;margin:17px 0 22px;flex-wrap:wrap}.owner-access-tabs button{border:0;background:transparent;color:#59464e;padding:10px 18px;border-radius:10px;font-size:13px;font-weight:700}.owner-access-tabs button.active{background:#4b1d2a;color:#fff}.owner-account-grid,.owner-message-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}.owner-account-card{background:#fff;border:1px solid #eae0e3;border-radius:17px;padding:18px;min-width:0;box-shadow:0 10px 28px #4b1d2a08;display:flex;flex-direction:column}.owner-account-top{display:flex;align-items:center;gap:12px;min-width:0}.owner-account-top>div:last-child{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.owner-account-top strong{font-size:15px;min-width:0;overflow-wrap:anywhere}.owner-account-avatar{width:49px;height:49px;flex-shrink:0;display:grid;place-items:center;border-radius:13px;background:#f7e9ed;color:#5d283b;font-weight:800;font-size:19px;overflow:hidden}.owner-account-avatar img{width:100%;height:100%;object-fit:cover}.owner-account-status{font-size:10px;font-weight:700;background:#f4ebed;color:#704c58;padding:4px 7px;border-radius:20px}.owner-account-status.active{background:#ecf8e7;color:#3a7a23}.owner-account-details{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 9px}.owner-account-details span,.owner-family-list span{font-size:11px;color:#584f59;padding:5px 8px;border-radius:8px;background:#faf5f6;overflow-wrap:anywhere}.owner-family-list{display:flex;flex-wrap:wrap;gap:5px;padding:11px 0;border-top:1px solid #f0e9eb}.owner-family-list small{width:100%;font-weight:800;color:#776670}.owner-account-card>small{color:#7b7179;margin-bottom:10px}.owner-account-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:12px}.owner-account-actions .button{min-height:34px;padding:7px 10px;font-size:11px}.owner-pending{border-radius:17px;background:#fff;border:1px solid #eae0e3;padding:21px;margin-top:22px}.owner-pending h2{margin:0 0 15px;font-size:18px}.owner-pending-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:9px}.owner-pending-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid #f0e9ea;border-radius:11px;background:#fffcfb}.owner-pending-item strong{font-size:13px}.owner-pending-item span{font-size:11px;color:#777;max-width:100%;overflow-wrap:anywhere}.owner-pending-item button{margin-inline-start:auto}.access-form-hint{font-size:12px;line-height:1.6;color:#7c6972;background:#faf6f4;padding:11px;border-radius:9px}.owner-upload-preview{grid-column:1/-1}.owner-preview-image{display:block;width:min(100%,290px);max-height:190px;object-fit:contain;border-radius:9px;margin:9px 0;background:#f5f1ee}
.owner-announcement-card{background:#fff;border:1px solid #e9e1e2;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #4b1d2a08;min-width:0;display:flex;flex-direction:column}.owner-announcement-cover,.owner-announcement-art{height:200px;overflow:hidden;background:#f2edea}.owner-announcement-cover img{width:100%;height:100%;object-fit:cover;display:block}.owner-announcement-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:24px;background:radial-gradient(circle at 100% 0%,#94556b,#542333 55%,#3f1925);color:white}.owner-announcement-art:after{content:'';position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid #ffffff44;top:-90px;right:-45px}.owner-announcement-art>span{font-size:44px;color:#e7c928}.owner-announcement-art small{font-size:12px;letter-spacing:.15em;color:#fff}.owner-announcement-body{padding:19px;display:flex;flex:1;flex-direction:column;gap:10px}.owner-announcement-body>small{color:#80546a;font-weight:700}.owner-announcement-body h3{font-size:16px;margin:0;overflow-wrap:anywhere}.owner-announcement-body p{font-size:13px;color:#6a6972;line-height:1.55;margin:0;overflow-wrap:anywhere}.owner-announcement-numbers{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #f0e8e9;padding-top:12px;margin-top:auto}.owner-announcement-numbers span{background:#f7f2f3;color:#573548;border-radius:6px;padding:5px 7px;font-size:11px}.owner-file-action{cursor:pointer}.owner-message-meta{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:#625862;font-size:12px}.owner-category{background:#f5e9ed;color:#5d2537;border-radius:20px;padding:7px 10px;font-weight:700}.owner-message-full{font-size:15px;color:#30313c;white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}.owner-message-media{border-top:1px solid #eee5e8;padding-top:14px}.owner-message-media h3,.owner-message-stats h3{font-size:16px}.owner-media-entry{display:grid;gap:10px;margin-bottom:16px}.owner-media-entry strong{font-size:12px;overflow-wrap:anywhere}.owner-media-image{width:100%;max-height:58vh;object-fit:contain;background:#f6f3f1;border-radius:13px}.owner-message-stats{border-top:1px solid #eee5e8;padding-top:15px}.owner-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.owner-stats-grid>div{padding:12px;background:#faf5f6;border-radius:10px}.owner-stats-grid strong{font-size:20px;display:block;color:#4b1d2a}.owner-stats-grid small{font-size:11px;color:#77666d}
@media(max-width:820px){.owner-access-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.owner-account-grid,.owner-message-grid,.owner-pending-grid{grid-template-columns:1fr}.owner-access-tabs{width:100%}.owner-access-tabs button{flex:1}.owner-stats-grid{grid-template-columns:1fr 1fr}}
.school-event-section{background:#fff;border:1px solid #e9e1e3;padding:22px;border-radius:17px}.school-event-section h2{font-size:19px;margin:0 0 15px}.school-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:13px}.school-event-card{min-width:0;overflow:hidden;border:1px solid #eae2e2;border-radius:14px;display:flex;flex-direction:column;background:white}.school-event-cover,.school-event-ribbon{height:140px;overflow:hidden;background:#fff1e6}.school-event-cover img{width:100%;height:100%;object-fit:cover}.school-event-ribbon{display:grid;place-items:center;color:#e27627;font-size:52px;background:radial-gradient(circle at 65% 0,#fff9f0,#f9e9dc)}.school-event-content{padding:15px;display:flex;flex-direction:column;gap:8px;flex:1}.school-event-content small{color:#855762;font-weight:700}.school-event-content h3{font-size:15px;margin:0}.school-event-content p{font-size:12px;color:#74717a;margin:0;line-height:1.5}.school-event-content button{margin-top:auto}.school-event-tags{display:flex;gap:5px;flex-wrap:wrap}.school-event-tags span{font-size:11px;padding:5px 8px;border-radius:7px;background:#f4f7ef;color:#406821}.school-event-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.school-event-details>div{display:grid;gap:4px;padding:12px;border-radius:10px;background:#fbf7f5}.school-event-details small{font-size:11px;color:#80717a}.school-event-details strong{font-size:13px}
@media(max-width:520px){.school-event-grid,.school-event-details{grid-template-columns:1fr}}
/* School administration: warm, compact panels with stage-specific accents. */
.admin-area{display:grid;gap:22px;min-width:0}.admin-hero{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(125deg,#431827,#713445);color:white;padding:34px 38px;box-shadow:0 16px 40px #4b1d2a18}.admin-hero::after{content:"";position:absolute;width:330px;height:330px;border:1px solid #ffffff38;border-radius:50%;right:-100px;top:-140px;pointer-events:none}.admin-hero small{letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:#f5d9dc}.admin-hero h2{font-size:clamp(25px,3vw,39px);margin:15px 0}.admin-hero p{max-width:700px;color:#fae9ec;line-height:1.7}.admin-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.admin-hero .button{border-color:#ffffff6b;color:white;background:#ffffff1d}.admin-hero .button:first-child{background:white;color:#4b1d2a}.admin-dashboard-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.admin-stat{display:grid;text-align:start;gap:7px;border:1px solid #e9e1e2;background:white;border-radius:19px;padding:20px;min-height:138px;color:#251821;cursor:pointer}.admin-stat::before{content:"";height:5px;width:52px;border-radius:10px;background:#79b928}.admin-stat.yellow::before{background:#e7c928}.admin-stat.orange::before{background:#f47a1f}.admin-stat.burgundy::before{background:#71283d}.admin-stat strong{font-size:32px;line-height:1}.admin-stat span:last-child{font-size:12px;color:#8b747c}.admin-dashboard-panels{display:grid;grid-template-columns:1.05fr 1fr;gap:16px}.admin-feed{width:100%;border:0;border-bottom:1px solid #eee6e8;background:transparent;text-align:start;display:grid;gap:5px;padding:14px;cursor:pointer}.admin-feed strong{color:#271923}.admin-feed small{color:#897681}.admin-level-grid,.admin-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-level-card,.admin-roster-card,.admin-report-card,.admin-teacher-card{background:#fff;border:1px solid #e9e1e2;border-radius:20px;padding:22px;box-shadow:0 12px 32px #4b1d2a08}.admin-level-card>small{color:#789523;text-transform:uppercase;font-weight:800}.admin-level-card h2{margin:7px 0 17px}.admin-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}.admin-class-tile{border:1px solid #dfe8d3;background:#f7fbf2;border-radius:13px;text-align:start;display:grid;gap:5px;padding:16px;color:#395923;cursor:pointer}.admin-class-tile strong{font-size:21px}.admin-class-tile span{font-size:12px}.admin-class-roster,.admin-people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-class-pupil,.admin-person{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #eee5e6;border-radius:14px;background:#fffdfd;color:#37222b;text-align:start;cursor:pointer}.admin-person{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto}.admin-person .person-avatar{grid-row:span 2}.admin-person small{color:#81717b}.admin-toolbar,.admin-filterbar,.admin-roster-title,.admin-teacher-head{display:flex;gap:11px;align-items:center;flex-wrap:wrap}.admin-filterbar>.form-field{flex:1 1 220px}.admin-roster-title{justify-content:space-between;border-bottom:1px solid #eee5e6;padding-bottom:14px;margin-bottom:16px}.admin-roster-title h2{margin:0;font-size:19px}.admin-teacher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.admin-teacher-head{font-weight:800;font-size:17px}.admin-teacher-card .teacher-counts{margin:18px 0}.admin-attendance-list{max-height:46vh;overflow:auto;display:grid;gap:7px;margin:15px 0}.admin-attendance-row{display:grid;grid-template-columns:minmax(110px,1fr) 135px minmax(120px,1.2fr);gap:8px;align-items:center;background:#faf8f6;padding:10px;border-radius:10px}.admin-attendance-row input,.admin-attendance-row select{min-width:0;padding:9px;border:1px solid #e7dcdc;border-radius:8px;background:white}.admin-record-cover{background:#f6ecee;border-radius:16px;padding:18px;display:flex;gap:14px;align-items:center}.admin-family,.admin-record-history,.admin-teacher-class{border:1px solid #eee4e5;border-radius:14px;padding:16px;margin-top:15px}.admin-family h3,.admin-record-history h3{margin-top:0}.admin-family-row,.admin-history-row{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #f0e7e8;padding:10px 0}.admin-report-card{display:grid;gap:10px}.admin-report-card h2{margin:0}.admin-report-card>small{color:#a26773}.admin-report-card>p{color:#81717b}.admin-teacher-class .admin-class-roster{margin-top:10px}@media(max-width:1050px){.admin-dashboard-cards{grid-template-columns:repeat(2,1fr)}.admin-teacher-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.admin-dashboard-panels,.admin-level-grid,.admin-report-grid,.admin-teacher-grid,.admin-people-grid,.admin-class-roster{grid-template-columns:1fr}.admin-hero{padding:25px 21px}.admin-class-grid{grid-template-columns:1fr 1fr}.admin-attendance-row{grid-template-columns:1fr 1fr}.admin-attendance-row strong{grid-column:1/-1}.admin-attendance-row input{grid-column:2}.admin-roster-title{align-items:flex-start}.admin-dashboard-cards{gap:9px}.admin-stat{padding:14px;min-height:115px}}

/* The teacher space has its own visual rhythm and collapses into thumb friendly cards. */
.teacher-app{background:#f6f7f4}.teacher-app .sidebar{background:linear-gradient(165deg,#183c36,#15302d 66%,#254a39)}.teacher-app .nav.active{background:#e8f4e4;color:#21453c;box-shadow:inset 3px 0 #db9f3f}.teacher-app .topbar{background:#fffefa}.teacher-space{display:grid;gap:20px;min-width:0}.teacher-hero{position:relative;overflow:hidden;padding:clamp(24px,3vw,39px);border-radius:26px;background:linear-gradient(112deg,#19453e,#377459 75%,#70965e);color:#fff;box-shadow:0 15px 35px #19453e20}.teacher-hero:after{content:'';position:absolute;inset:auto -70px -190px auto;width:390px;height:390px;border-radius:50%;border:60px solid #ffffff13;pointer-events:none}.teacher-eyebrow{letter-spacing:.16em;font-weight:800;font-size:11px;color:#d6eec4}.teacher-hero h1{font-size:clamp(26px,3vw,40px);margin:17px 0 8px}.teacher-hero p{max-width:630px;line-height:1.7;color:#edfaed;margin:0}.teacher-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px;position:relative;z-index:1}.teacher-hero-actions .button{background:#fff;color:#1d4439;border-color:#fff}.teacher-hero-actions .outline{background:#ffffff1c;color:#fff;border-color:#ffffff7a}.teacher-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.teacher-metric{padding:19px 23px;background:#fff;border:1px solid #e6eae3;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:8px}.teacher-metric strong{font-size:31px;color:#214a3c}.teacher-metric span{font-size:13px;color:#657371}.teacher-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr);gap:17px}.teacher-surface,.teacher-class-banner,.teacher-student,.teacher-message-card{background:#fff;border:1px solid #e6eae3;border-radius:20px;box-shadow:0 8px 24px #263f3010}.teacher-surface{padding:23px;min-width:0}.teacher-surface h2{margin:0 0 17px;font-size:19px}.teacher-group-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto 20px;align-items:center;gap:12px;width:100%;padding:14px 5px;border:0;border-top:1px solid #edf0ea;background:#fff;text-align:start;color:#173b30}.teacher-group-row strong{font-size:14px}.teacher-group-row small{font-size:12px;color:#77827a}.teacher-group-mark{display:grid;place-items:center;background:#e8f3e6;border-radius:12px;width:42px;height:42px;font-size:19px;color:#35805b}.teacher-arrow{color:#bc8d41}.teacher-upcoming{display:grid;grid-template-columns:76px 1fr;gap:4px 12px;padding:12px 0;border-bottom:1px solid #edf0ea}.teacher-upcoming time{grid-row:span 2;color:#ce7f2b;font-weight:800}.teacher-upcoming small,.teacher-empty{color:#788079}.teacher-notice-link{border:0;background:#f3f8f0;color:#2b5a43;padding:12px;border-radius:10px;margin:4px;text-align:start}.teacher-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:clamp(23px,3vw,33px);font-weight:800;color:#204638;flex-wrap:wrap}.teacher-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.teacher-tabs button{background:#fff;border:1px solid #dce7d9;padding:11px 15px;border-radius:11px;white-space:nowrap;color:#476552}.teacher-tabs button.active{background:#214f3d;color:#fff}.teacher-class-banner{padding:22px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-inline-start:6px solid #d9a742}.teacher-class-banner>div:first-child{font-weight:800;font-size:20px;color:#234a38}.teacher-banner-actions,.teacher-student-actions{display:flex;flex-wrap:wrap;gap:7px}.teacher-student-grid,.teacher-message-grid,.teacher-activity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:13px}.teacher-student{padding:18px;min-width:0}.teacher-student-name{display:flex;align-items:center;gap:10px;font-weight:800;color:#204436}.teacher-student-avatar{height:43px;width:43px;background:#e9f3e2;color:#426d3d;display:grid;place-items:center;border-radius:13px}.teacher-student p{color:#78857c;font-size:13px;min-height:20px}.teacher-presence{display:inline-block;border-radius:50px;padding:5px 11px;background:#ebf7e7;color:#2a783e;font-size:12px}.teacher-presence.absent{background:#fff0e8;color:#ae5427}.teacher-student-actions{border-top:1px solid #eef0ed;padding-top:15px;margin-top:14px}.teacher-student-actions .button{font-size:12px;padding:8px 10px}.teacher-message-card{padding:22px;min-width:0}.teacher-message-card small{color:#77857b}.teacher-message-card h3{color:#254633;margin:11px 0;font-size:18px}.teacher-message-card p{color:#5a6a61;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.teacher-attachment{margin:7px 7px 0 0}
/* Administration: cards may hold long class names without squeezing or blank columns. */
.admin-teacher-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}.admin-teacher-card{min-width:0}.admin-level-grid{align-items:start}.admin-level-card{min-width:0}.admin-people-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.admin-roster-card{min-width:0}.admin-class-roster{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.admin-area .page-header{flex-wrap:wrap}.admin-area .owner-account-actions,.admin-toolbar{align-items:center}.admin-area .button{white-space:normal}.admin-area .owner-message-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr))}
@media(max-width:1050px){.teacher-columns{grid-template-columns:1fr}}
@media(max-width:650px){.teacher-app .sidebar{position:sticky;top:0;z-index:11;flex-direction:column;align-items:stretch;gap:0;padding:8px}.teacher-app .sidebar .brand{display:none}.teacher-app .sidebar .menu{display:flex;overflow:auto;gap:4px}.teacher-app .sidebar .nav{min-width:65px;display:flex;flex-direction:column;gap:2px;font-size:10px;padding:8px 5px;color:#fff}.teacher-app .sidebar .nav b{display:block;font-size:10px;white-space:nowrap}.teacher-app .sidebar .nav.active{color:#21453c;border-radius:12px}.teacher-app .topbar{gap:7px}.teacher-app .school-switch{width:100%}.teacher-app .school-switch select{width:100%;max-width:none}.teacher-app .top-actions{justify-content:space-between}.teacher-app .avatar-button{max-width:42px;overflow:hidden;padding:4px}.teacher-app .main{padding:17px 12px 90px}.teacher-hero{padding:23px 18px}.teacher-hero-actions .button{flex:1 1 145px;padding:10px}.teacher-metrics{gap:7px}.teacher-metric{padding:12px 8px;display:grid;text-align:center;gap:3px}.teacher-metric strong{font-size:23px}.teacher-metric span{font-size:10px}.teacher-surface{padding:15px}.teacher-group-row{grid-template-columns:35px 1fr 17px;gap:8px}.teacher-group-row small{grid-column:2}.teacher-group-mark{width:34px;height:34px}.teacher-group-row .teacher-arrow{grid-column:3;grid-row:1 / span 2}.teacher-class-banner{padding:16px}.teacher-banner-actions{width:100%}.teacher-banner-actions .button{flex:1 1 100px;font-size:12px;padding:9px}.teacher-student-actions .button{flex:1 1 125px}.admin-people-grid,.admin-class-roster,.admin-class-grid{grid-template-columns:1fr}.admin-dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.teacher-picture{display:block;width:100%;max-height:190px;object-fit:cover;border-radius:13px;margin-bottom:13px}.teacher-delivery{display:block;padding-top:10px;border-top:1px solid #e8eee6}.teacher-upload{display:inline-block;margin-top:12px}
.family-app{background:#fcf8f4}.family-app .sidebar{background:linear-gradient(150deg,#583044,#723d48)}.family-app .nav.active{background:#f9edea;color:#6b3445}.family-space{display:grid;gap:19px}.family-hero{border-radius:25px;background:linear-gradient(115deg,#683747,#9a5c4f);padding:clamp(24px,4vw,39px);color:white}.family-hero h1{font-size:clamp(25px,3vw,38px);margin:14px 0}.family-hero p{color:#fff0e9}.family-child{display:flex;align-items:center;gap:11px;border-top:1px solid #eee6e6;padding:12px 3px}@media(max-width:650px){.family-app .sidebar{position:sticky;top:0;z-index:11;flex-direction:column;align-items:stretch;padding:8px}.family-app .sidebar .brand{display:none}.family-app .sidebar .menu{display:flex;overflow:auto}.family-app .sidebar .nav{display:grid;justify-items:center;gap:2px;min-width:68px;color:white}.family-app .sidebar .nav b{display:block;font-size:11px}.family-app .sidebar .nav.active{color:#6b3445;border-radius:11px}.family-app .school-switch{display:none}.family-app .top-actions{justify-content:space-between}.family-app .main{padding:15px 12px 70px}}
/* Four simple family destinations and the shared weekly calendar. */
.family-app .sidebar{background:linear-gradient(165deg,#4b1d2a,#633044 70%,#7a4252)}
.family-space,.calendar-space{display:grid;gap:20px;min-width:0}.family-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.family-quick-card{border:1px solid #f0e2dc;border-radius:17px;background:#fff9f5;color:#61273a;text-align:start;padding:22px;font-weight:800;font-size:16px;cursor:pointer;min-height:88px}.family-child-link{width:100%;border:0;background:#fff;text-align:start;cursor:pointer}.family-child-link small{margin-inline-start:auto;color:#79816f}.family-study-card{background:#fff;border:1px solid #e9e1df;border-radius:22px;padding:22px;box-shadow:0 10px 25px #3b1b280a}.family-study-head{display:flex;align-items:center;gap:14px;font-size:20px;font-weight:800;flex-wrap:wrap}.family-study-head small{color:#6d796f;font-size:13px}.family-study-stats{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.family-study-stats div{border-radius:11px;background:#f6f8ed;padding:11px 14px;color:#36553a}.family-study-row{padding:12px;border-bottom:1px solid #eee8e4}.family-study-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.calendar-heading{background:linear-gradient(110deg,#542339,#7a3d4d);color:white;padding:27px 31px;border-radius:24px;box-shadow:0 18px 38px #4b1d2a22}.teacher-app .calendar-heading{background:linear-gradient(110deg,#215344,#679268)}.calendar-title{font-size:clamp(25px,3vw,37px);font-weight:800}.calendar-heading p{color:#fcebe9;margin:8px 0 0}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.calendar-select{min-width:230px;max-width:100%;padding:13px 14px;border:1px solid #e5dbd9;border-radius:12px;background:#fff;font:inherit}.calendar-week-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-week-control strong{min-width:220px;text-align:center}.calendar-arrow,.calendar-today{padding:9px 12px;background:#fff;border:1px solid #e5dbd9;border-radius:10px;color:#64293d;cursor:pointer;font:inherit}.calendar-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 20px;background:#f5f8ed;border:1px solid #e1ead1;border-radius:14px}.calendar-summary span{font-size:13px;color:#678062}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:9px;overflow-x:auto}.calendar-day{border:1px solid #e9e4df;border-radius:16px;background:#fff;min-height:285px;padding:12px}.calendar-day.current{border-color:#8abb39;background:#fbfdf7}.calendar-day h3{font-size:13px;margin:0 0 14px;color:#684153}.calendar-day-empty{color:#9b9998;font-size:12px;padding:14px 3px}.calendar-item{border-radius:12px;border-inline-start:4px solid #84b936;background:#f3f8e9;padding:10px;margin-bottom:9px;overflow-wrap:anywhere}.calendar-item.exam{background:#fff1e7;border-color:#f67923}.calendar-item.activity,.calendar-item.meeting{background:#f6effa;border-color:#9760ab}.calendar-item.cancel{background:#f7f1f1;border-color:#b9a9a9;opacity:.8}.calendar-item.replace,.calendar-item.extra{background:#eaf4f6;border-color:#4a99a5}.calendar-item-head{display:flex;justify-content:space-between;gap:5px;font-size:11px;margin-bottom:6px}.calendar-item strong{display:block;font-size:13px;line-height:1.35}.calendar-item small,.calendar-item p{display:block;font-size:11px;color:#67666a;margin-top:5px}.calendar-kind{font-weight:700}.calendar-hour{font-weight:800}.calendar-item-actions{display:flex;flex-wrap:wrap;gap:3px;margin-top:8px}.calendar-link{border:0;background:#fff;color:#61273a;border-radius:5px;font-size:11px;padding:4px;cursor:pointer}.calendar-admin-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #e9e4df;border-radius:16px;padding:17px}.calendar-admin-tools span{margin-inline-end:auto}.calendar-empty{border:1px dashed #dbcecc;border-radius:16px;padding:32px;text-align:center;color:#666}
@media(max-width:1050px){.calendar-grid{grid-template-columns:repeat(7,minmax(180px,1fr));padding-bottom:8px}}
@media(max-width:700px){.family-quick{grid-template-columns:1fr}.calendar-grid{display:grid;grid-template-columns:1fr;overflow:visible}.calendar-day{min-height:0}.calendar-day-empty{padding:4px}.calendar-toolbar{align-items:stretch}.calendar-select{width:100%}.calendar-week-control{justify-content:space-between;width:100%}.calendar-week-control strong{min-width:0}.calendar-summary{display:block}.calendar-summary span{display:block;margin-top:5px}.family-study-card{padding:16px}.family-child-link small{width:100%;margin-inline-start:0}.calendar-heading{padding:21px}}
.family-resource-link{display:block;width:100%;background:#fafcf4;border:1px solid #e9efdf;border-radius:10px;text-align:start;color:#4b5938;cursor:pointer;margin:7px 0}
.family-conversation{border-inline-start:5px solid #79ac4a}.family-app .teacher-message-card{border-inline-start:5px solid #ec802c}.family-ack{min-height:48px;margin-top:15px}.family-attendance-state,.family-response-summary{background:#f5f8ec;color:#37553a;padding:13px 16px;border-radius:12px;font-weight:700}.family-request-row{padding:12px 0;border-bottom:1px solid #ece9e4}.calendar-day-picker{display:none}.teacher-presence.unrecorded{background:#f4f2ee;color:#77716c}
@media(max-width:700px){.family-app .main{padding:14px 12px 92px}.family-app .sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:20;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;box-shadow:0 -8px 25px #3b1d2a25}.family-app .sidebar .menu{justify-content:space-around}.family-app .sidebar .nav{min-width:0;flex:1;padding:8px 4px;min-height:50px}.family-app .sidebar .owner-tag,.family-app .sidebar .brand{display:none}.family-app .topbar{padding:8px 12px}.family-app .global-search,.family-app #refresh{display:none}.family-app .family-hero{padding:20px}.family-app .family-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.family-app .family-quick-card{padding:14px;font-size:14px;min-height:65px}.family-app .teacher-message-grid{grid-template-columns:1fr}.family-app .button,.family-app .family-study-actions .button{min-height:44px}.family-app .calendar-day-picker,.teacher-app .calendar-day-picker{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px}.calendar-day-picker button{min-width:83px;border:1px solid #e3ded6;border-radius:11px;background:white;color:#5f4050;padding:12px 8px}.calendar-day-picker button.active{background:#602638;color:white}.family-app .calendar-day:not(.mobile-selected),.teacher-app .calendar-day:not(.mobile-selected){display:none}.family-app .calendar-day,.teacher-app .calendar-day{min-height:200px}.admin-mobile-app .sidebar{position:sticky;top:0;z-index:12}.admin-mobile-app .sidebar .menu{display:flex;gap:8px}.admin-mobile-app .sidebar .nav:not([hidden]){width:50%;display:flex;gap:9px;align-items:center}.admin-mobile-app .topbar #stage-primary,.admin-mobile-app .topbar #stage-college,.admin-mobile-app .global-search,.admin-mobile-app #refresh{display:none}.admin-mobile-app .admin-area{gap:13px}.admin-mobile-app .owner-message-grid{grid-template-columns:1fr}.teacher-app .calendar-grid{grid-template-columns:1fr;overflow:visible}}

/* The family view must fit the physical viewport, including long file names in Arabic RTL. */
.family-app,.family-app .workspace,.family-app .main,.family-app #content,.family-app .family-space,.family-app .teacher-message-grid,.family-app .teacher-message-card,.family-app .notice-main{min-width:0;max-width:100%}
.family-app .teacher-message-card h3,.family-app .teacher-message-card p,.family-app .notice-main strong,.family-app .notice-main p,.family-app .teacher-group-row{overflow-wrap:anywhere;word-break:normal}
.family-app .teacher-message-card{overflow:hidden;display:flex;flex-direction:column;gap:8px;padding:15px}
.family-app .teacher-message-card h3,.family-app .teacher-message-card p{margin:0}
.family-app .teacher-message-card>.button{align-self:flex-start;margin-top:5px}
.family-app .teacher-picture{display:block;width:100%;max-height:300px;aspect-ratio:16/9;object-fit:contain;background:#f5f1ee;border-radius:13px}
.family-file-count{align-self:flex-start;border-radius:20px;background:#fff1e7;color:#804117;padding:5px 10px;font-size:12px;font-weight:700}
.family-app .notice{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.family-app .notice-main{grid-column:1/-1}.family-app .notice .button{margin:0;min-width:0}
#detail-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;padding:clamp(16px,4vw,25px);margin:auto}
#detail-dialog *{box-sizing:border-box;min-width:0}#detail-dialog .dialog-head{align-items:flex-start;gap:12px}#detail-title{margin:0;min-width:0;flex:1;font-size:clamp(19px,5vw,25px);line-height:1.35;overflow-wrap:anywhere}
#dialog-close{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#f8f4f5;cursor:pointer}
#detail-body{min-width:0;overflow-wrap:anywhere}#detail-body .owner-message-full{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.family-message-date{display:block;color:#7b7880;margin-top:15px}.family-media-list{display:grid;gap:13px;margin:18px 0}
.family-media-item{min-width:0;padding:12px;background:#fbf9f8;border:1px solid #e9e0e2;border-radius:14px}.family-media-name{display:block;overflow-wrap:anywhere;font-size:13px;margin-bottom:10px}
.family-media-preview{display:grid;place-items:center;min-height:64px;color:#767682}.family-media-image,.family-media-video{display:block;width:100%;max-width:100%;max-height:min(55dvh,560px);object-fit:contain;border-radius:10px;background:#f1eeee}
.family-pdf-symbol{background:#f9e7e8;color:#822940;padding:17px;border-radius:10px;font-weight:800}.family-download{display:inline-flex;align-items:center;margin-top:12px;max-width:100%;text-decoration:none}
.install-app-button{border:1px solid #e5d7db;background:white;color:#672339;border-radius:10px;min-height:41px;padding:8px 12px;font-weight:700;cursor:pointer}
.install-guide{box-sizing:border-box;width:min(430px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.install-guide .dialog-head{gap:12px}.install-guide h2{font-size:20px;margin:0}.install-guide p{line-height:1.7;overflow-wrap:anywhere}
@media(max-width:700px){html,body{max-width:100%;overflow-x:hidden}.family-app .topbar{min-height:56px;flex-wrap:nowrap;gap:0}.family-app .topbar .school-switch{display:none}.family-app .top-actions{width:100%;flex:1;gap:7px;justify-content:space-between}.family-app #global-search,.family-app #refresh{display:none}.family-app .top-actions select{height:38px}.family-app .top-actions .bell{height:38px;width:38px}.family-app .avatar-button{height:38px;min-width:0;max-width:calc(100vw - 150px);overflow:hidden}.family-app #account-short{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:35vw}.family-app .teacher-section-head{align-items:stretch;font-size:23px;line-height:1.3}.family-app .teacher-section-head>.button{width:100%;white-space:normal;text-align:center}.family-app .notice{grid-template-columns:repeat(2,minmax(0,1fr))}.family-app .notice .button{width:100%;white-space:normal;font-size:12px}.family-app .sidebar .menu{overflow:visible;width:100%;gap:1px}.family-app .sidebar .nav{flex-direction:column;gap:2px;justify-content:center;text-align:center;font-size:10px;padding:5px 1px}.family-app .sidebar .nav span{font-size:20px}.family-app .sidebar .nav b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}#detail-dialog{border-radius:17px;max-height:calc(100dvh - 16px);width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:17px}#detail-body .button{white-space:normal}#detail-body .family-ack{width:100%}.login-area .install-app-button{width:100%;margin-top:12px}}

.draft-media-preview{grid-column:1/-1;min-width:0;margin-top:12px}.draft-media-card{display:grid;gap:8px;max-width:540px;padding:12px;border:1px solid #e7dbde;background:#faf7f5;border-radius:15px;overflow:hidden}.draft-media-card>strong,.draft-media-card>small{overflow-wrap:anywhere}.draft-media-card>small{color:#777582}.draft-media-image{display:block;max-width:100%;width:100%;max-height:340px;object-fit:contain;background:#f8f6f3;border-radius:10px}.draft-media-pdf{display:block;width:100%;height:320px;border:0;border-radius:9px;background:#f8f6f3}.draft-media-error{color:#b12d3e;font-weight:700;font-size:13px}.communication-pdf-cover{display:block;width:100%;height:100%;min-height:250px;border:0;background:#f8f6f3;pointer-events:none}.communication-pdf-fallback{font-size:30px;font-weight:900;color:#7b3048}.communication-media-state{display:inline-block;margin-top:12px;color:#706b73;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.owner-announcement-cover{min-width:0;overflow:hidden}.owner-pdf-preview{display:block;width:100%;height:min(55vh,520px);border:1px solid #e9e1e2;border-radius:10px;margin-top:10px;background:#f8f6f3}.communication-download{display:inline-flex;text-decoration:none;margin-top:10px}.owner-media-entry>strong{display:block;overflow-wrap:anywhere}
.family-media-pdf{display:block;width:100%;height:min(55dvh,480px);border:0;border-radius:9px;background:#f8f6f3}
@media(max-width:700px){.draft-media-pdf{height:250px}.communication-pdf-cover{min-height:180px}.owner-pdf-preview{height:300px}.family-media-pdf{height:330px}}
/* Private family messages: short composer, readable threads and mobile-first actions. */
.direct-space{display:grid;gap:18px;max-width:1180px;margin:auto}.direct-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 32px;border-radius:23px;color:#fff;background:radial-gradient(circle at 95% 5%,#955067 0 10%,transparent 11%),linear-gradient(125deg,#421a28,#71334b);box-shadow:0 17px 36px #4b1d2a16}.direct-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;text-transform:uppercase;color:#e9bc8a}.direct-hero h1{color:#fff;font-size:clamp(27px,3vw,39px);margin:7px 0}.direct-hero p{color:#f6e9e8;max-width:620px;margin:0;line-height:1.65}.direct-new{flex:0 0 auto;background:#fff!important;color:#4b1d2a!important;border-color:#fff!important;min-height:50px}.direct-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.direct-metric{background:#fff;border:1px solid #ede6e4;border-radius:15px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;color:#695961}.direct-metric strong{font-size:28px;color:#4b1d2a}.direct-thread{background:#fff;border:1px solid #e8dfdc;border-radius:19px;padding:18px;display:grid;gap:13px;box-shadow:0 10px 30px #4b1d2a0b}.direct-thread-heading{display:flex;align-items:center;gap:11px;padding:3px 2px 13px;border-bottom:1px solid #eee8e5;font-weight:800}.direct-thread-heading small{margin-inline-start:auto;color:#826f75}.direct-avatar{display:inline-grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#fceee8;color:#71364a;border-radius:14px;font-size:19px;font-weight:800}.direct-bubble{justify-self:end;max-width:min(800px,93%);min-width:190px;background:#f8f3f1;padding:16px 18px;border-radius:18px 18px 4px 18px;color:#26202a;overflow-wrap:anywhere}.direct-bubble p{white-space:pre-wrap;line-height:1.65;margin:0 0 7px}.direct-bubble>small{color:#806d73}.direct-delivery{color:#664454;font-size:12px;margin-top:10px}.direct-people{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.direct-people span,.direct-file,.direct-child{display:inline-flex;border-radius:9px;background:#fff;padding:7px 9px;font-size:12px;color:#634054;border:1px solid #eee4e4}.direct-picture{display:block;max-width:100%;max-height:350px;border-radius:13px;margin:12px 0;object-fit:contain}.direct-empty{padding:36px;text-align:center;background:#fff;border:1px dashed #ded1cf;border-radius:18px;color:#7c6770}.direct-composer textarea{min-height:145px;font-size:16px;line-height:1.6}.direct-recipient-hint{margin:0;color:#66505b;background:#f5f8ed;border-radius:10px;padding:11px 13px;font-size:13px}.direct-family{display:grid;gap:13px}.direct-family-head{padding:23px;border-radius:18px;background:linear-gradient(135deg,#4b1d2a,#743a50);color:#fff}.direct-family-head h1{font-size:clamp(24px,3vw,32px);color:#fff;margin:6px 0}.direct-family-head p{color:#f5e4e8;margin:0;line-height:1.5}.direct-family-card{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e9dedd;border-radius:18px;padding:18px;box-shadow:0 8px 28px #4b1d2a0a;min-width:0;overflow:hidden}.direct-family-card.new{border-inline-start:5px solid #f47a1f}.direct-family-card p{margin:0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.direct-family-card .button{align-self:flex-start;min-height:44px}.direct-family-top{display:flex;align-items:center;gap:10px;font-weight:800}.direct-family-top time{font-size:12px;color:#7b6d73;margin-inline-start:auto;font-weight:500}.direct-family-card .teacher-picture{width:100%;max-height:290px;object-fit:contain;background:#f6f1ee;border-radius:12px}
@media(max-width:700px){.direct-space{gap:11px}.direct-hero{padding:19px;display:block}.direct-hero .direct-new{width:100%;margin-top:16px;min-height:52px}.direct-hero h1{font-size:28px}.direct-summary{gap:8px}.direct-metric{padding:10px;font-size:11px;display:block}.direct-metric strong{display:block;font-size:22px}.direct-thread{padding:12px}.direct-bubble{max-width:100%;min-width:0}.direct-family-card{padding:15px}.direct-family-top{flex-wrap:wrap}.direct-family-top time{width:100%;margin-inline-start:52px}.direct-composer .form-grid{display:grid;grid-template-columns:1fr}.direct-composer .form-buttons{position:sticky;bottom:0;background:#fff;padding:11px 0;z-index:2}.family-app .sidebar .nav:nth-child(5),.family-app .sidebar .nav:nth-child(6){display:none}.admin-mobile-app .sidebar .nav:not([hidden]){width:auto;flex:1;min-width:0;padding:10px 5px;font-size:12px}.admin-mobile-app .main{padding:12px 12px 30px}.admin-mobile-app .topbar{padding:8px 12px}.admin-mobile-app .topbar .school-switch{display:none}.teacher-app .direct-hero{margin-top:2px}}
.direct-picker{position:relative;margin-bottom:14px}.direct-lookup{width:100%;border:1px solid #d9cacc;border-radius:12px;padding:14px 15px;font:inherit;font-size:16px;background:#fff;outline-color:#873f5b}.direct-matches{position:absolute;z-index:5;width:100%;max-height:245px;overflow:auto;background:#fff;box-shadow:0 15px 35px #4b1d2a22;border-radius:0 0 13px 13px}.direct-match{display:block;text-align:start;width:100%;padding:13px;border:0;background:#fff;color:#4b1d2a;cursor:pointer;border-bottom:1px solid #f1e8e7}.direct-match:hover,.direct-match:focus-visible{background:#f7f2ec}.direct-download{cursor:pointer;font:inherit;margin-top:7px}

/* Dedicated phone layouts for school staff. A short bottom navigation keeps messaging in reach. */
.teacher-mobile-shortcuts{display:none}
@media(max-width:700px){
 html,body,#app-view,.workspace,#content{max-width:100%;min-width:0;overflow-x:clip}
 .teacher-app,.admin-mobile-app,.app:not(.teacher-app):not(.family-app):not(.admin-mobile-app){display:block}
 .teacher-app .sidebar,.admin-mobile-app .sidebar{position:fixed;inset:auto 0 0;z-index:30;display:block;width:100%;height:auto;min-height:68px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-radius:19px 19px 0 0;box-shadow:0 -8px 32px #32131f33;background:#4b1d2a}
 .teacher-app .sidebar .brand,.admin-mobile-app .sidebar .brand,.teacher-app .sidebar .owner-tag,.admin-mobile-app .sidebar .owner-tag{display:none}
 .teacher-app .sidebar .menu,.admin-mobile-app .sidebar .menu{display:flex;align-items:stretch;justify-content:space-around;width:100%;max-width:100%;margin:0;gap:3px;overflow:visible}
 .teacher-app .sidebar .nav,.admin-mobile-app .sidebar .nav:not([hidden]){display:flex;flex:1 1 0;width:0;min-width:0;min-height:56px;margin:0;padding:5px 2px;flex-direction:column;justify-content:center;align-items:center;gap:2px;color:#f7ebed;border-radius:12px;text-align:center;font-size:11px}
 .teacher-app .sidebar .nav.active,.admin-mobile-app .sidebar .nav.active:not([hidden]){background:#fff4ed;color:#4b1d2a;box-shadow:none}
 .teacher-app .sidebar .nav span,.admin-mobile-app .sidebar .nav span{display:grid;place-items:center;width:24px;height:24px}
 .teacher-app .sidebar .nav b,.admin-mobile-app .sidebar .nav b{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.25;font-weight:700}
 .teacher-app .topbar,.admin-mobile-app .topbar{position:sticky;top:0;z-index:10;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:6px 13px 9px;background:#fff;border-bottom:1px solid #e7dfdc}
 .teacher-app .topbar .school-switch,.admin-mobile-app .topbar .school-switch{display:block;width:100%;min-width:0}
 .teacher-app .topbar .school-switch select,.admin-mobile-app .topbar .school-switch select{width:100%;max-width:100%;min-width:0;height:30px;border:0;background:transparent;padding:0 4px;color:#4b1d2a;font-size:13px;font-weight:800;text-overflow:ellipsis;appearance:none}
 .teacher-app .topbar .top-actions,.admin-mobile-app .topbar .top-actions{display:flex;width:100%;justify-content:flex-end;gap:7px;min-width:0}
 .teacher-app #global-search,.admin-mobile-app #global-search,.teacher-app #refresh,.admin-mobile-app #refresh,.teacher-app #install-app-top,.admin-mobile-app #install-app-top{display:none}
 .teacher-app .topbar .top-actions select,.admin-mobile-app .topbar .top-actions select,.teacher-app .topbar .bell,.admin-mobile-app .topbar .bell,.teacher-app .topbar .avatar-button,.admin-mobile-app .topbar .avatar-button{height:39px;min-height:39px;border-radius:11px}
 .teacher-app .topbar .bell,.admin-mobile-app .topbar .bell{width:39px;padding:0}
 .teacher-app .topbar .avatar-button,.admin-mobile-app .topbar .avatar-button{max-width:48px;min-width:39px;padding:4px;justify-content:center;overflow:hidden}
 .teacher-app #account-short,.admin-mobile-app #account-short{display:none}
 .teacher-app .main,.admin-mobile-app .main{width:100%;padding:15px 14px calc(104px + env(safe-area-inset-bottom))}
 .teacher-app .page-header,.admin-mobile-app .page-header{flex-wrap:wrap;align-items:start;gap:10px;margin-bottom:16px}
 .teacher-app .page-header h1,.admin-mobile-app .page-header h1{font-size:25px;line-height:1.3}
 .teacher-app .page-header .button,.admin-mobile-app .page-header .button{font-size:13px}
 .teacher-app .teacher-hero{padding:18px;border-radius:18px;box-shadow:0 8px 22px #204a3522}
 .teacher-app .teacher-hero h1{font-size:clamp(24px,7vw,30px);line-height:1.35;margin:7px 0}
 .teacher-app .teacher-hero p{font-size:13px;line-height:1.65;margin:0}
 .teacher-app .teacher-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
 .teacher-app .teacher-hero-actions .button{min-width:0;min-height:47px;font-size:12px;padding:9px 6px;line-height:1.4;white-space:normal}
 .teacher-app .teacher-hero-actions .button:first-child{grid-column:1/-1;font-size:14px}
 .teacher-mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .teacher-mobile-shortcuts .button{min-width:0;font-size:12px;padding:9px 6px;white-space:normal}
 .teacher-app .teacher-space{gap:13px;min-width:0}
 .teacher-app .teacher-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .teacher-app .teacher-metric{min-width:0;padding:9px 3px;border-radius:12px}
 .teacher-app .teacher-metric strong{font-size:22px}.teacher-app .teacher-metric span{font-size:10px;line-height:1.4}
 .teacher-app .teacher-section-head{display:flex;flex-direction:column;align-items:stretch;gap:10px;font-size:23px;line-height:1.4}
 .teacher-app .teacher-section-head>.button{width:100%}
 .teacher-app .teacher-tabs{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-inline:contain;padding:2px 0 10px}
 .teacher-app .teacher-tabs button{flex:0 0 auto;font-size:12px;padding:10px 12px}
 .teacher-app .teacher-class-banner{display:block;padding:15px;border-radius:16px}
 .teacher-app .teacher-class-banner>div:first-child{font-size:17px;line-height:1.4}
 .teacher-app .teacher-banner-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}
 .teacher-app .teacher-banner-actions .button{min-width:0;min-height:43px;font-size:12px;line-height:1.4}
 .teacher-app .teacher-banner-actions .button:last-child{grid-column:1/-1}
 .teacher-app .teacher-student-grid,.teacher-app .teacher-message-grid,.teacher-app .teacher-activity-grid,.admin-mobile-app .owner-message-grid{grid-template-columns:1fr;gap:11px}
 .teacher-app .teacher-student{padding:15px;border-radius:16px}
 .teacher-app .teacher-student-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .teacher-app .teacher-student-actions .button{min-width:0;min-height:43px;padding:7px 5px;font-size:11px;line-height:1.4;white-space:normal}
 .teacher-app .teacher-message-card,.admin-mobile-app .owner-announcement-body{padding:15px}
 .admin-mobile-app .admin-area{gap:12px}.admin-mobile-app .direct-space{gap:12px}
 .admin-mobile-app .direct-hero{padding:19px;border-radius:18px}
 .admin-mobile-app .direct-hero h1{font-size:25px;line-height:1.3}
 .admin-mobile-app .direct-hero p{font-size:13px;line-height:1.6}
 .admin-mobile-app .owner-announcement-cover,.admin-mobile-app .owner-announcement-art{height:165px}
 .teacher-app .direct-bubble,.admin-mobile-app .direct-bubble{width:100%;max-width:100%}
 .teacher-app .direct-new,.admin-mobile-app .direct-new{min-height:48px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar{height:auto;min-height:0;padding:7px 10px;display:block;overflow:hidden}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar .brand,.app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar .owner-tag{display:none}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar .menu{display:flex;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:5px;margin:0;scrollbar-width:thin}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar .nav{flex:0 0 auto;width:auto;max-width:154px;min-height:45px;margin:0;padding:8px 10px;gap:6px;white-space:nowrap;font-size:12px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .sidebar .nav b{display:block;overflow:hidden;text-overflow:ellipsis}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .topbar{display:flex;min-height:52px;flex-wrap:nowrap;padding:7px 11px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .topbar .school-switch{min-width:0;flex:1}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .topbar .school-switch select{min-width:0;max-width:100%;width:100%;font-size:12px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .topbar .top-actions{width:auto;flex:0 0 auto;gap:5px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) #global-search,.app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) #refresh,.app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) #install-app-top{display:none}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) .topbar .avatar-button{min-width:39px;width:39px;overflow:hidden;padding:4px}
 .app:not(.teacher-app):not(.family-app):not(.admin-mobile-app) #account-short{display:none}
 .teacher-app .topbar .school-switch select:disabled,.admin-mobile-app .topbar .school-switch select:disabled{opacity:1;-webkit-text-fill-color:#4b1d2a}
}
/* Overview: readable school context and actionable counts on desktop. */
@media (min-width:701px){
 .app:not(.teacher-app):not(.family-app) .topbar{display:grid;grid-template-columns:minmax(270px,1fr) auto;gap:12px 20px;align-items:center}
 .app:not(.teacher-app):not(.family-app) .topbar .school-switch{min-width:0;width:100%;gap:8px}
 .app:not(.teacher-app):not(.family-app) .topbar .school-switch select{width:clamp(220px,25vw,370px);max-width:100%;flex:0 1 370px;text-overflow:ellipsis}
 .app:not(.teacher-app):not(.family-app) .topbar .top-actions{min-width:0;gap:7px}
 .app:not(.teacher-app):not(.family-app) .topbar .top-actions input{width:clamp(145px,17vw,280px);min-width:130px;flex:0 1 280px}
 .app:not(.teacher-app):not(.family-app) .topbar .stage-button{flex:0 0 auto}
}
@media (min-width:701px) and (max-width:1420px){
 .app:not(.teacher-app):not(.family-app) .topbar{grid-template-columns:minmax(0,1fr)}
 .app:not(.teacher-app):not(.family-app) .topbar .top-actions{justify-content:flex-start;width:100%}
 .app:not(.teacher-app):not(.family-app) .topbar .top-actions input{flex:1;max-width:430px}
}
.dashboard-stat-link{border:0;background:transparent;color:inherit;min-width:0;flex:1;text-align:center;padding:2px 4px;border-inline-end:1px solid #00000011}
.dashboard-stat-link:last-child{border-inline-end:0}.dashboard-stat-link:hover{text-decoration:underline;text-underline-offset:3px}
.dashboard-footnote{font-size:11px;color:#697081;margin:-5px 0 10px;line-height:1.45}
.attendance-row strong{font-size:13px;line-height:1.35;max-width:135px}.secondary-grid .panel>.button{margin-top:12px}
/* School directory and pupil record: keep real rosters prominent and family details readable. */
.school-directory{grid-template-columns:minmax(0,1.3fr) minmax(310px,.7fr)}
.school-directory>.directory-school:only-child{grid-column:1/-1}
.directory-count-hint{font-size:11px;color:#747985;margin:-13px 0 17px}
.directory-stage summary{list-style:none;cursor:pointer}.directory-stage summary::-webkit-details-marker{display:none}
.directory-stage summary:after{content:'⌄';margin-inline-start:8px;color:#6f3446;font-size:18px}
.directory-stage[open] summary:after{content:'⌃'}
.directory-stage-heading .stage-count{margin-inline-start:auto;color:#737a84;font-weight:650;font-size:11px;text-align:end}
.directory-stage-empty{background:#fbfaf8;border-color:#eee7e3}.directory-stage-empty .directory-stage-heading{margin-bottom:0}
.directory-stage-empty[open] .directory-stage-heading{margin-bottom:11px}
.class-tile-empty{border-style:dashed;color:#777984}.class-tile-empty span{color:#8b8c94}
.record-columns{grid-template-columns:minmax(0,1.4fr) minmax(320px,.95fr)}
.record-column,.record-panel,.family-entry,.family-info{min-width:0}
.family-entry{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:9px 12px;padding:16px 0}
.family-entry .pupil-mark{grid-column:1;grid-row:1;align-self:start}
.family-info{grid-column:2;grid-row:1;width:100%;overflow-wrap:break-word;word-break:normal}
.family-info strong,.family-info small{display:block;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.5}
.family-info strong{font-size:13px}.family-info small{font-size:11px}
.family-account-state{font-weight:700;color:#6b784e!important}
.family-actions{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;gap:6px;width:100%;min-width:0}
.family-actions .button{white-space:normal;overflow-wrap:break-word;min-height:36px}
.record-progress .button{margin-inline-start:auto}
.openable-pupil{cursor:pointer}.openable-pupil:hover strong{text-decoration:underline;text-underline-offset:3px}.openable-pupil:focus-visible{outline:2px solid #71334b;border-radius:4px}
@media(max-width:1150px){.school-directory,.record-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.family-actions{grid-column:1/-1}.record-progress .button{width:100%;margin:0}.directory-school{padding:15px}}
/* People directory: compact, readable rows and distinct family records. */
.people-directory{min-width:0}.people-page-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.people-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 10px}.people-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:88px;padding:17px 20px;border:1px solid #e8e1df;border-inline-start:4px solid #8aba2c;border-radius:16px;background:#fff;color:#253045;text-align:start;cursor:pointer;box-shadow:0 7px 20px #3d172008}.people-metric:nth-child(2){border-inline-start-color:#fa7b1a}.people-metric:nth-child(3){border-inline-start-color:#71334b}.people-metric strong{font-size:29px;color:#5a1d32;line-height:1}.people-metric span{font-size:13px;font-weight:650}.people-metric:hover,.people-row:hover{border-color:#c9aab4;box-shadow:0 10px 24px #3d172012}.people-count-note{color:#737985;font-size:12px;line-height:1.5;margin:0 0 18px}.people-tabs{display:flex;gap:7px;border-bottom:1px solid #e8e1df;margin:12px 0 16px}.people-tabs button{border:0;background:transparent;padding:12px 19px;color:#64707d;font-weight:750;cursor:pointer;border-bottom:3px solid transparent}.people-tabs button.active{color:#5a1d32;border-bottom-color:#f47c20}.people-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;background:#fff;border:1px solid #ece5e3;border-radius:16px;margin:0 0 12px}.people-controls .people-search{flex:2 1 270px;min-width:180px;min-height:45px;border:1px solid #e4dad8;border-radius:10px;padding:10px 13px;background:#fbfaf9;color:#252b38;font:inherit}.people-controls label{flex:1 1 155px;min-width:145px;margin:0}.people-results{font-size:13px;font-weight:700;color:#6d7480;margin:12px 2px}.people-list{display:grid;gap:8px}.people-row{display:grid;grid-template-columns:36px minmax(190px,1fr) auto auto;align-items:center;gap:14px;background:#fff;border:1px solid #eae3e1;border-radius:14px;padding:14px 16px;min-width:0;box-shadow:0 3px 14px #3d172006}.people-row>.pupil-mark{align-self:start}.people-main{min-width:0;overflow-wrap:anywhere}.people-main strong{display:block;color:#202434;font-size:14px;margin-bottom:3px}.people-main small{display:block;color:#727987;font-size:11px;line-height:1.5}.people-status{white-space:nowrap;border-radius:999px;padding:6px 10px;background:#eef6e8;color:#4d7828;font-size:11px;font-weight:750}.people-status.needs-details{background:#fff2e7;color:#a65313}.people-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:330px}.people-row-actions .button{font-size:11px;padding:8px 10px;min-height:34px}.people-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0}.people-pager span{font-size:13px;font-weight:700;color:#665563}.people-guardian-heading{display:flex;align-items:center;gap:12px;padding:10px 0 20px;border-bottom:1px solid #eee6e3}.people-guardian-heading strong,.people-child-row strong{display:block}.people-guardian-heading small,.people-child-row small{display:block;color:#757b87;font-size:12px;line-height:1.5}.people-guardian-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.people-children-title{font-size:18px;margin:0 0 12px}.people-child-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eee8e6}.people-child-row .button{font-size:12px}
@media(max-width:1000px){.people-row{grid-template-columns:36px minmax(0,1fr) auto}.people-row-actions{grid-column:2/-1;justify-content:flex-start;max-width:none}}
@media(max-width:650px){.people-page-actions .button{flex:1 1 auto}.people-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.people-metric{min-height:82px;padding:12px;flex-direction:column;align-items:flex-start;gap:7px}.people-metric strong{font-size:24px}.people-metric span{font-size:11px}.people-metrics .people-metric:last-child{grid-column:1/-1;flex-direction:row;align-items:center}.people-controls{padding:10px}.people-controls .people-search{flex-basis:100%}.people-controls label{flex:1 1 calc(50% - 10px);min-width:120px}.people-row{grid-template-columns:32px minmax(0,1fr);gap:9px;padding:13px}.people-row>.pupil-mark{width:32px;height:32px}.people-status{grid-column:2;justify-self:start}.people-row-actions{grid-column:1/-1;justify-content:flex-start;margin-top:3px}.people-row-actions .button{flex:1 1 auto}.people-child-row{grid-template-columns:32px minmax(0,1fr)}.people-child-row .button{grid-column:2;justify-self:start}}
/* Teacher directory: discover people first, expand teaching assignments in the record. */
.teacher-count-note{font-size:12px;color:#747985;line-height:1.5;margin:-7px 0 15px}.teacher-filters{flex-wrap:wrap;align-items:end;padding:13px;background:#fff;border:1px solid #ebe3e2;border-radius:15px}.teacher-filters .teacher-search{flex:2 1 100%;width:100%;min-height:44px;border:1px solid #e4dadb;border-radius:9px;padding:9px 13px;background:#fbfaf9;font:inherit;color:#202538}.teacher-filters .form-field{flex:1 1 180px;min-width:155px}.teacher-team-section{margin:22px 0 27px}.teacher-team-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding-inline-start:12px;border-inline-start:4px solid #f47a1f}.teacher-team-heading h2{margin:0;font-size:18px;color:#36212b}.teacher-team-heading span{font-size:12px;font-weight:700;color:#7b6971}.teacher-compact-card{gap:12px}.teacher-compact-actions{padding-top:5px}.teacher-compact-actions .button{flex:1 1 auto}.teacher-detail .teacher-count-note{margin:8px 0 0}
@media(max-width:650px){.teacher-filters{gap:8px}.teacher-filters .form-field{flex:1 1 calc(50% - 8px);min-width:130px}.teacher-team-heading h2{font-size:15px}.teacher-compact-card{padding:16px}}
/* Direct contact directory keeps family information and actions above message history. */
.direct-directory-lead{margin:23px 0 12px}.direct-directory-lead>div{font-size:19px;font-weight:800;color:#321f2b}.direct-directory-lead p{font-size:13px;color:#74727d;margin:5px 0 0}.direct-directory-filters{display:flex;gap:10px;padding:12px;border:1px solid #e9dfe0;background:white;border-radius:15px}.direct-directory-search,.direct-account-filter{font:inherit;border:1px solid #e8dcde;border-radius:10px;background:#fcfaf9;min-height:46px;padding:9px 13px;color:#2f2631}.direct-directory-search{flex:1;min-width:0}.direct-account-filter{width:195px}.direct-directory-count{color:#6c6f7b;font-size:12px;font-weight:700;margin:12px 2px}.direct-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.direct-family-card{background:#fff;border:1px solid #eadfe1;border-radius:17px;padding:16px;min-width:0;box-shadow:0 5px 20px #4b1d2a08}.direct-family-head{display:flex;align-items:center;gap:10px;min-width:0}.direct-family-identity{min-width:0;flex:1}.direct-family-identity strong,.direct-family-identity small{display:block;overflow-wrap:anywhere}.direct-family-identity strong{font-size:15px;color:#292534}.direct-family-identity small{font-size:12px;color:#777986;margin-top:3px}.direct-family-account{font-size:10px;font-weight:750;color:#a4652b;background:#fff4e7;padding:6px 9px;border-radius:20px;white-space:nowrap}.direct-family-account.active{color:#3d7627;background:#eef8e9}.direct-family-children{border-block:1px solid #f0e9e9;margin:14px 0;padding:3px 0}.direct-family-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0}.direct-family-child+.direct-family-child{border-top:1px solid #f4eeee}.direct-family-child strong,.direct-family-child small{grid-column:1;display:block}.direct-family-child strong{font-size:13px}.direct-family-child small{font-size:11px;color:#757986;line-height:1.5}.direct-family-child .button{grid-column:2;grid-row:1/3;font-size:11px;padding:8px}.direct-family-actions{display:flex;flex-wrap:wrap;gap:6px}.direct-family-actions .button{min-height:38px;font-size:11px;padding:9px 11px;text-align:center}.direct-contact-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.direct-family-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:19px 0 30px}.direct-history{margin-top:32px;border-top:1px solid #e7dddf;padding-top:18px}.direct-history h2{font-size:19px;margin:0 0 12px;color:#3f2431}
@media(max-width:1050px){.direct-family-grid{grid-template-columns:1fr}}
@media(max-width:700px){.direct-hero{padding:22px 18px}.direct-hero h1{font-size:26px}.direct-hero .direct-new{width:100%}.direct-directory-filters{flex-direction:column;padding:10px}.direct-account-filter{width:100%}.direct-family-card{padding:14px}.direct-family-head{flex-wrap:wrap}.direct-family-account{margin-inline-start:auto}.direct-family-actions .button{flex:1 1 calc(50% - 6px)}.direct-family-actions .button:last-child{flex-basis:100%}.direct-family-child{grid-template-columns:minmax(0,1fr)}.direct-family-child .button{grid-column:1;grid-row:auto;justify-self:start}}
.publication-space{max-width:1480px;margin:auto}.publication-toolbar{display:flex;gap:8px;overflow:auto;padding:4px 0 16px;margin:8px 0 10px;scrollbar-width:thin}.publication-toolbar button{border:1px solid #e6d9dc;background:#fff;color:#5b2435;padding:11px 16px;border-radius:12px;white-space:nowrap;font-weight:700}.publication-toolbar button.active{background:#5b2435;color:#fff;border-color:#5b2435}.publication-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:20px;align-items:stretch}.publication-card{min-width:0;background:#fff;border:1px solid #e8dddc;border-radius:22px;overflow:hidden;box-shadow:0 12px 32px #4b1d2a0a;display:flex;flex-direction:column}.publication-visual{height:190px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f4e8e9,#fbf6f0);overflow:hidden}.publication-visual.event,.publication-visual.invitation{background:linear-gradient(145deg,#f8efe1,#f3f7e9)}.publication-visual.internal{background:linear-gradient(145deg,#eaf1f5,#f8f4f6)}.publication-visual>img,.publication-visual>iframe{width:100%;height:100%;object-fit:cover;border:0}.publication-symbol{font-size:54px;color:#7a364a}.publication-body{padding:21px;display:flex;flex-direction:column;gap:9px;flex:1}.publication-body h2{font-size:20px;line-height:1.3;margin:0;color:#241b24}.publication-body p{line-height:1.55;color:#655d63;margin:0;overflow-wrap:anywhere}.publication-meta{font-size:12px;color:#8a6671;font-weight:700}.publication-target{color:#526144;font-weight:700;line-height:1.45}.publication-deadline{color:#ac6136}.publication-reach{display:flex;align-items:center;gap:9px;margin-top:auto;padding-top:12px;border-top:1px solid #f0e7e8;color:#674c56}.publication-reach strong{font-size:19px;color:#4b1d2a}.publication-reach span{font-size:12px}.publication-file{font-size:12px;color:#716070}.publication-actions{display:flex;gap:8px;flex-wrap:wrap}.publication-actions button{min-height:40px}.publication-empty{border:1px dashed #e5d4d9;border-radius:18px;padding:38px;text-align:center;color:#796a73;background:#fff}.publication-group-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:230px;overflow:auto;padding:8px}.publication-group-option{display:flex;gap:8px;align-items:center;border:1px solid #e9dede;background:#fbf9f7;border-radius:10px;padding:9px 11px;font-size:13px;cursor:pointer}.publication-group-option input{width:auto;accent-color:#5b2435}.publication-attendance{background:#fff;border:1px solid #e8dddc;border-radius:20px;padding:22px}.publication-attendance h2{margin:0 0 16px}.publication-attendance-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #eee7e8}.publication-attendance-row div{font-weight:700}.publication-attendance-row small{color:#746d70}.family-message-deadline,.family-linked-event{background:#fff5e8;border-radius:12px;padding:12px;color:#633c25}.family-linked-event{display:grid;gap:5px}@media(max-width:700px){.publication-space{padding:0}.publication-space .page-header{align-items:flex-start;gap:12px}.publication-grid{grid-template-columns:1fr;gap:14px}.publication-visual{height:168px}.publication-body{padding:18px}.publication-attendance-row{flex-wrap:wrap}.publication-attendance-row button{width:100%}.publication-group-list{grid-template-columns:1fr}}
.family-event-permission{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #eadfe0;border-radius:12px;margin:8px 0}.family-event-permission strong{margin-inline-end:auto}.family-event-permission button{min-height:38px}

/* Family space: four clear destinations and compact, readable cards. */
.family-app .family-space{max-width:1060px;margin-inline:auto;gap:16px}.family-app .family-hero{padding:24px 28px;box-shadow:none}.family-app .family-hero h1{margin:8px 0 1px}.family-greeting-name{font-size:18px;font-weight:700;margin:0 0 8px!important;overflow-wrap:anywhere}.family-app .family-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.family-app .family-quick-card{padding:15px;min-height:72px;font-size:14px;line-height:1.35}.family-home-children,.family-home-feed{padding:19px}.family-home-children h2,.family-home-feed h2{margin:0 0 8px;font-size:20px}.family-feed-row{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-top:1px solid #eee8e4;padding:13px 3px;background:transparent;text-align:start;color:#30232c;cursor:pointer}.family-feed-row strong{font-size:14px;overflow-wrap:anywhere}.family-feed-row small{color:#817780;font-size:11px}.family-feed-type{font-size:11px;border-radius:20px;padding:5px 8px;color:#6b3445;background:#f9edef;white-space:nowrap}.family-page-heading h1{font-size:clamp(24px,3vw,32px);margin:0 0 4px}.family-page-heading p{color:#746d75;margin:0}.family-message-tabs{display:flex;gap:8px;background:#f4edeb;border-radius:14px;padding:5px}.family-message-tabs button{flex:1;min-height:44px;border:0;border-radius:10px;background:transparent;color:#61404a;font:inherit;font-weight:750;cursor:pointer}.family-message-tabs button.active{background:#fff;color:#4b1d2a;box-shadow:0 2px 12px #4b1d2a13}.family-teacher-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}.family-teacher-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 10px;align-items:center;padding:9px;background:#faf8f5;border:1px solid #eee5e1;border-radius:12px}.family-teacher-avatar{grid-row:1/3;display:grid;place-items:center;background:#f4e6df;color:#6b3143;border-radius:10px;width:36px;height:36px;font-weight:800}.family-teacher-row strong{font-size:13px;overflow-wrap:anywhere}.family-teacher-row small{font-size:11px;color:#797078}.family-soft-empty{color:#7c7479;font-size:13px;background:#faf8f5;border-radius:10px;padding:12px}.family-app .direct-family-card{padding:16px}.calendar-item.has-exam{border-color:#f67923}.calendar-exam-inline{border:1px solid #f4c49f;background:#fff6ed;border-radius:9px;margin-top:9px;padding:8px;color:#843f14}.calendar-exam-inline strong{font-size:12px}.calendar-exam-inline small{font-size:11px;color:#805438}.calendar-subject{font-weight:700;color:#466240!important}
@media(max-width:700px){.family-app .main{padding:12px 12px calc(90px + env(safe-area-inset-bottom))}.family-app .family-space{gap:12px}.family-app .family-hero{padding:17px 18px;border-radius:17px}.family-app .family-hero h1{font-size:24px}.family-app .family-hero>p:last-child{font-size:13px;margin:4px 0 0}.family-greeting-name{font-size:15px!important}.family-app .family-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.family-app .family-quick-card{padding:12px;min-height:60px;font-size:13px}.family-home-children,.family-home-feed{padding:15px}.family-feed-row{grid-template-columns:auto minmax(0,1fr)}.family-feed-row small{grid-column:2}.family-app .sidebar .menu{overflow:visible}.family-app .sidebar .nav{display:grid;justify-items:center;align-content:center;min-width:0;flex:1}.family-app .sidebar .nav:nth-child(5),.family-app .sidebar .nav:nth-child(6){display:grid}.family-app .sidebar .nav b{font-size:10px;line-height:1.1;white-space:normal;overflow:visible}.family-app .sidebar .nav span{font-size:18px}.family-message-tabs{gap:4px}.family-message-tabs button{font-size:12px;padding:8px 4px}.family-app .direct-family-head{padding:0;background:none;color:#29232a}.family-app .direct-family-head h1{color:#29232a}.family-app .direct-family-head p{color:#716d72}.family-app .calendar-heading{padding:17px 18px;border-radius:17px;box-shadow:none}.family-app .calendar-title{font-size:24px}.family-app .calendar-toolbar{display:grid;gap:9px}.family-app .calendar-week-control{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}.family-app .calendar-week-control strong{font-size:13px}.family-app .calendar-week-control .calendar-today{grid-column:1/-1}.family-app .calendar-day-picker{scrollbar-width:none;gap:6px}.family-app .calendar-day-picker button{min-width:76px;padding:9px 5px;font-size:12px}.family-app .calendar-day{min-height:0}.family-app .calendar-summary{padding:12px 14px}.family-app .teacher-message-card{padding:14px}.family-app .family-study-card{padding:15px}.family-app .family-study-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.family-app .family-study-actions .button{font-size:12px;padding:10px 6px;white-space:normal}.family-app .family-study-actions .button:first-child{grid-column:1/-1}}
.family-news-category{display:inline-flex;align-self:flex-start;border-radius:30px;padding:6px 10px;background:#fff0e7;color:#813e24;font-size:11px;font-weight:800}.family-event-date{font-weight:700;color:#6e4d37}.family-attendance-state.absent{background:#fff0ed;color:#9c372e}
.family-app .calendar-grid,.teacher-app .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));overflow:visible;align-items:start}.family-app .calendar-day,.teacher-app .calendar-day{min-height:110px;padding:10px}.family-app .calendar-day h3,.teacher-app .calendar-day h3{line-height:1.35;margin-bottom:8px}.family-app .calendar-item,.teacher-app .calendar-item{padding:9px 7px}.family-app .calendar-item strong,.teacher-app .calendar-item strong{font-size:12px}.calendar-time-range{font-weight:800;color:#51353e!important}.calendar-teacher{overflow-wrap:anywhere}.calendar-form-help{margin:10px 0 0;background:#f4f7ec;border-radius:11px;padding:10px 13px;color:#475c42;font-size:12px;line-height:1.5}
@media (min-width:901px) and (max-width:1350px){.family-app .calendar-grid,.teacher-app .calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.family-app .calendar-grid,.teacher-app .calendar-grid{grid-template-columns:1fr}.family-app .calendar-day,.teacher-app .calendar-day{display:block!important;min-height:0;padding:12px 14px}.family-app .calendar-day h3,.teacher-app .calendar-day h3{font-size:15px}.family-app .calendar-day-empty,.teacher-app .calendar-day-empty{padding:2px;font-size:12px}.family-app .calendar-day .calendar-item,.teacher-app .calendar-day .calendar-item{display:inline-flex;flex-direction:column;vertical-align:top;width:calc(50% - 5px);margin-inline-end:5px;min-height:105px}.family-app .calendar-week-control,.teacher-app .calendar-week-control{max-width:100%}.family-app .family-message-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.family-app .family-message-tabs button{min-width:0;white-space:normal;line-height:1.35}}
@media(max-width:430px){.family-app .calendar-day .calendar-item,.teacher-app .calendar-day .calendar-item{width:100%;min-height:0;margin-inline-end:0}.family-app .calendar-day-empty{padding:2px}.family-app .calendar-summary{display:block}.family-app .calendar-grid{gap:8px}}
/* Account directory and linked-person search. */
.owner-access-search{display:block;width:min(100%,620px);min-height:46px;padding:11px 15px;margin:0 0 18px;border:1px solid #e6d9dd;border-radius:13px;background:#fff;color:#30252b;font:inherit}
.access-person-search{margin:7px 0}.access-person-search input{width:100%;min-height:43px;padding:9px 12px;border:1px solid #e6d9dd;border-radius:10px;background:#fff;font:inherit}.access-person-detail{font-size:12px;line-height:1.5;color:#594956;margin-top:7px}.access-person-detail p{margin:5px 0 0}.owner-account-card[hidden],.owner-pending-item[hidden]{display:none}
/* Teacher dashboard: timetable first, with an explicit roll-call state. */
.teacher-app .teacher-hero{padding:25px 30px}.teacher-app .teacher-hero h1{margin:8px 0 5px}.teacher-app .teacher-hero-actions{margin-top:18px}
.teacher-app .teacher-group-row{grid-template-columns:58px minmax(0,1fr) 20px;gap:13px;padding:13px 5px;cursor:pointer}
.teacher-app .teacher-group-mark{width:55px;height:42px;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.teacher-group-info{display:grid;gap:3px;min-width:0}.teacher-group-info strong,.teacher-group-info small{overflow-wrap:anywhere}.teacher-group-info .teacher-attendance-label{color:#aa6533;font-weight:700}
.teacher-group-row.cancelled{opacity:.68}.teacher-group-row.cancelled .teacher-group-info strong{text-decoration:line-through}
.teacher-all-classes{border:0;background:#edf5e9;color:#285941;padding:11px 14px;border-radius:11px;font:inherit;font-weight:800;cursor:pointer;margin-top:14px}
.teacher-app .teacher-surface{align-self:start}.teacher-app .teacher-empty{line-height:1.6}
@media(max-width:700px){.teacher-app .teacher-hero{padding:17px 18px}.teacher-app .teacher-hero p{display:none}.teacher-app .teacher-hero h1{font-size:24px}.teacher-app .teacher-metric{display:grid;justify-items:center;text-align:center;gap:3px}.teacher-app .teacher-columns{grid-template-columns:1fr}.teacher-app .teacher-surface{padding:17px}.teacher-app .teacher-group-row{grid-template-columns:50px minmax(0,1fr) 16px;gap:9px}.teacher-app .teacher-group-mark{width:48px}.teacher-app .teacher-group-info strong{font-size:13px}.teacher-app .teacher-group-info small{font-size:11px}}
/* Exam handouts stay within the day card on small screens. */
.calendar-event-image{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#f7f3f1;margin:10px 0}
.calendar-item .calendar-link{max-width:100%;overflow-wrap:anywhere;text-align:start}
.calendar-source{min-width:0;border:1px solid #e6e0da;border-radius:20px;background:#fff;padding:18px;box-shadow:0 8px 28px #3c283308}.calendar-source-heading{font-size:18px;font-weight:800;color:#59283e}.calendar-source-note{display:block;color:#67636a;line-height:1.6;margin:7px 0 12px}.calendar-source-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:15px}.calendar-source-document{min-width:0;border:1px solid #ede7e1;border-radius:15px;padding:12px;background:#fcfaf8}.calendar-source-document>strong{display:block;margin-bottom:8px}.calendar-source-image{display:block;overflow:hidden;border-radius:9px;background:#f3f2ee}.calendar-source-image img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;object-position:top center}.calendar-source-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.calendar-source-actions .button{font-size:13px;text-decoration:none;padding:10px 13px;white-space:normal}.teacher-app .calendar-source-heading{color:#27543c}@media(max-width:700px){.calendar-source{padding:13px;border-radius:16px}.calendar-source-image img{max-height:340px}.calendar-source-actions{display:grid;grid-template-columns:1fr 1fr}.calendar-source-actions .button{text-align:center;padding:10px 7px;font-size:12px}}
.calendar-source:not([open]){padding:13px 18px;box-shadow:none}.calendar-source-heading{cursor:pointer;list-style:none;font-size:14px}.calendar-source-heading::after{content:'⌄';float:inline-end}.calendar-source[open] .calendar-source-heading{margin-bottom:13px}.calendar-activities{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:5px}.calendar-activities li{font-size:12px;line-height:1.35;padding:5px 7px;border-radius:7px;background:#fff;color:#352e36;overflow-wrap:anywhere}.calendar-item.has-exam{border-color:#ed7a21;box-shadow:0 0 0 2px #f8ddbf}.calendar-item.activity,.calendar-item.meeting{font-weight:600}.family-app .calendar-grid,.teacher-app .calendar-grid{grid-template-columns:repeat(7,minmax(175px,1fr));overflow-x:auto;padding-bottom:7px;scroll-snap-type:x proximity}.family-app .calendar-day,.teacher-app .calendar-day{scroll-snap-align:start}.calendar-day h3{font-size:15px;font-weight:800}.calendar-hour{font-variant-numeric:tabular-nums}.calendar-item-head{align-items:center}.calendar-item .calendar-time-range{font-size:12px}@media(max-width:900px){.family-app .calendar-grid,.teacher-app .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(200px,1fr));width:100%;overflow-x:auto}.family-app .calendar-day,.teacher-app .calendar-day{display:block!important;min-height:230px}.family-app .calendar-day .calendar-item,.teacher-app .calendar-day .calendar-item{display:block;width:100%;min-height:0;margin-inline-end:0}.calendar-activities li{font-size:13px}}
/* Teacher activity layout: clear actions and compact controls on every screen. */
.teacher-app .teacher-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.teacher-app .teacher-section-head>.button,.teacher-app .teacher-activity-actions .button{width:auto;min-height:40px;padding:9px 14px;font-size:13px;line-height:1.25;white-space:normal}
.teacher-activity-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.teacher-activity-intro{margin:-12px 0 0;color:#67716d;font-size:14px}
.teacher-activity-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #dce7de;padding-bottom:10px}
.teacher-activity-tabs button{border:1px solid #dce7de;border-radius:12px;background:#fff;color:#245246;padding:9px 14px;font-weight:700;cursor:pointer}
.teacher-activity-tabs button.active{background:#e8f4e4;border-color:#9cc88d}
.teacher-activity-toolbar select{max-width:360px;width:100%;min-height:42px;border:1px solid #dce7de;border-radius:11px;padding:8px 12px;background:#fff;color:#203a34}
.teacher-work-card{min-width:0;overflow:hidden}.teacher-work-card h3{margin:10px 0 7px}.teacher-work-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#69746f;font-size:12px}.teacher-work-type{border-radius:50px;background:#edf7e8;color:#245b3a;padding:5px 10px;font-weight:700}.teacher-work-group{font-weight:650;color:#254d42}.teacher-work-description{white-space:pre-wrap;line-height:1.5}.teacher-work-empty{padding:36px 20px;border:1px dashed #c9dbce;border-radius:16px;text-align:center;background:#fff}.teacher-work-empty strong{display:block;font-size:18px;color:#21483b}.teacher-work-empty p{color:#6b7670}.teacher-work-empty .button{font-size:13px}
@media(max-width:700px){.teacher-app .teacher-section-head{align-items:flex-start}.teacher-app .teacher-section-head>.button{width:auto}.teacher-activity-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-app .teacher-activity-actions .button{width:100%;min-height:44px;padding:9px 7px;font-size:12px}.teacher-activity-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-activity-tabs button{font-size:12px;padding:9px 5px}.teacher-activity-toolbar select{max-width:none}.teacher-app .teacher-hero-actions .button{font-size:12px}}
