/* Chém gió: kiểu riêng, dựa trên biến màu của hong.css (có sẵn dark mode). */
.cg-nav { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cg-nav a:not(.btn) { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cg-nav a.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.cg-nav .cg-new, .cg-new { margin-left: auto; }
.cg-hot { margin: 4px 0 8px; }
.cg-hot .chip { flex: 0 0 auto; }
.cg-chips { margin-bottom: 8px; }
.cg-chips .chip { flex: 0 0 auto; }
.cg-sort { margin-bottom: 12px; }
.cg-between { justify-content: space-between; }
.cg-more { justify-content: center; margin: 12px 0; }

.cg-list { padding: 0; overflow: hidden; }
.cg-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.cg-row:last-child { border-bottom: 0; }
.cg-row:active { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cg-row.unread .cg-row-title, .cg-row.unread > .cg-row-main > div:first-child { font-weight: 700; }
.cg-row.unread { box-shadow: inset 3px 0 0 var(--accent); }
.cg-row-main { flex: 1; min-width: 0; }
.cg-row-title { overflow-wrap: anywhere; }
.cg-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.cg-prefix { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 6px; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); vertical-align: 1px; }
.cg-prefix.p-tin-tuc { background: color-mix(in srgb, #1971c2 18%, transparent); color: #1971c2; }
.cg-prefix.p-hoi { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.cg-prefix.p-review { background: color-mix(in srgb, var(--hot) 16%, transparent); color: var(--hot); }
.cg-prefix.p-chia-se { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-ink); }

.cg-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.cg-box { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; margin: 0; }
.cg-box-emoji { font-size: 28px; line-height: 1; }

.cg-title { overflow-wrap: anywhere; }
.cg-crumb { margin-top: 4px; }
.cg-crumb a { text-decoration: none; }
.cg-meta { margin-bottom: 8px; }
.cg-tags, .cg-vols, .cg-toolbar { margin-bottom: 8px; }

.cg-story { display: flex; flex-direction: column; gap: 6px; }
.cg-story-title { font-weight: 700; font-size: 17px; text-decoration: none; }
.cg-story p { margin: 0; }
.hot-tag { color: var(--hot); font-weight: 600; }
.cg-card-post { border-left: 4px solid var(--accent); }

.cg-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: var(--gap); scroll-margin-top: 70px; }
.cg-post:target { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cg-post.pending { opacity: .8; border-style: dashed; }
.cg-post header { display: flex; align-items: center; gap: 10px; }
.cg-post .avatar img, .cg-post .initials { width: 36px; height: 36px; font-size: 14px; }
.cg-who { flex: 1; min-width: 0; line-height: 1.3; }
.cg-who a { text-decoration: none; }
.cg-rank { font-size: 12px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 6px; padding: 0 6px; }
.cg-num { color: var(--muted); text-decoration: none; font-size: 14px; }
.cg-pending { font-size: 13px; color: var(--hot); margin-top: 8px; }
.cg-body { margin-top: 8px; overflow-wrap: anywhere; }
.cg-body p { margin: 0 0 8px; }
.cg-body a { color: var(--accent-ink); }
.cg-body .removed { color: var(--muted); font-style: italic; }
.cg-body .mention { color: #1971c2; font-weight: 600; }
.cg-body blockquote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--line); background: color-mix(in srgb, var(--muted) 8%, transparent); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--muted); }
.cg-quote-who { display: block; font-weight: 600; font-size: 13px; color: var(--accent-ink); text-decoration: none; }
.cg-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 8px; }
.react { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer; min-height: 32px; }
.react.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.linkbtn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; padding: 6px 4px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.cg-acts { display: flex; gap: 6px; }

.cg-pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.cg-pager a, .cg-pager b { min-width: 36px; text-align: center; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.cg-pager b { background: var(--accent); border-color: var(--accent); color: #fff; }

.cg-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cg-form label { font-weight: 600; font-size: 14px; }
.cg-reply { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cg-actions { justify-content: flex-end; }
.cg-locked { text-align: center; }
.qchip { display: inline-flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.qchip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; padding: 0; }

.cg-dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); max-width: min(480px, 92vw); padding: 16px; }
.cg-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.cg-dialog h2 { margin-top: 0; }
.cg-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 15px; }
.cg-check input { margin-top: 4px; }

.cg-profile-head { display: flex; gap: 14px; align-items: center; }
.cg-profile .avatar.big img, .cg-profile .avatar.big .initials { width: 64px; height: 64px; font-size: 24px; }
.cg-profile h1 { margin: 0; }
.cg-progress { height: 8px; border-radius: 999px; background: var(--line); margin: 12px 0 4px; overflow: hidden; }
.cg-progress span { display: block; height: 100%; background: var(--accent); }
.cg-stats { gap: 16px; margin-top: 8px; }
.cg-banned { color: var(--danger); }
