.editor-selectors{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,240px) auto auto;align-items:end;gap:14px;margin-bottom:20px}.editor-selectors label{margin-top:0}.editor-selectors select{width:100%}.editor-selectors button{margin-bottom:1px}
.editor-risk{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:16px 18px;margin-bottom:16px}.editor-risk p{font-size:12px;color:var(--muted);margin-bottom:10px}.editor-risk .check-label{margin:0;color:var(--text)}.editor-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0;font-size:12px;color:var(--muted);flex-wrap:wrap}.editor-meta>div{display:grid;gap:3px}.editor-meta small{font-size:11px}
.editor-source{display:grid;grid-template-columns:52px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.editor-source pre,.editor-source textarea{font:12px/22px ui-monospace,Consolas,monospace;tab-size:4;margin:0;padding:16px 14px;height:460px;min-height:300px;white-space:pre;overflow:auto;border:0;border-radius:0}.editor-source pre{color:var(--muted);background:var(--bg);text-align:right;overflow:hidden;user-select:none;border-right:1px solid var(--line)}.editor-source textarea{resize:vertical;color:var(--text);background:var(--panel);width:100%;outline-offset:-3px}.editor-source textarea[readonly]{color:var(--muted)}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.editor-footer .button{font-size:12px}.editor-footer p{margin:0;font-size:11px;color:var(--muted)}
#editor-copies{margin-top:26px}#editor-copies>summary{cursor:pointer;color:var(--muted);font-size:12px}.editor-copy{display:flex;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.editor-copy>div{flex:1;font-size:12px}.editor-copy small{display:block;color:var(--muted);font-size:11px}.editor-copy button,.editor-copy .button{font-size:11px;padding:7px 10px;min-height:32px}
.file-diff{overflow:auto;max-height:380px;border:1px solid var(--line);border-radius:7px;background:var(--bg);font:12px/22px ui-monospace,Consolas,monospace;margin:16px 0}.file-diff-line{display:grid;grid-template-columns:38px 38px 20px minmax(max-content,1fr);width:max-content;min-width:100%;padding-right:12px}.file-diff-line>span{color:var(--muted);text-align:right;padding:0 5px;user-select:none}.file-diff-line code{white-space:pre;font:inherit;padding-left:8px}.file-diff-line.added{color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--bg))}.file-diff-line.removed{color:var(--danger);background:color-mix(in srgb,var(--danger) 9%,var(--bg))}.file-diff-gap{padding:3px 12px;color:var(--muted)}.editor-review-dialog{width:min(1000px,calc(100% - 24px))}.editor-review-dialog .field-help{font-size:12px}.editor-review-dialog details pre{font:12px/1.7 ui-monospace,Consolas,monospace;white-space:pre;overflow:auto;max-height:360px;padding:16px;background:var(--bg);border-radius:7px}.editor-secret-note{color:var(--muted);font-size:12px;margin:12px 0}.editor-review-dialog .dialog-actions{flex-wrap:wrap}
@media(max-width:650px){.editor-selectors{grid-template-columns:1fr 1fr}.editor-selectors>button{grid-column:1/-1;justify-self:start}.editor-risk{padding:12px}.editor-source{grid-template-columns:40px minmax(0,1fr)}.editor-source pre,.editor-source textarea{padding:12px 9px;height:390px;font-size:11px}.editor-footer{flex-wrap:wrap}.editor-copy{flex-wrap:wrap}.editor-copy>div{flex-basis:100%}.file-diff-line{grid-template-columns:28px 28px 16px minmax(max-content,1fr);font-size:11px}}

.editor-copy[data-selected="true"]{outline:1px solid var(--accent);outline-offset:3px;background:var(--panel2)}
