.cx-results{--cx-border:var(--appearance-line,#d9e2e0);--cx-panel:var(--appearance-surface,#fff);--cx-ink:var(--appearance-ink,#172e2a);color:var(--cx-ink);min-width:0}.cx-results-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}.cx-results .cx-result-chip{display:inline-flex;gap:8px;border:1px solid var(--cx-border);border-radius:999px;background:var(--cx-panel);color:inherit;padding:7px 12px}.cx-results .cx-result-chip[aria-pressed=true]{background:#e7f3ff;color:#154b7d;border-color:#82b5e9}.cx-result-chip span{font-variant-numeric:tabular-nums;font-weight:700}.cx-results-layout{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.3fr);gap:18px;align-items:start}.cx-results-list{min-width:0;border:1px solid var(--cx-border);border-radius:12px;overflow:hidden}.cx-results-group{font-size:11px!important;letter-spacing:.07em;text-transform:uppercase;padding:13px 15px;margin:0!important;background:color-mix(in srgb,var(--cx-ink) 4%,var(--cx-panel))}.cx-results .ml-resource{width:100%;display:flex;text-align:left;padding:15px;border:0;border-bottom:1px solid var(--cx-border);border-radius:0;background:var(--cx-panel);color:inherit;transform:none}.cx-results .ml-resource[aria-pressed=true]{background:color-mix(in srgb,#428bd1 11%,var(--cx-panel));box-shadow:inset 3px 0 #3985cc}.cx-result-copy{display:grid;gap:6px;min-width:0;width:100%}.cx-result-title{font-size:14px;line-height:1.45;overflow-wrap:anywhere}.cx-results .cx-library-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.55}.cx-result-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:11px}.cx-status-chip{display:inline-flex;padding:3px 7px;border:1px solid var(--cx-border);border-radius:6px;font-size:11px;font-weight:600;margin-left:auto;white-space:nowrap}.cx-results-reader{position:sticky;top:18px;border:1px solid var(--cx-border);border-radius:12px;min-width:0;background:var(--cx-panel);overflow:hidden}.cx-reader-header{padding:18px 20px 0;border-bottom:1px solid var(--cx-border)}.cx-reader-header h3{font-size:20px;line-height:1.35;overflow-wrap:anywhere;margin:12px 0}.cx-reader-meta{font-size:12px}.cx-reader-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.cx-reader-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 2px;background:transparent;color:inherit}.cx-reader-tabs button[aria-selected=true]{border-bottom-color:#3985cc;color:#236bb0;font-weight:700}.cx-reader-body{padding:20px;overflow-wrap:anywhere}.cx-reader-body p{white-space:pre-wrap}.cx-reader-body table{display:block;overflow:auto;max-width:100%}.cx-reader-body dl{display:grid;grid-template-columns:minmax(70px,.3fr) 1fr;gap:8px}.cx-reader-body dd{margin:0}.cx-reader-actions{border-top:1px solid var(--cx-border);margin-top:20px;padding-top:14px;display:flex;gap:8px;flex-wrap:wrap}.cx-reader-actions p{flex-basis:100%;font-size:12px}.cx-results-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;font-size:12px}.cx-reader-back{display:none}.cx-results-empty{padding:20px}.cx-results button:focus-visible{outline:2px solid #3985cc;outline-offset:2px}
[data-theme=dark] .cx-results{--cx-panel:#17231f;--cx-ink:#e2eeea;--cx-border:#3a4b44}[data-theme=dark] .cx-results .cx-result-chip[aria-pressed=true]{background:#203d51;color:#c9e4ff}[data-theme=dark] .cx-reader-tabs button[aria-selected=true]{color:#9fceff}
@media(max-width:850px){.cx-results-layout{grid-template-columns:minmax(0,1fr)}.cx-results-reader{display:none;position:static}.cx-reader-open .cx-results-reader{display:block}.cx-reader-open .cx-results-list{display:none}.cx-reader-back{display:inline-flex}.cx-reader-header,.cx-reader-body{padding:15px}.cx-reader-tabs{gap:14px}}
.cx-review-queue{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;margin-bottom:14px;border:1px solid var(--cx-border);border-radius:9px;background:color-mix(in srgb,#d6a13a 9%,var(--cx-panel));font-size:13px}.cx-review-queue button{font-size:12px;white-space:nowrap}
.cx-undo-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--appearance-line,#d9e2e0);background:var(--appearance-surface,#fff);color:var(--appearance-ink,#172e2a);border-radius:10px;padding:12px 16px;margin-bottom:12px;font-size:13px}.cx-undo-notice button{white-space:nowrap}
/* Results-only reference alignment; setup, toolkit and filter row remain unchanged. */
#customerExperienceLibraryPanel{--cx-panel:#fff;--cx-border:#d9e1ee;--cx-ink:#18233a;--cx-muted:#5c6b86;--cx-blue:#0b57d0;--cx-soft:#e8f0fd;--cx-grey:#eef1f7}
#customerExperienceLibraryPanel .cx-results{--cx-panel:inherit;--cx-border:inherit;--cx-ink:inherit;color:var(--cx-ink)}
[data-theme=dark] #customerExperienceLibraryPanel{--cx-panel:#161d2d;--cx-border:#26324a;--cx-ink:#e8ecf5;--cx-muted:#9aa7c0;--cx-blue:#6ea0ff;--cx-soft:#1a2a4d;--cx-grey:#1e2638}
#customerExperienceLibraryPanel .cx-results-chips{margin:6px 0 14px}
#customerExperienceLibraryPanel .cx-result-chip{height:32px;padding:0 6px 0 13px;font-size:12px;font-weight:700;color:var(--cx-muted);background:var(--cx-panel);border-color:var(--cx-border)}
#customerExperienceLibraryPanel .cx-result-chip span{font-size:11px;border-radius:99px;padding:1px 8px;background:var(--cx-grey);color:var(--cx-muted)}
#customerExperienceLibraryPanel .cx-result-chip[aria-pressed=true]{background:var(--cx-blue);border-color:var(--cx-blue);color:#fff}
#customerExperienceLibraryPanel .cx-result-chip[aria-pressed=true] span{background:rgba(255,255,255,.22);color:#fff}
#customerExperienceLibraryPanel .cx-results-layout{grid-template-columns:minmax(340px,440px) minmax(0,1fr)}
#customerExperienceLibraryPanel .cx-results-list{border-radius:14px;background:var(--cx-panel)}
#customerExperienceLibraryPanel .cx-results-group{padding:13px 14px;font-size:13px!important;letter-spacing:0;text-transform:none;background:var(--cx-panel);font-weight:800}
#customerExperienceLibraryPanel .ml-resource{margin:2px 6px;width:calc(100% - 12px);padding:11px 10px;border:1px solid transparent;border-radius:11px;background:var(--cx-panel);color:var(--cx-ink)}
#customerExperienceLibraryPanel .ml-resource:hover{background:var(--cx-grey)}
#customerExperienceLibraryPanel .ml-resource[aria-pressed=true]{background:var(--cx-soft);border-color:color-mix(in srgb,var(--cx-blue) 35%,transparent);box-shadow:inset 3px 0 var(--cx-blue)}
#customerExperienceLibraryPanel .cx-result-title{font-size:13px;line-height:1.35}
#customerExperienceLibraryPanel .cx-result-meta,#customerExperienceLibraryPanel .cx-library-description{color:var(--cx-muted)}
#customerExperienceLibraryPanel .cx-status-chip{border-radius:99px;font-size:10.5px;padding:1px 9px;font-weight:800;background:var(--cx-grey);color:var(--cx-muted)}
#customerExperienceLibraryPanel .cx-results-reader{top:54px;height:calc(100dvh / var(--cx-root-zoom,1) - 70px);min-height:0;display:flex;flex-direction:column;border-radius:16px;background:var(--cx-panel)}
#customerExperienceLibraryPanel .cx-reader-header{flex:none;padding:16px 22px 0;background:var(--cx-panel)}
#customerExperienceLibraryPanel .cx-reader-header h3{font-size:22px;line-height:1.25;font-weight:800}
#customerExperienceLibraryPanel .cx-reader-tabs{gap:20px;flex-wrap:nowrap}
#customerExperienceLibraryPanel .cx-reader-tabs button{font-size:12.5px;color:var(--cx-muted);padding:9px 0}
#customerExperienceLibraryPanel .cx-reader-tabs button[aria-selected=true]{color:var(--cx-blue);border-color:var(--cx-blue)}
#customerExperienceLibraryPanel .cx-reader-body{flex:1;min-height:0;overflow:auto;padding:18px 22px 24px}
#customerExperienceLibraryPanel .cx-reader-body p{font-size:13.5px;line-height:1.65}
#customerExperienceLibraryPanel .cx-reader-actions{flex:none;margin:0;border-top:1px solid var(--cx-border);padding:12px 22px;background:var(--cx-panel)}
#customerExperienceLibraryPanel .cx-reader-actions p{margin:0;color:var(--cx-muted)}
#customerExperienceLibraryPanel .cx-results-pagination{justify-content:center;gap:14px}
#customerExperienceLibraryPanel .cx-undo-notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:1100;max-width:90%;background:#1b2336;color:#fff;border-color:#33415f;box-shadow:0 10px 30px #0003}
#customerExperienceLibraryPanel .cx-undo-notice button{color:#8db4ff;background:transparent}
@media(max-width:980px){#customerExperienceLibraryPanel .cx-results-layout{grid-template-columns:minmax(0,1fr)}#customerExperienceLibraryPanel .cx-results-reader{display:none;position:fixed;inset:0;z-index:1000;height:calc(100dvh / var(--cx-root-zoom,1));width:calc(100vw / var(--cx-root-zoom,1));border-radius:0;border:0}#customerExperienceLibraryPanel .cx-reader-open .cx-results-reader{display:flex}#customerExperienceLibraryPanel .cx-reader-open .cx-results-list{display:block}#customerExperienceLibraryPanel .cx-reader-back{display:inline-flex}#customerExperienceLibraryPanel .cx-reader-header,#customerExperienceLibraryPanel .cx-reader-body,#customerExperienceLibraryPanel .cx-reader-actions{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){#customerExperienceLibraryPanel .cx-reader-body{scroll-behavior:auto}}
/* Override shared resource-grid and generic button rules within CX results only. */
#customerExperienceLibraryPanel .cx-results button.ml-resource{display:flex;grid-template-columns:none;justify-content:flex-start;align-items:flex-start;text-align:left}
#customerExperienceLibraryPanel .cx-results .cx-result-copy{display:grid;grid-template-columns:minmax(0,1fr);flex:1;max-width:100%}
#customerExperienceLibraryPanel .cx-results .cx-reader-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;min-height:0;box-shadow:none}
#customerExperienceLibraryPanel .cx-results .cx-reader-tabs button[aria-selected=true]{border-bottom-color:var(--cx-blue);color:var(--cx-blue)}
#customerExperienceLibraryPanel .cx-results .cx-reader-back{display:none}
#customerExperienceLibraryPanel .cx-results .cx-result-chip{min-height:32px}
#customerExperienceLibraryPanel .cx-results-chips .cx-review-queue{margin:0 0 0 auto;padding:0;border:0;background:transparent;font-size:12px}
#customerExperienceLibraryPanel .cx-results-chips .cx-review-queue button{min-height:30px;padding:0 11px;font-size:12px}
@media(max-width:980px){#customerExperienceLibraryPanel .cx-results .cx-reader-back{display:inline-flex}}
#customerExperienceLibraryPanel #customerExperienceLibraryTabPanel.results-content-narrow .cx-results-layout{grid-template-columns:minmax(0,1fr)}
#customerExperienceLibraryPanel #customerExperienceLibraryTabPanel.results-content-narrow .cx-results-reader{display:none;position:fixed;inset:0;z-index:1000;height:calc(100dvh / var(--cx-root-zoom,1));width:calc(100vw / var(--cx-root-zoom,1));border-radius:0;border:0}
#customerExperienceLibraryPanel #customerExperienceLibraryTabPanel.results-content-narrow .cx-reader-open .cx-results-reader{display:flex}
#customerExperienceLibraryPanel #customerExperienceLibraryTabPanel.results-content-narrow .cx-reader-open .cx-results-list{display:block}
#customerExperienceLibraryPanel #customerExperienceLibraryTabPanel.results-content-narrow .cx-results .cx-reader-back{display:inline-flex}
