/* AIOS-0676: the research panel now follows the results, so no space is held between the button and them. */.kwr-slot{min-height:0}
.kwr{border:1px solid var(--line,#d9e3f3);border-radius:14px;background:var(--card,#fff);padding:20px;margin:20px 0;color:var(--text,#15243d)}.kwr-title{font-size:1.1rem;margin:0 0 8px}.kwr-note,.kwr-feedback{font-size:.88rem;line-height:1.65;margin:8px 0;color:var(--muted,#586d89)}.kwr-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.kwr-actions .btn{transition:transform .16s ease,box-shadow .16s ease}.kwr-actions .btn:hover{transform:translateY(-2px);box-shadow:0 5px 14px #1d4ed81a}.kwr-blank{font-size:.85rem}.kwr-history{margin-top:14px}.kwr-history summary{cursor:pointer;font-weight:600}.kwr-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:10px;max-height:22rem;overflow:auto;padding:10px 0}.kwr-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line,#d9e3f3);border-radius:10px;padding:12px;min-width:0}.kwr-row-label{flex:1;min-width:0;overflow-wrap:anywhere}.kwr-row-label strong,.kwr-row-label small{display:block}.kwr-row-label small{color:var(--muted,#586d89);margin-top:4px}.kwr-remove,.kwr-clear{background:transparent;border:0;text-decoration:underline;color:inherit;cursor:pointer;padding:8px}.kwr button:focus-visible,.kwr a:focus-visible,.kwr summary:focus-visible{outline:3px solid #3169e8;outline-offset:3px}html[data-xunl-theme=dark] .kwr{background:#122035;color:#edf3ff;border-color:#34435c}html[data-xunl-theme=dark] .kwr-note,html[data-xunl-theme=dark] .kwr-feedback,html[data-xunl-theme=dark] .kwr-row-label small{color:#adbed8}@media(max-width:540px){.kwr{padding:14px}.kwr-actions .btn{width:100%}.kwr-row{flex-wrap:wrap}.kwr-row-label{flex-basis:100%}}@media(prefers-reduced-motion:reduce){.kwr-actions .btn{transition:none}.kwr-actions .btn:hover{transform:none}}



/* Reserve the existing chart's space before enhancement; the table stays usable without scripts. */
html.xunl-legacy-tool #kwp-overview-slot{display:grid;grid-template-columns:minmax(0,1fr)}
html.xunl-legacy-tool #kwp-overview-slot::before{content:"";grid-area:1/1;padding-top:calc(26.04167% + 190px);pointer-events:none}
html.xunl-legacy-tool #kwp-overview-slot::after{content:"";grid-area:2/1;min-height:42px;pointer-events:none}
html.xunl-legacy-tool #kwp-overview-slot>.kwp-overview{grid-area:1/1;min-width:0;align-self:start}
html.xunl-legacy-tool #kwp-overview-slot>.kwp-toolbar{grid-area:2/1;align-self:start}
@media(max-width:600px){html.xunl-legacy-tool #kwp-overview-slot::before{padding-top:calc(50% + 450px)}}
/* 2026-11-28: the shared tools stylesheet gives .brand display:flex (its header logo), which stretched the B2B badge into a full-width bar. */
.badge.brand{display:inline-flex}
/* Wide screens: the result table (up to 200 rows) keeps its column names under the sticky site header. */
@media(min-width:1280px){body.kwp-entry .kwp-pro.table-responsive{overflow:visible}body.kwp-entry .kwp-pro.table-responsive>table>thead>tr>th{position:sticky;top:72px;z-index:3}}
/* 2026-11-28: the guest sign-up wall had an inline light background, so dark mode showed light text on it. */
#kwp-wall{background:#f0f6ff;border-color:#bfd4ff!important}
html[data-xunl-theme=dark] #kwp-wall{background:#15233f;border-color:#2d4575!important;color:#e6edf7}
html[data-xunl-theme=dark] #kwp-wall .text-secondary{color:#a9b8d0!important}
/* 2026-11-28: the "need more lookups" box under the English results had an inline light ground too (light text on it in dark mode). */
#kwp-credits{background:#f8fafc}
html[data-xunl-theme=dark] #kwp-credits{background:#15233f;border-color:#2d4575!important;color:#e6edf7}
html[data-xunl-theme=dark] #kwp-credits .btn-outline-primary{color:#9dbbff;border-color:#5b7fc7}
html[data-xunl-theme=dark] #kwp-credits .btn-outline-primary:hover{background:#22386a;color:#fff}
