.discovery-consent{margin-top:2rem}.discovery-consent h2{font-size:1.4rem}.discovery-consent p{max-width:70ch}.admin-table-wrap{overflow:auto;max-width:100%;border:1px solid #e4dbea;border-radius:12px;margin:1rem 0}.admin-table-wrap table{border-collapse:collapse;width:100%;font-size:.9rem}.admin-table-wrap th,.admin-table-wrap td{padding:.7rem;vertical-align:top;border-bottom:1px solid #e4dbea;text-align:left;max-width:28rem;overflow-wrap:anywhere}.admin-table-wrap th{background:#f1eaf5}.admin-table-wrap .btn{font-size:.85rem;margin:.2rem;white-space:nowrap}.admin-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.admin-create{margin:1.5rem 0}.admin-create summary{cursor:pointer;padding:1rem 0;font-weight:600}.checkin-code{overflow-wrap:anywhere;font-size:1.2rem;padding:.5rem;display:block}#school-admin [data-admin-editor]{margin-top:1rem}#school-admin nav{margin:1rem 0}#connected-discovery{margin:2rem 0}#connected-discovery .barrio-membership{min-width:0}#connected-discovery .btn{white-space:normal}

.member-gate{max-width:860px;margin:1rem auto 3rem;padding:clamp(1.4rem,4vw,3rem)}.member-gate h1{font:clamp(2rem,5vw,3.6rem)/1.12 var(--heading-font);margin:1.2rem 0}.member-gate p{line-height:1.75;max-width:65ch}.member-gate .chips{margin:1.5rem 0}.profile-follow{margin:1rem 0}.profile-follow [role=status]:empty{display:none}.profile-follow button[aria-pressed=true]{background:var(--lilac,#eee5f2);border-color:var(--wine)}.discovery-consent{border-inline-start:4px solid var(--wine);margin-bottom:1.5rem}.discovery-consent .chips button{flex:1;min-width:180px;white-space:normal}#account-community-controls[hidden]{display:none}.later-listings{margin-top:2.5rem}.later-listings h2{font-family:var(--heading-font)}
@media(max-width:680px){.member-gate .chips{display:grid}.member-gate .btn{white-space:normal}.discovery-consent .chips{display:grid;grid-template-columns:1fr}.profile-follow .btn{min-height:44px}}
/* Platform tools retain the established visual language. */
#platform-admin{min-width:0}
#platform-admin .platform-environment{padding:1rem;border:1px solid #b49abf;border-radius:.75rem;background:#f4eef7}
#platform-admin section{margin-top:2rem;border-top:1px solid #e4dbea;padding-top:1.5rem}
#platform-admin .platform-readiness,#platform-admin .platform-operators{padding:0;list-style:none}
#platform-admin .platform-readiness li{padding:.9rem 0;border-bottom:1px solid #e4dbea}
#platform-admin .platform-readiness p{margin:.35rem 0 0;max-width:75ch}
#platform-admin .platform-check{display:inline-block;margin-left:.8rem;font-size:.85rem;font-weight:600}
#platform-admin .platform-check.ready{color:#1d613f}
#platform-admin .platform-check.pending,#platform-admin .form-error{color:#8a2e27}
#platform-admin .platform-operators li{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-bottom:1px solid #e4dbea;padding:1rem 0}
#platform-admin .platform-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.75rem}
#platform-admin fieldset{border:1px solid #e4dbea;border-radius:.75rem;padding:1rem}
#platform-admin .form-hint{font-size:.9rem;margin:.35rem 0 0}
#platform-admin form{max-width:850px}
#platform-admin [aria-busy=true]{cursor:progress}
@media(max-width:600px){#platform-admin .platform-operators li{align-items:stretch;flex-direction:column}#platform-admin .platform-check{display:block;margin:.3rem 0}#platform-admin .btn{min-height:44px;white-space:normal}}
/* Add after consumer-core.css. Uses the established Barrio spacing and colours. */
#school-admin{min-width:0}
#school-admin .btn,#school-admin .chip,#school-admin select,#school-admin input{min-height:44px}
#school-admin .btn{white-space:normal}
#school-admin .admin-overview{margin:1.5rem 0;padding:1.25rem;border:1px solid #e4dbea;background:#faf7fc;border-radius:16px}
#school-admin .admin-overview h2{margin-top:0}
#school-admin .admin-overview small{display:block;margin-top:.8rem}
#school-admin .admin-session-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
#school-admin .admin-session-card{padding:1rem;background:white;border:1px solid #e4dbea;border-radius:12px;min-width:0}
#school-admin .admin-session-card h3{font-size:1.2rem;margin:0 0 .7rem}
#school-admin .admin-session-card p{font-size:.9rem;margin:.4rem 0}
#school-admin .admin-session-card .btn{margin-top:.7rem}
#school-admin .admin-reference{display:block;font-size:.72rem;color:#6f6478;overflow-wrap:anywhere;margin-top:.35rem}
#school-admin .admin-roster-filters{background:#f4eef7;border-radius:12px;padding:1rem;margin:1rem 0}
#school-admin .admin-roster-filters p{font-size:.9rem}
#school-admin .admin-cell-value{overflow-wrap:anywhere;min-width:0}
#school-admin .admin-row-actions{display:flex;flex-wrap:wrap;gap:.5rem;min-width:9rem}
#school-admin .admin-row-actions .btn{margin:0}
#school-admin .admin-record-id summary{cursor:pointer}
#school-admin .admin-record-id code{font-size:.75rem;overflow-wrap:anywhere}
#school-admin [data-admin-status]:not(:empty){padding:.9rem 1rem;background:#f4eef7;border-left:3px solid #6c4c7a;border-radius:4px}
#school-admin .admin-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
 #school-admin .admin-table-wrap{border:0;overflow:visible}
 #school-admin .admin-table-wrap table,#school-admin .admin-table-wrap tbody{display:block}
 #school-admin .admin-table-wrap thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 #school-admin .admin-table-wrap tr{display:block;background:white;border:1px solid #e4dbea;border-radius:12px;padding:.6rem .9rem;margin:0 0 1rem}
 #school-admin .admin-table-wrap td{display:grid;grid-template-columns:minmax(7.5rem,.85fr) minmax(0,1.2fr);gap:.8rem;padding:.6rem 0;max-width:none;font-size:.9rem}
 #school-admin .admin-table-wrap td::before{content:attr(data-label);font-weight:600;color:#584362}
 #school-admin .admin-table-wrap td:last-child{border-bottom:0;display:block}
 #school-admin .admin-table-wrap td:last-child::before{display:block;margin-bottom:.5rem}
 #school-admin .admin-row-actions .btn{flex:1 1 140px}
 #school-admin .admin-overview{padding:1rem}
}

/* Editorial tools retain the responsive member shell. */
#weekly-admin fieldset{min-width:0;margin:1rem 0}#weekly-admin input:not([type=checkbox]),#weekly-admin textarea,#weekly-admin select,#partner-school{max-width:100%;width:100%;box-sizing:border-box}#weekly-admin textarea,#partner-link-output textarea{width:100%;min-height:7rem;box-sizing:border-box}#weekly-admin label{display:block;margin:.75rem 0}#weekly-admin .check{display:flex;gap:.7rem;align-items:flex-start}#weekly-admin a,#weekly-admin p,#partner-link-output{overflow-wrap:anywhere}#weekly-admin button{max-width:100%;white-space:normal}#share .chips{flex-wrap:wrap}#weekly-preferences input[type=checkbox]{flex-shrink:0}#weekly-preferences .check{display:flex;gap:.7rem;align-items:flex-start}

.growth-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem 1rem}.growth-totals dd{margin:0;font-weight:600}.table-scroll{max-width:100%;overflow:auto}.table-scroll th,.table-scroll td{padding:.6rem;text-align:left}
.top-actions [data-account-control]{flex-shrink:0}
@media(max-width:1100px){.top-actions [data-account-control]{display:inline-flex!important;width:40px;height:40px;min-height:40px;padding:9px;gap:0}.top-actions [data-account-control] [data-account-label]{display:none}.top-actions [data-account-control] .icon{width:20px;height:20px}}
@media(max-width:420px){.topbar .top-actions{gap:3px}.topbar .language-control select{max-width:90px}.topbar .brand-lockup strong{font-size:28px}.topbar .brand-lockup small{font-size:10px}.topbar .brand-mark{width:36px;height:36px}.topbar .mobile-menu{padding:7px}}

/* Listing sharing stays compact; status appears only after an action. */
#share.sharing-panel{max-width:790px;padding:18px 20px;margin-top:20px}
#share.sharing-panel h2{font-size:24px;line-height:1.2;margin:0 0 12px}
#share.sharing-panel .chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#share.sharing-panel .btn{font-size:.875rem;line-height:1.3;min-height:40px;padding:8px 13px;white-space:normal;text-align:center;max-width:100%}
#share.sharing-panel [data-share-status]{font-size:.875rem;overflow-wrap:anywhere;margin:12px 0 0}
#share.sharing-panel [data-share-status]:empty{display:none}
#share.sharing-panel [data-share-status] input{max-width:100%;box-sizing:border-box}
.joining-facts .organiser-source{margin:12px 0 0;font-size:.875rem}
@media(max-width:700px){
 #share.sharing-panel{padding:14px 16px}
 #share.sharing-panel h2{font-size:22px;margin-bottom:10px}
 #share.sharing-panel .chips{gap:6px}
 #share.sharing-panel .btn{min-height:36px;padding:6px 10px}
}
