.mg-community { --mg-blue: #1f6288; --mg-ink: #17364a; --mg-soft: #eef5f8; max-width: 1100px; margin: 0 auto; color: var(--mg-ink); }
.mg-hero { padding: clamp(2rem, 5vw, 4rem); border-radius: 1.25rem; background: linear-gradient(125deg, #eaf5fa, #f7fbfc 65%, #e5f2f3); }
.mg-eyebrow { margin: 0 0 .75rem; color: var(--mg-blue); font-size: .8rem; font-weight: 800; letter-spacing: .16em; }
.mg-hero h1 { margin: 0 0 .75rem; color: var(--mg-ink); font-size: clamp(2rem, 4vw, 3rem); }
.mg-hero p:last-child { max-width: 48rem; margin-bottom: 0; font-size: 1.1rem; }
.mg-intro { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #dce8ed; border-radius: 1rem; background: #fff; }
.mg-intro h2 { color: var(--mg-ink); }
.mg-intro li { margin: .4rem 0; }
.mg-version { margin-top: 1rem; color: #6b7e89; font-size: .8rem; text-align: right; }
.mg-community { --mg-line:#d5e3e9; --mg-blue:#176a99; --mg-ink:#17364a; }
.mg-community h2 {font-size:1.4rem; margin:0 0 .8rem;}
.mg-community h3 {font-size:1.1rem;}
.mg-community .mg-nav,.mg-community .mg-actions {display:flex; gap:.65rem; flex-wrap:wrap; align-items:center; margin:1rem 0;}
.mg-community .mg-nav a {font-weight:600;color:var(--mg-blue);}
.mg-community .mg-btn {display:inline-flex;justify-content:center;align-items:center;gap:.4rem;padding:.65rem 1rem;border:1px solid var(--mg-blue);border-radius:.55rem;background:var(--mg-blue);color:#fff;text-decoration:none;font-weight:650;cursor:pointer;line-height:1.35;}
.mg-community .mg-btn:hover {filter:brightness(.92);}
.mg-community .mg-outline {background:#fff;color:var(--mg-blue);}
.mg-community .mg-danger {background:#a12b35;border-color:#a12b35;margin-top:1rem;}
.mg-community .mg-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem;margin:1rem 0;}
.mg-community .mg-card {padding:1.2rem;border:1px solid var(--mg-line);border-radius:.85rem;background:#fff;min-width:0;overflow-wrap:anywhere;}
.mg-community .mg-form-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;}
.mg-community .mg-field {display:flex;flex-direction:column;gap:.4rem;min-width:0;}
.mg-community .mg-field label {font-weight:600;}
.mg-community .mg-field input:not([type=checkbox]),.mg-community .mg-field textarea,.mg-community .mg-field select {width:100%;min-width:0;box-sizing:border-box;padding:.65rem .75rem;border:1px solid #a5bac4;border-radius:.45rem;background:#fff;color:#17364a;}
.mg-community .mg-field input[type=file] {padding:.4rem;max-width:100%;}
.mg-community .mg-check {display:flex;gap:.5rem;align-items:flex-start;cursor:pointer;}
.mg-community .mg-check input {margin-top:.35rem;}
.mg-community .mg-wide {grid-column:1/-1;}
.mg-community .mg-preview {max-width:100%;width:100px;height:100px;object-fit:cover;border-radius:.65rem;}
.mg-community .mg-preview-cover {width:100%;height:120px;}
.mg-community .mg-cover {display:block;width:100%;max-height:270px;object-fit:cover;border-radius:.75rem;margin-bottom:1.25rem;}
.mg-community .mg-person {display:flex;gap:1rem;align-items:center;min-width:0;overflow-wrap:anywhere;}
.mg-community .mg-person h1,.mg-community .mg-person h2 {margin:0 0 .25rem;}
.mg-community .mg-person p {margin:0 0 .5rem;}
.mg-community .mg-avatar {display:inline-grid;place-items:center;object-fit:cover;width:64px;height:64px;border-radius:50%;flex:0 0 64px;}
.mg-community .mg-placeholder {background:#e6f1f7;color:#176a99;font-weight:800;}
.mg-community .mg-profile {overflow-wrap:anywhere;}
.mg-community .mg-bio {white-space:pre-wrap;}
.mg-community .mg-profile h2 {margin-top:1.5rem;}
.mg-community .mg-tags {display:flex;flex-wrap:wrap;gap:.5rem;}
.mg-community .mg-tags span {background:#eaf4f9;color:#185975;border-radius:1rem;padding:.35rem .75rem;}
.mg-community .mg-hint {color:#477080;font-size:.9rem;margin:.8rem 0;}
.mg-community .mg-search {display:flex;align-items:end;flex-wrap:wrap;gap:.75rem;}
.mg-community .mg-search .mg-field {flex:1 1 190px;}
.mg-community :focus-visible {outline:3px solid #1689b4;outline-offset:2px;}
.mg-community .mg-group-card {display:flex;flex-direction:column;align-items:flex-start;}
.mg-community .mg-group-card .mg-btn {margin-top:auto;}
.mg-community .mg-group-image,.mg-community .mg-group-placeholder {width:100%;height:144px;border-radius:.6rem;object-fit:cover;margin-bottom:1rem;}
.mg-community .mg-group-placeholder {display:grid;place-items:center;background:linear-gradient(120deg,#e5f1f8,#eff7f8);font-weight:800;color:var(--mg-blue);font-size:1.4rem;}
.mg-community .mg-group-hero {overflow-wrap:anywhere;}
.mg-community .mg-join {display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;}
.mg-community .mg-role {background:#eaf4f9;color:var(--mg-blue);border-radius:1rem;padding:.4rem .75rem;}
.mg-community .mg-member-row {display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;padding:.75rem 0;border-top:1px solid var(--mg-line);}
.mg-community .mg-member-row .mg-actions {margin:0;}
.mg-community .mg-tags a {background:#eaf4f9;color:#185975;border-radius:1rem;padding:.35rem .75rem;text-decoration:none;overflow-wrap:anywhere;}
.mg-community .mg-post-card {overflow-wrap:anywhere;display:block;}
.mg-community .mg-post-card h2 a {color:var(--mg-ink);text-decoration:none;}
.mg-community .mg-post-meta {color:#477080;font-size:.92rem;margin:0 0 .75rem;}
.mg-community .mg-post-image {width:100%;max-height:480px;object-fit:contain;background:#edf4f8;border-radius:.75rem;display:block;}
.mg-community .mg-comment {border-top:1px solid var(--mg-line);padding:1rem 0;overflow-wrap:anywhere;}
.mg-community .mg-comment-form {display:grid;gap:.75rem;padding:.75rem 0 1rem;}
.mg-community .mg-comment-form .mg-btn {justify-self:start;}
.mg-community .mg-comment summary {color:var(--mg-blue);cursor:pointer;font-weight:600;}
.mg-community .mg-message-row {display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem;border-top:1px solid var(--mg-line);overflow-wrap:anywhere;}
.mg-community .mg-message-row > div {flex:1 1 230px;min-width:0;}
.mg-community .mg-message-row h2 {margin:.25rem 0;}
.mg-community .mg-message-unread {background:#eef6fa;border-left:4px solid var(--mg-blue);}
.mg-community .mg-message-badge {display:inline-block;font-size:.8rem;font-weight:700;color:var(--mg-blue);background:#deedf6;border-radius:1rem;padding:.2rem .65rem;}
.mg-community .mg-message-form {display:grid;gap:1rem;}
.mg-community .mg-message-body {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;}
.mg-community.mg-messages h1 {overflow-wrap:anywhere;}
.mg-community .mg-event-card {display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;}
.mg-community .mg-event-card .mg-actions {margin-top:auto;}
.mg-community .mg-event-card h2 {margin:.25rem 0;}
.mg-community .mg-event-date {display:inline-block;background:#eaf4f9;color:var(--mg-blue);font-weight:700;padding:.4rem .7rem;border-radius:.5rem;}
.mg-community.mg-events h1 {overflow-wrap:anywhere;}
.mg-community .mg-notifications .mg-actions {margin:.6rem 0;}
.mg-community.mg-notifications h1 {overflow-wrap:anywhere;}
.mg-community.mg-notifications .mg-hero form {margin-top:1rem;}
.mg-community .mg-report-link {font-size:.88rem;padding:.45rem .7rem;}
