/* Scoped homepage/community additions: other workspaces retain their existing layout. */
.home-discovery [hidden], .community-page [hidden] { display: none!important; }
.community-page { --muted: #596b80; }
.home-discovery, .community-page { display: grid; gap: 20px; min-width: 0; }
.home-statistics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 22px 16px; }
.home-statistics>div { display: grid; justify-items: center; gap: 5px; text-align: center; padding: 0 8px; border-right: 1px solid var(--line); }
.home-statistics>div:last-child { border: 0; }
.home-statistics strong { font-size: 27px; line-height: 1.3; color: var(--primary); }
.home-statistics>div>span:last-child { font-size: 11px; color: var(--muted); }
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; }
.teacher-tile { display: grid; justify-items: center; text-align: center; gap: 6px; border-radius: 8px; background: #f6f9fc; padding: 20px 12px; }
.teacher-tile:hover { background: #eaf2fa; }
.teacher-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font-size: 34px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#3b78ac,#155e94); border: 5px solid #e3edf6; margin-bottom: 6px; }
.teacher-tile>span:not(.teacher-avatar), .teacher-tile small { font-size: 11px; color: var(--muted); }
.home-help { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px; }
.home-help>div { flex: 1; min-width: 180px; }.home-help h2 { font-size: 16px; }.home-help p { font-size: 12px; margin: 0; color: var(--muted); }
.home-help>a:not(.btn) { font-size: 12px; font-weight: 700; }
.community-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.community-heading .eyebrow { margin-bottom: 5px; }.community-heading h1 { margin-bottom: 4px; }.community-heading p { color: var(--muted); margin: 0; font-size: 12px; }
.community-heading>a { flex-shrink: 0; }.feed-composer { padding: 22px; }
.composer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }.composer-heading h2 { font-size: 16px; margin: 0 0 4px; }.composer-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.feed-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #e3eef8; color: var(--primary); font-size: 20px; font-weight: 700; }
.composer-options { border-top: 1px solid var(--line); padding-top: 8px; }.composer-options summary { color: var(--primary); min-height: 44px; padding: 10px 0; font-weight: 700; font-size: 12px; }.composer-options summary .icon { width: 18px; height: 18px; margin-right: 6px; }.composer-options-body { padding: 10px 0; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }.composer-footer p { font-size: 11px; color: var(--muted); margin: 0; }.composer-footer button { flex-shrink: 0; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }.feed-heading h2 { margin: 0; font-size: 17px; }.feed-heading>span { font-size: 11px; color: var(--muted); }
.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; }.feed-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: 12px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }.feed-filters a:hover { background: #edf3fa; }.feed-filters a.is-active { background: #e2eef9; border-color: #bfd4e7; font-weight: 700; }
.community-feed { display: grid; gap: 20px; }.feed-card { min-width: 0; overflow: hidden; }
.feed-card-header { display: flex; gap: 12px; align-items: center; padding: 20px 22px 12px; }.feed-author { min-width: 0; flex: 1; }.feed-author>strong { display: block; font-size: 14px; }.feed-author>span { display: block; font-size: 11px; color: var(--muted); }.feed-locked { font-size: 10px; font-weight: 700; color: #855700; background: #fff1d7; padding: 4px 9px; border-radius: 5px; }
.feed-card-body { padding: 0 22px 14px; }.feed-card-body h3 { font-size: 16px; margin: 0 0 8px; }.feed-body { color: var(--ink); margin: 0; font-size: 14px; }.feed-attachments:empty { display: none; }.feed-attachments { display: grid; gap: 12px; margin-top: 14px; }.feed-image-link { display: block; background: #f2f5f8; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }.feed-image-link img { display: block; width: 100%; max-height: 460px; object-fit: contain; }.feed-file-link { display: block; font-size: 12px; padding: 8px 10px; background: #f4f7fb; border-radius: 5px; }
.feed-counts { display: flex; justify-content: space-between; gap: 12px; padding: 10px 22px; color: var(--muted); font-size: 12px; }.like-dot { color: #fff; background: var(--primary); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }
.feed-actions { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin: 0 18px; border-top: 1px solid var(--line); padding: 4px 0; }.feed-actions button { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; border-radius: 6px; }.feed-actions button:hover { background: #edf3fa; }.feed-actions button[aria-pressed=true] { color: var(--primary); background: #e7f1fa; }.feed-actions .icon { width: 19px; height: 19px; }.feed-actions button>span { font-size: 22px; line-height: 1; }.feed-actions button:disabled { opacity: .6; cursor: wait; }
.feed-card-notice { font-size: 12px; color: var(--primary); margin: 0; padding: 0 22px 12px; }.feed-card-notice:empty { padding: 0; }
.feed-comments { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }.feed-comment-list { display: grid; gap: 14px; }.feed-comment { display: flex; gap: 10px; align-items: start; }.feed-comment .feed-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 15px; }.feed-comment-content { background: #eef2f7; padding: 10px 14px; border-radius: 0 12px 12px; flex: 1; min-width: 0; }.feed-comment-content>strong { font-size: 12px; }.feed-comment-time { display: block; font-size: 10px; color: var(--muted); }.feed-comment-content>p { margin: 5px 0 0; font-size: 13px; }.feed-comment-content .feed-attachments { margin-top: 8px; }
.comments-more { border: 0; padding: 8px 0; min-height: 44px; color: var(--primary); background: none; font-size: 12px; font-weight: 700; }.feed-reply-form { display: grid; gap: 12px; margin-top: 18px; }.feed-reply-form summary { min-height: 44px; padding: 8px 0; font-size: 12px; color: var(--primary); }.feed-reply-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.feed-detail-link { font-size: 12px; }.feed-pagination { text-align: center; padding-bottom: 8px; }.feed-notice { text-align: center; color: var(--muted); margin: 0; font-size: 12px; }.feed-notice:empty { display: none; }
.community-guidelines { padding-left: 18px; font-size: 12px; color: var(--muted); }.community-guidelines li { margin-bottom: 10px; }.community-promo-icon { display: grid; place-items: center; height: 130px; }.community-promo-icon .icon { width: 96px; height: 96px; stroke-width: 1.2; }.community-rail .study-promo { min-height: auto; }
@media (max-width: 639px) {
    .home-discovery,.community-page { gap: 16px; }.home-statistics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 0; }.home-statistics>div:nth-child(2) { border: 0; }.home-help { padding: 18px; }.home-help>div { min-width: 140px; }.community-heading { flex-wrap: wrap; }.community-heading>a { display: none; }.feed-composer { padding: 18px 14px; }.composer-footer { flex-wrap: wrap; }.composer-footer button { width: 100%; }.feed-heading { flex-wrap: wrap; }.feed-card-header { padding: 16px 14px 12px; }.feed-card-body { padding: 0 14px 12px; }.feed-counts { padding: 10px 14px; }.feed-actions { margin: 0 8px; }.feed-actions button { font-size: 10px; gap: 4px; }.feed-actions button>span { font-size: 18px; }.feed-actions .icon { width: 16px; height: 16px; }.feed-comments { padding: 14px; }.feed-card-notice { padding-left: 14px; padding-right: 14px; }.feed-reply-footer { flex-wrap: wrap; }.feed-reply-footer .btn { width: 100%; }
}
@media (max-width: 399px) {
    .home-discovery .banner-illustration { display: none; }
    .home-discovery .banner-copy { width: 100%; max-width: none; }
}