/* Rjeti.com 1.8.8: Story comments popup — native app look and theme-aware. */
.r188-comments-data[hidden],.r188-comments-modal[hidden],.r188-comments-message[hidden]{display:none!important}
.r188-comments-panel{margin:8px 0 12px;width:100%}
.r188-comments-trigger{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:11px 15px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);font-size:13px;font-weight:750;cursor:pointer;transition:border-color .2s,background .2s}
.r188-comments-trigger svg{width:20px;height:20px;color:var(--red)}
.r188-comments-trigger:hover{border-color:var(--red);background:var(--red-soft)}
.r188-comments-count{background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:11px}
body.r188-comment-open{overflow:hidden}
.r188-comments-modal{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:20px;color:var(--ink)}
.r188-comments-backdrop{position:absolute;inset:0;background:rgba(10,16,27,.70);border:0;cursor:default;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.r188-comments-sheet{position:relative;display:flex;flex-direction:column;overflow:hidden;width:min(480px,100%);height:min(630px,calc(100dvh - 40px));max-height:calc(100dvh - 24px);background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.3);animation:r188-appear .2s ease-out}
.r188-sheet-handle{display:none}
.r188-comments-header{padding:20px 21px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.r188-comments-heading h2{font-size:21px;letter-spacing:-.5px;font-weight:850;line-height:1.25;margin:0;color:var(--ink)}
.r188-comments-subtitle{font-size:12px;color:var(--muted);margin:5px 0 0}
.r188-comments-close{font-size:27px;line-height:1;width:34px;height:34px;flex-shrink:0;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--ink);cursor:pointer}
.r188-comments-close:hover{color:var(--red);border-color:var(--red)}
.r188-comments-story{display:flex;gap:12px;align-items:center;padding:12px 21px;background:var(--bg);border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.4}
.r188-story-preview{width:38px;height:48px;border-radius:9px;object-fit:cover;flex-shrink:0}
.r188-comments-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px;display:flex;flex-direction:column;gap:19px}
.r188-comment-item{display:flex;align-items:flex-start;gap:11px;min-width:0}
.r188-comment-item>.avatar{border:0;width:37px;height:37px;flex:none}
.r188-comment-body{min-width:0;flex:1}
.r188-comment-by{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline}
.r188-comment-by a{font-size:13px;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.r188-comment-by a:hover{color:var(--red)}
.r188-comment-by time{font-size:11px;color:var(--muted)}
.r188-comment-body p{font-size:13px;line-height:1.55;margin:4px 0 0;color:var(--ink);overflow-wrap:anywhere}
.r188-comment-delete-form{flex:none;margin-left:3px}
.r188-comment-delete-form button{background:transparent;border:0;border-radius:7px;padding:5px;color:var(--muted);cursor:pointer}
.r188-comment-delete-form button:hover{background:var(--red-soft);color:var(--red)}
.r188-comments-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;flex:1;min-height:210px;text-align:center;color:var(--muted);font-size:12px}
.r188-comments-empty svg{color:var(--red);opacity:.75}
.r188-comments-empty strong{font-size:15px;color:var(--ink)}
.r188-comments-message{margin:0 20px 10px;color:#13804d;font-size:12px;font-weight:700}
.r188-comments-message.is-error{color:#e04655}
.r188-comments-composer{border-top:1px solid var(--line);background:var(--surface);padding:14px 19px max(14px,env(safe-area-inset-bottom));margin-top:auto}
.r188-comment-form{display:flex;align-items:center;gap:9px;width:100%}
.r188-comment-form input{flex:1;min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:999px;outline:0;padding:12px 15px;color:var(--ink);font-size:13px}
.r188-comment-form input:focus{border-color:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 12%,transparent)}
.r188-comment-form button{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;padding:12px 13px;color:#fff!important;background:var(--red)!important;border:0!important;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer}
.r188-comment-form button:hover{filter:brightness(1.06)}
.r188-comment-form button:disabled{opacity:.6;cursor:wait}
.r188-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0}
.r188-comments-close:focus-visible,.r188-comments-trigger:focus-visible,.r188-comment-form button:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.r188-comment-form input::placeholder{color:var(--muted)}
@keyframes r188-appear{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){
 .r188-comments-modal{padding:0;align-items:end}
 .r188-comments-sheet{width:100%;height:min(83dvh,760px);max-height:95dvh;border-radius:23px 23px 0 0;border-bottom:0}
 .r188-sheet-handle{display:block;margin:10px auto 0;width:42px;height:4px;border-radius:100px;background:var(--line)}
 .r188-comments-header{padding-top:13px}
 .r188-comments-scroll{padding:17px 15px}
 .r188-comments-composer{padding:12px 13px max(15px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.r188-comments-sheet{animation:none}}

/* v1.8.9: right-aligned three-dot actions and nested Story replies. */
.r189-comment-thread{display:flex;flex-direction:column;gap:10px;min-width:0}
.r189-comment-replies{display:flex;flex-direction:column;gap:14px;padding-left:16px;margin-left:17px;border-left:2px solid var(--line)}
.r189-is-reply>.avatar{width:29px;height:29px;min-width:29px}
.r189-is-reply{gap:8px}
.r189-reply-button{display:inline-flex;align-items:center;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:800;padding:6px 1px;margin:3px 0 0;cursor:pointer}
.r189-reply-button:hover,.r189-reply-button:focus-visible{color:var(--red)}
.r189-comment-more{position:relative;align-self:flex-start;margin-left:auto;flex:none}
.r189-comment-more>summary{list-style:none;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:9px;color:var(--muted);font-size:23px;line-height:1;font-weight:800;cursor:pointer;user-select:none}
.r189-comment-more>summary::-webkit-details-marker{display:none}
.r189-comment-more>summary:hover,.r189-comment-more[open]>summary{background:var(--bg);color:var(--ink)}
.r189-comment-menu{position:absolute;z-index:20;right:0;top:32px;width:210px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px rgba(0,0,0,.16)}
.r189-comment-report-form{display:flex;flex-direction:column;gap:8px;margin:0}
.r189-comment-report-form label{color:var(--muted);font-size:11px;font-weight:750;display:flex;flex-direction:column;gap:6px}
.r189-comment-report-form select{width:100%;max-width:100%;padding:8px 6px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:7px;font-size:11px}
.r189-comment-report-form button,.r189-comment-menu .r188-comment-delete-form button{padding:9px 10px;border-radius:9px;background:var(--bg);color:var(--ink);border:1px solid var(--line);font-size:12px;font-weight:800;width:100%;text-align:left;cursor:pointer}
.r189-comment-report-form button:hover{color:var(--red);border-color:var(--red)}
.r189-comment-menu .r188-comment-delete-form{margin:7px 0 0;width:100%}
.r189-comment-menu .r188-comment-delete-form:first-child{margin-top:0}
.r189-comment-menu .r188-comment-delete-form button:hover{color:var(--red);background:var(--red-soft)}
.r189-replybar[hidden]{display:none!important}
.r189-replybar{display:flex;justify-content:space-between;align-items:center;padding:3px 7px 11px;color:var(--muted);font-size:12px;font-weight:750}
.r189-reply-cancel{display:grid;place-items:center;font-size:19px;line-height:1;width:23px;height:23px;border:0;border-radius:7px;background:var(--bg);color:var(--muted);cursor:pointer}
.r189-reply-cancel:hover{color:var(--red)}
.r189-reply-button:focus-visible,.r189-comment-more>summary:focus-visible,.r189-reply-cancel:focus-visible,.r189-comment-menu button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media(max-width:450px){.r189-comment-replies{margin-left:10px;padding-left:9px}.r189-comment-menu{width:190px}.r189-is-reply>.avatar{width:26px;height:26px;min-width:26px}}
