PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.4.6
MxChat – AI Chatbot & Content Generation for WordPress v2.4.6
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | css/knowledge-style.css +35 -1602 3.2.182.4.6 View file →
@@ -266,19 +266,8 @@
266 266 border: 1px solid #e5e5e5;
267 267 text-align: center;
268 268 }
269 269
270 -/* YouTube import: multi-line radio/description stack reads left-aligned,
271 - unlike the single-row URL forms the centered default was made for. */
272 -#mxchat-youtube-input-area {
273 - text-align: left;
274 -}
275 -
276 -/* PDF Upload Area */
277 -#mxchat-pdf-upload-area input[type="file"] {
278 - margin-bottom: 12px;
279 -}
280 -
281 270 .mxchat-url-input-group {
282 271 display: flex;
283 272 gap: 12px;
284 273 max-width: 800px;
@@ -671,9 +660,9 @@
671 660 }
672 661
673 662 /* ===== Search ===== */
674 663 .mxchat-search-form {
675 - display: flex;
664 + position: relative;
676 665 }
677 666
678 667 .mxchat-search-group {
679 668 position: relative;
@@ -691,42 +680,8 @@
691 680 padding-left: 40px;
692 681 width: 300px;
693 682 }
694 683
695 -/* ADDED 2.5.6: Content Type Filter Styles */
696 -.mxchat-filter-group {
697 - position: relative;
698 - display: flex;
699 - align-items: center;
700 - margin-left: 12px;
701 -}
702 -
703 -.mxchat-filter-group select {
704 - padding: 8px 32px 8px 12px;
705 - border: 1px solid #ddd;
706 - border-radius: 8px;
707 - background: white;
708 - color: #333;
709 - font-size: 14px;
710 - cursor: pointer;
711 - transition: all 0.2s ease;
712 - appearance: none;
713 - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
714 - background-repeat: no-repeat;
715 - background-position: right 12px center;
716 -}
717 -
718 -.mxchat-filter-group select:hover {
719 - border-color: #7873f5;
720 - box-shadow: 0 2px 8px rgba(120, 115, 245, 0.1);
721 -}
722 -
723 -.mxchat-filter-group select:focus {
724 - outline: none;
725 - border-color: #7873f5;
726 - box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
727 -}
728 -
729 684 /* ===== Buttons ===== */
730 685 .mxchat-button-primary {
731 686 background: linear-gradient(135deg, #fa73e6, #7873f5);
732 687 border: none;
@@ -896,14 +851,8 @@
896 851 text-align: left;
897 852 border-bottom: 2px solid rgba(120, 115, 245, 0.1);
898 853 }
899 854
900 -/* Hide ID column (now second column, after checkbox column) */
901 -.mxchat-records-table th:nth-child(2),
902 -.mxchat-records-table td:nth-child(2) {
903 - display: none;
904 -}
905 -
906 855 .mxchat-records-table td {
907 856 padding: 15px;
908 857 border-top: 1px solid rgba(120, 115, 245, 0.1);
909 858 vertical-align: top;
@@ -913,110 +862,11 @@
913 862 background: rgba(120, 115, 245, 0.03);
914 863 }
915 864
916 865 .mxchat-content-cell {
917 - max-width: 600px;
866 + max-width: 400px;
918 867 }
919 868
920 -/* ===== Accordion Styles ===== */
921 -.mxchat-accordion-wrapper {
922 - width: 100%;
923 -}
924 -
925 -.mxchat-content-preview {
926 - display: flex;
927 - align-items: center;
928 - gap: 12px;
929 - padding: 8px 12px;
930 - border-radius: 6px;
931 - transition: all 0.2s ease;
932 -}
933 -
934 -/* Only make it look clickable if there's an expand button */
935 -.mxchat-content-preview:has(.mxchat-expand-toggle) {
936 - cursor: pointer;
937 -}
938 -
939 -.mxchat-content-preview:has(.mxchat-expand-toggle):hover {
940 - background: rgba(120, 115, 245, 0.04);
941 -}
942 -
943 -.mxchat-content-preview .preview-text {
944 - flex: 1;
945 - font-size: 14px;
946 - line-height: 1.6;
947 - color: #333;
948 - overflow: hidden;
949 -}
950 -
951 -.mxchat-expand-toggle {
952 - flex-shrink: 0;
953 - width: 28px;
954 - height: 28px;
955 - border: none;
956 - background: linear-gradient(135deg, rgba(250, 115, 230, 0.1), rgba(120, 115, 245, 0.1));
957 - border-radius: 6px;
958 - cursor: pointer;
959 - display: inline-flex;
960 - align-items: center;
961 - justify-content: center;
962 - transition: all 0.3s ease;
963 - padding: 0;
964 -}
965 -
966 -.mxchat-expand-toggle:hover {
967 - background: linear-gradient(135deg, rgba(250, 115, 230, 0.2), rgba(120, 115, 245, 0.2));
968 - transform: scale(1.05);
969 -}
970 -
971 -.mxchat-expand-toggle .dashicons {
972 - font-size: 18px;
973 - width: 18px;
974 - height: 18px;
975 - color: #7873f5;
976 - transition: transform 0.3s ease;
977 -}
978 -
979 -.mxchat-expand-toggle.expanded .dashicons {
980 - transform: rotate(180deg);
981 -}
982 -
983 -.mxchat-content-full {
984 - margin-top: 12px;
985 - padding: 16px;
986 - background: rgba(120, 115, 245, 0.03);
987 - border-radius: 8px;
988 - border-left: 3px solid #7873f5;
989 - animation: slideDown 0.3s ease;
990 -}
991 -
992 -@keyframes slideDown {
993 - from {
994 - opacity: 0;
995 - max-height: 0;
996 - transform: translateY(-10px);
997 - }
998 - to {
999 - opacity: 1;
1000 - max-height: 1000px;
1001 - transform: translateY(0);
1002 - }
1003 -}
1004 -
1005 -.mxchat-content-full .content-view {
1006 - font-size: 14px;
1007 - line-height: 1.6;
1008 - color: #333;
1009 -}
1010 -
1011 -.mxchat-content-full .content-view p {
1012 - margin: 0 0 12px 0;
1013 -}
1014 -
1015 -.mxchat-content-full .content-view p:last-child {
1016 - margin-bottom: 0;
1017 -}
1018 -
1019 869 .mxchat-url-cell a {
1020 870 color: #7873f5;
1021 871 text-decoration: none;
1022 872 display: flex;
@@ -1033,9 +883,13 @@
1033 883 display: flex;
1034 884 gap: 8px;
1035 885 }
1036 886
1037 -/* Legacy content-view styling (now within accordion) */
887 +.content-view {
888 + font-size: 14px;
889 + line-height: 1.5;
890 +}
891 +
1038 892 .content-edit {
1039 893 width: 100%;
1040 894 min-height: 100px;
1041 895 border: 1px solid #ddd;
@@ -1280,36 +1134,20 @@
1280 1134
1281 1135 .mxchat-kb-modal-content {
1282 1136 position: relative;
1283 1137 background-color: #fff;
1284 - margin: 24px auto;
1138 + margin: 50px auto;
1285 1139 padding: 0;
1286 1140 border-radius: 8px;
1287 1141 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
1288 1142 width: 90%;
1289 1143 max-width: 1000px;
1290 - /* The box is the ONLY place height is constrained; children flex within it.
1291 - dvh tracks the real visible viewport on mobile (vh line = older-browser fallback). */
1292 1144 max-height: 85vh;
1293 - max-height: min(85vh, calc(100dvh - 48px));
1294 1145 display: flex;
1295 1146 flex-direction: column;
1296 1147 animation: mxchat-kb-modal-appear 0.3s ease-out;
1297 1148 }
1298 1149
1299 -/* Fixed chrome rows never grow or shrink — the results list is the only scroller. */
1300 -.mxchat-kb-modal-header,
1301 -.mxchat-kb-modal-filters,
1302 -.mxchat-kb-selection-header,
1303 -.mxchat-kb-modal-footer {
1304 - flex: 0 0 auto;
1305 -}
1306 -
1307 -/* The footer holds the primary actions — it can never be squeezed out of the box. */
1308 -.mxchat-kb-modal-footer {
1309 - flex-shrink: 0;
1310 -}
1311 -
1312 1150 @keyframes mxchat-kb-modal-appear {
1313 1151 from {
1314 1152 opacity: 0;
1315 1153 transform: translateY(-30px);
@@ -1423,15 +1261,12 @@
1423 1261 border-left: 3px solid #1e88e5;
1424 1262 }
1425 1263
1426 1264 .mxchat-kb-content-selection {
1427 - /* Flexible middle region: header row stays put, the list below scrolls.
1428 - min-height: 0 is load-bearing — without it flex refuses to shrink this
1429 - column and the footer gets pushed out of the box (the mobile bug). */
1430 - flex: 1 1 auto;
1431 - min-height: 0;
1432 - display: flex;
1433 - flex-direction: column;
1265 + overflow-y: auto;
1266 + flex: 1;
1267 + min-height: 300px;
1268 + max-height: calc(85vh - 200px);
1434 1269 }
1435 1270
1436 1271 .mxchat-kb-selection-header {
1437 1272 display: flex;
@@ -1459,12 +1294,8 @@
1459 1294 }
1460 1295
1461 1296 .mxchat-kb-content-list {
1462 1297 padding: 0;
1463 - /* The one and only scroller inside the modal. */
1464 - flex: 1 1 auto;
1465 - min-height: 0;
1466 - overflow-y: auto;
1467 1298 }
1468 1299
1469 1300 .mxchat-kb-content-item {
1470 1301 display: flex;
@@ -1493,23 +1324,19 @@
1493 1324 align-items: flex-start;
1494 1325 padding-top: 3px;
1495 1326 }
1496 1327
1497 -/* Native control, brand-tinted — identical to the "select all" checkbox above the
1498 - list, which carries no custom styling at all and renders correctly.
1499 - Do NOT re-add width / height / border / border-radius / background here. WP admin
1500 - draws the tick as a 21px dashicon positioned with negative margins for its OWN
1501 - default box, so forcing a custom box makes the tick overflow it. That mismatch
1502 - shipped for a long time but was invisible while the tick was white-on-white. */
1503 1328 .mxchat-kb-content-checkbox input[type="checkbox"] {
1329 + width: 18px;
1330 + height: 18px;
1331 + border: 1px solid #8c8f94;
1332 + border-radius: 3px;
1333 + background: #fff;
1504 1334 margin: 0;
1505 - cursor: pointer;
1506 - accent-color: var(--mxch-primary, #7873f5);
1507 1335 }
1508 1336
1509 -.mxchat-kb-content-checkbox input[type="checkbox"]:focus-visible {
1510 - outline: 2px solid var(--mxch-primary, #7873f5);
1511 - outline-offset: 2px;
1337 +.mxchat-kb-content-checkbox input[type="checkbox"]:checked {
1338 + border-color: #7873f5;
1512 1339 }
1513 1340
1514 1341 .mxchat-kb-content-details {
1515 1342 flex: 1;
@@ -1583,28 +1410,14 @@
1583 1410 .mxchat-kb-modal-footer {
1584 1411 padding: 15px 20px;
1585 1412 border-top: 1px solid #e5e5e5;
1586 1413 display: flex;
1587 - justify-content: space-between;
1588 - align-items: center;
1589 - gap: 15px;
1414 + justify-content: flex-end;
1415 + gap: 10px;
1590 1416 background-color: #f8f9fa;
1591 1417 border-radius: 0 0 8px 8px;
1592 1418 }
1593 1419
1594 -.mxchat-kb-modal-footer .mxchat-kb-pagination {
1595 - flex: 1;
1596 - margin: 0;
1597 - padding: 0;
1598 - text-align: left;
1599 -}
1600 -
1601 -.mxchat-kb-footer-actions {
1602 - display: flex;
1603 - gap: 10px;
1604 - flex-shrink: 0;
1605 -}
1606 -
1607 1420 .mxchat-kb-button-primary,
1608 1421 .mxchat-kb-button-secondary {
1609 1422 padding: 8px 15px;
1610 1423 border-radius: 4px;
@@ -1854,19 +1667,9 @@
1854 1667
1855 1668 .mxchat-search-group input {
1856 1669 width: 100%;
1857 1670 }
1858 -
1859 - /* ADDED 2.5.6: Responsive filter dropdown */
1860 - .mxchat-filter-group {
1861 - margin-left: 0;
1862 - width: 100%;
1863 - }
1864 -
1865 - .mxchat-filter-group select {
1866 - width: 100%;
1867 - }
1868 -
1671 +
1869 1672 .mxchat-url-input-group {
1870 1673 flex-direction: column;
1871 1674 }
1872 1675
@@ -1881,83 +1684,40 @@
1881 1684
1882 1685 /* Modal responsive adjustments */
1883 1686 .mxchat-kb-modal-content {
1884 1687 width: 95%;
1885 - /* dvh = real visible viewport (mobile vh includes the URL-bar region);
1886 - vh line is the older-browser fallback. */
1887 - max-height: calc(100vh - 24px);
1888 - max-height: calc(100dvh - 24px);
1889 - margin: 12px auto;
1890 - /* Last-resort scroll: on extreme-short viewports (landscape phones)
1891 - the compacted chrome + the list's floor can still exceed the box —
1892 - scroll inside the box rather than clipping the footer. */
1893 - overflow-y: auto;
1688 + max-height: 90vh;
1689 + margin: 20px auto;
1894 1690 }
1895 -
1896 - /* Compact the fixed chrome on mobile — stacked filters + a stacked footer
1897 - are tall, and every saved pixel goes to the content list. */
1898 - .mxchat-kb-modal-header {
1899 - padding: 12px 16px;
1900 - }
1901 -
1902 - .mxchat-kb-modal-header h3 {
1903 - font-size: 16px;
1904 - }
1905 -
1691 +
1906 1692 .mxchat-kb-modal-filters {
1907 1693 flex-direction: column;
1908 1694 align-items: stretch;
1909 - padding: 10px 16px;
1910 - gap: 8px;
1911 1695 }
1912 -
1696 +
1913 1697 .mxchat-kb-search-group {
1914 1698 max-width: none;
1915 1699 }
1916 -
1700 +
1917 1701 .mxchat-kb-filter-group {
1918 1702 flex-direction: column;
1919 - gap: 8px;
1920 1703 }
1921 -
1922 - .mxchat-kb-filter-group select {
1923 - padding: 6px 30px 6px 10px;
1704 +
1705 + .mxchat-kb-content-selection {
1706 + max-height: calc(90vh - 250px);
1924 1707 }
1925 -
1708 +
1926 1709 .mxchat-kb-selection-header {
1927 1710 flex-direction: column;
1928 1711 align-items: flex-start;
1929 - gap: 6px;
1930 - padding: 10px 16px;
1712 + gap: 10px;
1931 1713 }
1932 -
1933 - /* Guarantee a usable slice of visible rows — reachable buttons are no
1934 - help if there is nothing to select above them. */
1935 - .mxchat-kb-content-list {
1936 - min-height: 96px;
1937 - }
1938 -
1939 - .mxchat-kb-content-item {
1940 - padding: 10px 16px;
1941 - }
1942 -
1714 +
1943 1715 .mxchat-kb-modal-footer {
1944 1716 flex-direction: column;
1945 - gap: 8px;
1946 - padding: 10px 16px;
1947 1717 }
1948 -
1949 - .mxchat-kb-modal-footer .mxchat-kb-pagination {
1950 - width: 100%;
1951 - text-align: center;
1952 - }
1953 -
1954 - .mxchat-kb-footer-actions {
1955 - width: 100%;
1956 - flex-direction: column;
1957 - }
1958 -
1959 - .mxchat-kb-button-primary,
1718 +
1719 + .mxchat-kb-button-primary,
1960 1720 .mxchat-kb-button-secondary {
1961 1721 width: 100%;
1962 1722 }
1963 1723
@@ -2738,1331 +2498,4 @@
2738 2498 margin-bottom: 0;
2739 2499 color: #666;
2740 2500 }
2741 2501
2742 -
2743 -
2744 -/* ===== Role-Based Content Restrictions Styles ===== */
2745 -
2746 -/* Role mapping form */
2747 -.mxchat-role-mapping-form {
2748 - margin-top: 20px;
2749 - padding: 20px;
2750 - background-color: #f8f9ff;
2751 - border-radius: 8px;
2752 - border: 1px solid rgba(120, 115, 245, 0.1);
2753 -}
2754 -
2755 -.mxchat-role-mapping-form h4 {
2756 - margin-top: 0;
2757 - margin-bottom: 15px;
2758 - font-size: 16px;
2759 - color: #333;
2760 -}
2761 -
2762 -.mxchat-form-row {
2763 - display: flex;
2764 - gap: 15px;
2765 - align-items: flex-end;
2766 - margin-bottom: 20px;
2767 -}
2768 -
2769 -/* Role mappings table */
2770 -.mxchat-mappings-table {
2771 - width: 100%;
2772 - border-collapse: collapse;
2773 - margin-top: 15px;
2774 - background: #fff;
2775 - box-shadow: 0 1px 3px rgba(120, 115, 245, 0.08);
2776 - border-radius: 8px;
2777 - overflow: hidden;
2778 -}
2779 -
2780 -.mxchat-mappings-table th,
2781 -.mxchat-mappings-table td {
2782 - padding: 15px;
2783 - text-align: left;
2784 - border-bottom: 1px solid rgba(120, 115, 245, 0.1);
2785 -}
2786 -
2787 -.mxchat-mappings-table th {
2788 - background: #f8f9ff;
2789 - font-weight: 600;
2790 - color: #333;
2791 - font-size: 14px;
2792 -}
2793 -
2794 -.mxchat-mappings-table tbody tr {
2795 - transition: background-color 0.2s ease;
2796 -}
2797 -
2798 -.mxchat-mappings-table tbody tr:hover {
2799 - background: rgba(120, 115, 245, 0.03);
2800 -}
2801 -
2802 -.mxchat-mappings-table tbody tr:last-child td {
2803 - border-bottom: none;
2804 -}
2805 -
2806 -/* Tag and role badges */
2807 -.mxchat-tag-badge {
2808 - display: inline-flex;
2809 - align-items: center;
2810 - gap: 5px;
2811 - padding: 5px 12px;
2812 - background: linear-gradient(135deg, #fa73e6, #7873f5);
2813 - color: #fff;
2814 - border-radius: 4px;
2815 - font-size: 13px;
2816 - font-weight: 500;
2817 -}
2818 -
2819 -.mxchat-tag-badge .dashicons {
2820 - font-size: 16px;
2821 - width: 16px;
2822 - height: 16px;
2823 -}
2824 -
2825 -.mxchat-role-badge {
2826 - display: inline-block;
2827 - padding: 5px 12px;
2828 - background: #f0f0f1;
2829 - color: #2c3338;
2830 - border-radius: 4px;
2831 - font-size: 13px;
2832 - font-weight: 500;
2833 -}
2834 -
2835 -/* Role-specific badge colors */
2836 -.mxchat-role-badge.public {
2837 - background: #e8f5e9;
2838 - color: #2e7d32;
2839 -}
2840 -
2841 -.mxchat-role-badge.logged_in {
2842 - background: #e3f2fd;
2843 - color: #1565c0;
2844 -}
2845 -
2846 -.mxchat-role-badge.subscriber {
2847 - background: #f3e5f5;
2848 - color: #7b1fa2;
2849 -}
2850 -
2851 -.mxchat-role-badge.contributor {
2852 - background: #fff3e0;
2853 - color: #e65100;
2854 -}
2855 -
2856 -.mxchat-role-badge.author {
2857 - background: #fff9c4;
2858 - color: #f57f17;
2859 -}
2860 -
2861 -.mxchat-role-badge.editor {
2862 - background: #fce4ec;
2863 - color: #c2185b;
2864 -}
2865 -
2866 -.mxchat-role-badge.administrator {
2867 - background: #ffebee;
2868 - color: #c62828;
2869 -}
2870 -
2871 -/* Mapping actions */
2872 -.mxchat-mapping-actions {
2873 - display: flex;
2874 - gap: 8px;
2875 - align-items: center;
2876 -}
2877 -
2878 -.mxchat-delete-mapping {
2879 - color: #d63638;
2880 - cursor: pointer;
2881 - padding: 6px 10px;
2882 - border-radius: 4px;
2883 - transition: all 0.2s ease;
2884 - display: inline-flex;
2885 - align-items: center;
2886 - gap: 4px;
2887 - background: transparent;
2888 - border: none;
2889 - font-size: 13px;
2890 -}
2891 -
2892 -.mxchat-delete-mapping:hover {
2893 - background: #fef0f0;
2894 - color: #b32d2e;
2895 -}
2896 -
2897 -.mxchat-delete-mapping .dashicons {
2898 - font-size: 18px;
2899 - width: 18px;
2900 - height: 18px;
2901 -}
2902 -
2903 -/* Post count display */
2904 -.mxchat-post-count {
2905 - color: #666;
2906 - font-size: 13px;
2907 - display: flex;
2908 - align-items: center;
2909 - gap: 4px;
2910 -}
2911 -
2912 -.mxchat-post-count .dashicons {
2913 - font-size: 16px;
2914 - width: 16px;
2915 - height: 16px;
2916 - color: #7873f5;
2917 -}
2918 -
2919 -/* Loading state for mappings */
2920 -.mxchat-loading-mappings {
2921 - text-align: center;
2922 - padding: 40px;
2923 - color: #666;
2924 -}
2925 -
2926 -.mxchat-role-spinner {
2927 - display: inline-block;
2928 - width: 20px;
2929 - height: 20px;
2930 - border: 2px solid rgba(120, 115, 245, 0.2);
2931 - border-top: 2px solid #7873f5;
2932 - border-radius: 50%;
2933 - animation: mxchat-role-spin 1s linear infinite;
2934 - margin-right: 10px;
2935 -}
2936 -
2937 -.mxchat-role-spinner.is-active {
2938 - display: inline-block;
2939 -}
2940 -
2941 -@keyframes mxchat-role-spin {
2942 - 0% { transform: rotate(0deg); }
2943 - 100% { transform: rotate(360deg); }
2944 -}
2945 -
2946 -/* Empty state */
2947 -#mxchat-no-mappings {
2948 - text-align: center;
2949 - padding: 40px;
2950 - color: #666;
2951 -}
2952 -
2953 -#mxchat-no-mappings .dashicons {
2954 - font-size: 48px;
2955 - opacity: 0.3;
2956 - margin-bottom: 15px;
2957 - display: block;
2958 -}
2959 -
2960 -#mxchat-no-mappings p {
2961 - margin: 0;
2962 - font-size: 14px;
2963 -}
2964 -
2965 -/* Bulk update section */
2966 -.mxchat-bulk-update-section {
2967 - margin-top: 30px;
2968 - padding-top: 30px;
2969 - border-top: 1px solid rgba(120, 115, 245, 0.1);
2970 -}
2971 -
2972 -.mxchat-bulk-update-section h4 {
2973 - margin-top: 0;
2974 - margin-bottom: 10px;
2975 - font-size: 16px;
2976 - color: #333;
2977 -}
2978 -
2979 -.mxchat-bulk-update-controls {
2980 - margin-top: 15px;
2981 -}
2982 -
2983 -#mxchat-bulk-update-roles {
2984 - display: inline-flex;
2985 - align-items: center;
2986 - gap: 8px;
2987 -}
2988 -
2989 -#mxchat-bulk-update-progress {
2990 - max-width: 600px;
2991 -}
2992 -
2993 -#mxchat-bulk-update-progress .mxchat-progress-bar {
2994 - height: 10px;
2995 - background: rgba(120, 115, 245, 0.1);
2996 - border-radius: 5px;
2997 - overflow: hidden;
2998 -}
2999 -
3000 -#mxchat-bulk-update-progress .mxchat-progress-fill {
3001 - height: 100%;
3002 - background: linear-gradient(135deg, #fa73e6, #7873f5);
3003 - transition: width 0.3s ease;
3004 -}
3005 -
3006 -.mxchat-progress-text {
3007 - margin-top: 10px;
3008 - color: #666;
3009 - font-size: 14px;
3010 -}
3011 -
3012 -/* Bulk update results */
3013 -#mxchat-bulk-update-result {
3014 - margin-top: 15px;
3015 - padding: 15px;
3016 - border-radius: 8px;
3017 -}
3018 -
3019 -#mxchat-bulk-update-result.success {
3020 - background-color: #f0f9eb;
3021 - border-left: 4px solid #67c23a;
3022 - color: #3c763d;
3023 -}
3024 -
3025 -#mxchat-bulk-update-result.error {
3026 - background-color: #fef0f0;
3027 - border-left: 4px solid #d63638;
3028 - color: #a94442;
3029 -}
3030 -
3031 -#mxchat-bulk-update-result h5 {
3032 - margin: 0 0 10px;
3033 - font-size: 15px;
3034 - font-weight: 600;
3035 -}
3036 -
3037 -#mxchat-bulk-update-result p {
3038 - margin: 5px 0;
3039 - font-size: 14px;
3040 -}
3041 -
3042 -/* Role mappings list container */
3043 -.mxchat-role-mappings-list {
3044 - margin-top: 25px;
3045 -}
3046 -
3047 -.mxchat-role-mappings-list h4 {
3048 - margin-top: 0;
3049 - margin-bottom: 15px;
3050 - font-size: 16px;
3051 - color: #333;
3052 -}
3053 -
3054 -/* Info banner styling (reuse existing pattern) */
3055 -.mxchat-role-info-banner {
3056 - display: flex;
3057 - align-items: center;
3058 - gap: 10px;
3059 - padding: 12px 16px;
3060 - margin-bottom: 20px;
3061 - border-radius: 6px;
3062 - font-size: 14px;
3063 - background: #f8f9ff;
3064 - border-left: 4px solid #7873f5;
3065 - color: #333;
3066 -}
3067 -
3068 -.mxchat-role-info-banner .dashicons {
3069 - color: #7873f5;
3070 - font-size: 18px;
3071 -}
3072 -
3073 -/* Responsive adjustments */
3074 -@media screen and (max-width: 782px) {
3075 - .mxchat-form-row {
3076 - flex-direction: column;
3077 - align-items: stretch;
3078 - }
3079 -
3080 - .mxchat-form-row .mxchat-form-group {
3081 - flex: 1;
3082 - max-width: none;
3083 - }
3084 -
3085 - .mxchat-form-row > div {
3086 - padding-bottom: 0;
3087 - }
3088 -
3089 - .mxchat-mappings-table {
3090 - display: block;
3091 - overflow-x: auto;
3092 - }
3093 -
3094 - .mxchat-mappings-table th,
3095 - .mxchat-mappings-table td {
3096 - padding: 10px;
3097 - font-size: 13px;
3098 - }
3099 -
3100 - .mxchat-mapping-actions {
3101 - flex-direction: column;
3102 - align-items: flex-start;
3103 - }
3104 -}
3105 -
3106 -/* RTL Support */
3107 -.rtl .mxchat-mappings-table th,
3108 -.rtl .mxchat-mappings-table td {
3109 - text-align: right;
3110 -}
3111 -
3112 -.rtl .mxchat-tag-badge {
3113 - flex-direction: row-reverse;
3114 -}
3115 -
3116 -.rtl .mxchat-role-info-banner {
3117 - border-left: none;
3118 - border-right: 4px solid #7873f5;
3119 -}
3120 -
3121 -.rtl .mxchat-bulk-update-section {
3122 - border-right: none;
3123 -}
3124 -
3125 -.rtl #mxchat-bulk-update-result {
3126 - border-left: none;
3127 - border-right: 4px solid;
3128 -}
3129 -
3130 -.rtl .mxchat-role-spinner {
3131 - margin-right: 0;
3132 - margin-left: 10px;
3133 -}
3134 -
3135 -/* ===== Chunk Grouping Styles ===== */
3136 -.mxchat-chunk-group-header {
3137 - background: rgba(120, 115, 245, 0.04) !important;
3138 - border-left: 3px solid #7873f5;
3139 -}
3140 -
3141 -.mxchat-chunk-group-header:hover {
3142 - background: rgba(120, 115, 245, 0.08) !important;
3143 -}
3144 -
3145 -.mxchat-chunk-group-info {
3146 - display: flex;
3147 - align-items: center;
3148 - gap: 12px;
3149 -}
3150 -
3151 -.mxchat-chunk-toggle {
3152 - flex-shrink: 0;
3153 - width: 28px;
3154 - height: 28px;
3155 - border: none;
3156 - background: linear-gradient(135deg, rgba(250, 115, 230, 0.1), rgba(120, 115, 245, 0.1));
3157 - border-radius: 6px;
3158 - cursor: pointer;
3159 - display: inline-flex;
3160 - align-items: center;
3161 - justify-content: center;
3162 - transition: all 0.3s ease;
3163 - padding: 0;
3164 -}
3165 -
3166 -.mxchat-chunk-toggle:hover {
3167 - background: linear-gradient(135deg, rgba(250, 115, 230, 0.2), rgba(120, 115, 245, 0.2));
3168 - transform: scale(1.05);
3169 -}
3170 -
3171 -.mxchat-chunk-toggle .dashicons {
3172 - font-size: 16px;
3173 - color: #7873f5;
3174 - transition: transform 0.3s ease;
3175 -}
3176 -
3177 -.mxchat-chunk-toggle.expanded .dashicons {
3178 - transform: rotate(90deg);
3179 -}
3180 -
3181 -.mxchat-chunk-badge {
3182 - display: inline-flex;
3183 - align-items: center;
3184 - padding: 4px 10px;
3185 - background: linear-gradient(135deg, #7873f5, #3ac9d1);
3186 - color: white;
3187 - border-radius: 12px;
3188 - font-size: 12px;
3189 - font-weight: 600;
3190 - white-space: nowrap;
3191 -}
3192 -
3193 -.mxchat-chunk-preview {
3194 - flex: 1;
3195 - color: #666;
3196 - font-size: 13px;
3197 - overflow: hidden;
3198 - text-overflow: ellipsis;
3199 - white-space: nowrap;
3200 -}
3201 -
3202 -.mxchat-chunk-row {
3203 - border-left: 3px solid #e0e0e0;
3204 -}
3205 -
3206 -.mxchat-chunk-row td:first-child {
3207 - padding-left: 30px !important;
3208 -}
3209 -
3210 -.mxchat-chunk-indicator {
3211 - display: inline-flex;
3212 - align-items: center;
3213 - padding: 2px 8px;
3214 - background: #f0f0f0;
3215 - color: #666;
3216 - border-radius: 4px;
3217 - font-size: 11px;
3218 - font-weight: 500;
3219 -}
3220 -
3221 -.mxchat-chunk-label {
3222 - color: #999;
3223 - font-size: 12px;
3224 - font-style: italic;
3225 -}
3226 -
3227 -/* Delete button for chunk groups */
3228 -.delete-button-group {
3229 - background: none;
3230 - border: none;
3231 - cursor: pointer;
3232 - padding: 4px;
3233 - border-radius: 4px;
3234 - transition: all 0.2s ease;
3235 -}
3236 -
3237 -.delete-button-group:hover {
3238 - background: rgba(255, 0, 0, 0.1);
3239 -}
3240 -
3241 -.delete-button-group .dashicons {
3242 - color: #dc3545;
3243 -}
3244 -
3245 -.delete-button-group .dashicons.spin {
3246 - animation: mxchat-spin 1s linear infinite;
3247 -}
3248 -
3249 -@keyframes mxchat-spin {
3250 - from { transform: rotate(0deg); }
3251 - to { transform: rotate(360deg); }
3252 -}
3253 -
3254 -/* ===== Sitemap Detection Styles ===== */
3255 -.dashicons.spin {
3256 - animation: mxchat-spin 1s linear infinite;
3257 -}
3258 -
3259 -.mxchat-sitemap-group.expanded .mxchat-sitemap-sub-list {
3260 - display: block !important;
3261 -}
3262 -
3263 -.mxchat-sitemap-group.expanded .dashicons-arrow-right-alt2 {
3264 - transform: rotate(90deg) !important;
3265 -}
3266 -
3267 -.mxchat-sitemap-row:last-child {
3268 - border-bottom: none !important;
3269 -}
3270 -
3271 -.mxchat-detected-sitemaps {
3272 - margin-top: 24px;
3273 -}
3274 -
3275 -.mxchat-sitemaps-header {
3276 - display: flex;
3277 - align-items: center;
3278 - justify-content: space-between;
3279 - margin-bottom: 16px;
3280 -}
3281 -
3282 -.mxchat-sitemaps-header h4 {
3283 - margin: 0;
3284 - display: flex;
3285 - align-items: center;
3286 - gap: 8px;
3287 -}
3288 -
3289 -.mxchat-sitemaps-header h4 .dashicons {
3290 - color: #7873f5;
3291 -}
3292 -
3293 -.mxchat-sitemap-group {
3294 - margin-bottom: 16px;
3295 - border: 1px solid rgba(120, 115, 245, 0.2);
3296 - border-radius: 8px;
3297 - overflow: hidden;
3298 -}
3299 -
3300 -.mxchat-sitemap-group-header {
3301 - padding: 12px 16px;
3302 - background: #f8fafc;
3303 - display: flex;
3304 - align-items: center;
3305 - justify-content: space-between;
3306 - cursor: pointer;
3307 - transition: background-color 0.2s ease;
3308 -}
3309 -
3310 -.mxchat-sitemap-group-header:hover {
3311 - background: #f0f4f8;
3312 -}
3313 -
3314 -.mxchat-sitemap-sub-list {
3315 - display: none;
3316 - border-top: 1px solid rgba(120, 115, 245, 0.2);
3317 -}
3318 -
3319 -.mxchat-sitemap-row {
3320 - padding: 12px 16px;
3321 - display: flex;
3322 - align-items: center;
3323 - justify-content: space-between;
3324 - border-bottom: 1px solid rgba(120, 115, 245, 0.1);
3325 -}
3326 -
3327 -.mxchat-sitemap-row.sub-item {
3328 - padding-left: 40px;
3329 -}
3330 -
3331 -.mxchat-sitemaps-loading {
3332 - margin-top: 24px;
3333 - padding: 20px;
3334 - text-align: center;
3335 -}
3336 -
3337 -.mxchat-sitemaps-loading .dashicons {
3338 - font-size: 20px;
3339 - color: #7873f5;
3340 -}
3341 -
3342 -.mxchat-sitemaps-loading p {
3343 - margin: 8px 0 0;
3344 - color: #666;
3345 -}
3346 -
3347 -.mxchat-no-sitemaps {
3348 - margin-top: 24px;
3349 - padding: 20px;
3350 - background: #f8fafc;
3351 - border-radius: 8px;
3352 - text-align: center;
3353 -}
3354 -
3355 -.mxchat-no-sitemaps .dashicons {
3356 - font-size: 24px;
3357 - color: #999;
3358 - margin-bottom: 8px;
3359 -}
3360 -
3361 -.mxchat-no-sitemaps p {
3362 - margin: 0;
3363 - color: #666;
3364 -}
3365 -
3366 -/* ===== Admin Notice Dismiss Button Styles ===== */
3367 -.notice.is-dismissible {
3368 - position: relative;
3369 - padding-right: 38px;
3370 -}
3371 -
3372 -.notice-dismiss {
3373 - position: absolute;
3374 - top: 50%;
3375 - right: 8px;
3376 - transform: translateY(-50%);
3377 - padding: 0;
3378 - background: none;
3379 - border: none;
3380 - cursor: pointer;
3381 - color: #787c82;
3382 - width: 24px;
3383 - height: 24px;
3384 - display: flex;
3385 - align-items: center;
3386 - justify-content: center;
3387 - transition: color 0.2s ease;
3388 -}
3389 -
3390 -.notice-dismiss:hover {
3391 - color: #d63638;
3392 -}
3393 -
3394 -.notice-dismiss:before {
3395 - content: "\f153";
3396 - font-family: dashicons;
3397 - font-size: 16px;
3398 - line-height: 1;
3399 -}
3400 -
3401 -.notice-dismiss .screen-reader-text {
3402 - position: absolute;
3403 - width: 1px;
3404 - height: 1px;
3405 - padding: 0;
3406 - margin: -1px;
3407 - overflow: hidden;
3408 - clip: rect(0, 0, 0, 0);
3409 - white-space: nowrap;
3410 - border: 0;
3411 -}
3412 -
3413 -/* ===== AJAX Pagination Styles ===== */
3414 -.mxchat-kb-pagination-wrapper {
3415 - background: #f8fafc;
3416 -}
3417 -
3418 -.mxchat-ajax-pagination {
3419 - display: flex;
3420 - align-items: center;
3421 - justify-content: center;
3422 - gap: 8px;
3423 - flex-wrap: wrap;
3424 -}
3425 -
3426 -.mxchat-page-link {
3427 - display: inline-flex;
3428 - align-items: center;
3429 - justify-content: center;
3430 - min-width: 36px;
3431 - height: 36px;
3432 - padding: 0 12px;
3433 - background: #fff;
3434 - border: 1px solid var(--mxch-card-border, #e5e7eb);
3435 - border-radius: 6px;
3436 - color: var(--mxch-text-primary, #1f2937);
3437 - text-decoration: none;
3438 - font-size: 13px;
3439 - font-weight: 500;
3440 - transition: all 0.2s ease;
3441 - cursor: pointer;
3442 -}
3443 -
3444 -.mxchat-page-link:hover {
3445 - background: var(--mxch-primary, #7873f5);
3446 - border-color: var(--mxch-primary, #7873f5);
3447 - color: #fff;
3448 - text-decoration: none;
3449 -}
3450 -
3451 -.mxchat-page-link.loading {
3452 - opacity: 0.6;
3453 - pointer-events: none;
3454 -}
3455 -
3456 -.mxchat-page-current {
3457 - display: inline-flex;
3458 - align-items: center;
3459 - justify-content: center;
3460 - min-width: 36px;
3461 - height: 36px;
3462 - padding: 0 12px;
3463 - background: var(--mxch-primary, #7873f5);
3464 - border: 1px solid var(--mxch-primary, #7873f5);
3465 - border-radius: 6px;
3466 - color: #fff;
3467 - font-size: 13px;
3468 - font-weight: 600;
3469 -}
3470 -
3471 -.mxchat-page-dots {
3472 - display: inline-flex;
3473 - align-items: center;
3474 - justify-content: center;
3475 - min-width: 24px;
3476 - height: 36px;
3477 - color: var(--mxch-text-muted, #9ca3af);
3478 - font-size: 14px;
3479 -}
3480 -
3481 -.mxchat-pagination-loading {
3482 - margin-left: 12px;
3483 -}
3484 -
3485 -.mxchat-pagination-loading .dashicons {
3486 - color: var(--mxch-primary, #7873f5);
3487 -}
3488 -
3489 -/* Spin animation for loading indicator */
3490 -@keyframes mxchat-spin {
3491 - from { transform: rotate(0deg); }
3492 - to { transform: rotate(360deg); }
3493 -}
3494 -
3495 -.mxchat-pagination-loading .spin,
3496 -.mxchat-ajax-pagination .spin {
3497 - animation: mxchat-spin 1s linear infinite;
3498 -}
3499 -
3500 -/* Mobile responsive pagination */
3501 -@media (max-width: 600px) {
3502 - .mxchat-ajax-pagination {
3503 - gap: 4px;
3504 - }
3505 -
3506 - .mxchat-page-link,
3507 - .mxchat-page-current {
3508 - min-width: 32px;
3509 - height: 32px;
3510 - padding: 0 8px;
3511 - font-size: 12px;
3512 - }
3513 -
3514 - .mxchat-page-dots {
3515 - min-width: 20px;
3516 - }
3517 -}
3518 -
3519 -/* ========================================
3520 - BULK SELECTION STYLES
3521 - ======================================== */
3522 -
3523 -/* Bulk Actions Toolbar */
3524 -.mxchat-bulk-toolbar {
3525 - display: flex;
3526 - align-items: center;
3527 - gap: 12px;
3528 - padding: 12px 16px;
3529 - background: #f8fafc;
3530 - border: 1px solid var(--mxch-card-border);
3531 - border-bottom: none;
3532 - border-radius: var(--mxch-radius-md) var(--mxch-radius-md) 0 0;
3533 -}
3534 -
3535 -.mxchat-bulk-select-label {
3536 - display: flex;
3537 - align-items: center;
3538 - gap: 6px;
3539 - font-size: 13px;
3540 - color: var(--mxch-text-secondary);
3541 - cursor: pointer;
3542 -}
3543 -
3544 -.mxchat-bulk-select-label:hover {
3545 - color: var(--mxch-text-primary);
3546 -}
3547 -
3548 -.mxchat-entry-checkbox,
3549 -.mxchat-entry-checkbox-all {
3550 - width: 16px;
3551 - height: 16px;
3552 - cursor: pointer;
3553 - accent-color: var(--mxch-primary, #7873f5);
3554 -}
3555 -
3556 -.mxchat-bulk-actions {
3557 - display: flex;
3558 - align-items: center;
3559 - gap: 8px;
3560 - margin-left: auto;
3561 -}
3562 -
3563 -.mxchat-bulk-delete {
3564 - display: flex;
3565 - align-items: center;
3566 - gap: 6px;
3567 - color: var(--mxch-error, #dc2626) !important;
3568 - border-color: #fecaca !important;
3569 - background: transparent !important;
3570 -}
3571 -
3572 -.mxchat-bulk-delete:hover:not(:disabled) {
3573 - background: #fef2f2 !important;
3574 - border-color: #fca5a5 !important;
3575 -}
3576 -
3577 -.mxchat-bulk-delete:disabled {
3578 - opacity: 0.5;
3579 - cursor: not-allowed;
3580 -}
3581 -
3582 -.mxchat-selected-count {
3583 - font-size: 12px;
3584 - color: var(--mxch-primary, #7873f5);
3585 - font-weight: 600;
3586 - margin-left: 4px;
3587 -}
3588 -
3589 -/* Delete container - holds Delete All form and Delete Selected button */
3590 -.mxchat-delete-container {
3591 - display: flex;
3592 - align-items: center;
3593 -}
3594 -
3595 -/* Selected row highlighting */
3596 -#mxchat-records-table tr.selected {
3597 - background-color: rgba(120, 115, 245, 0.05) !important;
3598 -}
3599 -
3600 -#mxchat-records-table tr.selected td:first-child {
3601 - position: relative;
3602 -}
3603 -
3604 -#mxchat-records-table tr.selected td:first-child::before {
3605 - content: '';
3606 - position: absolute;
3607 - left: 0;
3608 - top: 0;
3609 - bottom: 0;
3610 - width: 3px;
3611 - background: var(--mxch-primary, #7873f5);
3612 -}
3613 -
3614 -/* Deleting state */
3615 -tr.mxchat-row-deleting {
3616 - opacity: 0.5;
3617 - pointer-events: none;
3618 -}
3619 -
3620 -/* Error state for failed deletions */
3621 -tr.mxchat-row-error {
3622 - background-color: rgba(220, 38, 38, 0.05) !important;
3623 -}
3624 -
3625 -tr.mxchat-row-error td:first-child {
3626 - position: relative;
3627 -}
3628 -
3629 -tr.mxchat-row-error td:first-child::before {
3630 - content: '';
3631 - position: absolute;
3632 - left: 0;
3633 - top: 0;
3634 - bottom: 0;
3635 - width: 3px;
3636 - background: var(--mxch-error, #dc2626);
3637 -}
3638 -
3639 -/* Spin animation for loading states */
3640 -.spin {
3641 - animation: mxchat-spin 1s linear infinite;
3642 -}
3643 -
3644 -/* Responsive adjustments for bulk toolbar */
3645 -@media (max-width: 768px) {
3646 - .mxchat-bulk-toolbar {
3647 - flex-wrap: wrap;
3648 - gap: 8px;
3649 - }
3650 -
3651 - .mxchat-bulk-delete-text {
3652 - display: none;
3653 - }
3654 -
3655 - .mxchat-bulk-actions {
3656 - margin-left: 0;
3657 - }
3658 -}
3659 -
3660 -/* ==========================================================================
3661 - Knowledge Base - Mobile Responsive
3662 - ========================================================================== */
3663 -
3664 -/* Desktop defaults for KB header controls */
3665 -.mxch-kb-header-controls {
3666 - display: flex;
3667 - gap: 10px;
3668 - align-items: center;
3669 -}
3670 -
3671 -.mxch-kb-search-form {
3672 - display: flex;
3673 - gap: 10px;
3674 -}
3675 -
3676 -.mxch-kb-search-input {
3677 - width: 200px;
3678 -}
3679 -
3680 -.mxch-kb-type-filter {
3681 - width: auto;
3682 -}
3683 -
3684 -/* Mobile: Knowledge Base card header stacks vertically */
3685 -@media screen and (max-width: 960px) {
3686 - /* Stack card header vertically */
3687 - #knowledge-base .mxch-card-header {
3688 - flex-direction: column;
3689 - align-items: stretch;
3690 - gap: 12px;
3691 - padding: 12px 16px;
3692 - }
3693 -
3694 - /* Title row wraps badges */
3695 - #knowledge-base .mxch-card-title {
3696 - flex-wrap: wrap;
3697 - font-size: 14px;
3698 - }
3699 -
3700 - /* Controls stack vertically */
3701 - .mxch-kb-header-controls {
3702 - flex-direction: column;
3703 - align-items: stretch;
3704 - gap: 8px;
3705 - width: 100%;
3706 - }
3707 -
3708 - /* Search form wraps */
3709 - .mxch-kb-search-form {
3710 - flex-wrap: wrap;
3711 - gap: 8px;
3712 - width: 100%;
3713 - }
3714 -
3715 - /* Search input takes full width */
3716 - .mxch-kb-search-input {
3717 - width: 100% !important;
3718 - flex: 1;
3719 - min-width: 0;
3720 - }
3721 -
3722 - /* Filter dropdown takes full width */
3723 - .mxch-kb-type-filter {
3724 - width: 100% !important;
3725 - flex: 1;
3726 - min-width: 0;
3727 - }
3728 -
3729 - /* Delete container full width */
3730 - .mxchat-delete-container {
3731 - width: 100%;
3732 - }
3733 -
3734 - .mxchat-delete-container form,
3735 - .mxchat-delete-container .mxchat-bulk-delete {
3736 - width: 100%;
3737 - }
3738 -
3739 - .mxchat-delete-container .mxch-btn {
3740 - width: 100%;
3741 - justify-content: center;
3742 - }
3743 -
3744 - /* Table: hide ID and Source columns on mobile to save space */
3745 - .mxchat-records-table th:nth-child(2),
3746 - .mxchat-records-table td:nth-child(2) {
3747 - display: none;
3748 - }
3749 -
3750 - .mxchat-records-table th:nth-child(4),
3751 - .mxchat-records-table td:nth-child(4) {
3752 - display: none;
3753 - }
3754 -
3755 - /* Content column needs more room */
3756 - .mxchat-content-cell {
3757 - max-width: none !important;
3758 - }
3759 -
3760 - /* Table cells padding */
3761 - .mxchat-records-table th,
3762 - .mxchat-records-table td {
3763 - padding: 10px 8px !important;
3764 - }
3765 -
3766 - /* Pagination wraps nicely */
3767 - .mxchat-ajax-pagination {
3768 - flex-wrap: wrap;
3769 - justify-content: center;
3770 - }
3771 -}
3772 -
3773 -/* Small mobile: further adjustments */
3774 -@media screen and (max-width: 480px) {
3775 - #knowledge-base .mxch-card-header {
3776 - padding: 10px 12px;
3777 - }
3778 -
3779 - #knowledge-base .mxch-card-title {
3780 - font-size: 13px;
3781 - }
3782 -
3783 - /* Search form items fully stacked */
3784 - .mxch-kb-search-form {
3785 - flex-direction: column;
3786 - }
3787 -
3788 - /* Smaller table text */
3789 - .mxchat-records-table {
3790 - font-size: 12px;
3791 - }
3792 -
3793 - .mxchat-records-table th,
3794 - .mxchat-records-table td {
3795 - padding: 8px 6px !important;
3796 - }
3797 -
3798 - /* Also hide Actions header text but keep the column for delete buttons */
3799 - .mxchat-records-table th:nth-child(5) {
3800 - font-size: 0;
3801 - padding: 8px 4px !important;
3802 - width: 40px;
3803 - }
3804 -}
3805 -
3806 -/* ─── Edit Entry Modal ─── */
3807 -
3808 -.mxchat-edit-entry-btn {
3809 - color: var(--mxch-primary, #7873f5);
3810 -}
3811 -.mxchat-edit-entry-btn:hover {
3812 - color: var(--mxch-primary-dark, #5b56d6);
3813 - background: rgba(120, 115, 245, 0.08);
3814 -}
3815 -
3816 -.mxchat-kb-edit-modal-content {
3817 - max-width: 760px;
3818 - /* Same viewport-safe cap as the content-selector modal (vh = fallback). */
3819 - max-height: 90vh;
3820 - max-height: min(90vh, calc(100dvh - 24px));
3821 -}
3822 -
3823 -.mxchat-kb-edit-body {
3824 - flex: 1 1 auto;
3825 - /* min-height: 0 lets the body shrink inside the capped modal box so the
3826 - footer (Save/Cancel) can never be pushed below the viewport. */
3827 - min-height: 0;
3828 - display: flex;
3829 - flex-direction: column;
3830 - padding: 20px;
3831 - overflow: hidden;
3832 - gap: 12px;
3833 -}
3834 -
3835 -.mxchat-kb-edit-source {
3836 - font-size: 12px;
3837 - color: var(--mxch-text-muted, #6b7280);
3838 - word-break: break-all;
3839 -}
3840 -.mxchat-kb-edit-source a {
3841 - color: var(--mxch-primary, #7873f5);
3842 - text-decoration: none;
3843 -}
3844 -
3845 -.mxchat-kb-edit-textarea {
3846 - flex: 1;
3847 - min-height: 300px;
3848 - max-height: 55vh;
3849 - width: 100%;
3850 - padding: 14px;
3851 - border: 1px solid var(--mxch-input-border, #d1d5db);
3852 - border-radius: 8px;
3853 - font-size: 14px;
3854 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
3855 - line-height: 1.6;
3856 - resize: vertical;
3857 - color: var(--mxch-text-primary, #1a1a2e);
3858 - background: var(--mxch-input-bg, #fff);
3859 - box-sizing: border-box;
3860 - transition: border-color 0.2s;
3861 -}
3862 -.mxchat-kb-edit-textarea:focus {
3863 - outline: none;
3864 - border-color: var(--mxch-primary, #7873f5);
3865 - box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
3866 -}
3867 -
3868 -.mxchat-kb-edit-meta {
3869 - display: flex;
3870 - justify-content: space-between;
3871 - font-size: 12px;
3872 - color: var(--mxch-text-muted, #6b7280);
3873 -}
3874 -
3875 -.mxchat-kb-edit-footer {
3876 - display: flex;
3877 - align-items: center;
3878 - justify-content: space-between;
3879 - padding: 14px 20px;
3880 - border-top: 1px solid #e5e5e5;
3881 - gap: 12px;
3882 - /* Action row can never be squeezed out of the box. */
3883 - flex-shrink: 0;
3884 -}
3885 -
3886 -.mxchat-kb-edit-notice {
3887 - flex: 1;
3888 - font-size: 13px;
3889 -}
3890 -.mxchat-kb-edit-notice.success { color: #16a34a; }
3891 -.mxchat-kb-edit-notice.error { color: #dc2626; }
3892 -
3893 -.mxchat-kb-edit-actions {
3894 - display: flex;
3895 - gap: 8px;
3896 - flex-shrink: 0;
3897 -}
3898 -
3899 -/* ── Knowledge Inspector modal (plan-d8cb4b) ──────────────────────────
3900 - Read-only "View indexed content" viewer. Reuses the Testing tab's
3901 - match-card / chunk-detail components (admin-testing-tab.css, scoped under
3902 - .mxch-testing-results) so it looks native; this block only adds the modal
3903 - body scroll + the chunk-text container the Testing tab doesn't have. */
3904 -.mxchat-kb-inspect-body {
3905 - flex: 1 1 auto;
3906 - /* Same footer-pushout guard as the edit modal. */
3907 - min-height: 0;
3908 - display: flex;
3909 - flex-direction: column;
3910 - padding: 20px;
3911 - overflow-y: auto;
3912 - gap: 12px;
3913 -}
3914 -/* The modal body is the scroll container — let the inner results grow naturally
3915 - instead of the Testing tab's own 400px inner scroll (avoids a double scrollbar). */
3916 -.mxchat-kb-inspect-body .mxch-testing-results {
3917 - max-height: none;
3918 - overflow: visible;
3919 -}
3920 -.mxch-kb-inspect-chunk-text {
3921 - margin: 8px 0 0;
3922 - padding: 12px 14px;
3923 - background: #f8fafc;
3924 - border: 1px solid #e2e8f0;
3925 - border-radius: 6px;
3926 - max-height: 260px;
3927 - overflow-y: auto;
3928 - white-space: pre-wrap;
3929 - word-break: break-word;
3930 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
3931 - font-size: 13px;
3932 - line-height: 1.6;
3933 - color: var(--mxch-text-primary, #334155);
3934 -}
3935 -
3936 -.mxchat-kb-edit-save-spinner {
3937 - display: inline-flex;
3938 - align-items: center;
3939 - gap: 6px;
3940 -}
3941 -
3942 -@media (max-width: 782px) {
3943 - .mxchat-kb-edit-modal-content {
3944 - width: 96%;
3945 - max-width: 96%;
3946 - margin: 10px auto;
3947 - max-height: calc(100vh - 20px);
3948 - max-height: calc(100dvh - 20px);
3949 - }
3950 - .mxchat-kb-edit-body {
3951 - padding: 14px;
3952 - }
3953 - .mxchat-kb-edit-textarea {
3954 - min-height: 200px;
3955 - font-size: 15px;
3956 - }
3957 - .mxchat-kb-edit-footer {
3958 - flex-direction: column;
3959 - align-items: stretch;
3960 - }
3961 - .mxchat-kb-edit-actions {
3962 - justify-content: stretch;
3963 - }
3964 - .mxchat-kb-edit-actions .mxch-btn {
3965 - flex: 1;
3966 - text-align: center;
3967 - }
3968 -}
3969 -/* ==========================================================================
3970 - Custom Meta-key discovery picker (plan-mxchat-20260709-fe8e4e)
3971 - Canon-token chip picker mirroring the ACF discovery UX for non-ACF meta.
3972 - ========================================================================== */
3973 -.mxchat-meta-scan-controls {
3974 - display: flex;
3975 - align-items: center;
3976 - flex-wrap: wrap;
3977 - gap: 12px;
3978 - margin-bottom: 12px;
3979 -}
3980 -#mxchat-scan-meta-btn {
3981 - display: inline-flex;
3982 - align-items: center;
3983 - gap: 8px;
3984 -}
3985 -.mxchat-meta-scan-internal {
3986 - display: inline-flex;
3987 - align-items: center;
3988 - gap: 6px;
3989 - font-size: 13px;
3990 - color: var(--mxch-text-secondary, #64748b);
3991 - cursor: pointer;
3992 -}
3993 -.mxchat-meta-scan-loading,
3994 -.mxchat-meta-scan-empty {
3995 - font-size: 13px;
3996 - color: var(--mxch-text-secondary, #64748b);
3997 - margin: 8px 0 0;
3998 -}
3999 -.mxchat-meta-chip-grid {
4000 - display: grid;
4001 - grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
4002 - gap: 10px;
4003 - margin-top: 12px;
4004 -}
4005 -.mxchat-meta-chip {
4006 - display: flex;
4007 - flex-direction: column;
4008 - align-items: flex-start;
4009 - gap: 4px;
4010 - text-align: left;
4011 - width: 100%;
4012 - padding: 10px 12px;
4013 - background: var(--mxch-card-bg, #fff);
4014 - border: 1px solid var(--mxch-card-border, #e2e8f0);
4015 - border-radius: var(--mxch-radius-md, 8px);
4016 - cursor: pointer;
4017 - transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
4018 -}
4019 -.mxchat-meta-chip:hover {
4020 - border-color: var(--mxch-primary, #7873f5);
4021 - box-shadow: 0 1px 4px rgba(120, 115, 245, 0.15);
4022 -}
4023 -.mxchat-meta-chip-main {
4024 - display: flex;
4025 - align-items: baseline;
4026 - flex-wrap: wrap;
4027 - gap: 8px;
4028 -}
4029 -.mxchat-meta-chip-name {
4030 - font-weight: 600;
4031 - color: var(--mxch-text-primary, #1a1a2e);
4032 - font-size: 13px;
4033 -}
4034 -.mxchat-meta-chip-key {
4035 - font-family: monospace;
4036 - font-size: 11px;
4037 - color: var(--mxch-text-muted, #94a3b8);
4038 - background: #f1f5f9;
4039 - padding: 1px 6px;
4040 - border-radius: 4px;
4041 -}
4042 -.mxchat-meta-chip-meta {
4043 - font-size: 11px;
4044 - color: var(--mxch-text-muted, #94a3b8);
4045 - white-space: nowrap;
4046 - overflow: hidden;
4047 - text-overflow: ellipsis;
4048 - max-width: 100%;
4049 -}
4050 -.mxchat-meta-chip-tick {
4051 - font-size: 11px;
4052 - font-weight: 600;
4053 - color: var(--mxch-primary, #7873f5);
4054 - margin-top: 2px;
4055 -}
4056 -.mxchat-meta-chip.is-added {
4057 - border-color: var(--mxch-success, #10b981);
4058 - background: rgba(16, 185, 129, 0.06);
4059 - cursor: default;
4060 -}
4061 -.mxchat-meta-chip.is-added .mxchat-meta-chip-tick {
4062 - color: var(--mxch-success, #10b981);
4063 -}
4064 -@media (max-width: 782px) {
4065 - .mxchat-meta-chip-grid {
4066 - grid-template-columns: 1fr;
4067 - }
4068 -}