/* Review controls use the same theme and compact spacing as editor docks. */
.pr-comment-popover{position:fixed;z-index:150;width:440px;max-width:calc(100vw - 16px);max-height:min(640px,calc(100vh - 24px));display:flex;flex-direction:column;background:var(--t-panel);color:var(--t-text);border:1px solid var(--t-border);border-radius:5px;box-shadow:0 10px 30px #0005;font:13px var(--font);overflow:hidden;user-select:text}
.pr-comment-popover[hidden]{display:none}.pr-comment-head{height:34px;min-height:34px;display:flex;align-items:center;gap:8px;padding:0 8px 0 12px;border-bottom:1px solid var(--t-border);user-select:none}.pr-comment-head>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pr-comment-popover button{font:inherit;border:0;background:transparent;color:var(--t-text);padding:5px 8px;border-radius:3px;cursor:pointer;white-space:nowrap}.pr-comment-popover button:hover{background:var(--t-hover)}.pr-comment-popover button:disabled{opacity:.5;cursor:default}.pr-comment-popover button:focus-visible{outline:1px solid var(--t-accent);outline-offset:-1px}.pr-comment-close{display:grid;place-items:center;width:24px;height:24px;padding:4px!important}.pr-comment-content{overflow:auto;min-height:0;padding:10px 12px}.pr-comment-form{display:flex;flex-direction:column;gap:8px;margin:0}.pr-comment-tabs{display:flex;gap:3px;border-bottom:1px solid var(--t-border)}.pr-comment-tabs button{font-size:12px;border-radius:0}.pr-comment-tabs [aria-pressed=true]{box-shadow:inset 0 -2px var(--t-accent);color:var(--t-text)}.pr-comment-tabs [aria-pressed=false]{color:var(--t-muted)}.pr-comment-form textarea{box-sizing:border-box;width:100%;min-height:88px;resize:vertical;max-height:230px;background:var(--t-bg);color:var(--t-text);border:1px solid var(--t-border);border-radius:3px;padding:8px;font:13px/1.5 var(--font)}.pr-comment-form textarea:focus{outline:1px solid var(--t-accent);outline-offset:-1px}.pr-comment-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.pr-comment-actions .pr-comment-primary{background:var(--t-active);border:1px solid var(--t-border)}.pr-comment-status:empty{display:none}.pr-comment-status{padding:8px 12px;border-top:1px solid var(--t-border);font-size:12px;color:var(--t-muted)}.pr-comment-status button{margin-left:6px;color:var(--t-accent)}.pr-comment-markdown{font:13px/1.5 var(--font);overflow-wrap:anywhere}.pr-comment-markdown p{margin:6px 0}.pr-comment-markdown pre{overflow:auto;background:var(--t-bg);padding:8px}.pr-comment-markdown code{font-family:var(--mono)}.pr-comment-markdown a{color:var(--t-accent)}.pr-comment-preview{min-height:88px}.pr-thread{margin-bottom:12px;border-bottom:1px solid var(--t-border);padding-bottom:8px}.pr-thread-comment{margin-bottom:10px}.pr-thread-meta{font-size:12px;color:var(--t-muted)}.pr-pending-comment,.pr-pending-summary{border-bottom:1px solid var(--t-border);padding:8px 0;margin-bottom:8px}.pr-pending-comment p,.pr-pending-summary p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.pr-pending-comment small,.pr-pending-count{color:var(--t-muted);font-size:12px}.pr-pending-summary code{display:block;overflow:hidden;text-overflow:ellipsis;font:11px var(--mono);color:var(--t-muted)}.pr-pending-list{max-height:190px;overflow:auto}.pr-review-action{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:0 0 8px}.pr-review-action select{background:var(--t-bg);color:var(--t-text);border:1px solid var(--t-border);height:28px;font:inherit;border-radius:3px;padding:0 6px}
#review-diff [data-review-line]{position:relative;touch-action:none;user-select:none;cursor:pointer;border:0;background:transparent;color:var(--t-muted);border-radius:0;font:inherit;text-align:right}
#review-diff [data-review-line]:hover,#review-diff [data-review-line]:focus-visible{background:var(--t-active);color:var(--t-text)}
#review-diff [data-review-line]:hover:before,#review-diff [data-review-line]:focus-visible:before{content:'+';position:absolute;left:1px;top:0;color:var(--t-accent);font-weight:bold}
#review-diff .review-selected{box-shadow:inset 0 0 0 9999px color-mix(in srgb,var(--t-accent) 15%,transparent)}
#review-diff .has-review-thread:after{content:'';position:absolute;left:2px;top:50%;width:6px;height:6px;border-radius:50%;background:var(--t-accent);transform:translateY(-50%)}
#review-diff .has-review-thread:hover:after{display:none}
.pr-thread-range{display:block;font-size:11px;color:var(--t-muted);margin-top:4px}
