/* Knowledge & AI Training editor (knowledge-editor.js) and the shared "Go to Sync Catalog" link (app.js syncCatalogLink). */
.kb-editor{margin:28px 0 36px;max-width:1010px;border:1px solid #cfd4df;border-radius:10px;padding:20px 22px 22px;background:#fff}
.kb-editor-head h3{font-size:20px;font-weight:600;margin:6px 0 4px;color:#111}
.kb-editor-head .card-copy{margin:0;color:#5d6678;font-size:15px;line-height:1.45}
.kb-connected{display:inline-flex;align-items:center;gap:7px;margin:0;padding:3px 10px;border-radius:20px;background:#e9f8ef;color:#13703c;font-size:13px;font-weight:600}
.kb-connected span{width:7px;height:7px;border-radius:50%;background:#18a04f}
.kb-note{margin:10px 0 0;padding:8px 12px;border-radius:6px;background:#fff6dc;color:#6b4e00;font-size:13px}
.kb-alert{margin:16px 0 0;padding:10px 12px;border-radius:6px;background:#fdecef;color:#9f1f35;font-size:14px;font-weight:500}
.kb-list{display:grid;gap:14px;margin:18px 0 0}
.kb-row{border:1px solid #dfe3ea;border-radius:9px;padding:12px 14px 14px;background:#fafbfc}
.kb-row.has-error{border-color:#d4425a;background:#fff8f9}
.kb-row>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.kb-row h4{margin:0;font-size:15px;font-weight:600;color:#394458}
.kb-field{display:grid;gap:6px;min-width:0}
.kb-field>label{font-size:15px;color:#4b566d}
.kb-field.has-error input,.kb-field.has-error textarea{border-color:#c0283f!important;box-shadow:0 0 0 1px #c0283f}
.kb-error{margin:0;color:#b0182f;font-size:13px;line-height:1.35}
.kb-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.kb-actions .primary-button{margin-left:auto}
.kb-unsaved{color:#855007;font-size:13px}
.kb-unsaved[hidden]{display:none}
.training-not-connected{padding:10px 12px;border-radius:6px;background:#f2f3f5;color:#4b566d}
.training-editor-pointer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;max-width:1010px;margin:28px 0 36px;padding:14px 16px;border:1px solid #b8e3c8;border-radius:9px;background:#f3fbf6}
.training-editor-pointer p{margin:0;font-size:15px;color:#24412f}
.service-note{margin:0 0 10px;color:#70798c;font-size:13px}
.service-meter.is-unmeasured span{color:#8a90a0;font-style:italic}
.sync-catalog-link,.ch-inline-link{display:inline-flex;align-items:center;gap:4px;margin:6px 0 0;padding:0;border:0;background:none;color:#2559e5;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.sync-catalog-link:focus-visible,.ch-inline-link:focus-visible{outline:2px solid #2559e5;outline-offset:2px;border-radius:2px}
.ch-sync .sync-catalog-link{display:flex;font-size:11px}
#syncCatalogButton.is-pointed{box-shadow:0 0 0 3px #fff,0 0 0 6px #2559e5;transition:box-shadow .2s}
/* Phone width: the tab row used the desktop gutter (-36px) and pushed the page sideways (also on main before this change). */
@media(max-width:700px){body[data-section=knowledge] .reference-tabs{margin:0 -16px 24px;padding:0 16px;gap:24px;overflow-x:auto}.kb-editor{padding:14px}.kb-actions .primary-button{margin-left:0;width:100%}}
