html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, iframe { max-width: 100%; }
.layout > *, .grid > *, .app-shell > * { min-width: 0; }
.feed-tabs { overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab { flex: 1 0 auto; white-space: nowrap; min-height: 44px; }
.topbar { max-width: 100%; }
.top-actions { min-width: 0; flex-wrap: nowrap; }
.nc-btn, .link-btn, .small-btn, .feed-tab, .composer-open, .hero-toggle { min-height: 40px; }
.nc-request, .nc-item { flex-wrap: wrap; }
.nc-actions { flex-wrap: wrap; }
@media (max-width: 1100px) {
    .top-actions { gap: 6px; }
    .top-actions .icon-btn { width: 42px; height: 42px; }
}
@media (max-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr) !important; }
    .leftbar, .rightbar { position: static !important; width: auto !important; max-width: 100%; }
}
@media (max-width: 600px) {
    .page, .shell, main { padding-left: 12px; padding-right: 12px; }
    .calendar-grid, .grid, .two-col { grid-template-columns: minmax(0, 1fr) !important; }
    .card { border-radius: 20px; }
    .nc-actions { width: 100%; }
    .nc-actions .nc-btn { flex: 1; }
    table { display: block; max-width: 100%; overflow-x: auto; }
    .modal, .modal-card, .modal-dialog { max-width: calc(100vw - 16px); }
    input, select, textarea { font-size: 16px; }
}
.brand-logo { flex: 0 0 auto; aspect-ratio: 1 / 1; }
.brand { flex-shrink: 1; min-width: 0; }
@media (max-width: 600px) {
    .brand-copy span { display: none; }
    .lc-bell-wrap:not(.inline) { bottom: 150px !important; right: 12px !important; }
}
@media (max-width: 780px) { body:has(.chat-layout) .lc-admin-switch { display: none; } body:has(.chat-layout) .lc-bell-wrap:not(.inline) { top: 12px !important; bottom: auto !important; right: 12px !important; } }

#en-vivo, #calendario-eventos { scroll-margin-top: 96px; }
.live-launcher-card.section-focus::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    background: rgba(255, 255, 255, .22);
    animation: lc-section-flash 2.4s ease-out forwards;
}
.live-launcher-card.section-focus { box-shadow: 0 0 0 3px rgba(199, 223, 0, .85), 0 18px 50px rgba(0, 0, 0, .25); transition: box-shadow .4s ease; }
@keyframes lc-section-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

@media (min-width: 981px) {
    body .topbar { grid-template-columns: minmax(0, 285px) minmax(160px, 580px) max-content !important; }
    body .top-search { min-width: 0; }
    body .top-actions { position: relative; z-index: 2; }
}
.brand-br { display: none; }
@media (max-width: 480px) {
    .brand-br { display: inline; }
    body .topbar .brand { gap: 8px; }
    body .topbar .brand-copy strong { white-space: normal; line-height: 1.05; font-size: 15px; letter-spacing: -.4px; }
    body .topbar .brand-logo { width: 40px; height: 40px; border-radius: 14px; }
}
@media (max-width: 380px) {
    body .topbar { padding-left: 10px; padding-right: 10px; gap: 8px; }
    body .topbar .brand-copy strong { font-size: 13.5px; }
    body .top-actions { gap: 4px !important; }
    body .top-actions .icon-btn { width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px; }
    body .top-actions .user-mini .avatar-photo { width: 34px; height: 34px; }
}
.composer-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px dashed rgba(91, 33, 182, .35);
    border-radius: 999px;
    background: rgba(91, 33, 182, .06);
    color: inherit;
    font-weight: 800;
    cursor: pointer;
}
.composer-more-caret { transition: transform .2s ease; }
.composer-more-toggle[aria-expanded="true"] .composer-more-caret { transform: rotate(180deg); }
.file-preview, .media-preview-box { position: relative; }
.preview-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(21, 18, 31, .82);
    color: #fff;
    cursor: pointer;
}

html body .mobile-bottom-nav { display: flex !important; grid-template-columns: none !important; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 6px; overflow: hidden; }
html body .mobile-bottom-nav > * { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; aspect-ratio: auto !important; font-size: 16px; }

.composer-more[hidden] { display: none !important; }

.support-footer { width: 100%; padding: 22px 16px 28px; display: flex; justify-content: center; }
.support-footer-inner { display: flex; align-items: center; justify-content: center; gap: 14px 18px; flex-wrap: wrap; text-align: center; width: min(920px, 100%); padding: 16px 20px; border-radius: 22px; background: rgba(17, 17, 22, .92); border: 1px solid rgba(199, 223, 0, .35); color: #fff; }
.support-footer-inner p { margin: 0; font-weight: 700; font-size: 14px; }
.support-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #25d366; color: #0b1f12; font-weight: 900; text-decoration: none; }
.support-btn:hover { filter: brightness(1.08); }
.support-btn i { font-size: 20px; }
@media (max-width: 980px) { body:has(.mobile-bottom-nav) .support-footer { padding-bottom: 110px; } }
body:has(.chat-layout) .support-footer { display: none; }
