.rules-discussion { margin:0; padding:20px; grid-template-columns:minmax(0,1fr); border:1px solid var(--line); border-radius:0 0 10px 10px; background:#111727; }
.rules-discussion[hidden],.rules-banner-publication[hidden],.rules-reactions[hidden],.rules-comments[hidden],.rules-discussion-status[hidden],.rules-comments .comments-more[hidden] { display:none; }
.rules-version-banner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-content:end; column-gap:20px; }
.rules-version-banner > span,.rules-version-banner > strong { grid-column:1; }
.rules-banner-publication { position:relative; z-index:1; grid-column:2; grid-row:1 / 3; display:flex; flex-direction:column; align-items:flex-end; justify-content:flex-end; gap:5px; min-width:0; color:#e2d9eb; font:500 11px/1.45 Manrope,sans-serif; }
.rules-banner-publication > span { max-width:100%; overflow-wrap:anywhere; font-weight:700; }
.rules-banner-publication > time { color:#c3b9cf; }
.rules-reactions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:7px; }
.rules-reaction { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:4px 9px; border:1px solid rgba(159,147,255,.12); border-radius:8px; background:rgba(7,11,23,.22); color:#a999ff; font:800 11px Manrope,sans-serif; }
.rules-reaction img { width:18px; height:18px; object-fit:contain; }
.rules-reaction-emoji { font-size:17px; line-height:1; }
.rules-reaction.is-telegram { border-color:#269cda30; background:#183b5538; color:#a4dfff; }
.rules-reaction.is-paid-star { border-color:#ffb83263; background:linear-gradient(155deg,#60431588,#37211170); color:#ffe192; box-shadow:0 0 11px #ffb83230; }
.rules-paid-star { display:grid; width:17px; height:17px; filter:drop-shadow(0 0 4px #ffb52bba); }
.rules-paid-star::before { content:''; background:linear-gradient(145deg,#fff6b2 10%,#ffcf54 42%,#f99c20 74%,#bc6817); clip-path:polygon(50% 2%,64% 31%,97% 37%,74% 62%,80% 96%,50% 80%,20% 96%,26% 62%,3% 37%,36% 31%); }
.rules-paid-star.is-loaded::before { display:none; }
.rules-paid-star svg { width:100%; height:100%; }
.rules-comments { margin-top:20px; padding:9px 16px 8px; }
.rules-comment-composer { display:block; box-sizing:border-box; width:100%; min-height:64px; margin:5px 0 8px; padding:12px; resize:none; border:1px solid rgba(159,147,255,.13); border-radius:8px; background:rgba(7,11,23,.28); color:#929bb0; font:500 12px/1.6 Manrope,sans-serif; opacity:1; cursor:not-allowed; }
.rules-comment-composer::placeholder { color:#929bb0; opacity:1; }
.rules-comments .comment p > .rules-comment-reply { display:flex; grid-column:1 / -1; align-items:center; min-width:0; gap:6px; margin:5px 0 0; color:#939db4; font:500 10px/1.5 Manrope,sans-serif; text-decoration:none; }
.rules-comment-reply .rules-reply-arrow { flex:none; color:#a999ff; }
.rules-comment-reply .rules-reply-name { flex:0 1 auto; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#bbb2e3; font-weight:700; }
.rules-comment-reply .rules-reply-excerpt { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rules-comments .comment p > a.rules-comment-reply:hover { color:#d5dbea; }
.rules-comments > div > .comment:last-child { border-bottom:0; }
.rules-comments .avatar { overflow:hidden; }
.rules-comments .avatar img { width:100%; height:100%; object-fit:cover; }
.rules-comments .comment p { flex:1; }
.rules-comments .comment { scroll-margin-block:100px; }
.is-comment-target { animation:rules-comment-target 1.8s ease-out; }
@keyframes rules-comment-target { 0%,25% { background-color:rgba(169,153,255,.18); box-shadow:inset 0 0 0 1px rgba(169,153,255,.45); } 100% { background-color:transparent; box-shadow:inset 0 0 0 1px transparent; } }
@media(prefers-reduced-motion:reduce) { .is-comment-target { animation:none; outline:1px solid #a999ff; } }
.rules-comments .comment b { overflow-wrap:anywhere; }
.rules-comments .comment p > .rules-comment-author { display:flex; grid-column:1; flex-wrap:wrap; align-items:center; gap:3px 6px; min-width:0; margin:0; }
.rules-comment-source { padding:1px 5px; border-radius:4px; background:#5865f230; color:#c4c9ff; font:700 9px/1.45 Manrope,sans-serif; }
.rules-comment-source.is-telegram { background:#239bd72e; color:#a4dfff; }
.rules-comment-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.rules-comment-attachments { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.rules-comment-attachments a { max-width:100%; color:#a999ff; overflow-wrap:anywhere; }
.rules-comment-attachments img { display:block; max-width:min(100%,320px); max-height:240px; border-radius:7px; object-fit:contain; }
.rules-comment-media { display:block; max-width:min(100%,400px); max-height:320px; border-radius:7px; }
audio.rules-comment-media { width:min(100%,320px); }
.rules-comment-sticker { display:block; max-width:100%; }
.rules-comment-sticker img,.rules-sticker-animation,.rules-comment-video-sticker { display:block; width:160px; height:160px; max-width:100%; object-fit:contain; }
.rules-sticker-animation svg { display:block; width:100%; height:100%; }
.rules-sticker-animation[hidden],.rules-sticker-fallback[hidden] { display:none; }
.rules-comments-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 18px; }
.rules-comments .comments-more:disabled { opacity:.6; cursor:default; }
.rules-discussion-status { grid-column:1 / -1; margin:8px 0; color:#8993ac; font:500 12px/1.6 Manrope,sans-serif; }
@media (max-width:600px) { .rules-discussion { padding:15px; }.rules-version-banner { column-gap:12px; }.rules-banner-publication { font-size:10px; } }
@media (max-width:380px) { .rules-version-banner { grid-template-columns:minmax(0,1fr); }.rules-banner-publication { grid-column:1; grid-row:auto; align-items:flex-start; margin-top:5px; } }
