.rv-diff-del{background-color:#ef444426;color:#dc2626;text-decoration:line-through;text-decoration-color:#ef4444;padding:0 1px;border-radius:2px}.rv-diff-ins{background-color:#10b98126;color:#059669;text-decoration:underline;text-decoration-color:#10b981;text-decoration-style:solid;padding:0 1px;border-radius:2px;font-weight:500}body.dark-theme .rv-diff-del,[data-theme=dark] .rv-diff-del{background-color:#ef444433;color:#f87171}body.dark-theme .rv-diff-ins,[data-theme=dark] .rv-diff-ins{background-color:#10b98133;color:#34d399}.rv-dialog-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#f8fafc;z-index:99999;display:flex;justify-content:center;align-items:center;opacity:0;transition:opacity .2s;pointer-events:none}.rv-dialog-overlay.active{opacity:1;pointer-events:auto}body.dark-theme .rv-dialog-overlay,[data-theme=dark] .rv-dialog-overlay{background-color:#1e1e1e}.rv-dialog-container{width:100vw;height:100vh;background-color:#f8fafc;border-radius:0;box-shadow:none;display:flex;flex-direction:column;overflow:hidden;border:none}.rv-loading-overlay{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffe0;backdrop-filter:blur(6px);gap:18px;opacity:0;transition:opacity .25s;pointer-events:none}.rv-loading-overlay.active{opacity:1;pointer-events:auto}body.dark-theme .rv-loading-overlay,[data-theme=dark] .rv-loading-overlay{background:#1e1e1eeb}.rv-loading-spinner{width:44px;height:44px;border:3px solid #e2e8f0;border-top-color:#0d9488;border-radius:50%;animation:rv-spin .8s linear infinite}body.dark-theme .rv-loading-spinner,[data-theme=dark] .rv-loading-spinner{border-color:#333;border-top-color:#14b8a6}@keyframes rv-spin{to{transform:rotate(360deg)}}.rv-loading-text{font-size:15px;color:#475569;font-weight:500}body.dark-theme .rv-loading-text,[data-theme=dark] .rv-loading-text{color:#94a3b8}.rv-loading-progress{font-size:13px;color:#94a3b8}.rv-loading-bar-bg{width:240px;height:4px;background:#e2e8f0;border-radius:2px;overflow:hidden}body.dark-theme .rv-loading-bar-bg,[data-theme=dark] .rv-loading-bar-bg{background:#333}.rv-loading-bar-fill{height:100%;background:linear-gradient(90deg,#0d9488,#14b8a6);border-radius:2px;transition:width .3s;width:0%}body.dark-theme .rv-dialog-container,[data-theme=dark] .rv-dialog-container{background-color:#1e1e1e;border:none;box-shadow:none}.rv-dialog-toolbar{padding:10px 20px;display:flex;justify-content:space-between;align-items:center;background-color:#f1f5f9;border-bottom:1px solid #e2e8f0;gap:8px;flex-shrink:0}body.dark-theme .rv-dialog-toolbar,[data-theme=dark] .rv-dialog-toolbar{background-color:#252526;border-color:#333}.rv-toolbar-left,.rv-toolbar-right{display:flex;align-items:center;gap:10px}.rv-dialog-close-toolbar{background:none;border:none;font-size:18px;cursor:pointer;color:#64748b;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .15s;flex-shrink:0}.rv-dialog-close-toolbar:hover{background:#0000000f;color:#1e293b}body.dark-theme .rv-dialog-close-toolbar,[data-theme=dark] .rv-dialog-close-toolbar{color:#94a3b8}body.dark-theme .rv-dialog-close-toolbar:hover,[data-theme=dark] .rv-dialog-close-toolbar:hover{color:#e2e8f0;background:#ffffff14}.rv-btn{padding:5px 12px;border-radius:4px;font-size:13px;cursor:pointer;border:1px solid #cbd5e1;background-color:#fff;color:#334155;transition:all .15s;white-space:nowrap}body.dark-theme .rv-btn,[data-theme=dark] .rv-btn{background-color:#2d2d2d;border-color:#444;color:#e0e0e0}.rv-btn:hover:not(:disabled){border-color:#0d9488;color:#0d9488}.rv-btn-primary{background:linear-gradient(135deg,#0d9488,#0f766e);border-color:#0d9488;color:#fff;font-weight:600}.rv-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#0f766e,#115e59);border-color:#0f766e;color:#fff;box-shadow:0 2px 8px #0d94884d}.rv-btn:disabled{cursor:not-allowed;opacity:.45}.rv-toggle-label{font-size:13px;color:#475569;cursor:pointer;display:flex;align-items:center;gap:4px;white-space:nowrap}body.dark-theme .rv-toggle-label,[data-theme=dark] .rv-toggle-label{color:#94a3b8}.rv-toggle-label input[type=checkbox]{accent-color:#0d9488}.rv-dialog-content{flex:1;overflow-y:auto;position:relative}.rv-table{width:100%;border-collapse:collapse;table-layout:fixed}.rv-table th,.rv-table td{padding:10px 14px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;word-break:break-word}body.dark-theme .rv-table th,body.dark-theme .rv-table td,[data-theme=dark] .rv-table th,[data-theme=dark] .rv-table td{border-color:#333}.rv-table th{position:sticky;top:0;background-color:#f1f5f9;z-index:10;font-weight:500;font-size:13px;color:#64748b}body.dark-theme .rv-table th,[data-theme=dark] .rv-table th{background-color:#252526;color:#94a3b8}.rv-col-checkbox{width:48px;text-align:center;padding-left:16px!important;padding-right:4px!important}.rv-col-index{width:70px}.rv-col-source,.rv-col-target{width:30%}.rv-col-suggestion{width:22%}.rv-change-type{display:inline-block;font-size:11px;line-height:1;padding:3px 7px;border-radius:3px;font-weight:600;margin-bottom:4px;white-space:nowrap}.rv-ct-omission{background:#ef44441f;color:#dc2626}.rv-ct-inconsistency{background:#f59e0b1f;color:#d97706}.rv-ct-terminology{background:#8b5cf61f;color:#7c3aed}.rv-ct-expression{background:#3b82f61f;color:#2563eb}.rv-ct-number{background:#ec48991f;color:#db2777}.rv-ct-punctuation{background:#6b72801f;color:#4b5563}.rv-ct-logic{background:#dc26261f;color:#b91c1c}.rv-ct-grammar{background:#10b9811f;color:#059669}.rv-ct-other{background:#64748b1f;color:#475569}body.dark-theme .rv-ct-omission,[data-theme=dark] .rv-ct-omission{background:#f871712e;color:#f87171}body.dark-theme .rv-ct-inconsistency,[data-theme=dark] .rv-ct-inconsistency{background:#fbbf242e;color:#fbbf24}body.dark-theme .rv-ct-terminology,[data-theme=dark] .rv-ct-terminology{background:#a78bfa2e;color:#a78bfa}body.dark-theme .rv-ct-expression,[data-theme=dark] .rv-ct-expression{background:#60a5fa2e;color:#60a5fa}body.dark-theme .rv-ct-number,[data-theme=dark] .rv-ct-number{background:#f472b62e;color:#f472b6}body.dark-theme .rv-ct-punctuation,[data-theme=dark] .rv-ct-punctuation{background:#9ca3af2e;color:#9ca3af}body.dark-theme .rv-ct-logic,[data-theme=dark] .rv-ct-logic{background:#f871712e;color:#fca5a5}body.dark-theme .rv-ct-grammar,[data-theme=dark] .rv-ct-grammar{background:#34d3992e;color:#34d399}body.dark-theme .rv-ct-other,[data-theme=dark] .rv-ct-other{background:#94a3b82e;color:#94a3b8}.rv-suggestion-text{display:block;font-size:12px;color:#475569;line-height:1.4;margin-top:2px}body.dark-theme .rv-suggestion-text,[data-theme=dark] .rv-suggestion-text{color:#94a3b8}.rv-table-row{cursor:pointer;transition:background .1s}.rv-table-row:hover{background-color:#0d94880a}body.dark-theme .rv-table-row:hover,[data-theme=dark] .rv-table-row:hover,.rv-table-row.selected{background-color:#0d948814}body.dark-theme .rv-table-row.selected,[data-theme=dark] .rv-table-row.selected{background-color:#0d948826}.rv-table-row.no-changes{opacity:.55}.rv-diff-del{text-decoration:line-through;color:#dc2626;background-color:#dc262614;padding:0 2px;border-radius:2px}body.dark-theme .rv-diff-del,[data-theme=dark] .rv-diff-del{color:#f87171;background-color:#f8717126}.rv-diff-ins{text-decoration:none;border-bottom:2px solid #0d9488;color:#0f766e;background-color:#0d948814;padding:0 2px;border-radius:2px}body.dark-theme .rv-diff-ins,[data-theme=dark] .rv-diff-ins{color:#5eead4;border-bottom-color:#14b8a6;background-color:#5eead41f}.rv-tag{color:#0d9488;font-family:monospace}.rv-dialog-footer{padding:10px 20px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;align-items:center;background-color:#f8fafc;gap:12px;flex-shrink:0}body.dark-theme .rv-dialog-footer,[data-theme=dark] .rv-dialog-footer{background-color:#1e1e1e;border-color:#333}.rv-pagination{display:flex;align-items:center;gap:6px}.rv-page-info{font-size:13px;color:#64748b}body.dark-theme .rv-page-info,[data-theme=dark] .rv-page-info{color:#94a3b8}.rv-page-btn{width:26px;height:26px;display:flex;justify-content:center;align-items:center;border:1px solid #cbd5e1;border-radius:4px;background:#fff;cursor:pointer;font-size:12px;color:#334155;transition:all .15s}body.dark-theme .rv-page-btn,[data-theme=dark] .rv-page-btn{background-color:#2d2d2d;border-color:#444;color:#e0e0e0}.rv-page-btn:hover:not(:disabled){border-color:#0d9488;color:#0d9488}.rv-page-btn:disabled{opacity:.3;cursor:not-allowed}.rv-page-size{font-size:13px;padding:3px 6px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#334155}body.dark-theme .rv-page-size,[data-theme=dark] .rv-page-size{background-color:#2d2d2d;border-color:#444;color:#e0e0e0}.rv-empty-state{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px 0;color:#94a3b8}.rv-instruction-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000073;z-index:10001;display:flex;justify-content:center;align-items:center;opacity:0;transition:opacity .2s;pointer-events:none}.rv-instruction-overlay.active{opacity:1;pointer-events:auto}.rv-instruction-dialog{width:520px;max-width:90vw;background:#fff;border-radius:10px;box-shadow:0 12px 40px #0003;overflow:hidden;transform:scale(.95);transition:transform .2s}.rv-instruction-overlay.active .rv-instruction-dialog{transform:scale(1)}body.dark-theme .rv-instruction-dialog,[data-theme=dark] .rv-instruction-dialog{background:#1e1e1e;box-shadow:0 12px 40px #00000080}.rv-instruction-header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0}body.dark-theme .rv-instruction-header,[data-theme=dark] .rv-instruction-header{border-color:#333}.rv-instruction-title{font-size:16px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:8px}body.dark-theme .rv-instruction-title,[data-theme=dark] .rv-instruction-title{color:#e2e8f0}.rv-instruction-close{background:none;border:none;font-size:18px;cursor:pointer;color:#64748b;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px}.rv-instruction-close:hover{background:#0000000f;color:#1e293b}body.dark-theme .rv-instruction-close:hover,[data-theme=dark] .rv-instruction-close:hover{background:#ffffff14;color:#e2e8f0}.rv-instruction-body{padding:20px}.rv-instruction-label{font-size:13px;color:#64748b;margin-bottom:8px;display:block}body.dark-theme .rv-instruction-label,[data-theme=dark] .rv-instruction-label{color:#94a3b8}.rv-instruction-textarea{width:100%;min-height:100px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;line-height:1.5;resize:vertical;font-family:inherit;color:#1e293b;background:#fff;box-sizing:border-box}.rv-instruction-textarea:focus{outline:none;border-color:#0d9488;box-shadow:0 0 0 3px #0d94881f}body.dark-theme .rv-instruction-textarea,[data-theme=dark] .rv-instruction-textarea{background:#2d2d2d;border-color:#444;color:#e0e0e0}body.dark-theme .rv-instruction-textarea:focus,[data-theme=dark] .rv-instruction-textarea:focus{border-color:#0d9488}.rv-instruction-hint{font-size:12px;color:#94a3b8;margin-top:6px}.rv-instruction-footer{padding:14px 20px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e2e8f0}body.dark-theme .rv-instruction-footer,[data-theme=dark] .rv-instruction-footer{border-color:#333}.aip-presets{display:flex;gap:0;padding:0 20px;border-bottom:1px solid #e2e8f0;background:#f8fafc}body.dark-theme .aip-presets,[data-theme=dark] .aip-presets{background:#252526;border-color:#333}.aip-preset-btn{flex:1;padding:10px 8px;border:none;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:#64748b;border-bottom:2px solid transparent;transition:all .15s;border-radius:0}.aip-preset-btn:hover{color:#0d9488;background:#0d94880a}.aip-preset-btn.active{color:#0d9488;border-bottom-color:#0d9488;font-weight:600}body.dark-theme .aip-preset-btn,[data-theme=dark] .aip-preset-btn{color:#94a3b8}body.dark-theme .aip-preset-btn:hover,[data-theme=dark] .aip-preset-btn:hover{color:#5eead4;background:#0d948814}body.dark-theme .aip-preset-btn.active,[data-theme=dark] .aip-preset-btn.active{color:#5eead4;border-bottom-color:#14b8a6}.aip-preset-icon{font-size:20px;line-height:1}.aip-preset-label{font-size:12px;white-space:nowrap}.aip-preset-desc{font-size:13px;color:#64748b;margin-bottom:10px;padding:8px 10px;background:#0d94880a;border-radius:6px;border-left:3px solid #0d9488}body.dark-theme .aip-preset-desc,[data-theme=dark] .aip-preset-desc{color:#94a3b8;background:#0d948814}.aip-scope-options{display:flex;gap:16px}.aip-scope-option{display:flex;align-items:center;gap:4px;font-size:13px;color:#475569;cursor:pointer}body.dark-theme .aip-scope-option,[data-theme=dark] .aip-scope-option{color:#94a3b8}.aip-scope-option input[type=radio]{accent-color:#0d9488}.rv-btn-history{font-size:12px;padding:4px 10px;border-radius:4px;background:#0d948814;color:#0d9488;border:1px solid rgba(13,148,136,.2);cursor:pointer;transition:all .15s;white-space:nowrap}.rv-btn-history:hover{background:#0d948826;border-color:#0d9488}body.dark-theme .rv-btn-history,[data-theme=dark] .rv-btn-history{background:#0d94881f;color:#5eead4;border-color:#14b8a64d}body.dark-theme .rv-btn-history:hover,[data-theme=dark] .rv-btn-history:hover{background:#0d948833;border-color:#14b8a6}.rv-history-panel{position:fixed;top:0;right:0;width:400px;max-width:90vw;height:100vh;background:#fff;box-shadow:-4px 0 20px #0000001f;z-index:100000;transform:translate(100%);transition:transform .25s ease;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.rv-history-panel.active{transform:translate(0)}body.dark-theme .rv-history-panel,[data-theme=dark] .rv-history-panel{background:#1e1e1e;box-shadow:-4px 0 20px #0006}.rv-history-header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;flex-shrink:0}.rv-history-header h3{margin:0;font-size:16px;font-weight:600;color:#1e293b}body.dark-theme .rv-history-header h3,[data-theme=dark] .rv-history-header h3{color:#e2e8f0}.rv-history-header-actions{display:flex;align-items:center;gap:8px}.rv-history-list{flex:1;overflow-y:auto;padding:12px}.rv-history-empty{text-align:center;color:#94a3b8;padding:40px 0;font-size:14px}.rv-history-item{border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px;margin-bottom:10px;transition:border-color .15s}.rv-history-item:hover{border-color:#0d9488}body.dark-theme .rv-history-item,[data-theme=dark] .rv-history-item{border-color:#333}body.dark-theme .rv-history-item:hover,[data-theme=dark] .rv-history-item:hover{border-color:#14b8a6}.rv-history-item-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.rv-history-time{font-size:13px;font-weight:500;color:#334155}body.dark-theme .rv-history-time,[data-theme=dark] .rv-history-time{color:#cbd5e1}.rv-history-mode{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:600}.rv-mode-review{background:#3b82f61f;color:#2563eb}.rv-mode-polish{background:#8b5cf61f;color:#7c3aed}.rv-mode-custom{background:#f59e0b1f;color:#d97706}body.dark-theme .rv-mode-review,[data-theme=dark] .rv-mode-review{background:#60a5fa2e;color:#60a5fa}body.dark-theme .rv-mode-polish,[data-theme=dark] .rv-mode-polish{background:#a78bfa2e;color:#a78bfa}body.dark-theme .rv-mode-custom,[data-theme=dark] .rv-mode-custom{background:#fbbf242e;color:#fbbf24}.rv-history-stats{font-size:12px;color:#64748b}body.dark-theme .rv-history-stats,[data-theme=dark] .rv-history-stats{color:#94a3b8}.rv-history-delete{margin-left:auto;background:none;border:none;font-size:16px;color:#94a3b8;cursor:pointer;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all .15s}.rv-history-delete:hover{background:#ef44441a;color:#dc2626}.rv-history-instruction{font-size:12px;color:#64748b;margin-bottom:8px;padding:4px 8px;background:#0d94880a;border-radius:4px;border-left:2px solid #0d9488;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.dark-theme .rv-history-instruction,[data-theme=dark] .rv-history-instruction{color:#94a3b8;background:#0d948814}.rv-history-actions{display:flex;justify-content:flex-end}.rv-btn-sm{font-size:12px;padding:4px 12px;border-radius:4px}.rv-btn-restore{background:#0d9488;color:#fff;border:none;cursor:pointer;transition:background .15s}.rv-btn-restore:hover{background:#0f766e}.rv-ct-chinglish{background:#f59e0b1f;color:#d97706}.rv-ct-mechanical{background:#ef44441f;color:#dc2626}.rv-ct-comprehension{background:#dc26261f;color:#b91c1c}.rv-ct-pragmatic{background:#8b5cf61f;color:#7c3aed}.rv-ct-scenario{background:#3b82f61f;color:#2563eb}.rv-ct-expertise{background:#ec48991f;color:#db2777}.rv-ct-register{background:#6b72801f;color:#4b5563}.rv-ct-polish{background:#10b9811f;color:#059669}body.dark-theme .rv-ct-chinglish,[data-theme=dark] .rv-ct-chinglish{background:#fbbf242e;color:#fbbf24}body.dark-theme .rv-ct-mechanical,[data-theme=dark] .rv-ct-mechanical{background:#f871712e;color:#f87171}body.dark-theme .rv-ct-comprehension,[data-theme=dark] .rv-ct-comprehension{background:#f871712e;color:#fca5a5}body.dark-theme .rv-ct-pragmatic,[data-theme=dark] .rv-ct-pragmatic{background:#a78bfa2e;color:#a78bfa}body.dark-theme .rv-ct-scenario,[data-theme=dark] .rv-ct-scenario{background:#60a5fa2e;color:#60a5fa}body.dark-theme .rv-ct-expertise,[data-theme=dark] .rv-ct-expertise{background:#f472b62e;color:#f472b6}body.dark-theme .rv-ct-register,[data-theme=dark] .rv-ct-register{background:#9ca3af2e;color:#9ca3af}body.dark-theme .rv-ct-polish,[data-theme=dark] .rv-ct-polish{background:#34d3992e;color:#34d399}
