.comment-card{--comment-indent:45px;--comment-copy:#41464c;--comment-replies-bg:#f1f2f4;min-width:0;padding:18px 0;color:var(--g-text)}
.comment-card+.comment-card{border-top:1px solid var(--g-border)}
.comment-header{display:flex;align-items:flex-start;gap:10px}
.comment-avatar{width:35px;height:35px;overflow:hidden;border-radius:50%;background:var(--g-surface-2)}
.comment-identity{min-width:0;flex:1}
.comment-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-height:18px}
.comment-author-name{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.comment-author-name:hover{color:var(--g-primary-text)}
.comment-card .level-chip,.comment-dialog-panel .level-chip{display:inline-flex;align-items:center;min-height:18px;padding:0 5px;border:0;border-radius:50px;color:#fff;font-size:10px;font-weight:700;line-height:18px;white-space:nowrap}
.comment-card .level-chip-gray,.comment-dialog-panel .level-chip-gray{background:#89959e}
.comment-card .level-chip-green,.comment-dialog-panel .level-chip-green{background:#66a17d}
.comment-card .level-chip-blue,.comment-dialog-panel .level-chip-blue{background:#3f98d2}
.comment-card .level-chip-gold,.comment-dialog-panel .level-chip-gold{background:#b98121}
.comment-date{margin-top:3px;color:var(--g-muted);font-size:11px;line-height:1.65}
.comment-text{margin:10px 0 3px var(--comment-indent);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--comment-copy);font-size:14px;line-height:1.85}
.comment-text a{color:var(--g-primary-text);text-underline-offset:3px}
.comment-badge{display:inline-flex;padding:2px 5px;border-radius:4px;background:color-mix(in srgb,var(--g-primary) 9%,var(--g-surface));color:var(--g-primary-text);font-size:10px;font-weight:500}
.comment-reply-reference{color:var(--g-muted);font-weight:400}
.comment-reply-reference>span{color:var(--g-primary-text);font-weight:500}
.comment-replies{margin:12px 0 6px var(--comment-indent);padding:5px 10px;background:var(--comment-replies-bg);border-radius:5px}
.comment-replies:empty{display:none}
.comment-reply-preview{padding:6px 0;color:var(--comment-copy);font-size:13.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-reply-author{font-weight:600}
.comment-reply-author:hover{color:var(--g-primary-text)}
.comment-replies-more{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--g-primary-text);text-align:left}
.comment-reply-image{color:var(--g-primary-text);border-radius:4px;min-height:32px;padding-inline:3px}
.comment-actions{display:flex;align-items:center;gap:14px;padding-left:var(--comment-indent)}
.comment-actions form{margin:0}
.comment-actions>.comment-reply-action{height:40px;min-height:40px;padding:0;font-size:12px;background:transparent}
.comment-actions>[data-like-target],.comment-actions>.comment-guest-like{margin-left:auto;padding:0;gap:5px;font-size:12px}
.comment-actions>[data-like-target] .material-symbols-outlined,.comment-actions>.comment-guest-like .material-symbols-outlined{font-size:17px}
.comment-actions>.comment-like-button,.comment-actions>.comment-guest-like{height:40px;min-height:40px;padding:0;gap:5px;border-radius:8px;color:#7f858c;font-size:12px}
.comment-actions>.comment-like-button:hover,.comment-actions>.comment-guest-like:hover{background:transparent;color:#0088e7}
.comment-actions>.comment-like-button[aria-pressed="true"]{color:#0088e7}
.comment-actions>.comment-like-button .material-symbols-outlined,.comment-actions>.comment-guest-like .material-symbols-outlined{font-size:18px}
.comment-actions>.comment-like-button>div{transform:none!important}
.comment-card>.comment-media{width:calc(100% - var(--comment-indent));margin-left:var(--comment-indent)}
.comment-more{position:relative;margin:-4px -9px -4px auto;flex:none}
.comment-more>summary{display:grid;place-items:center;width:44px;min-height:44px;border-radius:7px;list-style:none;color:var(--g-muted);cursor:pointer}
.comment-more>summary::-webkit-details-marker,.comment-edit>summary::-webkit-details-marker{display:none}
.comment-more>summary .material-symbols-outlined{font-size:18px}
.comment-more>summary:hover{background:var(--g-surface-2)}
.comment-more-panel{position:absolute;right:0;top:100%;z-index:30;width:min(280px,calc(100vw - 48px));max-height:var(--post-actions-max-height,70vh);overflow:auto;padding:6px;border:1px solid var(--g-border);border-radius:10px;background:var(--g-surface);box-shadow:0 8px 30px #0002}
.comment-more[data-side=up]>.comment-more-panel{top:auto;bottom:100%}
.comment-more-panel>.comment-action,.comment-more-panel>form>.comment-action,.comment-more-panel>[data-like-target],.comment-more-panel .comment-edit>summary,.comment-more-panel .post-actions-report summary{display:flex;width:100%;justify-content:flex-start;gap:8px;padding:8px 10px;min-height:44px;font-size:12px;font-weight:400}
.comment-more-panel .post-actions-report form{position:static;width:100%;margin-top:4px;box-shadow:none}
.comment-more-panel .comment-edit form{padding:0 4px 6px}
.comment-more-panel .comment-delete-action{color:var(--g-danger-text,#c73535)}
.comment-more-panel .comment-edit textarea{font-size:16px}
.comment-action{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:5px;border-radius:7px;padding:6px 9px;color:var(--g-muted);font-size:12px;cursor:pointer}
.comment-action:hover{color:var(--g-primary-text);background:var(--g-surface-2)}
.comment-action:focus-visible,.comment-submit:focus-visible,.comment-media-item:focus-visible,.comment-replies-more:focus-visible,.comment-reply-image:focus-visible,.comment-more>summary:focus-visible,.comment-dialog-prompt:focus-visible{outline:2px solid var(--g-primary-text);outline-offset:2px}
.comment-action .material-symbols-outlined,.comment-submit .material-symbols-outlined{font-size:18px}
.comment-media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;max-width:380px;margin-top:12px}
.comment-media-single{display:block;max-width:300px}
.comment-media-item{display:block;position:relative;overflow:hidden;border-radius:9px;background:var(--g-surface-2);cursor:zoom-in;width:100%}
.comment-media-item.hidden{display:none}
.comment-media-item img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.comment-media-single img{aspect-ratio:auto;max-height:280px;object-fit:contain}
.comment-media-more{position:absolute;inset:0;display:grid;place-content:center;background:rgb(0 0 0 / .4);color:white;font-size:20px;pointer-events:none}
.comment-form-wrapper{min-width:0;scroll-margin-top:120px}
.comment-composer{padding:18px;border:1px solid var(--g-border);border-radius:12px;background:var(--g-surface)}
.comment-composer-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:14px;font-weight:600}
[data-draft-state]{font-size:11px;font-weight:400;color:var(--g-muted)}
.comment-composer textarea{display:block;width:100%;min-height:90px;max-height:260px;resize:vertical;border:0;background:transparent;color:var(--g-text);font-size:16px;line-height:1.7}
.comment-composer textarea:focus{outline:0}
.comment-composer:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--g-primary) 9%,transparent)}
.comment-toolbar,.comment-tools,.comment-send{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.comment-toolbar{justify-content:space-between;border-top:1px solid var(--g-border);margin-top:12px;padding-top:8px}
.comment-send{gap:10px;margin-left:auto}
.comment-counter{font-size:11px;color:var(--g-muted);font-variant-numeric:tabular-nums}
.comment-counter[data-over-limit="true"]{color:var(--g-danger-text)}
.comment-submit{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:6px;padding:8px 17px;border-radius:8px;background:var(--g-primary);color:var(--g-on-primary);font-size:13px;font-weight:600}
.comment-submit:disabled{opacity:.5;cursor:wait}
.comment-emoji-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:2px;max-height:230px;overflow:auto;padding:10px 0;border-top:1px solid var(--g-border)}
.comment-emoji-picker[hidden],.comment-mention-picker[hidden],.comment-reply-context[hidden]{display:none}
.comment-emoji-picker button{display:grid;place-items:center;min-height:44px;border-radius:6px}
.comment-emoji-picker button:hover{background:var(--g-surface-2)}
.comment-emoji-picker img{width:26px;height:26px}
.comment-mention-picker{padding-top:10px}
.comment-mention-picker label{display:grid;gap:6px;font-size:12px;color:var(--g-muted)}
.comment-mention-picker input{width:100%;padding:10px 12px;border-radius:8px;background:var(--g-surface-2);font-size:16px;color:var(--g-text)}
[data-mention-results]{display:grid;max-height:230px;overflow:auto;margin-top:6px;font-size:12px;color:var(--g-muted)}
[data-mention-results] button{display:flex;align-items:center;gap:9px;min-height:44px;padding:6px;text-align:left;border-radius:6px;color:var(--g-text)}
[data-mention-results] button:hover{background:var(--g-surface-2)}
[data-mention-results] img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.comment-reply-context{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;border-radius:7px;padding:5px 10px;background:var(--g-surface-2);font-size:12px;color:var(--g-primary-text)}
.comment-reply-context button{display:grid;place-content:center;width:44px;height:44px}
.comment-image-preview{display:flex;flex-wrap:wrap;gap:8px}
.comment-image-preview figure{position:relative;margin:0;width:72px;height:72px}
.comment-image-preview img{width:100%;height:100%;border-radius:8px;object-fit:cover}
.comment-image-preview button{position:absolute;top:-6px;right:-6px;width:32px;height:32px;border-radius:50%;background:var(--g-surface);border:1px solid var(--g-border);color:var(--g-text)}
.comment-result{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.comment-result:not(:empty){margin-top:10px}
.comment-result[data-error="true"]{color:var(--g-danger-text)}
.comment-login{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:20px 0;color:var(--g-muted);font-size:14px}
.comment-disabled{padding:18px 0;color:var(--g-muted);font-size:14px}
.comment-dialog-panel{position:relative;display:flex;flex-direction:column;width:min(640px,100%);max-height:calc(100dvh - 48px);margin:auto;overflow:hidden}
.comment-dialog-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.comment-dialog-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid var(--g-border)}
.comment-dialog-header h2{font-size:17px;font-weight:600}
.comment-dialog-header>button{width:44px;height:44px;padding:0}
.comment-dialog-scroll>.comment-card{padding:18px 20px 14px;border-bottom:8px solid var(--g-surface-2)}
.comment-dialog-scroll #sub-reply-items>.comment-card{padding:16px 20px;border-bottom:1px solid var(--g-border);border-top:0}
.comment-dialog-scroll .comment-text{margin-top:12px;margin-bottom:4px;line-height:1.65}
.comment-dialog-footer{flex:none;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--g-border)}
.comment-dialog-prompt{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:9px 12px;border-radius:10px;background:var(--g-surface-2);color:var(--g-muted);font-size:14px;text-align:left}
.comment-dialog-prompt .material-symbols-outlined{font-size:20px}
.comment-dialog-backdrop{position:absolute;inset:0}
#sub-reply-modal{display:flex;padding:24px}
html[data-theme=dark] .comment-card{--comment-copy:var(--g-text);--comment-replies-bg:var(--g-surface-2)}
@media(max-width:767px){.comment-card{--comment-indent:44px}.comment-header{gap:9px}.comment-actions{gap:10px}.comment-composer{padding:14px}.comment-tools .comment-action{padding-inline:7px}#sub-reply-modal{align-items:flex-end;padding:24px 8px 0}.comment-dialog-panel{margin:0 auto;width:100%;max-height:calc(100dvh - 24px)}.comment-dialog-scroll>.comment-card,.comment-dialog-scroll #sub-reply-items>.comment-card{padding-inline:14px}}
#sub-reply-modal:not([open]){display:none}
@media(prefers-reduced-motion:reduce){.comment-card *,.comment-composer *{scroll-behavior:auto;transition:none}}
