:root{--ink:#172033;--muted:#6b7280;--brand:#2956d8;--brand2:#173ba8;--bg:#f5f7fb;--line:#e5e9f2;--white:#fff;--green:#0f9d70}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--ink);background:var(--bg)}a{color:var(--brand);text-decoration:none}.top{height:70px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{font-weight:850;font-size:1.2rem;color:var(--ink)}nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}nav a,.linkbtn{font-size:.92rem;color:#35405a}.inline{display:inline}.linkbtn{background:none;border:0;cursor:pointer}.btn{display:inline-block;border:0;border-radius:12px;background:var(--brand);color:#fff;padding:13px 19px;font-weight:750;cursor:pointer}.btn:hover{background:var(--brand2)}.btn.small{padding:9px 13px;border-radius:9px}.btn.ghost{background:transparent;color:var(--brand);border:1px solid #b9c6ef}.btn.light{background:#fff;color:var(--brand)}.btn.wide{width:100%}.badge{background:#e11d48;color:#fff;border-radius:20px;font-size:.7rem;padding:2px 6px;margin-left:4px}.hero{min-height:550px;display:grid;grid-template-columns:1.3fr .7fr;gap:50px;align-items:center;padding:70px max(6vw,30px);background:linear-gradient(135deg,#eef3ff,#fff)}.hero h1{font-size:clamp(2.5rem,6vw,5.2rem);line-height:.98;margin:12px 0 22px;letter-spacing:-.055em;max-width:850px}.hero p{font-size:1.1rem;color:var(--muted);line-height:1.7;max-width:700px}.eyebrow{font-size:.76rem;font-weight:850;letter-spacing:.13em;color:var(--brand)}.actions{display:flex;gap:12px;margin-top:28px}.hero-card{background:#172033;color:#fff;border-radius:26px;padding:34px;box-shadow:0 30px 60px #29416d20}.hero-card strong{font-size:4rem;display:block;margin-top:16px}.hero-card span{color:#cad3e7}.mini{color:#9eb4f0;font-weight:700}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:32px;padding-top:22px;border-top:1px solid #35405a}.metric-row b,.metric-row small{display:block}.metric-row b{font-size:1.5rem}.section,.page{padding:55px max(6vw,30px)}.section.alt{background:#fff}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 22px}.section-head h2,.section-head h3{margin:0}.section-head.tight{align-items:center;margin-bottom:12px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.cards.compact{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:0 6px 20px #253b6410}.person{text-align:center}.plain{color:inherit}.avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#e9eeff;color:var(--brand);font-weight:850;font-size:1.4rem;margin:0 auto 12px}.avatar.big{width:84px;height:84px;font-size:2rem}.avatar.sm{width:42px;height:42px;margin:0;font-size:1rem}.person h3{margin:6px 0}.person p{margin:4px 0}.card small,.muted{color:var(--muted)}.pill{display:inline-block;background:#edf2ff;color:var(--brand);border-radius:99px;padding:5px 9px;font-size:.75rem;font-weight:700;margin-top:10px}.empty{color:var(--muted);display:grid;place-items:center;min-height:120px}.cta{text-align:center;background:var(--brand);color:#fff;padding:65px 20px}.cta h2{font-size:2.4rem;margin:0 0 8px}.authbg{min-height:100vh;background:linear-gradient(135deg,#eff3ff,#f8fbff);display:grid;place-items:center;padding:30px}.authbox{width:min(680px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:0 25px 60px #253b6420}.authbox.narrow{width:min(470px,100%)}.form{display:grid;gap:14px}.form label{display:grid;gap:7px;font-weight:650;font-size:.88rem}.form input,.form textarea,.form select,.searchbar input,.event select,.chatinput input{width:100%;border:1px solid #d9dfeb;border-radius:10px;padding:11px 12px;font:inherit;background:#fff}.form textarea{min-height:90px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.center{text-align:center}.alert{padding:13px 16px;background:#fff3cd;border:1px solid #ffe08a;border-radius:11px;margin:12px max(6vw,30px)}.authbox .alert{margin:10px 0}.layout{display:grid;grid-template-columns:230px minmax(0,1fr) 300px;gap:22px;max-width:1500px;margin:auto;padding:28px}.sidebar{height:max-content;position:sticky;top:96px;text-align:center}.sidebar hr{border:0;border-top:1px solid var(--line);margin:18px 0}.welcome{padding:22px 0 28px}.welcome h1{font-size:2.3rem;margin:8px 0}.composer textarea{width:100%;border:0;outline:0;resize:vertical;min-height:90px;font:inherit}.composer-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px}.feed{display:grid;gap:15px;margin-top:15px}.posthead{display:flex;align-items:center;gap:10px}.posthead small{display:block}.post img{width:100%;max-height:520px;object-fit:cover;border-radius:13px;margin-top:10px}.rightcol{display:grid;gap:16px;align-content:start}.rightcol>.card{position:relative}.sideitem{padding:12px 0;border-top:1px solid var(--line)}.sideitem:first-of-type{border-top:0}.sideitem b,.sideitem small,.sideitem span{display:block}.sideitem span{font-size:.8rem;color:var(--green);margin-top:3px}.searchbar{display:grid;grid-template-columns:1fr 180px auto;gap:10px;margin:24px 0}.stack{display:grid;gap:14px;margin-top:18px}.event{display:flex;justify-content:space-between;gap:20px;align-items:center}.event form{display:flex;gap:8px}.event select{min-width:120px;padding:9px}.topgap{margin-top:30px}.mini-form{margin-top:12px}.tablewrap{overflow:auto;background:#fff;border-radius:15px;border:1px solid var(--line)}table{border-collapse:collapse;width:100%;min-width:800px}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line)}th{background:#f8faff}.narrowpage{max-width:850px;margin:auto}.chatbox{height:60vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;display:flex;flex-direction:column;gap:10px}.msg{background:#f2f5fb;border-radius:12px;padding:10px 13px;max-width:80%}.msg b,.msg span{display:block}.msg b{font-size:.8rem;color:var(--brand);margin-bottom:3px}.chatinput{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}@media(max-width:1050px){.layout{grid-template-columns:200px 1fr}.rightcol{display:none}.hero{grid-template-columns:1fr}.hero-card{max-width:500px}}@media(max-width:760px){.top{height:auto;min-height:64px;padding:14px 18px;align-items:flex-start}.top nav{gap:10px}.top nav a{font-size:.78rem}.hero{padding:50px 22px}.layout{display:block;padding:16px}.sidebar{position:static;margin-bottom:16px}.grid2,.searchbar{grid-template-columns:1fr}.section,.page{padding:38px 20px}.event{display:block}.event form{margin-top:15px}.authbox{padding:24px}.hero h1{font-size:3rem}}

/* WhatsApp-style live chat. Chat content is stored in browser IndexedDB, not on the server. */
.chatpage{max-width:980px;margin:auto}.chat-title-row{display:flex;align-items:end;justify-content:space-between;gap:16px}.chat-storage-note{font-size:.82rem;opacity:.7;margin-bottom:12px}.chat-notice{padding:10px 14px;border-radius:12px;background:#fff8db;margin:6px 0 12px;font-size:.88rem}.chatbox{height:min(62vh,650px);overflow:auto;padding:18px;background:#efeae2;border-radius:18px;display:flex;flex-direction:column;gap:9px}.msg{max-width:76%;padding:8px 10px;border-radius:12px;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.08);align-self:flex-start;min-width:150px}.msg.mine{align-self:flex-end;background:#d9fdd3}.msg-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.msg-head small{opacity:.55;font-size:.72rem}.msg-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}.msg-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;opacity:.75}.msg-actions button{border:0;background:transparent;padding:0;font-size:.72rem;cursor:pointer}.quoted-reply{border-left:4px solid #1f8f65;background:rgba(255,255,255,.55);border-radius:6px;padding:6px 8px;margin-bottom:7px;display:flex;flex-direction:column;font-size:.8rem}.quoted-reply span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.chat-attachment{margin-top:7px}.chat-image{display:block;max-width:320px;max-height:320px;border-radius:10px}.chat-attachment audio{max-width:100%;width:300px}.file-chip{display:inline-block;padding:10px 12px;border-radius:9px;background:rgba(255,255,255,.7);text-decoration:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}.chat-composer{display:flex;gap:8px;align-items:center;margin-top:10px}.chat-composer input{flex:1;border-radius:24px;padding:12px 16px}.icon-btn{border:0;background:transparent;cursor:pointer}.icon-btn.big{font-size:1.35rem;width:42px;height:42px;border-radius:50%;background:#f2f3f4}.reply-compose{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:8px;background:#f1f5f4;border-left:4px solid #1f8f65;padding:8px 12px;border-radius:8px}.reply-compose>div{display:flex;flex-direction:column;min-width:0}.reply-compose span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-status{text-align:center;padding:6px;color:#b42318;font-size:.85rem}.hidden{display:none!important}@media(max-width:650px){.chatbox{height:64vh;border-radius:10px;padding:10px}.msg{max-width:88%}.chat-title-row{align-items:start;flex-direction:column}.chat-storage-note{margin:-8px 0 6px}.chat-image{max-width:240px}.chat-composer{gap:5px}.icon-btn.big{width:38px;height:38px}}

.chat-header-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;justify-content:flex-end}.chat-header-actions .chat-storage-note{margin-bottom:8px}.danger-outline{border-color:#f0a5a5!important;color:#b42318!important}.danger-outline:hover{background:#fff1f1!important}.media-deleted{margin-top:7px;padding:9px 11px;border-radius:8px;background:rgba(120,120,120,.09);font-size:.8rem;font-style:italic;opacity:.72}@media(max-width:650px){.chat-header-actions{width:100%;justify-content:space-between;align-items:center}.chat-header-actions .chat-storage-note{margin:0;flex:1}.danger-outline{white-space:nowrap}}

/* Member profile editing */
.profile-form{padding:26px}.profile-photo-row{display:flex;align-items:center;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:4px}.profile-photo-row .avatar{margin:0}.profile-photo-preview{width:92px;height:92px;border-radius:50%;object-fit:cover;border:3px solid #eef2ff}.profile-email{display:block;margin:4px 0 10px}.photo-label{font-size:.82rem!important;color:var(--brand);font-weight:700!important}.photo-label input{margin-top:6px}.success-alert{background:#ecfdf3;border-color:#a7f3d0;color:#166534}@media(max-width:650px){.profile-photo-row{align-items:flex-start}.profile-photo-preview{width:76px;height:76px}.profile-form{padding:18px}}

/* Dashboard/member profile photos */
.dashboard-profile-photo{width:84px;height:84px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 12px;border:3px solid #eef2ff;background:#e9eeff}
.member-card-photo{width:58px;height:58px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 12px;border:2px solid #eef2ff;background:#e9eeff}
.post-avatar-photo{width:42px;height:42px;border-radius:50%;object-fit:cover;display:block;flex:0 0 42px;border:2px solid #eef2ff;background:#e9eeff}

/* Static HTML + JS frontend helpers */
/* Highlighted single navigation entry for both Status and Reels. */
.top nav a.moments-nav-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border:1px solid #c4b5fd;border-radius:999px;background:linear-gradient(115deg,#6d28d9,#c026d3 58%,#db2777);color:#fff!important;font-size:.84rem;font-weight:850;line-height:1.15;white-space:nowrap;box-shadow:0 4px 13px #8b5cf633;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.top nav a.moments-nav-button:hover{color:#fff!important;filter:saturate(1.12) brightness(1.04);transform:translateY(-1px);box-shadow:0 7px 18px #8b5cf644}
.top nav a.moments-nav-button:focus-visible{outline:3px solid #fbbf24;outline-offset:3px}
@media(max-width:760px){.top nav a.moments-nav-button{font-size:.76rem;padding:8px 11px}}
.active-link{color:var(--brand)!important;font-weight:800}.profile-snippet{font-size:.82rem;color:var(--muted);line-height:1.45;margin-top:10px}.topgap-small{margin-top:12px}.home-top .btn{color:#fff}.home-top .btn:hover{color:#fff}.profile-photo-row>div:last-of-type{min-width:180px}.profile-photo-row .photo-label{margin-left:auto}.hidden{display:none!important}

/* Multi-school administration */
.admin-page{max-width:1500px;margin:auto}.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:16px}.admin-stat strong{display:block;font-size:2rem;color:var(--brand)}.admin-stat span{color:var(--muted)}.admin-grid{display:grid;grid-template-columns:minmax(300px,.7fr) minmax(550px,1.3fr);gap:18px}.admin-school-select,.role-select{border:1px solid #d9dfeb;border-radius:10px;padding:10px 12px;background:#fff;font:inherit}.admin-school-select{min-width:280px}.block{display:block;margin-top:4px}#schoolsBody small{font-size:.76rem}@media(max-width:900px){.admin-grid{grid-template-columns:1fr}.admin-stats{grid-template-columns:1fr}.admin-school-select{min-width:0;width:100%}}

.password-card{margin-top:24px}.password-card .form{max-width:620px}.section-head.compact{margin-bottom:12px}.password-card small{display:block;margin-top:6px}

/* Facebook-style dashboard chat dock */
.dashboard-with-chat .layout{margin-right:260px}.fb-online-panel{position:fixed;right:0;top:70px;bottom:0;width:250px;background:#fff;border-left:1px solid var(--line);z-index:30;display:flex;flex-direction:column}.fb-online-head{padding:14px 14px 8px;display:flex;align-items:center;justify-content:space-between}.fb-online-head button{border:0;background:#edf2ff;color:var(--brand);font-weight:750;padding:8px 10px;border-radius:10px;cursor:pointer}.fb-online-sub{padding:0 14px 10px;color:var(--muted);font-size:.78rem;border-bottom:1px solid var(--line)}.fb-online-list{overflow:auto;padding:8px}.fb-contact{width:100%;border:0;background:transparent;border-radius:10px;padding:8px;display:grid;grid-template-columns:38px 1fr 8px;gap:9px;align-items:center;text-align:left;cursor:pointer}.fb-contact:hover{background:#f4f6fb}.fb-contact-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#e9eeff;display:grid;place-items:center;font-weight:800;color:var(--brand)}.fb-contact-avatar img{width:100%;height:100%;object-fit:cover}.fb-contact-name{font-size:.86rem;font-weight:700;min-width:0}.fb-contact-name small{display:block;font-size:.7rem;font-weight:500;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fb-contact i{width:8px;height:8px;border-radius:50%;background:#22c55e}.fb-no-online{padding:20px 10px;color:var(--muted);font-size:.82rem;text-align:center}.fb-chat-dock{position:fixed;right:270px;bottom:0;z-index:40;display:flex;gap:10px;align-items:flex-end}.fb-chat-window{width:330px;height:430px;background:#fff;border:1px solid #d8deea;border-radius:12px 12px 0 0;box-shadow:0 8px 30px #17203328;display:grid;grid-template-rows:auto 1fr auto auto auto;overflow:hidden}.fb-chat-window.minimized{height:46px;display:block}.fb-chat-window.minimized>*:not(.fb-chat-title){display:none}.fb-chat-title{height:46px;padding:8px 10px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.fb-chat-title>div:first-child{display:flex;flex-direction:column;min-width:0}.fb-chat-title b{font-size:.87rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fb-chat-title small{font-size:.68rem;opacity:.8}.fb-chat-title button{border:0;background:transparent;color:#fff;font-size:1.1rem;cursor:pointer}.fb-chat-messages{overflow:auto;padding:12px;background:#f4f6fb;display:flex;flex-direction:column;gap:7px}.fb-msg{max-width:82%;background:#fff;border-radius:12px;padding:8px 10px;align-self:flex-start;box-shadow:0 1px 2px #17203312;font-size:.84rem;overflow-wrap:anywhere}.fb-msg.mine{align-self:flex-end;background:#dce8ff}.fb-msg-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:5px}.fb-msg-meta span{font-size:.62rem;color:var(--muted)}.fb-msg-meta button{border:0;background:transparent;padding:0;color:#667085;font-size:.62rem;cursor:pointer}.fb-quote{border-left:3px solid var(--brand);padding:4px 6px;background:#ffffff88;border-radius:4px;margin-bottom:5px;display:flex;flex-direction:column}.fb-quote b,.fb-quote span{font-size:.68rem}.fb-media img{max-width:220px;max-height:180px;border-radius:8px;display:block;margin-top:5px}.fb-media audio{width:230px;max-width:100%;margin-top:5px}.fb-media a{display:block;margin-top:5px}.fb-reply{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;background:#eef3ff;border-top:1px solid var(--line)}.fb-reply>div{display:flex;flex-direction:column;min-width:0}.fb-reply b{font-size:.7rem;color:var(--brand)}.fb-reply span{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fb-reply button{border:0;background:transparent;cursor:pointer}.fb-record{text-align:center;color:#b42318;font-size:.72rem;padding:5px;background:#fff7f7}.fb-composer{display:grid;grid-template-columns:auto auto 1fr auto;gap:4px;align-items:center;padding:7px;border-top:1px solid var(--line)}.fb-composer button{border:0;background:transparent;cursor:pointer}.fb-text{min-width:0;border:1px solid #d9dfeb;border-radius:18px;padding:8px 10px}.fb-send{color:var(--brand);font-size:1.1rem}@media(max-width:1180px){.dashboard-with-chat .layout{margin-right:0}.fb-online-panel{display:none}.fb-chat-dock{right:10px}}@media(max-width:760px){.fb-chat-dock{left:0;right:0;bottom:0;justify-content:flex-end}.fb-chat-window{width:min(100vw,360px);height:62vh}.fb-chat-window:not(:last-child){display:none}}

/* Facebook-style post interactions */
.social-post{scroll-margin-top:90px;transition:box-shadow .25s ease}.post-highlight{box-shadow:0 0 0 3px #b7c9ff,0 8px 28px #17203318!important}.post-social-summary{display:flex;justify-content:space-between;align-items:center;padding:10px 2px 7px;margin-top:8px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.82rem}.comment-summary{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0}.comment-summary:hover{text-decoration:underline}.post-social-actions{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:3px 0}.post-social-actions button{border:0;background:transparent;padding:9px;border-radius:8px;font-weight:700;color:#596273;cursor:pointer}.post-social-actions button:hover{background:#f3f5f8}.post-social-actions .liked{color:#1877f2}.post-comments{padding-top:10px}.comments-list{display:flex;flex-direction:column;gap:9px}.fb-comment{display:flex;gap:8px;align-items:flex-start}.comment-avatar-wrap{flex:0 0 34px}.comment-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e9eeff;display:block}.comment-avatar-wrap .avatar{width:34px;height:34px;font-size:.78rem;margin:0}.comment-main{flex:1;min-width:0}.comment-bubble{display:inline-block;max-width:min(680px,100%);background:#f0f2f5;border-radius:16px;padding:8px 11px;overflow-wrap:anywhere}.comment-bubble>b{display:block;font-size:.79rem;margin-bottom:1px}.comment-bubble>div{font-size:.85rem;white-space:pre-wrap}.replying-label{display:block;font-size:.66rem;color:var(--muted);font-weight:500;margin-bottom:2px}.comment-meta{display:flex;gap:10px;align-items:center;padding:3px 9px}.comment-meta span{font-size:.66rem;color:var(--muted)}.comment-meta button{border:0;background:transparent;padding:0;color:#536170;font-size:.68rem;font-weight:700;cursor:pointer}.comment-meta button:hover{text-decoration:underline}.comment-children{margin-top:6px;display:flex;flex-direction:column;gap:7px}.comment-reply{margin-left:8px}.comment-reply .comment-avatar-wrap{flex-basis:29px}.comment-reply .comment-avatar,.comment-reply .comment-avatar-wrap .avatar{width:29px;height:29px;font-size:.7rem}.comment-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-top:10px}.comment-input{border:1px solid #d9dfeb;border-radius:20px;padding:10px 13px;width:100%;font:inherit;background:#f7f8fa}.comment-input:focus{outline:2px solid #d9e4ff;border-color:#9bb3ee}.comment-reply-target{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#eef3ff;border-left:3px solid var(--brand);padding:7px 10px;border-radius:8px;margin-top:8px}.comment-reply-target>div{min-width:0;display:flex;flex-direction:column}.comment-reply-target b{font-size:.72rem;color:var(--brand)}.comment-reply-target small{font-size:.68rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px}.comment-reply-target button{border:0;background:transparent;font-size:1.1rem;cursor:pointer}.no-comments,.comments-loading{padding:4px 2px;font-size:.8rem}@media(max-width:650px){.comment-bubble{max-width:100%}.comment-reply{margin-left:2px}.post-social-actions button{padding:10px 4px}.comment-form{grid-template-columns:1fr auto}.comment-reply-target small{max-width:240px}}
.fb-online-sub{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.fb-delete-media{border:0;background:transparent;color:#b42318;font-size:.68rem;font-weight:700;cursor:pointer;padding:3px 0}.fb-delete-media:hover{text-decoration:underline}

.fb-msg-meta .fb-message-ticks{font-size:.78rem;font-weight:800;letter-spacing:-3px;padding-right:3px;color:#697586;cursor:help}.fb-msg-meta .fb-message-ticks.is-seen{color:#1688df}

/* Searchable school picker on Join Network */
.school-search-wrap{position:relative}.school-search-input{padding-right:38px!important}.school-suggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:80;background:#fff;border:1px solid #d9dfeb;border-radius:12px;box-shadow:0 14px 34px #253b6426;max-height:260px;overflow-y:auto;padding:6px}.school-suggestion{width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:10px 11px;border-radius:9px;cursor:pointer;color:var(--ink);font:inherit}.school-suggestion:hover,.school-suggestion.active{background:#edf2ff}.school-suggestion span{min-width:0}.school-suggestion b{display:block;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.school-suggestion small{display:block;color:var(--muted);font-size:.73rem;margin-top:2px}.school-suggestion em{font-style:normal;font-size:.7rem;font-weight:800;color:var(--brand);background:#edf2ff;border-radius:999px;padding:4px 7px;flex:0 0 auto}.school-no-result{padding:14px 10px;color:var(--muted);font-size:.82rem;text-align:center}

.posthead{display:flex;align-items:center;gap:10px}.posthead>div{flex:1;min-width:0}.post-delete-btn{margin-left:auto;border:0;background:transparent;color:#b42318;font-size:.78rem;font-weight:700;cursor:pointer;padding:6px 8px;border-radius:8px}.post-delete-btn:hover{background:#fff0ee}.post-delete-btn:disabled{opacity:.5;cursor:not-allowed}

/* Public school snapshots */
.school-snapshot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.school-snapshot-card{position:relative;border:0;padding:0;border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:#e9edf5;cursor:pointer;box-shadow:0 5px 20px #17203314;text-align:left}.school-snapshot-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}.school-snapshot-card:hover img{transform:scale(1.035)}.school-snapshot-overlay{position:absolute;left:0;right:0;bottom:0;padding:32px 12px 11px;color:#fff;background:linear-gradient(transparent,#000b);display:flex;flex-direction:column;gap:2px}.school-snapshot-overlay b{font-size:.9rem}.school-snapshot-overlay small{font-size:.72rem;opacity:.9}.snapshot-dialog{border:0;border-radius:16px;padding:0;max-width:min(920px,92vw);width:max-content;background:#0f172a;color:#fff;box-shadow:0 24px 80px #0007;overflow:hidden}.snapshot-dialog::backdrop{background:#0009}.snapshot-dialog>img{display:block;max-width:min(920px,92vw);max-height:76vh;object-fit:contain;background:#000}.snapshot-dialog>div{padding:12px 16px;display:flex;flex-direction:column;gap:3px}.snapshot-dialog small{color:#cbd5e1}.snapshot-close{position:absolute;right:10px;top:10px;width:36px;height:36px;border-radius:50%;border:0;background:#0009;color:#fff;font-size:1.5rem;cursor:pointer}.admin-snapshot-list{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow:auto}.admin-snapshot-item{display:grid;grid-template-columns:86px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:8px}.admin-snapshot-item>img{width:86px;height:66px;object-fit:cover;border-radius:9px;background:#eef2f7}.admin-snapshot-item>div:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.admin-snapshot-item small{color:var(--muted);font-size:.72rem}.snapshot-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.checkline{display:flex!important;align-items:center;gap:8px}.checkline input{width:auto}.btn.danger,.danger{color:#b42318!important}@media(max-width:900px){.school-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.snapshot-admin-grid{grid-template-columns:1fr!important}}@media(max-width:520px){.school-snapshot-grid{grid-template-columns:1fr 1fr;gap:9px}.school-snapshot-overlay{padding:24px 9px 8px}.school-snapshot-overlay b{font-size:.78rem}.school-snapshot-overlay small{font-size:.64rem}.admin-snapshot-item{grid-template-columns:70px 1fr}.admin-snapshot-item>img{width:70px;height:58px}.snapshot-actions{grid-column:1/-1;justify-content:flex-start}}

/* Home-page school snapshots: continuously scrolling horizontal strip */
.school-snapshot-grid{
  display:flex!important;
  grid-template-columns:none!important;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:4px 2px 14px;
  overscroll-behavior-inline:contain;
  touch-action:pan-x;
}
.school-snapshot-grid::-webkit-scrollbar{display:none}
.school-snapshot-grid .school-snapshot-card{
  flex:0 0 clamp(230px,28vw,350px);
  width:clamp(230px,28vw,350px);
  aspect-ratio:4/3;
}
.school-snapshot-grid .empty{flex:1 0 100%}
@media(max-width:760px){
  .school-snapshot-grid{gap:10px;padding-bottom:10px}
  .school-snapshot-grid .school-snapshot-card{flex-basis:78vw;width:78vw;max-width:320px}
}

/* Clipboard snapshot input shared by School Admin and Central Admin */
.snapshot-paste-zone{border:2px dashed #8294b7;border-radius:12px;padding:18px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;cursor:text;background:rgba(113,146,205,.06);outline-offset:3px}
.snapshot-paste-zone:focus,.snapshot-paste-zone:focus-within{border-color:#3b82f6;outline:2px solid rgba(59,130,246,.25)}
.snapshot-paste-zone small{max-width:380px;line-height:1.5}
.snapshot-preview-wrap{border:1px solid #8294b755;border-radius:12px;padding:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.snapshot-preview-wrap.hidden{display:none}
.snapshot-preview-wrap img{max-height:165px;max-width:100%;object-fit:contain;border-radius:6px}
.snapshot-preview-wrap>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}

/* Nationwide registration district search */
.district-field{display:grid;gap:8px;min-width:0;}
.district-field select,.district-field input{width:100%;min-width:0;}
.jnv-selection{align-items:start;}

/* Live district suggestions: visible without opening the native select */
.district-matches[hidden]{display:none!important}
.district-matches{display:flex;flex-direction:column;max-height:240px;overflow-y:auto;border:1px solid var(--line,#d7deea);border-radius:10px;background:var(--card,#fff);color:inherit;overscroll-behavior:contain}
.district-matches .district-match{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid var(--line,#d7deea);border-radius:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.district-matches .district-match:last-child{border-bottom:0}
.district-match span{font-size:.8rem;color:var(--muted,#64748b)}
.district-matches .district-match:hover,.district-matches .district-match:focus-visible{background:#3b82f618;outline:2px solid #3b82f6;outline-offset:-2px}
.district-no-match{padding:12px;color:var(--muted,#64748b)}

@media print {body:has(#printCard) *{visibility:hidden}body:has(#printCard) #printCard,body:has(#printCard) #printCard *{visibility:visible}body:has(#printCard) #printCard{position:absolute;top:0;left:0;width:320px;color:#111;background:white}}
#entries{margin-top:1rem}#invite,#identity,#entryForm,#friends{margin-bottom:1rem}#friends p{padding:.4rem 0}

.memory-home{background:linear-gradient(135deg,rgba(25,123,105,.07),rgba(231,177,69,.10))}.memory-gallery{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;position:relative;scrollbar-width:thin}.memory-gallery .memory-slide{flex:0 0 min(82%,340px);scroll-snap-align:start;min-height:230px;position:relative;overflow:hidden}.memory-slide img{width:100%;height:230px;object-fit:cover}.memory-controls{display:flex;gap:8px;justify-content:center;margin-top:16px}.memory-controls[hidden]{display:none}.memory-invite{text-align:center;margin-top:18px}.memory-review img{width:100%;height:180px;object-fit:contain;background:#eee;border-radius:8px}.memory-review p{overflow-wrap:anywhere}.memory-owner{display:flex;align-items:center;gap:8px;margin:8px 0;flex-wrap:wrap}.memory-gallery .memory-slide .school-snapshot-overlay b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.login-password-wrap{position:relative;width:100%;margin-top:-6px}.login-password-wrap input{width:100%;box-sizing:border-box;padding-right:52px!important}.login-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;color:inherit;cursor:pointer;border-radius:8px;padding:0}.login-password-toggle:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

.online-count{color:#16834e;white-space:nowrap;margin-left:12px}.online-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px}.online-person{padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:3px;align-items:center;border:1px solid #dce9e0;border-radius:12px;overflow-wrap:anywhere}.online-person small{font-size:12px;color:#64748b}.online-avatar{position:relative;width:58px;height:58px;margin-bottom:5px}.online-avatar .member-card-photo,.online-avatar .avatar{width:58px;height:58px;margin:0;border-radius:50%}.online-dot{position:absolute;right:0;bottom:0;width:15px;height:15px;border:2px solid white;background:#22c55e;border-radius:50%}#onlinePrivacy input{width:auto;margin-right:6px}#onlinePrivacy[hidden]{display:none}

.school-ranking-chart{display:grid;gap:6px;margin:12px 0}.rank-row{display:grid;grid-template-columns:minmax(110px,32%) minmax(40px,1fr) 48px;align-items:center;gap:10px;text-decoration:none;color:inherit;font-size:.9rem}.rank-label{overflow-wrap:anywhere}.rank-label small{display:block;opacity:.7;font-size:.72rem}.rank-track{height:15px;background:#dce8e2;border-radius:4px;overflow:hidden}.rank-track>span{display:block;height:100%;background:#23805d;border-radius:4px}.rank-row strong{text-align:right}.rank-row:hover .rank-track>span{background:#125c42}.birthday-list{display:flex;flex-wrap:wrap;gap:12px}.birthday-person{display:flex;align-items:center;gap:9px;min-width:0}.birthday-person small{display:block}.birthday-person img,.birthday-person .member-card-photo{width:48px;height:48px;object-fit:cover;border-radius:50%}

.event-image-picker{border:1px solid #cbd5e1;border-radius:12px;padding:12px;min-width:0;display:grid;gap:10px}.event-image-picker legend{font-weight:700}.event-paste{border:2px dashed #829bd0;border-radius:10px;padding:18px;text-align:center;cursor:text}.event-paste:focus{outline:2px solid #2854d7;outline-offset:2px}.event-preview img,.event-poster{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:10px;background:#f1f5f9}.home-event .event-poster{max-height:340px}.event-poster-link{display:block;margin:12px 0}.event-image-picker small{opacity:.8}.event-clear[hidden]{display:none}

#emailVerificationBox[hidden],#emailVerificationBox [hidden]{display:none!important}

/* Registration-specific accessible feedback */
#registrationErrorDialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e7d9d9;border-radius:18px;padding:24px;background:#fff;color:#23312b;box-shadow:0 20px 70px #0005;text-align:center;margin:auto;}
#registrationErrorDialog::backdrop{background:rgba(10,24,20,.66)}
#registrationErrorDialog h2{margin:12px 0;font-size:1.35rem}#registrationErrorDialog p{overflow-wrap:anywhere}#registrationErrorDialog form{display:grid;gap:8px;margin-top:18px}
.registration-error-symbol{display:grid;place-items:center;margin:auto;background:#fde8e7;color:#b42318;border-radius:50%;width:56px;height:56px;font-weight:800;font-size:32px}
.form .registration-invalid{outline:2px solid #c62d2d;outline-offset:2px}
#registrationBottomError[hidden]{display:none!important}

/* Immediate email OTP request feedback */
.otp-spinner{display:inline-block;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.15em;animation:otp-spin .75s linear infinite;margin-right:.35em}
@keyframes otp-spin{to{transform:rotate(360deg)}}
.otp-feedback{display:block;min-height:1.4em;margin-top:8px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
#emailVerificationBox button[aria-busy=true]{opacity:.85;cursor:wait}
@media(prefers-reduced-motion:reduce){.otp-spinner{animation:none}}

.chat-key-input{resize:none;min-height:38px;max-height:128px;font:inherit;overflow-y:auto}.chat-composer textarea{flex:1;min-width:0;border-radius:18px;padding:8px 12px}.chat-key-hint{display:block;color:var(--muted,#667085);font-size:.72rem;margin:5px 8px}.fb-msg-text{white-space:pre-wrap;overflow-wrap:anywhere}.public-chat-new{color:#fff;background:#b34436;border-radius:10px;padding:2px 6px;font-size:.7rem}.public-chat-new[hidden],.public-float-panel[hidden]{display:none!important}#publicChatLauncher{position:fixed;left:12px;bottom:14px;z-index:65;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.public-float-button{background:#146b56;color:white;border:0;border-radius:24px;padding:12px 18px;box-shadow:0 3px 15px #0003;cursor:pointer;font-weight:700}.public-float-panel{width:min(390px,calc(100vw - 24px));background:#fff;border:1px solid #b5d8ce;border-radius:14px;overflow:hidden;box-shadow:0 6px 30px #0003}.public-float-head{display:flex;align-items:center;gap:12px;background:#146b56;color:white;padding:10px}.public-float-head b{flex:1}.public-float-head button,.public-float-head a{color:white;background:none;border:0;font-size:1.2rem;cursor:pointer}.public-float-panel iframe{width:100%;height:min(540px,65vh);border:0;display:block}.lounge-embedded #publicChatPage{padding:0;margin:0;width:100%;max-width:none}.lounge-embedded #publicLounge{margin:0;padding:10px;border:0;border-radius:0}.lounge-embedded .lounge-feed{height:200px}.lounge-embedded .lounge-heading h2{font-size:1.1rem}
/* Compact administration panels: separate scrolling on desktop and mobile. */
.admin-page .admin-scroll{max-height:min(440px,60vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-width:0;scrollbar-gutter:stable;align-content:start}
.admin-page .admin-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.admin-page .tablewrap.admin-scroll thead th{position:sticky;top:0;z-index:2;background:#eef2fa;color:#172033}
.admin-page .admin-grid{min-width:0}.admin-page .admin-grid>.card{min-width:0}
.admin-page .all-posts-list{display:grid;gap:10px;margin:10px 0;max-height:min(560px,70vh)}
.admin-feed-item{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0;overflow-wrap:anywhere}
.admin-feed-item p{white-space:pre-wrap;margin:8px 0}.admin-feed-item img{display:block;max-width:100%;max-height:250px;object-fit:contain;border-radius:8px}.admin-feed-item small{display:block;color:var(--muted)}

.admin-post-actions{display:flex;justify-content:flex-end;margin-top:10px}.admin-post-actions button:disabled{opacity:.6;cursor:wait}

/* Shared upload progress */
.upload-feedback{position:fixed;z-index:10000;left:50%;bottom:24px;transform:translateX(-50%);width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:16px;background:#fff;color:#173e36;border:1px solid #b8d6c8;border-radius:14px;box-shadow:0 8px 40px #173e3640;display:flex;flex-direction:column;gap:9px;text-align:left}.upload-feedback-head{display:flex;align-items:center;gap:10px}.upload-feedback progress{width:100%;height:12px;accent-color:#21855c}.upload-feedback small{color:#4b635a}.upload-spinner{width:20px;height:20px;flex:none;border:3px solid #d5e9df;border-top-color:#21855c;border-radius:50%;animation:upload-spin .8s linear infinite}.upload-success .upload-spinner,.upload-failure .upload-spinner{display:none}.upload-failure{border-color:#c04747;color:#a42121}.upload-feedback progress[hidden]{display:none}@keyframes upload-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.upload-spinner{animation:none}}

/* Brief feedback for configurable homepage/dashboard restrictions. */
.page-restriction-notice{position:fixed;z-index:99999;left:50%;bottom:24px;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#172b26;color:#fff;padding:11px 16px;border-radius:9px;box-shadow:0 8px 28px #0003;font:500 14px/1.4 system-ui,sans-serif;max-width:min(92vw,520px);text-align:center;transition:opacity .18s ease,transform .18s ease}.page-restriction-notice.visible{opacity:1;transform:translate(-50%,0)}

.profile-photo-preview-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}.danger-outline{color:#b42318!important;border-color:#f0b4b4!important}.danger-outline:hover{background:#fff1f1!important}


/* Compact birthday ticker positioned in the homepage header's central green-marked area. */
.home-top{gap:18px}.home-birthday-ticker[hidden]{display:none!important}.home-birthday-ticker{flex:1 1 360px;min-width:0;max-width:760px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:12px;padding:7px 12px;border:1px solid #d8efdf;border-radius:999px;background:linear-gradient(90deg,#f1fbf4,#fff9eb);color:#174c36;box-shadow:0 3px 12px #175b3610}.home-birthday-label{flex:0 0 auto;font-size:.68rem;font-weight:900;letter-spacing:.09em;color:#15804b;white-space:nowrap}.home-birthday-person{display:flex;align-items:center;gap:9px;min-width:0;flex:0 1 auto}.home-birthday-photo{width:38px;height:38px;flex:0 0 38px;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 5px #153e2928}.home-birthday-photo-fallback{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#ffe8b1;color:#8a4d08;font-weight:800}.home-birthday-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2}.home-birthday-copy strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-birthday-copy small{font-size:.69rem;color:#65796e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-birthday-action{flex:0 0 auto}.home-birthday-wish{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:8px 13px;background:#18834f;color:#fff!important;font-family:inherit;font-weight:700;font-size:.76rem;line-height:1.1;white-space:nowrap;text-decoration:none;cursor:pointer}.home-birthday-wish:hover{background:#11683d}.home-birthday-wish:disabled{opacity:.65;cursor:wait}
@media(max-width:1050px){.home-birthday-ticker{max-width:560px;gap:8px;padding:6px 9px}.home-birthday-label{font-size:.61rem}.home-birthday-copy strong{font-size:.78rem}.home-birthday-wish{padding:7px 10px;font-size:.7rem}}
@media(max-width:760px){.home-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.home-top>.brand{order:1}.home-top>nav{order:2;margin-left:auto}.home-birthday-ticker{order:3;flex:1 0 100%;width:100%;max-width:none;margin:2px 0 0;justify-content:flex-start;border-radius:14px;padding:7px 10px}.home-birthday-label{font-size:.62rem}.home-birthday-photo,.home-birthday-photo-fallback{width:32px;height:32px;flex-basis:32px}.home-birthday-copy strong{font-size:.78rem}.home-birthday-copy small{font-size:.65rem}.home-birthday-wish{padding:7px 9px}}
@media(max-width:420px){.home-birthday-ticker{gap:7px}.home-birthday-label{max-width:52px;white-space:normal;line-height:1.1}.home-birthday-person{flex:1 1 auto}.home-birthday-copy strong{max-width:135px}.home-birthday-copy small{display:none}.home-birthday-wish{padding:6px 7px;font-size:.66rem}}
