.hdvvn-community-page .hdv-entry-content > .hdvvn-community-shell,
.hdvvn-community-page .hdv-entry-content > *:has(.hdvvn-community-shell),
.hdvvn-community-shell{max-width:1080px!important;width:calc(100% - 32px)!important;margin:0 auto!important;box-sizing:border-box;color:#20372f}
.hdvvn-community-shell *{box-sizing:border-box}.hdvvn-community-shell a{color:inherit}.hdvvn-room-classic{padding:26px 0 40px}.hdvvn-room-frame{border:1px solid #8c7a55;background:#efe5cf;box-shadow:0 12px 32px rgba(54,44,25,.12);border-radius:10px;overflow:hidden}.hdvvn-community-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0;padding:22px 24px 18px;background:linear-gradient(135deg,#123f34,#082f28);color:#fff;border-bottom:1px solid #c8a85a}.hdvvn-community-header h1,.hdvvn-community-header h2{font-size:31px;line-height:1.12;margin:8px 0 5px;color:#fff}.hdvvn-community-header p{margin:0;color:#dce9e5;font-size:13px}.hdvvn-community-kicker{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #d4b765;border-radius:4px;font-size:11px;font-weight:850;letter-spacing:.06em;color:#ffe5a0;background:rgba(0,0,0,.12)}.hdvvn-community-search{display:flex;gap:6px;min-width:300px}.hdvvn-community-search input{width:100%;min-width:0;border:1px solid #a99b78;border-radius:4px;padding:10px 11px;background:#fffdf7}.hdvvn-community-search button,.hdvvn-community-comment-form button,.hdvvn-community-report button{border:1px solid #d5b866;border-radius:4px;background:#8c3e20;color:#fff;padding:9px 14px;font-weight:800;cursor:pointer}.hdvvn-room-statusbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:7px 18px;background:#302c25;color:#e7ddc8;font-size:12px;border-bottom:1px solid #8d7951}.hdvvn-room-statusbar span+span{border-left:1px solid #6b6253;padding-left:16px}.hdvvn-room-live{font-weight:850;color:#f4d77e}.hdvvn-room-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3bd575;margin-right:6px;box-shadow:0 0 0 3px rgba(59,213,117,.12)}
.hdvvn-community-tabs{display:flex;gap:0;overflow-x:auto;padding:0;background:#173d34;border-bottom:1px solid #8d7951;scrollbar-width:thin}.hdvvn-community-tabs a{white-space:nowrap;text-decoration:none;border:0;border-right:1px solid rgba(255,255,255,.12);background:transparent;color:#e9f2ef;padding:10px 13px;border-radius:0;font-size:13px;font-weight:750}.hdvvn-community-tabs a:hover{background:#245a4d}.hdvvn-community-tabs a.is-active{background:#d3b45f;color:#24342e}.hdvvn-community-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start;padding:16px}.hdvvn-community-main,.hdvvn-community-sidebar{min-width:0}.hdvvn-community-sidebar{position:sticky;top:92px}.hdvvn-chat-console{border:1px solid #9b8a64;background:#f8f2e5;border-radius:5px;overflow:hidden}.hdvvn-chat-console-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 11px;background:#514637;color:#f8e8b7;border-bottom:1px solid #8d7951;font-size:12px}.hdvvn-chat-console-head span{font-size:11px;color:#d7cdb9}
.hdvvn-community-compose,.hdvvn-community-sidecard,.hdvvn-community-guest-card{border:1px solid #9e8e69;background:#faf5e9;border-radius:6px}.hdvvn-community-compose{padding:10px;margin-top:10px;position:sticky;bottom:10px;z-index:20;box-shadow:0 8px 24px rgba(48,37,18,.14)}.hdvvn-community-compose-head{display:flex;align-items:center;gap:9px}.hdvvn-community-compose-head img{width:38px;height:38px;border-radius:4px;object-fit:cover;border:1px solid #8a7b5e}.hdvvn-community-compose-trigger{flex:1;text-align:left;border:1px solid #b5a784;background:#fffdf7;color:#716a5b;border-radius:4px;padding:10px 12px;cursor:pointer}.hdvvn-community-compose-form{margin-top:10px;padding-top:10px;border-top:1px solid #ded2b8}.hdvvn-community-compose-form textarea,.hdvvn-community-compose-form input[type=text],.hdvvn-community-compose-form select,.hdvvn-community-comment-form textarea,.hdvvn-community-report textarea{width:100%;border:1px solid #b9aa88;border-radius:4px;background:#fffef9;padding:9px 10px;font:inherit}.hdvvn-community-compose-form textarea{resize:vertical}.hdvvn-community-compose-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.hdvvn-community-compose-fields label{font-size:12px;font-weight:750}.hdvvn-community-compose-fields label>*{margin-top:4px}.hdvvn-community-compose-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.hdvvn-upload-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:750;font-size:13px}.hdvvn-upload-label input{max-width:190px}.hdvvn-urgent-toggle{font-size:13px}.hdvvn-community-upload-note{font-size:11px;color:#746d60;margin:7px 0 0}.hdvvn-community-compose.is-locked{display:flex;flex-direction:column;gap:4px;background:#f7f0e1;color:#5d574d;position:static;box-shadow:none}.hdvvn-community-compose.is-locked span{font-size:13px}
.hdvvn-community-feed{background:#f8f2e5}.hdvvn-community-post{position:relative;padding:13px 13px 12px 15px;margin:0;border:0;border-bottom:1px solid #d8cdb4;background:rgba(255,255,255,.35);box-shadow:none;border-left:3px solid #2f7866}.hdvvn-community-post:last-child{border-bottom:0}.hdvvn-community-post.is-organization{border-left-color:#c97d24}.hdvvn-community-post.is-admin{border-left-color:#a32c2c;background:#fff7e9}.hdvvn-community-post.is-urgent{border-left:4px solid #d54b22;background:#fff0df}.hdvvn-community-urgent-ribbon{display:inline-flex;margin:0 0 7px;padding:3px 7px;border-radius:3px;background:#b5411d;color:#fff;font-size:10px;font-weight:900;border:1px solid #8d2f13;letter-spacing:.03em}.hdvvn-community-post-head{display:flex;align-items:flex-start;gap:9px;position:relative}.hdvvn-community-avatar{width:42px;height:42px;border-radius:4px;object-fit:cover;border:1px solid #9e9276;background:#fff}.hdvvn-community-author{min-width:0;flex:1}.hdvvn-community-author-name{font-size:14px;font-weight:900;text-decoration:none;color:#145b4b!important}.hdvvn-community-post.is-organization .hdvvn-community-author-name{color:#a35812!important}.hdvvn-community-post.is-admin .hdvvn-community-author-name{color:#a12626!important}.hdvvn-community-author-meta{display:flex;gap:4px 8px;flex-wrap:wrap;margin-top:2px;font-size:11px;color:#756d5e}.hdvvn-community-author-meta span+span:before,.hdvvn-community-author-meta time:before{content:'·';margin-right:8px;color:#a79a7d}.hdvvn-community-content{font-size:14.5px;line-height:1.55;margin:9px 0;color:#2a342f;white-space:normal}.hdvvn-community-image{margin:9px 0 4px;border-radius:4px;overflow:hidden;background:#e8dfcd;border:1px solid #c8bda4}.hdvvn-community-image img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain;margin:0 auto}.hdvvn-community-post-actions{display:flex;gap:4px;border-top:1px dashed #d7ccb4;margin-top:9px;padding-top:6px}.hdvvn-community-post-actions button{border:0;background:transparent;color:#625d52;padding:5px 7px;border-radius:3px;cursor:pointer;font-weight:700;font-size:12px}.hdvvn-community-post-actions button:hover,.hdvvn-community-post-actions .hdvvn-react-btn.is-active{background:#e5ddca;color:#13624f}.hdvvn-community-report{position:relative}.hdvvn-community-report summary{list-style:none;cursor:pointer;padding:3px 5px;border-radius:3px;color:#766e60}.hdvvn-community-report summary::-webkit-details-marker{display:none}.hdvvn-community-report form{position:absolute;right:0;top:26px;width:260px;background:#fffaf0;border:1px solid #a79874;border-radius:5px;padding:9px;z-index:30;box-shadow:0 10px 24px rgba(0,0,0,.14)}.hdvvn-community-report form button{margin-top:6px}.hdvvn-community-comments{border-top:1px dashed #d8ceb7;margin-top:3px;padding-top:8px}.hdvvn-community-comment{display:flex;gap:7px;margin:7px 0}.hdvvn-community-comment img{width:28px;height:28px;border-radius:3px;object-fit:cover}.hdvvn-community-comment>div{background:#eee5d4;border:1px solid #ddd0b7;border-radius:4px;padding:6px 8px;min-width:0}.hdvvn-community-comment strong{font-size:12px}.hdvvn-community-comment p{font-size:12.5px;margin:2px 0 0;line-height:1.4}.hdvvn-community-more-comments,.hdvvn-community-comment-locked{font-size:11px;color:#766f62}.hdvvn-community-comment-form{display:flex;gap:7px;align-items:flex-end;margin-top:8px}.hdvvn-community-comment-form textarea{resize:none;min-height:40px}.hdvvn-community-comment-form button{flex:0 0 auto}
.hdvvn-community-sidecard{padding:0;margin-bottom:12px;overflow:hidden}.hdvvn-community-sidecard.is-urgent{border-color:#b87853}.hdvvn-community-side-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#514637;color:#f3e5b7;border-bottom:1px solid #8d7951}.hdvvn-community-side-title strong{font-size:12px}.hdvvn-community-side-title a{font-size:11px;color:#ffe091;text-decoration:none}.hdvvn-community-urgent-list,.hdvvn-community-active-list,.hdvvn-community-sidecard>.hdvvn-community-side-link,.hdvvn-community-sidecard>.hdvvn-community-access-status,.hdvvn-community-sidecard>.hdvvn-community-muted{margin-left:10px;margin-right:10px}.hdvvn-community-urgent-list a{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-bottom:1px solid #e0d5bf;text-decoration:none}.hdvvn-community-urgent-list a:last-child{border-bottom:0}.hdvvn-community-urgent-list strong{font-size:12.5px;line-height:1.35}.hdvvn-community-urgent-list span{font-size:10.5px;color:#766f62}.hdvvn-community-active-user{display:flex;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #e6dcc7}.hdvvn-community-active-user:last-child{border-bottom:0}.hdvvn-community-active-user img{width:34px;height:34px;border-radius:4px;object-fit:cover}.hdvvn-community-active-user div{min-width:0}.hdvvn-community-active-user a,.hdvvn-community-active-user strong{display:block;text-decoration:none;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hdvvn-community-active-user span{font-size:10.5px;color:#756f63}.hdvvn-community-side-link{display:block;padding:8px 0;border-bottom:1px solid #e1d7c2;text-decoration:none;font-size:13px}.hdvvn-community-access-status{margin-top:10px!important;margin-bottom:10px;padding:9px;border-radius:4px;background:#eee5d4}.hdvvn-community-access-status strong,.hdvvn-community-access-status span{display:block}.hdvvn-community-access-status strong{font-size:12px}.hdvvn-community-access-status span{font-size:10.5px;color:#716a5d;margin-top:3px}.hdvvn-community-access-status.is-full{background:#e3eee6}.hdvvn-community-muted{font-size:12px;color:#746d60;margin-top:10px!important;margin-bottom:10px}
.hdvvn-community-empty{border:1px dashed #b9aa86;border-radius:4px;padding:22px;background:#fbf6eb;color:#746e61}.hdvvn-community-pagination{display:flex;gap:4px;justify-content:center;margin:14px 0}.hdvvn-community-pagination .page-numbers{display:inline-flex;min-width:32px;height:32px;align-items:center;justify-content:center;border:1px solid #aa9b78;border-radius:3px;text-decoration:none;background:#fffaf0}.hdvvn-community-pagination .current{background:#244f43;color:#fff;border-color:#244f43}.hdvvn-comm-notice{padding:10px 13px;border-radius:5px;margin:12px 0;font-size:13px}.hdvvn-comm-notice.is-success{background:#e1eee7;color:#145c4c;border:1px solid #b9d0c6}.hdvvn-comm-notice.is-error{background:#fff0e7;color:#943b1b;border:1px solid #e3b69e}.hdvvn-comm-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border:1px solid #9f8e68;border-radius:4px;padding:9px 14px;font-weight:850;background:#fffaf0;color:#29483f!important;cursor:pointer}.hdvvn-comm-btn.is-primary{background:#8c3e20;color:#fff!important;border-color:#6e2d15}
.hdvvn-community-guest{padding:34px 0}.hdvvn-community-guest-card{padding:0;max-width:900px;margin:0 auto;overflow:hidden;background:#f7efdf}.hdvvn-community-guest-bar{display:block;padding:12px 20px;background:linear-gradient(135deg,#123f34,#082f28);color:#ffe28b;font-weight:900;letter-spacing:.06em;border-bottom:1px solid #c8a85a}.hdvvn-community-guest-card>.hdvvn-community-guest-bar{margin:0!important}.hdvvn-community-guest-card>*{margin-left:24px;margin-right:24px}.hdvvn-community-guest-card>.hdvvn-community-kicker{margin-top:24px}.hdvvn-community-guest-card h1,.hdvvn-community-guest-card h2{font-size:31px;line-height:1.15;margin-top:10px;color:#173f35}.hdvvn-community-guest-card>p{font-size:16px;line-height:1.6;color:#5e5a50;max-width:760px}.hdvvn-community-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px;margin-bottom:22px}.hdvvn-community-preview-grid>div{padding:14px;border:1px solid #cbbd9e;border-radius:4px;background:#fffaf0;font-size:21px}.hdvvn-community-preview-grid strong,.hdvvn-community-preview-grid span{display:block;font-size:13px;margin-top:5px}.hdvvn-community-preview-grid span{font-size:11px;color:#756e60;line-height:1.45}.hdvvn-community-guest-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}
@media(max-width:900px){.hdvvn-community-layout{grid-template-columns:1fr}.hdvvn-community-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:12px}.hdvvn-community-sidecard{margin-bottom:0}.hdvvn-community-header{align-items:stretch;flex-direction:column}.hdvvn-community-search{min-width:0;width:100%}.hdvvn-community-compose{position:static}.hdvvn-community-preview-grid{grid-template-columns:1fr}}
@media(max-width:600px){.hdvvn-community-shell{width:calc(100% - 20px)!important}.hdvvn-room-classic{padding-top:16px}.hdvvn-community-header{padding:18px 15px 15px}.hdvvn-community-header h1,.hdvvn-community-header h2,.hdvvn-community-guest-card h1,.hdvvn-community-guest-card h2{font-size:25px}.hdvvn-room-statusbar{gap:8px;padding:7px 12px}.hdvvn-room-statusbar span+span{border-left:0;padding-left:0}.hdvvn-community-layout{gap:12px;padding:10px}.hdvvn-chat-console-head{align-items:flex-start;flex-direction:column;gap:2px}.hdvvn-community-compose-fields{grid-template-columns:1fr}.hdvvn-community-sidebar{display:block}.hdvvn-community-sidecard{margin-bottom:10px}.hdvvn-community-post{padding:11px 10px 10px 12px}.hdvvn-community-author-meta{gap:3px 6px}.hdvvn-community-author-meta span+span:before,.hdvvn-community-author-meta time:before{margin-right:6px}.hdvvn-community-comment-form{align-items:stretch;flex-direction:column}.hdvvn-community-comment-form button{align-self:flex-end}.hdvvn-community-report form{right:-5px;width:min(260px,82vw)}.hdvvn-community-guest{padding:18px 0}.hdvvn-community-guest-card>*{margin-left:16px;margin-right:16px}.hdvvn-community-guest-actions .hdvvn-comm-btn{width:100%}}

/* 1.1.1 — Community owns its page heading; hide generic WordPress page title. */
body.hdvvn-community-page .hdv-page-header{display:none!important}
body.hdvvn-community-page .hdv-page:not(.hdv-page--front){padding-top:0!important}
body.hdvvn-community-page .hdvvn-community-active-list{max-height:340px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}

/* ===== 1.2.0: online theo phiên đăng nhập + nhắn tin riêng 24h ===== */
body.hdvvn-community-page .hdvvn-community-side-title>span{font-size:10.5px;color:#ffe091;font-weight:800}
body.hdvvn-community-page .hdvvn-community-active-list{max-height:416px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}
body.hdvvn-community-page button.hdvvn-community-active-user{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
body.hdvvn-community-page .hdvvn-community-active-user{min-height:52px;box-sizing:border-box}
body.hdvvn-community-page .hdvvn-community-active-user.is-messageable:hover{background:#f0e7d4}
body.hdvvn-community-page .hdvvn-community-active-user.is-messageable:focus-visible{outline:2px solid #b86b31;outline-offset:-2px}
body.hdvvn-community-page .hdvvn-community-active-user>b{margin-left:auto;font-size:12px;opacity:.72}
body.hdvvn-community-page .hdvvn-community-active-user em{font-size:10px;font-style:normal;color:#8b7d67;font-weight:650}

.hdvvn-dm-modal[hidden]{display:none!important}.hdvvn-dm-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.hdvvn-dm-backdrop{position:absolute;inset:0;background:rgba(25,20,12,.58)}.hdvvn-dm-panel{position:relative;width:min(520px,100%);max-height:min(680px,88vh);display:flex;flex-direction:column;background:#f8f0df;border:1px solid #8e7a55;box-shadow:0 24px 60px rgba(23,16,7,.34);border-radius:7px;overflow:hidden}.hdvvn-dm-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#10483b;color:#fff0bd;border-bottom:1px solid #c89a43}.hdvvn-dm-head div{min-width:0}.hdvvn-dm-head span{display:block;font-size:9.5px;letter-spacing:.08em;font-weight:800}.hdvvn-dm-head strong{display:block;margin-top:2px;color:#fff;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hdvvn-dm-head button{border:0;background:transparent;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 2px}.hdvvn-dm-thread{min-height:220px;max-height:390px;overflow-y:auto;padding:12px;background:#fbf6eb}.hdvvn-dm-thread>p{margin:0;color:#7d7466;font-size:12px}.hdvvn-dm-msg{display:flex;margin:7px 0}.hdvvn-dm-msg.is-mine{justify-content:flex-end}.hdvvn-dm-bubble{max-width:82%;padding:8px 10px;border-radius:8px;background:#eee3cf;border:1px solid #d7c8ac;font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.hdvvn-dm-msg.is-mine .hdvvn-dm-bubble{background:#dfece6;border-color:#bdd3c8}.hdvvn-dm-bubble time{display:block;margin-top:4px;font-size:9.5px;color:#7e7668;text-align:right}.hdvvn-dm-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 12px;background:#eee3cc;border-top:1px solid #d2c3a5}.hdvvn-dm-form textarea{width:100%;resize:none;border:1px solid #a89470;background:#fffdf8;border-radius:4px;padding:9px 10px;font:inherit;box-sizing:border-box}.hdvvn-dm-form button{align-self:stretch;border:1px solid #8f4b24;background:#a74d24;color:#fff6dc;border-radius:4px;padding:0 17px;font-weight:850;cursor:pointer}.hdvvn-dm-form button:disabled{opacity:.6;cursor:wait}.hdvvn-dm-note{margin:0;padding:8px 12px;background:#f4ecd9;color:#756b5b;font-size:10.5px;border-top:1px solid #dfd1b5}
@media(max-width:600px){.hdvvn-dm-modal{padding:8px}.hdvvn-dm-panel{max-height:94vh}.hdvvn-dm-thread{min-height:190px;max-height:52vh}.hdvvn-dm-form{grid-template-columns:1fr}.hdvvn-dm-form button{height:42px}.hdvvn-community-active-list{max-height:416px!important}}

/* ===== 1.3.0: quyền tương tác chặt + AJAX live + ảnh bình luận + thông báo DM ===== */
.hdvvn-community-post-actions button:disabled{opacity:.45;cursor:not-allowed;background:transparent!important;color:#777!important}
.hdvvn-community-comment-list{max-height:520px;overflow-y:auto;scrollbar-width:thin}
.hdvvn-community-comment-input{display:flex;align-items:flex-end;gap:6px;flex:1;min-width:0;position:relative}
.hdvvn-community-comment-input textarea{flex:1;min-width:0}
.hdvvn-comment-image-label{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #b9aa88;border-radius:4px;background:#fffaf0;cursor:pointer;font-size:17px}
.hdvvn-comment-image-label:hover{background:#eee4cf}
.hdvvn-comment-image-label input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.hdvvn-community-comment-image{margin-top:6px;max-width:360px;border:1px solid #cfc2a8;border-radius:5px;overflow:hidden;background:#fff}
.hdvvn-community-comment-image img{display:block;width:auto;max-width:100%;height:auto;max-height:280px;border-radius:0}

.hdvvn-dm-fab{position:fixed;right:18px;bottom:18px;z-index:99980;display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;border:1px solid #c79e45;border-radius:7px;background:#10483b;color:#fff4c8;box-shadow:0 10px 28px rgba(22,38,31,.24);font-weight:850;font-size:11.5px;letter-spacing:.02em;cursor:pointer}
.hdvvn-dm-fab:hover{background:#0c3d32}.hdvvn-dm-fab b{display:inline-flex;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center;border-radius:10px;background:#d94a2f;color:#fff;font-size:11px}.hdvvn-dm-fab b[hidden]{display:none!important}
.hdvvn-dm-fab.has-unread{border-color:#f0c24e;box-shadow:0 0 0 3px rgba(240,194,78,.20),0 10px 28px rgba(22,38,31,.28)}
.hdvvn-dm-fab.is-pulse{animation:hdvvnDmPulse .75s ease-in-out 0s 5 alternate}
@keyframes hdvvnDmPulse{from{transform:translateY(0) scale(1);filter:brightness(1)}to{transform:translateY(-3px) scale(1.035);filter:brightness(1.18)}}

/* Không ép 1080px lên tablet/mobile. 1080px chỉ là max-width desktop. */
@media(max-width:900px){
  body.hdvvn-community-page .hdv-entry-content.hdv-shell{width:100%!important;max-width:none!important;margin:0!important}
  body.hdvvn-community-page .hdvvn-community-shell{width:calc(100% - 24px)!important;max-width:none!important}
  .hdvvn-community-layout{grid-template-columns:1fr!important}
  .hdvvn-community-sidebar{position:static!important;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .hdvvn-community-comment-list{max-height:440px}
}
@media(max-width:700px){
  body.hdvvn-community-page .hdvvn-community-shell{width:100%!important;max-width:100%!important;margin:0!important}
  .hdvvn-room-classic{padding:0 0 28px!important}
  .hdvvn-room-frame{border-left:0;border-right:0;border-radius:0}
  .hdvvn-community-header{padding:14px 12px 12px!important;gap:12px}
  .hdvvn-community-header h1,.hdvvn-community-header h2{font-size:22px!important;margin-top:5px}
  .hdvvn-community-header p{font-size:12px;line-height:1.45}
  .hdvvn-community-kicker{font-size:10px;padding:4px 7px}
  .hdvvn-community-search{width:100%;min-width:0!important}
  .hdvvn-room-statusbar{font-size:11.5px;gap:7px;padding:7px 10px!important}
  .hdvvn-community-tabs a{font-size:12.5px;padding:9px 11px}
  .hdvvn-community-layout{padding:8px!important;gap:9px!important}
  .hdvvn-community-sidebar{display:block!important}
  .hdvvn-community-post{padding:10px 9px 10px 10px!important}
  .hdvvn-community-content{font-size:14px;line-height:1.5}
  .hdvvn-community-author-name{font-size:13.5px}
  .hdvvn-community-author-meta{font-size:11px}
  .hdvvn-community-comment strong{font-size:12.5px}.hdvvn-community-comment p{font-size:13px}
  .hdvvn-community-comment-form{display:flex!important;flex-direction:column;align-items:stretch!important}
  .hdvvn-community-comment-input{width:100%}
  .hdvvn-community-comment-form button{align-self:flex-end;min-width:76px;min-height:38px}
  .hdvvn-community-comment-image{max-width:100%}
  .hdvvn-community-active-user{min-height:50px!important}
  .hdvvn-community-active-user a,.hdvvn-community-active-user strong{font-size:13px!important}
  .hdvvn-community-active-user span{font-size:11.5px!important}
  body.hdvvn-community-page .hdvvn-community-active-list{max-height:400px!important}
  .hdvvn-community-side-title strong{font-size:12.5px}
  .hdvvn-community-side-link{font-size:13.5px}
  .hdvvn-dm-modal{padding:0!important;align-items:flex-end}
  .hdvvn-dm-panel{width:100%!important;max-width:none!important;max-height:92dvh!important;border-radius:10px 10px 0 0!important}
  .hdvvn-dm-thread{min-height:240px;max-height:58dvh!important;padding:10px}
  .hdvvn-dm-form{grid-template-columns:1fr auto!important;gap:6px!important;padding:8px!important}
  .hdvvn-dm-form textarea{min-height:44px;max-height:88px;padding:8px}
  .hdvvn-dm-form button{height:auto!important;min-width:66px;padding:0 10px!important}
  .hdvvn-dm-fab{right:10px;bottom:10px;max-width:calc(100vw - 20px);font-size:11px;padding:8px 10px}
}
@media(max-width:420px){
  .hdvvn-community-header h1,.hdvvn-community-header h2{font-size:20px!important}
  .hdvvn-community-post-actions{gap:1px}.hdvvn-community-post-actions button{font-size:11.5px;padding:5px}
  .hdvvn-community-comment{gap:6px}.hdvvn-community-comment img{width:26px;height:26px}
  .hdvvn-dm-fab span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}


/* ================= HDVVN Community 1.4.0: chat nhóm + mobile touch ================= */
html.hdvvn-dm-open{overflow:hidden!important}
.hdvvn-dm-modal{z-index:2147483000!important;pointer-events:auto!important}
.hdvvn-dm-backdrop{pointer-events:auto!important}
.hdvvn-dm-panel{width:min(680px,calc(100vw - 24px))!important;max-height:min(760px,92dvh)!important;pointer-events:auto!important}
.hdvvn-dm-head{min-height:58px;align-items:center!important;padding:8px 10px!important}
.hdvvn-dm-heading{min-width:0;flex:1}
.hdvvn-dm-heading small{display:block;margin-top:2px;color:#d8e9e3;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdvvn-dm-back,.hdvvn-dm-head-actions button{min-width:36px;min-height:36px;border:0;background:transparent;color:#fff;cursor:pointer;touch-action:manipulation}
.hdvvn-dm-back{font-size:22px;padding:0 4px}
.hdvvn-dm-head-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.hdvvn-dm-head-actions .hdvvn-dm-invite-btn{width:auto;padding:0 8px;border:1px solid rgba(255,255,255,.28);border-radius:4px;color:#fff5c9;font-size:11px;font-weight:800}
.hdvvn-dm-head-actions .hdvvn-dm-close{font-size:24px;padding:0 4px}
.hdvvn-dm-inbox{min-height:300px;max-height:560px;overflow-y:auto;background:#fbf6eb}
.hdvvn-dm-inbox-head{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #ded2b8;background:#f1e8d5;font-size:12px}
.hdvvn-dm-inbox-head span{font-size:10px;color:#7c7263}
.hdvvn-dm-thread-item{display:flex;width:100%;align-items:center;gap:10px;padding:10px 12px;border:0;border-bottom:1px solid #e4dac6;background:transparent;text-align:left;color:#24382f;cursor:pointer;touch-action:manipulation}
.hdvvn-dm-thread-item:hover,.hdvvn-dm-thread-item.has-unread{background:#f2ead9}
.hdvvn-dm-thread-avatars{display:flex;width:46px;min-width:46px;align-items:center}
.hdvvn-dm-thread-avatars img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #fbf6eb;margin-right:-10px;background:#fff}
.hdvvn-dm-thread-copy{min-width:0;flex:1}
.hdvvn-dm-thread-copy strong,.hdvvn-dm-thread-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdvvn-dm-thread-copy strong{font-size:13px}.hdvvn-dm-thread-copy small{margin-top:3px;font-size:11px;color:#796f60}
.hdvvn-dm-thread-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:9.5px;color:#817667}
.hdvvn-dm-thread-meta b{display:inline-flex;min-width:19px;height:19px;align-items:center;justify-content:center;padding:0 5px;border-radius:10px;background:#d94a2f;color:#fff;font-size:10px}
.hdvvn-dm-empty{padding:28px 18px;text-align:center;color:#766d60;font-size:12px;line-height:1.6}
.hdvvn-dm-thread-view{display:flex;min-height:0;flex:1;flex-direction:column}
.hdvvn-dm-participants{display:flex;gap:6px;overflow-x:auto;padding:7px 10px;background:#eee4d0;border-bottom:1px solid #d5c6a8;scrollbar-width:thin}
.hdvvn-dm-person{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;max-width:170px;padding:3px 7px 3px 3px;border:1px solid #d2c3a5;border-radius:15px;background:#fffaf0}
.hdvvn-dm-person img{width:24px;height:24px;border-radius:50%;object-fit:cover}.hdvvn-dm-person b{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdvvn-dm-invite-tray{position:absolute;left:10px;right:10px;top:60px;z-index:8;max-height:330px;overflow:auto;border:1px solid #9d8963;border-radius:6px;background:#fffaf0;box-shadow:0 14px 34px rgba(37,28,13,.24)}
.hdvvn-dm-invite-title{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:#564938;color:#fff0bd}.hdvvn-dm-invite-title button{border:0;background:transparent;color:#fff;font-size:20px;cursor:pointer}
.hdvvn-dm-invite-person{display:flex;width:100%;align-items:center;gap:8px;padding:7px 9px;border:0;border-bottom:1px solid #e8deca;background:#fffaf0;text-align:left;cursor:pointer}.hdvvn-dm-invite-person:hover{background:#f3ead8}.hdvvn-dm-invite-person img{width:32px;height:32px;border-radius:50%;object-fit:cover}.hdvvn-dm-invite-person span{min-width:0;flex:1}.hdvvn-dm-invite-person strong,.hdvvn-dm-invite-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hdvvn-dm-invite-person strong{font-size:12px}.hdvvn-dm-invite-person small{font-size:10px;color:#7a7162}.hdvvn-dm-invite-person>b{color:#9b4c20;font-size:11px}
.hdvvn-dm-thread{flex:1!important;min-height:260px!important;max-height:470px!important;padding:12px!important}
.hdvvn-dm-msg{align-items:flex-end!important;gap:7px!important;margin:9px 0!important}
.hdvvn-dm-msg.is-mine{justify-content:flex-end}.hdvvn-dm-msg.is-theirs{justify-content:flex-start}
.hdvvn-dm-msg-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;border:1px solid #cdbf9f;background:#fff;flex:0 0 auto}
.hdvvn-dm-msg-body{max-width:78%;min-width:0}.hdvvn-dm-msg.is-mine .hdvvn-dm-msg-body{text-align:right}
.hdvvn-dm-sender{margin:0 4px 3px;font-size:10px;font-weight:800;color:#685f52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hdvvn-dm-msg.is-mine .hdvvn-dm-sender{color:#24604f}
.hdvvn-dm-bubble{display:inline-block;max-width:100%!important;text-align:left}
.hdvvn-dm-form textarea{min-height:48px;max-height:120px;line-height:1.35}
.hdvvn-dm-fab{z-index:2147482990!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}
.hdvvn-community-active-user{min-width:0}.hdvvn-community-active-user>div{flex:1;min-width:0}.hdvvn-community-active-user>b{flex:0 0 auto!important}

@media(max-width:700px){
  .hdvvn-dm-modal{padding:0!important;align-items:flex-end!important}
  .hdvvn-dm-panel{width:100%!important;max-width:none!important;height:min(88dvh,760px)!important;max-height:88dvh!important;border-radius:12px 12px 0 0!important;margin:0!important}
  .hdvvn-dm-inbox{max-height:none!important;flex:1}
  .hdvvn-dm-thread{min-height:0!important;max-height:none!important;flex:1!important}
  .hdvvn-dm-form{grid-template-columns:minmax(0,1fr) 64px!important;gap:6px!important;padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))!important}
  .hdvvn-dm-form textarea{font-size:16px!important;min-height:46px!important;max-height:92px!important}
  .hdvvn-dm-form button{min-width:64px!important;min-height:46px!important}
  .hdvvn-dm-fab{right:10px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;min-height:44px!important}
  .hdvvn-dm-head{padding-top:calc(8px + env(safe-area-inset-top))!important}
  .hdvvn-dm-msg-body{max-width:76%}
  .hdvvn-dm-invite-tray{left:6px;right:6px;top:64px;max-height:46dvh}
}
@media(max-width:430px){
  .hdvvn-dm-panel{height:90dvh!important;max-height:90dvh!important}
  .hdvvn-dm-heading strong{font-size:14px!important}.hdvvn-dm-heading small{font-size:9.5px!important}
  .hdvvn-dm-head-actions .hdvvn-dm-invite-btn{font-size:10px;padding:0 6px}
  .hdvvn-dm-msg-avatar{width:28px;height:28px}.hdvvn-dm-msg-body{max-width:78%}
  .hdvvn-dm-bubble{font-size:13.5px!important}
}

/* 1.4.1 - compact chat identity + grouped time + multiple unread popups */
.hdvvn-dm-time-marker{display:flex;align-items:center;justify-content:center;margin:12px 0 7px;clear:both}.hdvvn-dm-time-marker span{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:11px;background:#eadfc9;color:#746957;font-size:9.5px;font-weight:750;letter-spacing:.02em}.hdvvn-dm-msg-body .hdvvn-dm-sender{display:none!important}.hdvvn-dm-bubble time{display:none!important}
.hdvvn-dm-alert-stack{position:fixed;right:18px;bottom:70px;z-index:2147482985;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-height:min(62vh,520px);overflow-y:auto;overscroll-behavior:contain;padding:4px;pointer-events:none}.hdvvn-dm-alert-stack[hidden]{display:none!important}.hdvvn-dm-alert{pointer-events:auto;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;width:min(310px,calc(100vw - 36px));padding:9px 10px;border:1px solid #d2a74e;border-radius:8px;background:#fff8e9;color:#1d3f34;box-shadow:0 10px 28px rgba(27,23,14,.22);text-align:left;cursor:pointer;touch-action:manipulation}.hdvvn-dm-alert:hover{background:#fff2d6}.hdvvn-dm-alert>img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#fff;border:1px solid #d6c9ae}.hdvvn-dm-alert>span{min-width:0}.hdvvn-dm-alert small,.hdvvn-dm-alert strong,.hdvvn-dm-alert em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hdvvn-dm-alert small{font-size:8.5px;font-weight:850;color:#b04e25;letter-spacing:.06em}.hdvvn-dm-alert strong{margin-top:1px;font-size:12px;color:#0d4b3c}.hdvvn-dm-alert em{margin-top:2px;font-size:10.5px;font-style:normal;color:#736958}.hdvvn-dm-alert>b{display:inline-flex;min-width:22px;height:22px;padding:0 6px;align-items:center;justify-content:center;border-radius:11px;background:#d94a2f;color:#fff;font-size:10px}.hdvvn-dm-alert.is-pulse{animation:hdvvnDmAlertPulse .95s ease-in-out 0s 3 alternate}@keyframes hdvvnDmAlertPulse{from{transform:translateX(0);box-shadow:0 10px 28px rgba(27,23,14,.22)}to{transform:translateX(-4px);box-shadow:0 0 0 3px rgba(240,194,78,.28),0 12px 30px rgba(27,23,14,.28)}}
@media(max-width:600px){.hdvvn-dm-alert-stack{right:8px;bottom:66px;max-height:50vh;padding:2px}.hdvvn-dm-alert{width:min(300px,calc(100vw - 16px));grid-template-columns:36px minmax(0,1fr) auto;padding:8px}.hdvvn-dm-alert>img{width:36px;height:36px}.hdvvn-dm-alert strong{font-size:11.5px}.hdvvn-dm-alert em{font-size:10px}.hdvvn-dm-time-marker{margin:10px 0 6px}}

/* 1.4.4 - Chỉ dùng avatar tròn cho tin nhắn riêng; bỏ hoàn toàn nút xanh CỘNG ĐỒNG HDVVN. */
.hdvvn-dm-fab{display:none!important}
.hdvvn-dm-alert-stack{
  position:fixed!important;
  right:16px!important;
  bottom:18px!important;
  z-index:2147482985!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:58px!important;
  max-width:58px!important;
  max-height:278px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:6px!important;
  box-sizing:border-box!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  pointer-events:none!important;
  scrollbar-width:none!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
.hdvvn-dm-alert-stack::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.hdvvn-dm-alert-stack[hidden]{display:none!important}
.hdvvn-dm-alert-avatar{
  position:relative!important;
  display:block!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  border:2px solid #0f5b49!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(20,32,26,.20)!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  line-height:1!important;
}
.hdvvn-dm-alert-avatar>img{
  display:block!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  aspect-ratio:1/1!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  background:#fff!important;
}
.hdvvn-dm-alert-avatar>b{
  position:absolute!important;
  right:-5px!important;
  top:-6px!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:19px!important;
  height:19px!important;
  padding:0 4px!important;
  margin:0!important;
  border:2px solid #fff!important;
  border-radius:10px!important;
  background:#e2392d!important;
  color:#fff!important;
  box-sizing:border-box!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 2px 6px rgba(0,0,0,.18)!important;
}
.hdvvn-dm-alert-avatar.has-unread{border-color:#d99a28!important;box-shadow:0 0 0 3px rgba(239,190,62,.20),0 5px 16px rgba(20,32,26,.24)!important}
.hdvvn-dm-alert-avatar.is-pulse{animation:hdvvnDmAvatarPulse144 .8s ease-in-out 0s 4 alternate}
@keyframes hdvvnDmAvatarPulse144{from{transform:translateY(0) scale(1)}to{transform:translateY(-3px) scale(1.05)}}
@media(max-width:600px){
  .hdvvn-dm-alert-stack{right:8px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:54px!important;max-width:54px!important;max-height:264px!important;gap:7px!important;padding:5px!important}
  .hdvvn-dm-alert-avatar{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}
  .hdvvn-dm-alert-avatar>img{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important}
  .hdvvn-dm-alert-avatar>b{right:-4px!important;top:-5px!important}
}



/* ================= HDVVN Community 1.5.0 =================
   - avatar đã đọc có nút X tắt nhanh
   - hộp chat desktop gọn, không khóa trang, kéo dọc bằng header
   - tin người lạ / thông tin Admin nhấp nháy nổi bật
*/
.hdvvn-dm-note{display:none!important}
.hdvvn-dm-alert-item{position:relative;display:block;flex:0 0 auto;width:46px;height:46px;pointer-events:auto}
.hdvvn-dm-alert-quick-close{position:absolute;z-index:5;right:-5px;top:-6px;display:flex;align-items:center;justify-content:center;width:19px;height:19px;padding:0;border:2px solid #fff;border-radius:50%;background:#6d746f;color:#fff;font-size:13px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.hdvvn-dm-alert-quick-close:hover{background:#b7352c}
.hdvvn-dm-alert-avatar.is-attention{animation:hdvvnDmAttention150 .72s ease-in-out 0s 8 alternate!important}
@keyframes hdvvnDmAttention150{from{transform:translateY(0) scale(1);box-shadow:0 0 0 0 rgba(229,78,37,0),0 5px 16px rgba(20,32,26,.24)}to{transform:translateY(-2px) scale(1.07);box-shadow:0 0 0 5px rgba(229,78,37,.25),0 6px 18px rgba(20,32,26,.30)}}

@media(min-width:701px){
  html.hdvvn-dm-open{overflow:auto!important}
  .hdvvn-dm-modal{pointer-events:none!important;display:block!important;padding:0!important}
  .hdvvn-dm-modal[hidden]{display:none!important}
  .hdvvn-dm-backdrop{display:none!important}
  .hdvvn-dm-panel{position:fixed!important;right:82px!important;bottom:18px;width:430px!important;max-width:calc(100vw - 110px)!important;height:auto!important;max-height:560px!important;border-radius:8px!important;pointer-events:auto!important;box-shadow:0 14px 38px rgba(19,23,20,.28)!important}
  .hdvvn-dm-panel.is-dragging{user-select:none!important;box-shadow:0 18px 46px rgba(19,23,20,.36)!important}
  .hdvvn-dm-head{min-height:48px!important;padding:6px 9px!important;cursor:ns-resize!important}
  .hdvvn-dm-head-actions,.hdvvn-dm-head button{cursor:pointer!important}
  .hdvvn-dm-heading strong{font-size:13.5px!important}.hdvvn-dm-heading small{font-size:9px!important}
  .hdvvn-dm-participants{padding:5px 8px!important;max-height:44px!important;overflow-x:auto!important}
  .hdvvn-dm-thread{min-height:210px!important;max-height:330px!important;padding:9px!important}
  .hdvvn-dm-inbox{max-height:410px!important}
  .hdvvn-dm-form{padding:7px 8px!important;gap:6px!important;grid-template-columns:minmax(0,1fr) 58px!important}
  .hdvvn-dm-form textarea{min-height:42px!important;max-height:82px!important;padding:7px 8px!important;font-size:13px!important}
  .hdvvn-dm-form button{min-width:58px!important;padding:0 9px!important}
}
@media(max-width:700px){
  .hdvvn-dm-alert-item{width:44px;height:44px}
  .hdvvn-dm-alert-quick-close{right:-4px;top:-5px;width:18px;height:18px;font-size:12px}
  .hdvvn-dm-head{cursor:default!important}
}


/* ================= HDVVN Community 1.5.2 =================
   - X trên avatar đã đọc: xóa lối tắt và đóng hộp chat nếu đang mở đúng thread
   - Nút thu nhỏ "−": ẩn hộp chat nhưng giữ avatar để mở lại nhanh
*/
.hdvvn-dm-head-actions .hdvvn-dm-minimize{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;
  padding:0!important;border:0!important;border-radius:4px!important;background:transparent!important;
  color:#fff!important;font-size:24px!important;font-weight:500!important;line-height:1!important;cursor:pointer!important;
}
.hdvvn-dm-head-actions .hdvvn-dm-minimize:hover{background:rgba(255,255,255,.12)!important}
@media(max-width:700px){
  .hdvvn-dm-head-actions .hdvvn-dm-minimize{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;font-size:25px!important}
}
.hdvvn-limit-dialog{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px}.hdvvn-limit-dialog__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}.hdvvn-limit-dialog__card{position:relative;width:min(560px,100%);background:#fff;border-radius:16px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.28);z-index:1}.hdvvn-limit-dialog__card h3{margin:0 36px 10px 0;color:#0f5b4e;font-size:22px}.hdvvn-limit-dialog__card p{margin:0;color:#475569;line-height:1.65}.hdvvn-limit-dialog__x{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#64748b}.hdvvn-limit-dialog__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hdvvn-limit-dialog__actions a,.hdvvn-limit-dialog__actions button{border-radius:9px;padding:10px 15px;font-weight:700;text-decoration:none;cursor:pointer}.hdvvn-limit-dialog__upgrade{background:#0f5b4e;color:#fff!important}.hdvvn-limit-dialog__actions button{border:1px solid #cbd5e1;background:#fff;color:#334155}@media(max-width:600px){.hdvvn-limit-dialog{align-items:flex-end;padding:0}.hdvvn-limit-dialog__card{border-radius:18px 18px 0 0;padding:22px 18px}.hdvvn-limit-dialog__actions{flex-direction:column}.hdvvn-limit-dialog__actions a,.hdvvn-limit-dialog__actions button{text-align:center;width:100%;box-sizing:border-box}}

/* 1.9.3 - quota popup đầy đủ nội dung, khung gọn để giữ focus */
.hdvvn-limit-dialog__card--compact{width:min(440px,100%);padding:22px}
.hdvvn-limit-dialog__card--compact h3{margin:0 36px 18px 0;font-size:20px;line-height:1.4}
.hdvvn-limit-dialog__card--compact .hdvvn-limit-dialog__actions{margin-top:0}
.hdvvn-limit-dialog__card--wide{width:min(620px,100%);padding:22px 20px}
.hdvvn-limit-dialog__card--wide h3{margin:0 40px 8px 0;font-size:23px;line-height:1.3;color:#245c21}
.hdvvn-limit-dialog__detail{margin:0!important;color:#111827!important;font-weight:600;line-height:1.62!important;font-size:14px}
.hdvvn-limit-dialog__card--wide .hdvvn-limit-dialog__actions{margin-top:16px}
@media(max-width:600px){.hdvvn-limit-dialog__card--wide{width:100%;padding:20px 16px}.hdvvn-limit-dialog__card--wide h3{font-size:20px}.hdvvn-limit-dialog__detail{font-size:13.5px}}


/* 1.9.4 - MOBILE/TABLET UX ONLY: bỏ double gutter của trang Cộng Đồng. */
@media(max-width:900px){
  body.hdvvn-community-page .hdv-entry-content.hdv-shell{width:calc(100% - 32px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  body.hdvvn-community-page .hdv-entry-content>.hdvvn-community-shell,body.hdvvn-community-page .hdv-entry-content>*:has(.hdvvn-community-shell),body.hdvvn-community-page .hdvvn-community-shell{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
}
@media(max-width:600px){
  body.hdvvn-community-page .hdv-entry-content.hdv-shell{width:calc(100% - 20px)!important}
  body.hdvvn-community-page .hdvvn-room-classic{padding-top:10px!important}
  body.hdvvn-community-page .hdvvn-community-layout{padding:8px!important}
}


/* ================= HDVVN Community 1.9.10 =================
   Gallery bài viết: tối đa 5 ảnh, responsive. Ảnh gốc được resize theo chiều ngang ở PHP;
   phần gallery chỉ sắp xếp hiển thị, không thay đổi dữ liệu chat/room/bình luận.
*/
.hdvvn-community-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:start;margin:9px 0 4px;border:1px solid #c8bda4;border-radius:4px;overflow:hidden;background:#e8dfcd}
.hdvvn-community-gallery-item{min-width:0;overflow:hidden;background:#e8dfcd}
.hdvvn-community-gallery-item img{display:block;width:100%;height:auto;margin:0;object-fit:contain}
.hdvvn-community-gallery.is-count-3 .hdvvn-community-gallery-item:first-child,.hdvvn-community-gallery.is-count-5 .hdvvn-community-gallery-item:first-child{grid-column:1/-1}
@media(max-width:600px){.hdvvn-community-gallery{gap:3px;margin-left:-1px;margin-right:-1px}}

/* ================= HDVVN Community 1.9.11 =================
   Chủ bài: sửa + ẩn/hiện. Administrator: sửa + ẩn/hiện + xóa vĩnh viễn. Chỉ tác động UI bài cộng đồng.
*/
.hdvvn-community-manage{position:relative;margin-left:auto}
.hdvvn-community-manage summary{list-style:none;cursor:pointer;padding:3px 6px;border-radius:3px;color:#766e60;font-weight:800;line-height:1}
.hdvvn-community-manage summary::-webkit-details-marker{display:none}
.hdvvn-community-manage-menu{position:absolute;right:0;top:26px;z-index:35;min-width:190px;padding:6px;background:#fffaf0;border:1px solid #a79874;border-radius:5px;box-shadow:0 10px 24px rgba(0,0,0,.14)}
.hdvvn-community-manage-menu button{display:block;width:100%;border:0;background:transparent;color:#334139;text-align:left;padding:8px 9px;border-radius:4px;font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}
.hdvvn-community-manage-menu button:hover{background:#eee5d4}
.hdvvn-community-manage-menu button.is-delete{color:#a32c2c}
.hdvvn-community-edit-form{margin:10px 0;padding:10px;border:1px solid #c8bda4;border-radius:5px;background:#fffaf0}
.hdvvn-community-edit-form textarea,.hdvvn-community-edit-form input[type=text],.hdvvn-community-edit-form select{width:100%;border:1px solid #b9aa88;border-radius:4px;background:#fffef9;padding:9px 10px;font:inherit}
.hdvvn-community-edit-form textarea{resize:vertical}
.hdvvn-community-edit-images{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}
.hdvvn-community-edit-image{display:flex;flex-direction:column;gap:5px;min-width:0;padding:5px;border:1px solid #d8cdb4;border-radius:4px;background:#fff}
.hdvvn-community-edit-image img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:3px}
.hdvvn-community-edit-image span{font-size:11px;color:#7a3325;line-height:1.25}
.hdvvn-community-edit-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.hdvvn-community-edit-actions .hdvvn-upload-label{margin-right:auto}
.hdvvn-community-edited{font-size:10.5px;color:#7d7465;white-space:nowrap}
@media(max-width:700px){.hdvvn-community-edit-images{grid-template-columns:repeat(3,minmax(0,1fr))}.hdvvn-community-manage-menu{right:-4px;min-width:180px}.hdvvn-community-edit-actions{align-items:stretch}.hdvvn-community-edit-actions .hdvvn-upload-label{width:100%}}

/* ===== HDVVN Community 1.9.11 — quyền bài + permalink public ===== */
.hdvvn-community-post.is-hidden{opacity:.92;border-style:dashed}
.hdvvn-community-hidden-note{margin:8px 0;padding:8px 10px;border:1px solid #c7b78f;background:#fff7df;border-radius:4px;font-size:12px;color:#6f5520}
.hdvvn-community-permalink{color:inherit;text-decoration:none}
.hdvvn-community-permalink:hover{text-decoration:underline}
.hdvvn-community-single{max-width:1080px;margin:20px auto 40px;padding:0 16px;box-sizing:border-box}
.hdvvn-community-single-nav{margin-bottom:10px;font-size:13px}
.hdvvn-community-single-nav a{text-decoration:none}
.hdvvn-community-single-title{max-width:820px;margin:0 0 14px;font-size:26px;line-height:1.28;color:#2f382f}
.hdvvn-community-single>.hdvvn-community-post{max-width:820px}
@media(max-width:700px){.hdvvn-community-single{margin-top:12px;padding:0 10px}.hdvvn-community-single-title{font-size:21px}.hdvvn-community-hidden-note{font-size:11.5px}}
