.insight-editor-tools{display:flex;gap:8px;flex-wrap:wrap;padding:12px;background:#f4f7fc;border:1px solid #dbe3ef}.insight-editor-tools button{border:1px solid #cdd9e9;border-radius:7px;background:white;padding:8px 12px;color:#17355f;cursor:pointer}.insight-editor-tools input[type=number]{width:85px;padding:5px}.insight-editor-tools label{display:inline-flex;gap:6px;align-items:center;font-size:13px}.insight-editor-note{color:#65758c;font-size:13px;padding:8px 0}.wysiwyg table,.article-body table{width:100%;border-collapse:collapse;margin:20px 0;table-layout:fixed}.wysiwyg th,.wysiwyg td,.article-body th,.article-body td{border:1px solid #ccd7e6;padding:10px;overflow-wrap:anywhere;vertical-align:top}.wysiwyg th,.article-body th{background:#eef3fb;font-weight:700}.wysiwyg img,.article-body img{max-width:100%;height:auto}.wysiwyg img{cursor:pointer}.wysiwyg img[data-editor-selected]{outline:3px solid #2864dc;outline-offset:3px}.insight-dialog{border:1px solid #dbe3ef;border-radius:14px;padding:24px;max-width:460px;width:calc(100% - 40px);box-sizing:border-box}.insight-dialog::backdrop{background:#0b234c88}.insight-dialog label{display:block;margin:12px 0}.insight-dialog input{display:block;box-sizing:border-box;width:100%;padding:9px;border:1px solid #cdd9e9;border-radius:6px}.insight-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.insight-dialog button{padding:9px 14px;cursor:pointer}.insight-dialog [role=status]{color:#294e89;margin-top:12px}

/* Insight editor UI v3.35.17: compact tools and selection-specific controls. */
.field.insight-editor-field{min-width:0}
.insight-editor-field>.editor-toolbar{padding:10px 12px;gap:5px;background:#fff;border-color:#dbe3ee;border-radius:12px 12px 0 0;align-items:center}
.insight-editor-field>.editor-toolbar button{height:34px;min-width:34px;padding:0 10px;border:1px solid transparent;border-radius:6px;font-size:13px;color:#34445f;background:#f3f6fa;line-height:1}
.insight-editor-field>.editor-toolbar button:hover{background:#e7efff;color:#174fae;border-color:#c9dafa}
.field.insight-editor-field .insight-editor-tools{display:block;padding:0;background:#f8fafd;border:1px solid #dbe3ee;border-bottom:0;min-width:0}
.insight-insert-row,.insight-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;min-width:0}
.insight-context{border-top:1px solid #e3e9f2;background:#f0f5fd}
.insight-context[hidden]{display:none!important}
.insight-tool-caption{font-size:10px;font-weight:800;letter-spacing:.08em;color:#7b889b;min-width:68px}
.insight-tool-hint{font-size:12px;color:#8490a1;margin-left:auto}
.field.insight-editor-field .insight-editor-tools button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;width:auto;min-height:34px;height:34px;margin:0;padding:0 11px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#2b4265;font:600 12px/1.2 Inter,Arial,sans-serif;box-shadow:0 1px 2px #132c4a05}
.field.insight-editor-field .insight-editor-tools button:hover{background:#edf4ff;border-color:#b9cef1;color:#174fae}
.field.insight-editor-field .insight-editor-tools button:focus-visible{outline:2px solid #3167d5;outline-offset:2px}
.field.insight-editor-field .insight-editor-tools button.insight-delete{color:#a44747;background:transparent;border-color:transparent;box-shadow:none}
.field.insight-editor-field .insight-editor-tools button.insight-delete:hover{background:#fff0f0;border-color:#f2cccc}
.field.insight-editor-field .insight-editor-tools label.insight-width-label{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:#586a84;white-space:nowrap}
.insight-width-field{display:inline-flex;align-items:center;border:1px solid #d4dfed;border-radius:7px;background:#fff;height:34px;padding-right:9px;gap:3px;color:#8490a1;font-size:11px}
.field.insight-editor-field .insight-editor-tools input[data-width]{width:70px;min-width:0;max-width:70px;height:30px;margin:0;border:0;background:transparent;padding:4px 6px 4px 9px;font-size:12px;border-radius:7px;box-shadow:none}
.field.insight-editor-field .insight-editor-tools input[data-slider]{display:block;flex:0 1 140px;width:140px;min-width:90px;max-width:140px;height:20px;margin:0 4px;padding:0;border:0;background:transparent;box-shadow:none;accent-color:#3167d5}
.insight-tool-separator{height:20px;width:1px;background:#d8e2f0;margin:0 3px}
.insight-editor-field>.wysiwyg{min-height:360px;border-color:#dbe3ee;padding:22px;font-size:15px;line-height:1.8;border-radius:0 0 12px 12px;overflow-wrap:anywhere}
.insight-editor-field>.wysiwyg:focus{border-color:#a8c0e9;box-shadow:0 3px 12px #174fae08}
.insight-editor-field>.insight-editor-note{font-size:11px;line-height:1.6;padding:9px 2px;color:#7c899d}
.insight-dialog{padding:24px;border-radius:16px;box-shadow:0 18px 60px #11294c2e;font-family:Inter,Arial,sans-serif}
.insight-dialog h3{margin:0 0 18px;font-size:18px;color:#183557}
.insight-dialog label{font-size:12px;font-weight:600;color:#586a84}
.insight-dialog label input{margin-top:7px;min-height:40px;font-size:13px}
.insight-dialog [data-cancel]{background:#fff;border:1px solid #dce4ef;border-radius:8px;color:#50617a}
.insight-dialog [data-apply]{background:#245bc5;border:1px solid #245bc5;border-radius:8px;color:white;font-weight:600}
.insight-dialog [data-apply]:disabled{opacity:.55;cursor:wait}
@media(max-width:680px){.insight-tool-hint{display:none}.insight-tool-caption{min-width:0;width:100%;font-size:9px}.insight-insert-row,.insight-context{gap:6px;padding:9px 10px}.insight-tool-separator{display:none}.insight-editor-field>.wysiwyg{padding:15px}.field.insight-editor-field .insight-editor-tools input[data-slider]{flex-basis:105px;width:105px;max-width:105px}}

/* V3.39.27: sticky toolbar and selection-aware format state. */
.insight-editor-dock{position:sticky;top:8px;z-index:40;background:#fff;border-radius:12px 12px 0 0;box-shadow:0 4px 12px #18355712}
.insight-editor-field .insight-editor-dock>.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;padding:10px 12px;gap:5px;margin:0;background:#fff;border:1px solid #dbe3ee;border-radius:12px 12px 0 0}
.insight-editor-field .insight-editor-dock>.editor-toolbar button{height:34px;min-width:34px;padding:0 10px;border:1px solid transparent;border-radius:6px;font-size:13px;color:#34445f;background:#f3f6fa;line-height:1;cursor:pointer}
.insight-editor-field .insight-editor-dock>.editor-toolbar button:hover{background:#e7efff;color:#174fae;border-color:#c9dafa}
.insight-editor-field .insight-editor-dock>.editor-toolbar button.is-active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 1px 3px #174fae25}
.insight-editor-field .insight-editor-dock>.editor-toolbar button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.insight-editor-field>.wysiwyg{scroll-margin-top:180px}
@media(max-width:680px){.insight-editor-dock .insight-insert-row{padding:6px 10px}.insight-editor-dock .insight-tool-caption{width:auto}.insight-editor-field .insight-editor-dock>.editor-toolbar{padding:8px;gap:4px}}

/* V3.39.28: explicit editor navigation, isolated from shared button styles. */
.insight-editor-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:0 0 22px;border:1px solid #e1e8f3;border-radius:12px;background:#f8fafd}
.insight-editor-nav-label{min-width:0}.insight-editor-nav-label>span{display:block;font-size:10px;letter-spacing:1px;font-weight:800;color:#516b90}.insight-editor-nav-label small{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:#7c8ba1}
.insight-editor-nav-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.insight-editor-nav .insight-editor-nav-links a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 15px;margin:0;border:1px solid #d9e3f1;border-radius:9px;background:#fff;color:#334d70;font:600 13px/1.4 Inter,Arial,sans-serif;text-decoration:none;white-space:nowrap;box-sizing:border-box;box-shadow:0 1px 2px #132c4a05}
.insight-editor-nav .insight-editor-nav-links a.insight-editor-nav-primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 2px 4px #1d4ed81a}
.insight-editor-nav .insight-editor-nav-links a:hover{background:#edf4ff;border-color:#b5cbed;color:#174fae}.insight-editor-nav .insight-editor-nav-links a.insight-editor-nav-primary:hover{background:#1e40af;border-color:#1e40af;color:#fff}
.insight-editor-nav-links a>span{font-size:15px;line-height:1;opacity:.8}.insight-editor-nav-links a>span:last-child{margin-left:3px;font-size:13px}
.insight-editor-nav a:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
@media(max-width:1100px){.insight-editor-nav{align-items:flex-start;flex-direction:column;gap:14px}}
@media(max-width:600px){.insight-editor-nav{padding:15px}.insight-editor-nav-links{width:100%}.insight-editor-nav .insight-editor-nav-links a{width:100%;justify-content:flex-start;white-space:normal}.insight-editor-nav-links a>span:last-child{margin-left:auto}}
