.research-comment-composer { scroll-margin-top: 18px; }
.research-comment-identity { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); }
.research-comment-identity > span:last-child { display: grid; gap: 2px; min-width: 0; }
.research-comment-identity small { color: var(--ink-soft); overflow-wrap: anywhere; }
.research-comment-composer textarea { width: 100%; min-height: 100px; resize: vertical; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; }
.research-comment-compose-actions, .research-comment-record > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 20px; }
.research-comment-record { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 10px 0; }
.research-comment-record p, .research-comment-review-text, .research-reply-target p { white-space: pre-wrap; overflow-wrap: anywhere; }
.research-comment-record time, .research-comment-record small { color: var(--ink-soft); font-size: 12px; }
.research-comment-record-actions { margin-top: 12px; }
.research-comment-review-text, .research-reply-target { padding: 14px; border-radius: 8px; background: var(--surface-subtle); border-left: 3px solid var(--accent); }
.research-reply-target { margin-bottom: 12px; }
.research-comment-reply { min-height: 36px; margin-top: 8px; }
@media(max-width:600px) { .research-comment-record > div:first-child { flex-wrap: wrap; } .research-comment-compose-actions { align-items: flex-end; } }
.research-comment-error { padding: 10px 12px; border: 1px solid var(--danger); border-radius: 6px; color: var(--danger); background: var(--danger-soft); }
.research-comment-error[hidden] { display: none; }
.research-library-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:10px; }
.research-library-tabs { display:flex; gap:8px; }
.research-library-tabs [aria-pressed=true] { color:var(--accent); background:var(--danger-soft); border-color:var(--accent); }
.research-library-search { flex:1 1 220px; min-width:0; }
.research-library-search input { width:100%; }
.research-library-help { color:var(--ink-soft); font-size:13px; line-height:1.6; margin:0 0 16px; }
.research-card .research-card-body { padding-bottom:30px; }
.research-mark-button { position:absolute; bottom:10px; right:10px; display:inline-flex; align-items:center; gap:4px; min-height:30px; padding:3px 8px; border:1px solid var(--border); border-radius:5px; background:var(--surface); color:var(--ink-soft); font-size:12px; cursor:pointer; }
.research-mark-button svg { width:14px; height:14px; }
.research-mark-button[aria-pressed=true] { color:var(--accent); border-color:var(--accent); }
.research-mark-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:600px){ .research-library-search { flex-basis:100%; } .research-library-tabs { flex-wrap:wrap; } .research-mark-button { min-height:36px; } }
