.h45home .h50activity{background:transparent}.h50activity .h50grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.h50box{--accent:#164b91;--pale:#eaf2ff;min-width:0;border:1px solid #d9e4ef;border-radius:13px;background:white;overflow:hidden;box-shadow:0 5px 18px #102e6010;display:flex;flex-direction:column}.h50-green{--accent:#087750;--pale:#e4f6ec}.h50-purple{--accent:#6545a1;--pale:#f0eafb}.h45home .h50box h3{background:linear-gradient(110deg,#102e60,var(--accent));color:white;font-size:18px;line-height:1.35;padding:13px 15px;margin:0;display:flex;align-items:center;gap:9px}.h50box h3 i{color:#ffcf50}.h50tabs{display:flex;background:var(--pale);min-height:46px}.h50tabs button{flex:1;min-width:0;border:0;border-bottom:3px solid transparent;background:none;color:#102e60;font-weight:700;font-size:13px;padding:8px;line-height:1.25;cursor:pointer}.h50tabs button[aria-selected=true]{background:var(--accent);color:white;border-bottom-color:#ffc329}.h50panel[hidden]{display:none!important}.h50scroll{height:250px;overflow-y:auto;overscroll-behavior:contain;padding:5px 12px;scrollbar-width:thin}.h50row{width:100%;display:flex;gap:10px;align-items:center;text-align:left;color:#102e60;background:transparent;border:0;border-bottom:1px solid #e7edf5;padding:10px 0;text-decoration:none;min-height:59px}.h50detail{cursor:pointer}.h50row:hover{background:var(--pale);color:var(--accent)}.h50row>span:last-child{min-width:0;overflow-wrap:anywhere}.h50row strong,.h50row small{display:block}.h50row strong{font-size:14px;line-height:1.35}.h50row small{font-size:12px;color:#53667e;margin-top:3px}.h50icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:9px;color:var(--accent);background:var(--pale);overflow:hidden}.h50icon img{width:100%;height:100%;object-fit:contain}.h50more{display:block;text-align:center;padding:10px;color:var(--accent);font-size:13px;font-weight:700;border-top:1px solid #e7edf5;text-decoration:none}.h50empty{padding:18px 8px;color:#53667e;text-align:center}.h50dialog{width:min(580px,calc(100% - 28px));max-height:85vh;border:0;border-radius:16px;padding:30px;color:#102e60;box-shadow:0 12px 50px #0005}.h50dialog::backdrop{background:#06182dbb}.h50close{float:right;border:0;background:#eaf0f8;border-radius:50%;width:34px;height:34px;font-size:24px}.h50description{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:16px}.h50activity :focus-visible{outline:3px solid #e6a900;outline-offset:2px}@media(max-width:900px){.h50activity .h50grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.h50activity *{scroll-behavior:auto!important}}
/* V51 compact layout, scoped to the activity centre. */
.h45home .h40-news{background:linear-gradient(125deg,#eaf2fc,#f8fbff 52%,#f2ecfa)}
.h45home .h50activity .h37head{margin-bottom:14px}
.h50activity .h50grid{gap:14px;align-items:stretch}
.h50activity .h50box{border-radius:15px;border-top:3px solid var(--accent);background:linear-gradient(145deg,#fff,var(--pale));box-shadow:0 7px 20px #102e6012}
.h45home .h50activity .h50box h3{padding:10px 14px;font-size:17px;min-height:44px;box-sizing:border-box}
.h50activity .h50tabs{min-height:38px;padding:4px;gap:4px;box-sizing:border-box}
.h50activity .h50tabs button{border-radius:7px;border-bottom:0;padding:7px 5px;font-size:12px}
.h50activity .h50tabs button[aria-selected=true]{box-shadow:0 2px 5px #102e6020}
.h50activity .h50scroll{height:216px;padding:5px 9px;box-sizing:border-box}
.h50activity .h50row{min-height:48px;padding:6px 7px;margin:0 0 4px;border:1px solid #dce6f1;border-radius:8px;background:#ffffffdb;box-sizing:border-box;gap:9px}
.h50activity .h50row strong{font-size:13px;line-height:1.25}
.h50activity .h50row small{font-size:11px;line-height:1.3}
.h50activity .h50icon{width:33px;height:33px;flex-basis:33px}
.h50activity .h50more{background:#ffffffad;padding:9px;font-size:12px}
.h50activity .h50empty{font-size:13px;margin:8px 0;padding:16px 8px}
@media(max-width:900px){.h50activity .h50grid{grid-template-columns:1fr}.h50activity .h50scroll{height:216px}}
/* ACA V2.1: preserve three permanent activity panels, including empty states. */
html.aca-premium .h50activity .h50grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch;gap:16px}
.h50activity .h50panel:not([hidden]){display:flex;flex-direction:column;flex:1;min-width:0}
.h50activity .h50scroll{height:250px;min-height:250px}
.h50activity .h50more{margin-top:auto}
.h50activity .h50empty{padding:24px 10px;line-height:1.6;text-align:center}
@media(max-width:900px){html.aca-premium .h50activity .h50grid{grid-template-columns:1fr!important}.h50activity .h50scroll{height:216px;min-height:216px}}

.nb-branch-home .h50activity,.theme-activity-wrap .h50activity{max-width:1500px;margin:28px auto;padding:0 18px}.h50activity .h37head{text-align:center;margin-bottom:18px}.h50activity .h50box h3{background:linear-gradient(110deg,#102e60,var(--accent));color:#fff;padding:12px 15px;margin:0;font-size:17px}.h50activity .h37head h2{font-size:clamp(24px,3vw,36px);font-weight:800}.h50activity .h37head small{font-weight:800;color:#946500;letter-spacing:.08em}
/* ACA activity V54: preserve all three columns and readable student profiles. */
.h50activity .h50grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}.h50activity .h50box{border-radius:18px!important;box-shadow:0 10px 28px #152e6012!important}.h50activity .h50scroll{height:270px!important;padding:9px!important}.h50activity .h50row{position:relative;overflow:hidden;min-height:62px!important;padding:9px!important;border-radius:12px!important;transition:background .25s,box-shadow .25s;color:#153354!important}.h50activity .h50row:hover,.h50activity .h50row:focus-visible{background:var(--pale)!important;box-shadow:inset 0 0 0 1px var(--accent)}.h50activity .h50row:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffffa0 48%,transparent 65%);transform:translateX(-120%)}.h50activity .h50row:hover:after{animation:acaActivitySweep .75s ease-out 1}@keyframes acaActivitySweep{to{transform:translateX(120%)}}.h50activity .h50avatar{width:43px!important;height:43px!important;flex-basis:43px!important;border-radius:50%!important;font-size:17px}.h50activity .h50row small{line-height:1.5!important}.h50activity .h50row strong{font-size:13px!important}.h50activity .h50empty{padding:35px 15px!important;line-height:1.7}.h50activity .h50more:hover{background:var(--pale)!important}@media(max-width:900px){.h50activity .h50grid{grid-template-columns:1fr!important}}@media(prefers-reduced-motion:reduce){.h50activity .h50row:after{animation:none!important}.h50activity .h50row{transition:none!important}}
