.setting-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;align-items:center;justify-content:center;z-index:1000}
.setting-overlay.open{display:flex}
.setting-modal{width:820px;max-width:92vw;max-height:88vh;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.15);overflow:hidden}
.setting-header{height:42px;background:#f5f6f8;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #e6e8ec}
.setting-title{font-size:14px;color:#333}
.setting-close{border:none;background:transparent;font-size:20px;line-height:1;color:#666;cursor:pointer}
.setting-body{display:flex;min-height:380px;height:calc(88vh - 42px);overflow:hidden}
.setting-side{width:180px;background:#fafafa;border-right:1px solid #eee}
.setting-side-list{display:flex;flex-direction:column;padding:8px}
.side-item{padding:10px 12px;margin:4px 0;border:none;background:transparent;text-align:left;color:#333;cursor:pointer;border-radius:6px}
.side-item.active{background:#eaf7fb;color:#167} 
.setting-main{flex:1;padding:14px;height:100%;overflow-y:auto}
.setting-pane{display:none}
.setting-pane.active{display:block}
.pane-model{padding-top:6px}
.model-select{display:flex;align-items:center;gap:14px}
.model-option{display:flex;align-items:center;gap:6px}
.model-check{width:16px;height:16px;accent-color:#34c88a;cursor:pointer}
.model-text{font-size:13px;color:#555}
.model-tip{margin-top:6px;font-size:12px;color:#777}
.form-row{display:flex;align-items:center;margin:12px 0}
.form-label{width:120px;font-size:13px;color:#555}
.form-input{flex:1;height:34px;padding:0 10px;border:1px solid #ddd;border-radius:6px;outline:none}
.form-input:focus{border-color:#3fb1c6;outline:none;box-shadow:0 0 0 2px rgba(63,177,198,.15)}
.form-actions{margin-top:18px;display:flex;gap:10px}
.btn-save{height:32px;padding:0 16px;border:none;border-radius:6px;background:#3fb1c6;color:#fff;cursor:not-allowed;opacity:.7}
.btn-save.btn-lit{background:#396ea5;opacity:1;cursor:pointer}
.btn-save.saved{color:#2ecc71;cursor:pointer}
.btn-save.saved{color:#2ecc71}
.btn-reset{height:32px;padding:0 16px;border:none;border-radius:6px;background:#e98393;color:#fff;cursor:not-allowed;opacity:.7}
.btn-reset.btn-lit{background:#e26b6b;opacity:1;cursor:pointer}
.replace-list{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.pair-header{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:6px}
.pair-head{font-size:12px;color:#777}
.pair-row{display:grid;grid-template-columns:1fr 1fr 32px;gap:8px;align-items:center}
.pair-col{display:flex;flex-direction:column;gap:6px}
.pair-label{font-size:12px;color:#777}
.pair-input{height:32px;padding:0 10px;border:1px solid #ddd;border-radius:6px}
.pair-input:focus{border-color:#3fb1c6;outline:none;box-shadow:0 0 0 2px rgba(63,177,198,.15)}
.btn-del-pair{width:28px;height:28px;border:none;border-radius:50%;background:#e98393;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1}
.btn-del-pair.disabled{background:#ccc;cursor:not-allowed}
.replace-add{margin-top:8px;display:flex;justify-content:center;align-items:center}
.btn-add-pair{width:34px;height:34px;border:none;border-radius:50%;background:linear-gradient(45deg, #17a2b8, #9b42f5);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
.replace-tip{margin-top:8px;font-size:12px;color:#777}
.href-options{display:flex;flex-direction:column;gap:12px}
.href-option{display:flex;align-items:center;gap:8px;font-size:13px;color:#333;cursor:pointer}
