.m5g-wrap{max-width:1180px;margin:20px auto;padding:0 12px;color:#173b5e;font-family:Arial,sans-serif}.m5g-wrap *{box-sizing:border-box}.m5g-hero{min-height:125px;padding:24px 28px;border-radius:12px;background:linear-gradient(110deg,#0d2d4b,#164f7a);color:#fff;display:flex;align-items:center;gap:18px;box-shadow:0 8px 24px rgba(0,0,0,.12);margin-bottom:18px}.m5g-hero-icon{font-size:48px}.m5g-hero h1{margin:0 0 5px;font-size:28px}.m5g-hero p{margin:0;opacity:.86}.m5g-hero .m5g-btn{margin-left:auto}.m5g-section{background:#fff;border:1px solid #d8e2eb;border-radius:10px;margin-bottom:18px;overflow:hidden}.m5g-section-title{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e1e8ee}.m5g-section-title>span{font-size:25px}.m5g-section-title strong{display:block;font-size:19px}.m5g-section-title small{display:block;color:#758899;margin-top:2px}.m5g-section-title.official{border-left:4px solid #e7ad2b}.m5g-section-title.public{border-left:4px solid #31a65a}.m5g-section-title.private{border-left:4px solid #e23d4d}.m5g-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.m5g-card{display:grid;grid-template-columns:130px 1fr;min-height:170px;border:1px solid #dce5ec;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 7px rgba(23,59,94,.06)}.m5g-card-img{display:flex;align-items:center;justify-content:center;background:#e9f1f7;font-size:40px;color:#3173a3;text-decoration:none;overflow:hidden}.m5g-card-img img{width:100%;height:100%;object-fit:cover}.m5g-card-body{padding:13px;display:flex;flex-direction:column;align-items:flex-start}.m5g-card h3{margin:0 0 5px;font-size:16px}.m5g-card h3 a{color:#173b5e;text-decoration:none}.m5g-members{font-size:12px;color:#718497;font-weight:700;margin-bottom:7px}.m5g-card p{font-size:12px;line-height:1.4;color:#617587;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.m5g-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;padding:9px 16px;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}.m5g-btn-blue{background:#1479e8;color:#fff}.m5g-btn-blue:hover{background:#0e66c9;color:#fff}.m5g-btn-green{background:#21a84a;color:#fff}.m5g-btn-outline{border:1px solid #1479e8;background:#fff;color:#1479e8}.m5g-btn-light{background:#eef4f8;color:#315772;border:1px solid #d1dfe9}.m5g-small{padding:7px 12px;font-size:11px}.m5g-large{padding:12px 22px;font-size:13px}.m5g-empty{padding:22px;color:#8192a1;text-align:center}.m5g-cover{min-height:220px;background:#194a6c center/cover no-repeat;border-radius:12px;overflow:hidden;color:#fff;position:relative}.m5g-cover.small{min-height:145px}.m5g-cover-overlay{min-height:inherit;padding:28px;display:flex;align-items:flex-end;gap:18px;background:linear-gradient(90deg,rgba(5,29,48,.92),rgba(5,29,48,.48),rgba(5,29,48,.28));position:relative}.m5g-cover h1{margin:0 0 5px;font-size:29px}.m5g-cover p{margin:0;max-width:680px;color:#e7f1f8}.m5g-cover-meta{font-size:12px;color:#dceaf4}.m5g-cover-avatar{width:92px;height:92px;border-radius:10px;border:3px solid #fff;background:#e7f0f7;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:36px;flex:0 0 auto}.m5g-cover-avatar img{width:100%;height:100%;object-fit:cover}.m5g-inline{margin-left:auto}.m5g-tabs{display:flex;align-items:stretch;justify-content:space-between;gap:10px;background:#fff;border:1px solid #d8e2eb;border-top:0;border-radius:0 0 10px 10px;padding:0 8px;margin-bottom:18px}.m5g-tabs a,.m5g-tab-static{padding:13px 15px;color:#42647d;text-decoration:none;font-size:12px;font-weight:700;border-bottom:3px solid transparent}.m5g-tabs a:hover,.m5g-tabs a.active{color:#1479e8;border-bottom-color:#1479e8}.m5g-tabs-local,.m5g-tabs-global{display:flex;align-items:stretch;gap:2px}.m5g-tabs-global{margin-left:auto}.m5g-tabs-global a{font-size:11px;color:#46677e;padding-left:12px;padding-right:12px}.m5g-tabs-global a:hover{color:#1479e8;border-bottom-color:#1479e8}.m5g-topic-back{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d8e2eb;border-radius:6px;background:#fff;color:#46677e;text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap}.m5g-topic-back:hover{border-color:#1479e8;background:#edf6ff;color:#1479e8}.m5g-content-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0}.m5g-content-head h2{margin:0;font-size:20px}.m5g-head-actions{display:flex;gap:8px;align-items:center}.m5g-search{height:34px;border:1px solid #cbd8e2;border-radius:6px;padding:0 10px;min-width:220px}.m5g-topic-table{background:#fff;border:1px solid #d8e2eb;border-radius:8px;overflow:hidden}.m5g-topic-head,.m5g-topic-row{display:grid;grid-template-columns:1fr 110px 210px;align-items:center}.m5g-topic-head{background:#edf3f7;color:#60778a;font-size:10px;font-weight:800;padding:11px 14px}.m5g-topic-row{padding:12px 14px;border-top:1px solid #e3e9ee;text-decoration:none;color:#173b5e}.m5g-topic-row:hover{background:#f6fbff}.m5g-topic-row>div:first-child{min-width:0}.m5g-topic-row strong,.m5g-topic-row small{display:block}.m5g-topic-row strong{font-size:13px}.m5g-topic-row small{font-size:10px;color:#8493a0;margin-top:3px}.m5g-topic-row>b{text-align:center;font-size:13px}.m5g-last{display:flex;flex-direction:column}.m5g-new-topic{display:none;background:#fff;border:1px solid #d8e2eb;border-radius:8px;padding:14px;margin-bottom:12px}.m5g-new-topic.open{display:block}.m5g-new-topic input,.m5g-new-topic textarea,.m5g-form input,.m5g-form textarea,.m5g-form select,.m5g-mute-form select{width:100%;border:1px solid #cbd8e2;border-radius:6px;padding:10px;margin-bottom:10px;font:inherit}.m5g-new-topic textarea{resize:vertical}.m5g-notice{background:#fff5d9;border:1px solid #efd38b;color:#7d5b11;border-radius:7px;padding:11px;margin:10px 0;font-size:12px}.m5g-panel{background:#fff;border:1px solid #d8e2eb;border-radius:9px;overflow:hidden;padding:18px}.m5g-panel-head{border-bottom:1px solid #e2e9ee;margin:-18px -18px 18px;padding:15px 18px}.m5g-panel h1,.m5g-panel h2{margin:0}.m5g-form{max-width:720px}.m5g-form label{display:block;font-size:12px;font-weight:700;margin-bottom:12px}.m5g-form-actions{display:flex;gap:8px}.m5g-error{background:#ffe8e8;border:1px solid #efb1b1;color:#a12626;padding:10px;border-radius:6px;margin-bottom:12px}.m5g-topic-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px solid #e2e9ee}.m5g-topic-title h1{font-size:30px;font-weight:800;line-height:1.2;color:#173b5e;margin:0}.m5g-topic-title small{color:#81909d}.m5g-danger-link{background:none;border:0;color:#d22b2b;font-size:11px;font-weight:700;cursor:pointer}.m5g-post{position:relative;display:grid;grid-template-columns:175px 1fr;border:1px solid #dfe7ee;border-radius:10px;overflow:hidden;background:#fff;min-height:145px;box-shadow:0 2px 8px rgba(23,59,94,.04)}.m5g-post aside{padding:18px;background:#f5f8fa;text-align:center;display:flex;flex-direction:column;gap:4px;font-size:12px}.m5g-avatar{width:54px;height:54px;border-radius:50%;background:#dceaf3;margin:0 auto 5px;display:flex;align-items:center;justify-content:center;font-size:22px}.m5g-post aside span{color:#82909c;font-size:10px}.m5g-post-body{padding:20px;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word;position:relative}.m5g-reply{min-height:110px}.m5g-reply-form{padding-top:18px}.m5g-reply-form textarea{width:100%;border:1px solid #cbd8e2;border-radius:7px;padding:12px;margin-bottom:8px}.m5g-delete-reply{position:absolute;right:10px;top:8px}.m5g-delete-reply button{border:0;background:none;color:#d22b2b;font-size:10px;cursor:pointer}.m5g-member-head,.m5g-member-row{display:grid;grid-template-columns:1fr 150px 190px;align-items:center}.m5g-member-head{background:#edf3f7;padding:11px 14px;color:#60778a;font-size:10px;font-weight:800}.m5g-member-row{padding:10px 14px;border-top:1px solid #e4e9ee;font-size:12px}.m5g-mini-avatar{display:inline-flex;width:30px;height:30px;border-radius:50%;background:#e3edf4;align-items:center;justify-content:center;margin-right:8px}.m5g-member-row em{font-style:normal;background:#eaf3ff;color:#1479e8;border-radius:10px;padding:3px 7px;font-size:9px;margin-left:8px}.m5g-member-row em.owner{background:#fff2cc;color:#9a6a00}.m5g-manage-grid{display:grid;grid-template-columns:215px 1fr;gap:16px;align-items:start}.m5g-manage-nav{background:#fff;border:1px solid #d8e2eb;border-radius:8px;padding:10px;position:sticky;top:10px}.m5g-manage-nav strong{display:block;padding:8px 10px}.m5g-manage-nav a{display:block;text-decoration:none;color:#46677e;padding:9px 10px;border-radius:5px;font-size:12px}.m5g-manage-nav a.active,.m5g-manage-nav a:hover{background:#edf6ff;color:#1479e8}.m5g-manage-grid main{display:flex;flex-direction:column;gap:14px}.m5g-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e4e9ee}.m5g-admin-row:last-child{border-bottom:0}.m5g-admin-row small{display:block;color:#8393a0;font-size:10px;margin-top:3px}.m5g-admin-actions{display:flex;gap:6px;align-items:center}.m5g-danger-btn{border:1px solid #e3b5b5;background:#fff3f3;color:#c52828;border-radius:5px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer}.m5g-mute-form{display:grid;grid-template-columns:1fr 160px auto;gap:8px}.m5g-narrow{max-width:820px}.m5g-breadcrumb{font-size:11px;color:#81909d;margin-bottom:10px}.m5g-breadcrumb a{color:#1479e8;text-decoration:none}@media(max-width:800px){.m5g-tabs{flex-wrap:wrap}.m5g-tabs-local,.m5g-tabs-global{width:100%;overflow-x:auto}.m5g-tabs-global{border-top:1px solid #e3e9ee}.m5g-grid{grid-template-columns:1fr}.m5g-card{grid-template-columns:105px 1fr}.m5g-topic-head,.m5g-topic-row{grid-template-columns:1fr 70px}.m5g-topic-head span:last-child,.m5g-topic-row .m5g-last{display:none}.m5g-manage-grid{grid-template-columns:1fr}.m5g-manage-nav{position:static}.m5g-member-head,.m5g-member-row{grid-template-columns:1fr 80px}.m5g-member-head span:last-child,.m5g-member-row>span:last-child{display:none}.m5g-mute-form{grid-template-columns:1fr}.m5g-cover-overlay{padding:18px}.m5g-cover-avatar{width:70px;height:70px}.m5g-cover h1{font-size:22px}.m5g-hero{padding:18px}.m5g-hero .m5g-btn{margin-left:0}.m5g-hero{flex-wrap:wrap}.m5g-content-head{align-items:flex-start;flex-direction:column}.m5g-search{min-width:0;width:100%}.m5g-head-actions{width:100%;flex-wrap:wrap}}

.m5g-file-input{display:block;width:100%;padding:10px 12px;border:1px solid #cbd7e6;border-radius:8px;background:#fff;box-sizing:border-box;font-size:14px;}
.m5g-help{display:block;margin-top:6px;color:#6b7788;font-size:12px;line-height:1.4;}
.m5g-field{display:block;margin-bottom:14px}.m5g-field>label{display:block;margin:0 0 6px;font-size:12px;font-weight:700;color:#173b5e}.m5g-field input[type="text"],.m5g-field textarea,.m5g-field select{margin-bottom:0}.m5g-help{display:block;margin-top:6px;color:#718497;font-size:11px;line-height:1.4}.m5g-file-input{display:block;width:100%;padding:8px;border:1px solid #cbd8e2;border-radius:6px;background:#fff}

.m5g-upload-field{display:block;margin:10px 0 12px;color:#173b5e;font-size:12px;font-weight:700}.m5g-upload-field span{display:block;margin-bottom:6px}.m5g-upload-field input[type=file]{display:block;width:100%;box-sizing:border-box;padding:9px;border:1px solid #cbd8e2;border-radius:6px;background:#fff;font-size:12px;font-weight:400}.m5g-upload-field small{display:block;margin-top:5px;color:#718497;font-size:11px;font-weight:400;line-height:1.4}.m5g-image-gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.m5g-lightbox-link{display:block;width:112px;height:88px;border-radius:7px;overflow:hidden;border:1px solid #d7e0e7;background:#f5f8fa}.m5g-lightbox-link img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s ease}.m5g-lightbox-link:hover img{transform:scale(1.03)}.m5g-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:60px;box-sizing:border-box}.m5g-lightbox[hidden]{display:none}.m5g-lightbox>img{max-width:90vw;max-height:84vh;object-fit:contain;box-shadow:0 8px 35px rgba(0,0,0,.45);border-radius:4px}.m5g-lightbox button{position:fixed;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;border-radius:50%;width:44px;height:44px;font-size:30px;line-height:40px}.m5g-lightbox-close{top:20px;right:24px}.m5g-lightbox-prev{left:22px;top:50%;margin-top:-22px}.m5g-lightbox-next{right:22px;top:50%;margin-top:-22px}.m5g-lightbox button:hover{background:rgba(255,255,255,.28)}body.m5g-lightbox-open{overflow:hidden}.m5g-post-body>.m5g-lightbox-link{display:inline-block;margin-top:14px;margin-right:8px}

.m5g-groups-nav{display:flex;justify-content:flex-end;margin:-4px 0 14px}.m5g-groups-nav a{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid #d8e2eb;border-radius:7px;background:#fff;color:#1479e8;text-decoration:none;font-size:12px;font-weight:700}.m5g-page-title{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #d8e2eb;border-radius:10px;padding:18px 20px;margin-bottom:14px}.m5g-page-title h1{margin:0 0 4px;font-size:24px;color:#173b5e}.m5g-page-title p{margin:0;color:#718497;font-size:12px}.m5g-watched-table{background:#fff;border:1px solid #d8e2eb;border-radius:9px;overflow:hidden}.m5g-watched-head,.m5g-watched-row{display:grid;grid-template-columns:minmax(300px,1.6fr) minmax(170px,1fr) 100px minmax(210px,1fr);align-items:center}.m5g-watched-head{background:#edf3f7;padding:11px 14px;color:#60778a;font-size:10px;font-weight:800}.m5g-watched-row{padding:13px 14px;border-top:1px solid #e3e9ee;color:#173b5e;text-decoration:none}.m5g-watched-row:hover{background:#f6fbff}.m5g-watched-row strong,.m5g-watched-row small{display:block}.m5g-watched-row strong{font-size:13px}.m5g-watched-row small{font-size:10px;color:#8493a0;margin-top:3px}.m5g-watched-row>span{font-size:12px;color:#42647d}.m5g-watched-row>b{text-align:center;font-size:13px}.m5g-topic-title{min-height:72px}.m5g-topic-title h1{font-size:28px;line-height:1.2}.m5g-topic-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.m5g-watch-btn{border:1px solid #cbd8e2;background:#fff;color:#46677e;border-radius:6px;padding:8px 12px;font-size:11px;font-weight:700;cursor:pointer}.m5g-watch-btn:hover,.m5g-watch-btn.active{border-color:#1479e8;background:#edf6ff;color:#1479e8}.m5g-topic-title+.m5g-post{min-height:260px}.m5g-topic-title+.m5g-post .m5g-post-body{padding:28px;font-size:14px;line-height:1.75}.m5g-topic-title+.m5g-post .m5g-avatar{width:64px;height:64px;font-size:26px}.m5g-topic-title+.m5g-post aside{padding:26px 18px}.m5g-moderator-form{display:flex;gap:8px;align-items:center;margin:10px 0 14px}.m5g-moderator-form select{flex:1;border:1px solid #cbd8e2;border-radius:6px;padding:10px;background:#fff}.m5g-admin-list{border-top:1px solid #e4e9ee}.m5g-admin-list:empty{display:none}@media(max-width:800px){.m5g-watched-head,.m5g-watched-row{grid-template-columns:1fr 80px}.m5g-watched-head span:nth-child(2),.m5g-watched-row>span,.m5g-watched-head span:nth-child(4),.m5g-watched-row>div:last-child{display:none}.m5g-topic-title{align-items:flex-start;flex-direction:column}.m5g-topic-actions{width:100%}.m5g-moderator-form{flex-direction:column;align-items:stretch}}

.m5g-groups-nav{gap:8px;align-items:center}.m5g-page-links{display:flex;gap:8px;align-items:center}.m5g-page-links a{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d8e2eb;border-radius:7px;background:#fff;color:#1479e8;text-decoration:none;font-size:11px;font-weight:700}.m5g-watched-row>span>a{color:#1479e8;text-decoration:none;font-weight:700}.m5g-member-user{display:flex;align-items:center;gap:10px}.m5g-member-user>div>strong{display:inline-block;margin-right:5px}.m5g-member-user small{display:block;color:#718497;font-size:10px;margin-top:4px}.m5g-member-user small b{color:#173b5e}.m5g-avatar-frame{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;border:3px solid #d8e2eb;background:#eef3f7;box-sizing:border-box;flex:0 0 48px}.m5g-avatar-frame.vip{border-color:#f0c341}.m5g-avatar-frame.official{border-color:#d8e2eb}.m5g-avatar-frame.vip-official{border:3px solid #f0c341!important;background:#eef3f7!important;padding:0!important}.m5g-avatar-frame.vip-official:before{content:none!important}.m5g-avatar-frame img,.m5g-user-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;position:relative;z-index:1}.m5g-stars{display:inline-flex;gap:2px;margin-left:4px;vertical-align:middle}.m5g-star{font-size:13px;line-height:1}.m5g-star.vip{color:#f0c341}.m5g-star.official{color:#39a85b}.m5g-post+.m5g-post{margin-top:16px}.m5g-attached-title{margin-top:16px;margin-bottom:7px;color:#173b5e;font-size:11px;font-weight:800}.m5g-post-body .m5g-image-gallery{margin-top:0}.m5g-topic-title h1{font-size:30px;font-weight:800;line-height:1.2;color:#173b5e;margin:0}.m5g-member-row{min-height:72px}

/* 1.0.23 — members: larger centered avatar, identity, stats and join date */
.m5g-members-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:2px 0}
.m5g-member-card{min-height:220px;padding:22px 18px 18px;border:1px solid #dfe7ee;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 2px 8px rgba(23,59,94,.04)}
.m5g-member-avatar{display:flex;align-items:center;justify-content:center;width:100%;margin-bottom:11px}
.m5g-member-avatar .m5g-avatar-frame{width:82px;height:82px;flex:0 0 82px;border-width:3px}
.m5g-member-avatar .m5g-avatar-frame.vip-official{padding:3px}
.m5g-member-avatar .m5g-avatar-frame img,.m5g-member-avatar .m5g-user-avatar-img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.m5g-member-identity{display:flex;align-items:center;justify-content:center;gap:6px;min-height:27px;line-height:1.2}
.m5g-member-identity strong{font-size:17px;font-weight:800;color:#173b5e}
.m5g-member-identity .m5g-stars{gap:3px;margin-left:0}
.m5g-member-identity .m5g-star{font-size:18px;line-height:1}
.m5g-member-role{font-style:normal;margin-top:6px;padding:4px 9px;border-radius:12px;background:#eaf3ff;color:#1479e8;font-size:10px;font-weight:700}
.m5g-member-role.owner{background:#fff2cc;color:#9a6a00}
.m5g-member-stats{display:flex;justify-content:center;gap:18px;margin-top:12px;color:#60778a;font-size:12px;font-weight:600}
.m5g-member-stats span{white-space:nowrap}
.m5g-member-stats b{color:#173b5e;font-size:13px}
.m5g-member-joined{margin-top:9px;padding-top:9px;border-top:1px solid #e5ebf0;width:100%;color:#81909d;font-size:11px}
@media(max-width:800px){.m5g-members-list{grid-template-columns:1fr}.m5g-member-card{min-height:205px}}

/* M5 GROUPS — FIX 1.0.26: topics header/pin actions */
.m5g-content-head{min-height:42px;padding:8px 0 12px}
.m5g-content-head>div:first-child{flex:1}
.m5g-topic-section{margin-bottom:18px}
.m5g-topic-section-title{display:flex;align-items:center;padding:0 0 9px}
.m5g-topic-section-title h2{margin:0;font-size:20px;line-height:1.25;color:#173b5e;font-weight:700}
.m5g-topic-section-title h2 span{font-size:17px;vertical-align:1px;margin-right:3px}
.m5g-topic-table{border:1px solid #d8e2eb;border-radius:8px;overflow:hidden;background:#fff}
.m5g-topic-head,.m5g-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 225px;align-items:center}
.m5g-topic-head{padding:11px 14px}
.m5g-topic-row-wrap{position:relative;border-top:1px solid #e3e9ee}
.m5g-topic-row-wrap:first-of-type{border-top:0}
.m5g-topic-row{padding:12px 58px 12px 14px;display:grid}
.m5g-topic-pin-form{position:absolute;right:10px;top:50%;transform:translateY(-50%);margin:0}
.m5g-topic-pin-form button{width:30px;height:30px;border:1px solid #d3dfe8;border-radius:6px;background:#fff;color:#e05a73;font-size:14px;line-height:1;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}
.m5g-topic-pin-form button:hover{background:#fff3f5;border-color:#e05a73}
.m5g-pinned-section .m5g-topic-pin-form button{color:#d14b65}
@media(max-width:800px){.m5g-topic-head,.m5g-topic-row{grid-template-columns:1fr 70px;padding-right:50px}.m5g-topic-head span:last-child,.m5g-topic-row .m5g-last{display:none}.m5g-topic-pin-form{right:8px}}

/* 1.0.28 — post dates and direct post links */
.m5g-post-meta{position:absolute;top:10px;right:14px;z-index:2;display:flex;align-items:center;gap:12px;font-size:11px;line-height:1;color:#82909c;white-space:nowrap}.m5g-post-number{color:#173b5e;text-decoration:none;font-weight:800}.m5g-post-number:hover{text-decoration:underline;color:#1479e8}.m5g-post-meta span{color:#82909c}@media(max-width:800px){.m5g-post-meta{top:8px;right:10px;font-size:10px;gap:8px}.m5g-post-number{font-size:11px}}

/* FIX 1.0.30 — topic post identity: slightly smaller centered avatar; stars inline with nick */
.m5g-post aside .m5g-avatar-frame{width:72px;height:72px;flex:0 0 72px;margin:0 auto 8px}
.m5g-post aside>div{text-align:center;width:100%}
.m5g-post aside>div{white-space:nowrap}.m5g-post aside>div>strong{font-size:18px;font-weight:800;line-height:1.2;white-space:nowrap}
.m5g-post aside .m5g-stars{display:inline-flex;align-items:center;gap:4px;margin-left:5px;vertical-align:middle}
.m5g-post aside .m5g-star{font-size:18px;line-height:1}
.m5g-post aside>div>span:not(.m5g-stars){display:block;margin-top:5px}
@media(max-width:800px){.m5g-post{grid-template-columns:160px 1fr}.m5g-post aside .m5g-avatar-frame{width:68px;height:68px;flex-basis:68px}.m5g-post aside>div>strong{font-size:17px}.m5g-post aside .m5g-star{font-size:17px}}

/* 1.0.34 — members table repaired to the intended visual layout */
.m5g-members-table{width:100%;border:1px solid #d8e2eb;border-radius:8px;overflow:hidden;background:#fff}
.m5g-members-table-head,.m5g-members-table-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px 190px;align-items:center}
.m5g-members-table-head{background:#edf3f7;padding:11px 14px;color:#60778a;font-size:10px;font-weight:800}
.m5g-members-table-row{min-height:64px;padding:9px 14px;border-top:1px solid #e3e9ee;font-size:12px;color:#173b5e}
.m5g-members-table-row:hover{background:#f8fbfd}
.m5g-member-user{display:flex;align-items:center;min-width:0;gap:10px}
.m5g-member-user>.m5g-avatar-frame{width:48px;height:48px;flex:0 0 48px;border-width:3px}
.m5g-member-user>.m5g-avatar-frame img,.m5g-member-user>.m5g-avatar-frame .m5g-user-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.m5g-member-user-identity{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.m5g-member-user-name{display:flex;align-items:center;gap:5px;min-width:0;line-height:1.2}
.m5g-member-user-name strong{font-size:14px;font-weight:800;color:#173b5e;white-space:nowrap}
.m5g-member-user-name .m5g-stars{display:inline-flex;align-items:center;gap:2px;margin-left:0}
.m5g-member-user-name .m5g-star{font-size:14px;line-height:1}
.m5g-member-badge{font-style:normal;background:#eaf3ff;color:#1479e8;border-radius:10px;padding:3px 7px;font-size:9px;font-weight:700;white-space:nowrap}
.m5g-member-badge.owner{background:#fff2cc;color:#9a6a00}
.m5g-members-col-center{text-align:center}
.m5g-members-col-right{text-align:right}
.m5g-member-stat{font-size:13px;font-weight:700;color:#173b5e}
.m5g-member-joined{font-size:11px;color:#617587;white-space:nowrap}
.m5g-members-table .m5g-empty{grid-column:1/-1}
@media(max-width:800px){
  .m5g-members-table-head,.m5g-members-table-row{grid-template-columns:minmax(0,1fr) 70px 70px 120px}
  .m5g-member-user>.m5g-avatar-frame{width:42px;height:42px;flex-basis:42px}
  .m5g-member-user-name strong{font-size:13px}
  .m5g-member-user-name .m5g-star{font-size:13px}
  .m5g-members-table-head{padding:10px}
  .m5g-members-table-row{padding:8px 10px}
}
@media(max-width:620px){
  .m5g-members-table-head,.m5g-members-table-row{grid-template-columns:minmax(0,1fr) 70px 115px}
  .m5g-members-table-head span:nth-child(3),.m5g-members-table-row>div:nth-child(3){display:none}
}


/* M5 GROUPS 1.0.37 — moderator trash / owner restore */
.m5g-topic-row-wrap{display:flex;align-items:stretch;border-top:1px solid #e3e9ee}.m5g-topic-row-wrap>.m5g-topic-row{flex:1;border-top:0}.m5g-topic-row-actions{display:flex;align-items:center;gap:4px;padding:0 10px;background:#fff}.m5g-topic-row-actions form{margin:0}.m5g-topic-row-actions button{border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;padding:6px;border-radius:5px}.m5g-topic-row-actions button:hover{background:#f2f7fb}.m5g-topic-trash-form button{color:#c52828}.m5g-trash-tab{color:#b33}.m5g-trash-panel{padding:18px}.m5g-trash-help{margin:0;color:#7c8d9a;font-size:11px}.m5g-trash-section{border:1px solid #d8e2eb;border-radius:8px;overflow:hidden;background:#fff;margin-top:14px}.m5g-trash-section-title{padding:11px 14px;background:#edf3f7;border-bottom:1px solid #dce5ec}.m5g-trash-section-title h3{margin:0;font-size:15px;color:#173b5e}.m5g-trash-item{display:flex;justify-content:space-between;gap:18px;padding:14px;border-top:1px solid #e4e9ee}.m5g-trash-item:first-of-type{border-top:0}.m5g-trash-item-main{min-width:0;flex:1}.m5g-trash-item-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.m5g-trash-item-title strong{font-size:13px;color:#173b5e}.m5g-trash-item-title span{font-size:10px;color:#7c8d9a}.m5g-trash-preview{margin:7px 0;color:#51697b;font-size:12px;line-height:1.5;white-space:pre-wrap;max-height:70px;overflow:hidden}.m5g-trash-item-main>small{font-size:10px;color:#8a98a4}.m5g-trash-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.m5g-trash-blocked{font-size:10px;color:#9b7a2d;background:#fff7df;border:1px solid #eddca8;border-radius:5px;padding:7px 9px}.m5g-trash-panel .m5g-btn-light{white-space:nowrap}.m5g-trash-panel .m5g-danger-btn{white-space:nowrap}
@media(max-width:800px){.m5g-topic-row-actions{padding:0 5px}.m5g-trash-item{flex-direction:column}.m5g-trash-actions{justify-content:flex-start;flex-wrap:wrap}.m5g-trash-actions form{display:inline-flex}}

/* FIX 1.0.44 — group image crop/editor, exact hero ratio 59:11 */
.m5g-group-image-editor-field{position:relative}
.m5g-group-image-selected{margin-top:10px;font-size:11px;color:#6f8497}
.m5g-image-editor-overlay{position:fixed;inset:0;z-index:99999;background:rgba(3,18,31,.72);display:flex;align-items:center;justify-content:center;padding:20px}
body.m5g-editor-open{overflow:hidden}
.m5g-image-editor-modal{width:min(100%,1080px);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);color:#173b5e}
.m5g-image-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 12px}
.m5g-image-editor-head h2{margin:0;font-size:20px}
.m5g-image-editor-head p{margin:4px 0 0;color:#718497;font-size:11px}
.m5g-image-editor-close{width:36px;height:36px;border:0;border-radius:50%;background:#eef4f8;color:#315772;font-size:22px;cursor:pointer;flex:0 0 36px}
.m5g-image-editor-stage-wrap{padding:0 20px}
.m5g-image-editor-stage{position:relative;width:100%;aspect-ratio:59/11;background:#09141f;border-radius:10px;overflow:hidden;border:1px solid #d8e2eb;touch-action:none}
.m5g-image-editor-stage img{position:absolute;left:50%;top:50%;max-width:none;user-select:none;transform-origin:center center;will-change:transform;cursor:grab}
.m5g-image-editor-stage img.dragging{cursor:grabbing}
.m5g-image-editor-controls{display:flex;align-items:center;gap:10px;padding:16px 20px 8px}
.m5g-image-editor-controls button,.m5g-image-editor-footer button{border:1px solid #d1dfe9;background:#fff;color:#315772;border-radius:7px;padding:9px 12px;font-size:12px;font-weight:700;cursor:pointer}
.m5g-image-editor-controls button:hover,.m5g-image-editor-footer button:hover{background:#f1f7fb}
.m5g-image-editor-range{flex:1}
.m5g-image-editor-range input{width:100%}
.m5g-image-editor-help{padding:0 20px 8px;color:#718497;font-size:10px}
.m5g-image-editor-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px 20px}
.m5g-image-editor-footer .m5g-primary{background:#1479e8;color:#fff;border-color:#1479e8}
.m5g-image-editor-footer .m5g-primary:hover{background:#0e66c9;border-color:#0e66c9}
.m5g-image-editor-preview-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #d8e2eb;border-radius:7px;background:#f8fbfd}
.m5g-image-editor-preview-chip img{width:96px;height:28px;object-fit:cover;border-radius:4px;border:1px solid #d8e2eb}
@media(max-width:800px){.m5g-image-editor-overlay{padding:10px}body.m5g-editor-open{overflow:hidden}
.m5g-image-editor-modal{max-height:calc(100vh - 20px)}.m5g-image-editor-stage-wrap{padding:0 12px}.m5g-image-editor-controls{padding:12px}.m5g-image-editor-head{padding:14px 12px 10px}.m5g-image-editor-footer{padding:10px 12px 14px}.m5g-image-editor-help{padding:0 12px 6px}}

.m5g-admin-pending-link{position:relative}.m5g-admin-pending-link span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:10px;background:#d92d45;color:#fff;font-size:9px;font-weight:800}.m5g-success-panel{background:#effaf2;border:1px solid #b9dfc2;border-radius:8px;padding:18px;color:#245c2e}.m5g-success-panel h2{margin:0 0 8px;color:#20652b}.m5g-success-panel p{margin:6px 0 12px;line-height:1.5}.m5g-approval-list{display:flex;flex-direction:column;gap:12px}.m5g-approval-card{display:grid;grid-template-columns:170px 1fr;gap:18px;background:#fff;border:1px solid #d8e2eb;border-radius:9px;overflow:hidden}.m5g-approval-image{min-height:150px;background:#eef3f7;display:flex;align-items:center;justify-content:center;font-size:48px;color:#6f8798}.m5g-approval-image img{width:100%;height:100%;object-fit:cover;display:block}.m5g-approval-main{padding:16px 18px}.m5g-approval-head{display:flex;align-items:center;gap:10px;justify-content:space-between}.m5g-approval-head h2{margin:0;color:#173b5e;font-size:18px}.m5g-approval-badge{padding:4px 8px;border-radius:10px;background:#fff4d8;color:#966a00;font-size:9px;font-weight:800}.m5g-approval-meta{margin:8px 0;color:#718497;font-size:11px}.m5g-approval-main p{margin:0 0 14px;color:#51697b;font-size:12px;line-height:1.5;white-space:pre-wrap}.m5g-approval-actions{display:flex;gap:8px;align-items:center}.m5g-approval-actions form{margin:0}@media(max-width:800px){.m5g-approval-card{grid-template-columns:1fr}.m5g-approval-image{min-height:180px;max-height:240px}.m5g-approval-head{align-items:flex-start;flex-direction:column}}
.m5g-modal-backdrop{position:fixed;inset:0;background:rgba(8,24,38,.62);display:flex;align-items:center;justify-content:center;padding:20px;z-index:99999}.m5g-modal-backdrop[hidden]{display:none!important}.m5g-modal{position:relative;width:min(620px,100%);background:#fff;border:1px solid #d8e2eb;border-radius:12px;box-shadow:0 18px 50px rgba(10,30,50,.28);padding:22px;color:#173b5e}.m5g-modal h2{margin:0 34px 8px 0;font-size:22px}.m5g-modal-text{margin:0 0 15px;color:#60778a;font-size:12px;line-height:1.5}.m5g-modal-close{position:absolute;top:10px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:#eef4f8;color:#46677e;font-size:24px;line-height:1;cursor:pointer}.m5g-modal-label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.m5g-modal textarea{width:100%;min-height:140px;border:1px solid #cbd8e2;border-radius:7px;padding:11px;resize:vertical;font:inherit;color:#173b5e;margin:0;box-sizing:border-box}.m5g-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.m5g-danger-btn-large{padding:9px 14px}

/* FIX 1.0.49 — Global Mod */
.m5g-admin-global-mod-link{font-weight:700;}
.m5g-global-mod-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#eef5ff;color:#1769aa;font-size:12px;font-weight:700;white-space:nowrap;}
.m5g-member-badge.global{background:#eaf3ff;color:#1769aa;}
.m5g-global-mod-panel{margin-top:18px;}
.m5g-global-mod-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;}
.m5g-global-mod-form label{flex:1 1 320px;}
.m5g-global-mod-form button{white-space:nowrap;}
.m5g-global-mod-row{align-items:center;}

/* FIX050 — one shared MEDIA5 identity convention: First Last, then @nick. */
.m5g-identity-stack{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;line-height:1.25}
.m5g-identity-name{display:block;color:#1267b1;font-size:inherit;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.m5g-identity-name:hover{color:#0c4e8e;text-decoration:underline}
.m5g-identity-nick{display:block;color:#7d91a4;font-size:10px;font-weight:500;line-height:1.2;text-decoration:none;overflow-wrap:anywhere}
.m5g-identity-nick:hover{color:#1479e8;text-decoration:underline}
.m5g-identity-inline{display:inline-flex;vertical-align:middle;margin-left:4px}
.m5g-topic-author-byline{align-items:flex-start;margin-top:4px}
.m5g-post-author-info{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.m5g-post-author-name-row{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;max-width:100%}
.m5g-post-author-name-row .m5g-identity-name{font-size:12px;text-align:center;color:#1267b1}
.m5g-post-author-info>.m5g-identity-nick{font-size:10px;text-align:center}
.m5g-topic-main{min-width:0}
.m5g-topic-title-link{display:block;color:#173b5e;text-decoration:none}
.m5g-topic-title-link:hover{color:#1479e8;text-decoration:underline}
.m5g-topic-author-line{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:5px}
.m5g-topic-author-label{font-size:10px;color:#8493a0}
.m5g-topic-row .m5g-identity-stack{gap:1px}
.m5g-topic-row .m5g-identity-name{font-size:11px}
.m5g-topic-row .m5g-identity-nick{font-size:9px}
.m5g-topic-row .m5g-last{align-items:flex-start;gap:3px;min-width:0}
.m5g-topic-row .m5g-last>small{margin-top:0}
.m5g-member-user-identity{flex-direction:column;align-items:flex-start;gap:3px}
.m5g-member-user-name .m5g-identity-name{font-size:14px;white-space:normal}
.m5g-member-user-identity>.m5g-identity-nick{margin-left:0}
.m5g-trash-author{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:4px}
.m5g-trash-author>span:first-child{font-size:10px;color:#7c8d9a}
.m5g-trash-byline{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;margin-top:5px;font-size:10px;color:#7c8d9a}
.m5g-trash-byline .m5g-identity-stack{display:inline-flex}
.m5g-global-mod-identity{min-width:0}
.m5g-global-mod-identity>small{display:block;margin-top:4px;color:#8393a0;font-size:10px}
.m5g-identity-name-inline,.m5g-identity-nick-inline{display:inline!important}
.m5g-approval-meta .m5g-identity-inline{vertical-align:middle}
.m5g-admin-person{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.m5g-admin-person>small{display:block;margin-top:0}
@media(max-width:700px){.m5g-topic-row{grid-template-columns:minmax(0,1fr) 48px minmax(95px,120px)}.m5g-topic-author-line{max-width:100%}.m5g-topic-row .m5g-identity-name{white-space:normal}}

/* Access rules: compact, clear notices and owner format ADMIN M5 (@nick). */
.m5g-group-owner{display:inline-flex;align-items:baseline;gap:3px;flex-wrap:wrap;vertical-align:baseline}
.m5g-group-owner .m5g-owner-name{display:inline!important;color:inherit;font-size:inherit;font-weight:800;text-decoration:none}
.m5g-group-owner .m5g-owner-nick{display:inline!important;color:inherit;font-size:inherit;font-weight:600;line-height:inherit;text-decoration:none;opacity:.92}
.m5g-owner-label{font-weight:700}
.m5g-access-panel{margin:18px 0;padding:20px;border:1px solid #d8e2eb;border-radius:10px;background:#fff}
.m5g-access-panel h1,.m5g-access-panel h2{margin:0 0 10px;color:#173b5e;font-size:20px}
.m5g-access-panel p{margin:0 0 14px;color:#526e84;line-height:1.55}
.m5g-access-panel .m5g-btn{margin:3px 8px 3px 0}

.m5g-avatar-frame.supervip{border-color:#dc263f!important;box-shadow:0 0 0 2px rgba(220,38,63,.15)}.m5g-avatar-frame.supervip-official{border:3px solid #dc263f!important;background:#eef3f7!important;padding:0!important}.m5g-avatar-frame.supervip-official:before{content:none!important}.m5g-star.supervip{color:#dc263f!important}

/* FIX 45 — w grupach ramka avatara jest tylko kolorem rangi, bez podziału z kontem oficjalnym. */
.m5g-avatar-frame.vip,.m5g-avatar-frame.vip-official,.m5g-member-avatar .m5g-avatar-frame.vip-official{border:3px solid #f0c341!important;background:#eef3f7!important;padding:0!important}
.m5g-avatar-frame.supervip,.m5g-avatar-frame.supervip-official{border:3px solid #dc263f!important;background:#eef3f7!important;padding:0!important}
.m5g-avatar-frame.vip-official:before,.m5g-avatar-frame.supervip-official:before{content:none!important}
.m5g-avatar-frame.official{border-color:#d8e2eb!important}
.m5g-star.vip{color:#e2ad00!important;font-weight:900;-webkit-text-stroke:.35px currentColor}
.m5g-star.official{color:#22a35a!important;font-weight:900;-webkit-text-stroke:.35px currentColor}
.m5g-star.supervip{color:#dc263f!important;font-weight:900;-webkit-text-stroke:.35px currentColor}

/* FIX 50 — grupy: ramka zależy od rangi, konto oficjalne daje tylko zieloną gwiazdę. */
.m5g-avatar-frame.official{border:3px solid #d8e2eb!important;box-shadow:none!important}
.m5g-avatar-frame.vip,.m5g-avatar-frame.vip-official{border:3px solid #f0c341!important;background:#eef3f7!important;padding:0!important}
.m5g-avatar-frame.supervip,.m5g-avatar-frame.supervip-official{border:5px solid #dc263f!important;background:#eef3f7!important;padding:0!important;box-shadow:0 0 0 2px rgba(220,38,63,.15)!important}
.m5g-star.vip,.m5g-star.official,.m5g-star.supervip{font-family:Arial,sans-serif!important;font-size:18px!important;font-weight:900!important;line-height:1!important;-webkit-text-stroke:.45px currentColor!important}
.m5g-star.vip{color:#e2ad00!important}.m5g-star.official{color:#22a35a!important}.m5g-star.supervip{color:#dc263f!important}


/* M5 GROUPS reactions: AJAX feedback and accessible states */
.m5g-reactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 2px;padding-top:12px;border-top:1px solid #e4ebf1}
.m5g-reaction-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:64px;padding:7px 12px;border:1px solid #d5e0ea;border-radius:8px;background:#fff;color:#42647d;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.m5g-reaction-btn:hover{border-color:#9bc9f7;background:#f2f8ff}
.m5g-reaction-btn.active.m5g-vote-up{border-color:#83baff;background:#eaf4ff;color:#126bd6}
.m5g-reaction-btn.active.m5g-vote-down{border-color:#f0b7b7;background:#fff0f0;color:#c92d3a}
.m5g-reaction-btn:disabled{opacity:.65;cursor:wait}
.m5g-reaction-message{font-size:12px;line-height:1.35}
.m5g-reaction-message:empty{display:none}
.m5g-reaction-message.is-error{display:inline-block;color:#c6283d;background:#fff0f2;border:1px solid #ffd0d7;border-radius:7px;padding:6px 9px}
.m5g-reaction-message.is-success{display:inline-block;color:#247443}


/* Bezpieczne przekazanie i usunięcie grupy. */
.m5g-security-panel{margin-top:18px;padding:22px}
.m5g-security-panel h2{font-size:20px;margin:0 0 12px;color:#163d61}
.m5g-security-panel .m5g-help{line-height:1.6;margin-bottom:12px}
.m5g-security-form{margin:12px 0 0;display:grid;gap:9px}
.m5g-security-form>label{font-size:13px;font-weight:700}
.m5g-security-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.m5g-security-inline input{flex:1;min-width:180px;padding:12px;border:1px solid #cbddeb;border-radius:8px}
.m5g-security-danger{background:#fff9f8;border-color:#f2c5c4}
.m5g-security-danger h2,.m5g-danger-link{color:#b32f33!important}
.m5g-security-danger .m5g-danger-btn{color:#fff;background:#c83838;border:0}
.m5g-security-notice{padding:12px 15px;margin:10px 0 18px;border:1px solid #bcdaf5;background:#eef7ff;color:#164c7b;border-radius:9px;line-height:1.5}
.m5g-transfer-accept{padding:24px;max-width:640px;margin:42px auto}
@media(max-width:600px){.m5g-security-panel{padding:15px}.m5g-security-inline{display:grid}.m5g-security-inline input{width:100%}}

/* Awaiting transfer: visible by the form, also after reloading the manage page. */
.m5g-transfer-pending{padding:14px 16px;margin:15px 0 12px;border:1px solid #bce4ce;background:#ecfaf2;color:#175e3a;border-radius:12px;display:grid;gap:5px;line-height:1.5}
.m5g-transfer-pending[hidden]{display:none!important}
.m5g-transfer-pending strong{font-size:14px}.m5g-transfer-pending span{font-size:13px}.m5g-transfer-pending small{color:#44785e;font-size:11px}
.m5g-security-form button:disabled{opacity:.62;cursor:not-allowed;filter:grayscale(.35)}
.m5g-transfer-feedback{margin:0;font-size:13px;line-height:1.5;color:#17643e}
.m5g-transfer-feedback:empty{display:none}
.m5g-transfer-feedback.m5g-transfer-error{color:#a53434}

/* Admin-only reversal of a pending invitation, aligned below its disabled action. */
.m5g-cancel-offer-form{display:flex;justify-content:flex-end;margin:8px 0 0}
.m5g-cancel-offer-form[hidden]{display:none!important}
.m5g-cancel-offer-btn{border:1px solid #edb0ae;background:#fff6f5;color:#b32929}
.m5g-cancel-offer-btn:hover:not(:disabled){background:#ffe6e4;color:#961f1f}
@media(max-width:600px){.m5g-cancel-offer-form{justify-content:stretch}.m5g-cancel-offer-btn{width:100%}}


/* M5 GROUPS — unified light subpage theme (M5 BAZAR reference), 2026-11-13.
 * Applies to every /groups subpage via the m5g-wrap wrapper; respects group covers.
 * No changes to forms, permissions, events, AJAX, or user-generated content. */
body:has(.m5g-wrap) #wrap,
body:has(.m5g-wrap) #page-body,
body:has(.m5g-wrap) #page-footer {background-color:#f4f7ff !important;}
body:has(.m5g-wrap) #wrap {border-color:transparent!important;box-shadow:none!important;}
.m5g-wrap {
  max-width:1480px; width:calc(100% - 28px); min-width:0; margin:22px auto 48px;
  padding:0; color:#102744; box-sizing:border-box;
  font:15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.m5g-wrap * {box-sizing:border-box;}
.m5g-wrap h1,.m5g-wrap h2,.m5g-wrap h3{line-height:1.28;}
.m5g-hero {
  background:linear-gradient(115deg,#f4f9ff 0%,#daebff 57%,#a7cafa 100%);
  color:#102744; border:1px solid #d8e4f5; border-radius:18px;
  padding:24px 26px; min-height:126px; margin-bottom:18px;
  box-shadow:0 4px 18px rgba(10,52,102,.04);
}
.m5g-hero h1{color:#102744!important;font-size:clamp(24px,3vw,36px);font-weight:850;letter-spacing:-.5px;}
.m5g-hero p {color:#526b86; opacity:1; font-size:14px;}
.m5g-hero-icon{
  width:74px;height:74px;flex:0 0 74px;display:grid;place-items:center;
  background:#d8eaff;border-radius:16px;font-size:36px;
}
.m5g-section,.m5g-panel,.m5g-topic-table,.m5g-post,.m5g-manage-nav,
.m5g-watched-table,.m5g-member-card,.m5g-tabs,.m5g-page-title,
.m5g-groups-nav a,.m5g-page-links a {
  border-color:#d8e4f5;
  box-shadow:0 3px 14px rgba(10,52,102,.035);
}
.m5g-section,.m5g-panel,.m5g-topic-table,.m5g-post,
.m5g-watched-table,.m5g-page-title{border-radius:15px;}
.m5g-section-title{background:linear-gradient(90deg,#f6faff,#fff);}
.m5g-section-title strong,.m5g-content-head h2,.m5g-page-title h1 {color:#102744;}
.m5g-section-title small,.m5g-page-title p {color:#607b98;}
.m5g-card {
  border-color:#d8e4f5; border-radius:12px;
  box-shadow:0 3px 12px rgba(10,52,102,.055);
}
.m5g-card-img{background:#e7f1ff;}
.m5g-btn-blue {background:linear-gradient(180deg,#1674fd,#0456d3);color:#fff;border:1px solid #0757d9;}
.m5g-btn-blue:hover,.m5g-btn-blue:focus-visible{background:#0757d9;color:#fff;}
.m5g-btn-outline,.m5g-page-links a,.m5g-groups-nav a {
  color:#0757d9; border-color:#cbdcf1; background:#f9fbff;
}
.m5g-btn-outline:hover,.m5g-page-links a:hover,.m5g-groups-nav a:hover {
  background:#eaf3ff;color:#0757d9;border-color:#8ab8f1;
}
.m5g-topic-head,.m5g-member-head,.m5g-watched-head {background:#edf5ff;}
.m5g-cover {border:1px solid #d8e4f5;box-shadow:0 3px 14px rgba(10,52,102,.035);}
/* Keep image-cover text legible rather than flattening its intentional photo overlay. */
.m5g-cover-overlay {background:linear-gradient(90deg,rgba(5,29,48,.82),rgba(5,29,48,.36),rgba(5,29,48,.18));}
@media(max-width:760px){
  .m5g-wrap {width:calc(100% - 18px);margin:12px auto 28px;}
  .m5g-hero{padding:17px;gap:12px;}
  .m5g-hero-icon{width:54px;height:54px;flex-basis:54px;font-size:28px;}
  .m5g-hero .m5g-btn {margin-left:0;}
}


/* MEDIA5 GROUPS v1.0.51 — jasny układ jak Katalog Firm: nadrzędne motywy nie
 * mogą nadpisać tła kart, nagłówków, postów ani nawigacji. */
html body:has(.m5g-wrap) #page-body {background:#f4f7ff!important;}
html body .m5g-wrap {color:#173b5e!important;}
html body .m5g-wrap .m5g-hero{background:linear-gradient(105deg,#f4f9ff,#e1efff 55%,#b8d8ff)!important;color:#123655!important;border:1px solid #d4e3f6!important;box-shadow:0 4px 22px rgba(19,73,133,.075)!important;}
html body .m5g-wrap .m5g-hero h1,html body .m5g-wrap .m5g-hero p{color:#163b5d!important;}
html body .m5g-wrap .m5g-section,html body .m5g-wrap .m5g-panel,
html body .m5g-wrap .m5g-topic-table,html body .m5g-wrap .m5g-topic-section,
html body .m5g-wrap .m5g-card,html body .m5g-wrap .m5g-post,
html body .m5g-wrap .m5g-member-card,html body .m5g-wrap .m5g-watched-table,
html body .m5g-wrap .m5g-manage-nav,html body .m5g-wrap .m5g-page-title,
html body .m5g-wrap .m5g-tabs,html body .m5g-wrap .m5g-tabs-local,
html body .m5g-wrap .m5g-tabs-global,html body .m5g-wrap .m5g-topic-row-wrap,
html body .m5g-wrap .m5g-new-topic {background:#fff!important;color:#173b5e!important;border-color:#d8e4f4!important;box-shadow:0 3px 13px rgba(14,68,121,.045)!important;}
html body .m5g-wrap .m5g-section-title,html body .m5g-wrap .m5g-topic-section-title,
html body .m5g-wrap .m5g-panel-head,html body .m5g-wrap .m5g-topic-head,
html body .m5g-wrap .m5g-member-head,html body .m5g-wrap .m5g-watched-head {background:#eef5ff!important;color:#173b5e!important;border-color:#d8e4f4!important;}
html body .m5g-wrap .m5g-section-title strong,html body .m5g-wrap .m5g-topic-section-title h2,
html body .m5g-wrap .m5g-topic-title h1,html body .m5g-wrap .m5g-page-title h1,
html body .m5g-wrap .m5g-topic-main strong,html body .m5g-wrap .m5g-card h3 a {color:#143b5e!important;}
html body .m5g-wrap .m5g-section-title small,html body .m5g-wrap .m5g-topic-author-label,
html body .m5g-wrap .m5g-members,html body .m5g-wrap .m5g-card p {color:#607b95!important;}
html body .m5g-wrap .m5g-post aside {background:#f0f6fe!important;color:#24486c!important;border-right:1px solid #dbe7f4!important;}
html body .m5g-wrap .m5g-post-body {background:#fff!important;color:#173b5e!important;}
html body .m5g-wrap .m5g-post-meta{color:#627e99!important;}
html body .m5g-wrap .m5g-topic-row,html body .m5g-wrap .m5g-member-row{background:#fff!important;color:#183d61!important;border-color:#e2ebf4!important;}
html body .m5g-wrap .m5g-topic-row:hover,html body .m5g-wrap .m5g-member-row:hover {background:#f4f9ff!important;}
html body .m5g-wrap .m5g-tabs a,html body .m5g-wrap .m5g-groups-nav a{color:#28587f!important;background:#fff!important;}
html body .m5g-wrap .m5g-tabs a.active,html body .m5g-wrap .m5g-tabs a:hover{color:#076ad0!important;background:#e9f3ff!important;}
html body .m5g-wrap .m5g-btn-blue{background:#096de4!important;border-color:#096de4!important;color:#fff!important;}
html body .m5g-wrap .m5g-btn-green{background:#16834c!important;color:#fff!important;}
html body .m5g-wrap .m5g-btn-outline,html body .m5g-wrap .m5g-btn-light{background:#f4f9ff!important;color:#145993!important;border-color:#ccdfef!important;}
/* Fotografia okładkowa zachowuje gradient — jasne są karty i otoczenie. */
html body .m5g-wrap .m5g-cover {background-color:#34688b;box-shadow:0 5px 20px rgba(16,63,112,.08)!important;}
html body .m5g-wrap .m5g-cover-overlay {background:linear-gradient(90deg,rgba(4,29,55,.78),rgba(7,42,76,.3))!important;}
html body .m5g-wrap .m5g-cover h1,html body .m5g-wrap .m5g-cover p{color:#fff!important;}
@media(max-width:700px){html body .m5g-wrap .m5g-hero{padding:16px!important;}html body .m5g-wrap .m5g-post{grid-template-columns:1fr!important;}html body .m5g-wrap .m5g-post aside{border-right:0!important;border-bottom:1px solid #dbe7f4!important;}}
