/* Keyword Research (views/keyword-explorer.js), 2026-11-22 redesign: keywordtool.io-style start hero, slim results
   search bar, Semrush-style keyword table (lists as tabs, stat strip, word-group sidebar, coloured intent and KD) and a
   compact topic summary, in our green. Its own file, linked after ahrefs-theme.css, so edits to the shared theme can't
   drop these rules, and scoped by the kz- classes (not the page wrapper) so every state of the page gets them. */
#app.rf-shell{--kz-line:#e5e7eb;--kz-soft-line:#eef0f2;--kz-ink:#111827;--kz-muted:#6b7280;--kz-accent:var(--ah-orange,#0f6b4e);--kz-accent-hover:var(--ah-orange-hover,#0b5a41);--kz-accent-soft:#e8f5ee;--kz-accent-line:#bfe3d0}
/* Search bar, shared by the hero and the slim results toolbar. */
#app.rf-shell .kz-search{display:grid;gap:12px;min-width:0}
#app.rf-shell .kz-bar{display:flex;align-items:stretch;width:100%;min-width:0;height:62px;padding:6px;border:1px solid #d6dbe0;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05),0 12px 32px rgba(16,24,40,.07);transition:border-color .15s,box-shadow .15s}
#app.rf-shell .kz-bar:focus-within{border-color:var(--kz-accent);box-shadow:0 0 0 4px rgba(15,107,78,.12),0 12px 32px rgba(16,24,40,.07)}
#app.rf-shell .kz-cell{position:relative;display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0 14px;border-left:1px solid var(--kz-soft-line);color:var(--kz-ink)}
#app.rf-shell .kz-cell:first-child{border-left:0}
#app.rf-shell .kz-cell>.ic{flex:none;width:18px;height:18px;color:#9aa3af}
#app.rf-shell .kz-cell :is(input,select){width:100%;min-width:0;height:100%;margin:0;padding:0;border:0!important;border-radius:0;outline:0;background:transparent!important;box-shadow:none!important;color:var(--kz-ink);font:inherit;font-size:15px}
#app.rf-shell .kz-cell select{cursor:pointer;text-overflow:ellipsis}
#app.rf-shell .kz-cell input::placeholder{color:#9aa3af}
#app.rf-shell .kz-cell-mode{flex:0 0 auto;padding-left:16px}
#app.rf-shell .kz-cell-mode select{width:auto;font-weight:600;color:var(--kz-accent)}
#app.rf-shell .kz-cell-keyword{flex:1 1 auto}
#app.rf-shell .kz-cell-select{flex:0 1 200px}
#app.rf-shell .kz-cell-lang{flex:0 1 130px}
#app.rf-shell .kz-go{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:8px;padding:0 28px;border:0;border-radius:999px;background:var(--kz-accent);color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s}
#app.rf-shell .kz-go:hover{background:var(--kz-accent-hover)}
#app.rf-shell .kz-go:focus-visible{outline:2px solid var(--kz-accent);outline-offset:2px}
#app.rf-shell .kz-go:disabled{opacity:.55;cursor:not-allowed}
#app.rf-shell .kz-go .ic{width:18px;height:18px;color:#fff}
/* Single keyword / Bulk check as a small segmented control. */
#app.rf-shell .kz-search .rx-modes{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--kz-line);border-radius:999px;background:#f6f7f9}
#app.rf-shell .kz-search .rx-mode{height:28px;padding:0 13px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--kz-muted);font-size:12.5px;font-weight:550}
#app.rf-shell .kz-search .rx-mode:hover{color:var(--kz-ink)}
#app.rf-shell .kz-search .rx-mode.is-current{border:0;background:#fff;color:var(--kz-ink);box-shadow:0 1px 2px rgba(16,24,40,.12)}
#app.rf-shell .kz-search .rx-credits{padding:0;border:0;background:none;font-size:12.5px}
#app.rf-shell .kz-search .rx-meter{width:56px;height:5px}
/* Start screen hero. */
#app.rf-shell .kz-hero{justify-items:center;max-width:1000px;margin:36px auto 34px;text-align:center}
#app.rf-shell .kz-hero-copy{display:grid;gap:8px;max-width:680px}
#app.rf-shell .kz-title{margin:0;color:var(--kz-ink)!important;font-size:36px;font-weight:750;letter-spacing:-.035em;line-height:1.1;text-wrap:balance}
#app.rf-shell .kz-sub{margin:0;color:#5b6472!important;font-size:15.5px;line-height:1.55;text-wrap:pretty}
#app.rf-shell .kz-hero-modes{margin-top:4px}
#app.rf-shell .kz-hero-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;color:var(--kz-muted);font-size:12.5px}
#app.rf-shell .kz-rule{color:#8a929c}
#app.rf-shell .kz-hero .rx-examples{justify-content:center;padding:0}
#app.rf-shell .kz-hero .rx-example{border-radius:999px}
#app.rf-shell .kz-hero :is(.rx-loader,.rx-error,.rf-hint){width:100%;text-align:left}
/* Results: one slim row, no card, no field labels. */
#app.rf-shell .kz-search.is-docked{gap:8px;margin:0 0 14px}
#app.rf-shell .kz-dock{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}
#app.rf-shell .kz-bar.is-slim{flex:1 1 620px;height:46px;padding:3px;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
#app.rf-shell .kz-bar.is-slim:focus-within{box-shadow:0 0 0 3px rgba(15,107,78,.12)}
#app.rf-shell .is-slim .kz-cell{padding:0 11px}
#app.rf-shell .is-slim .kz-cell :is(input,select){font-size:14px}
#app.rf-shell .is-slim .kz-cell>.ic{width:16px;height:16px}
#app.rf-shell .is-slim .kz-cell-select{flex-basis:180px}
#app.rf-shell .is-slim .kz-cell-lang{flex-basis:118px}
#app.rf-shell .is-slim .kz-go{width:40px;padding:0;border-radius:8px}
#app.rf-shell .kz-dock-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-width:0;color:var(--kz-muted);font-size:12px}
#app.rf-shell .kz-dock-meta .rx-mode{height:26px;padding:0 11px;font-size:12px}
#app.rf-shell .kz-dock-meta .rx-credits{font-size:12px}
#app.rf-shell .kz-dock-meta .rx-credits-reset{display:none}
/* Results header. */
#app.rf-shell .kz-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;margin:2px 0 14px}
#app.rf-shell .kz-head h1{margin:0;color:#5b6472;font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
#app.rf-shell .kz-head h1 span{color:var(--kz-ink);font-weight:700}
#app.rf-shell .kz-head p{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--kz-muted);font-size:13px}
#app.rf-shell .kz-head p .ic{width:14px;height:14px}
/* Keyword table card. */
#app.rf-shell .kz-magic{overflow:hidden}
#app.rf-shell .kz-tabs{display:flex;gap:4px;margin:4px 0 0;padding:0 18px;border-bottom:1px solid var(--kz-line);overflow-x:auto;scrollbar-width:none}
#app.rf-shell .kz-tabs::-webkit-scrollbar{display:none}
#app.rf-shell .kz-tab{display:inline-flex;flex:none;align-items:center;height:44px;margin:0 0 -1px;padding:0 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#5b6472;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
#app.rf-shell .kz-tab:hover{color:var(--kz-ink)}
#app.rf-shell .kz-tab.is-current{border-bottom-color:var(--kz-accent);color:var(--kz-ink)}
#app.rf-shell :is(.kz-tab,.kz-chip) .kx-count{margin-left:7px;padding:1px 7px;border-radius:999px;background:#f1f3f5;color:#5b6472;font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}
#app.rf-shell :is(.kz-tab,.kz-chip).is-current .kx-count{background:var(--kz-accent-soft);color:var(--kz-accent)}
#app.rf-shell .kz-stats{display:flex;flex-wrap:wrap;gap:10px 0;padding:14px 18px;border-bottom:1px solid var(--kz-soft-line)}
#app.rf-shell .kz-stat{display:grid;gap:2px;min-width:0;margin-right:24px;padding-right:24px;border-right:1px solid var(--kz-soft-line)}
#app.rf-shell .kz-stat:last-child{margin-right:0;padding-right:0;border-right:0}
#app.rf-shell .kz-stat small{color:var(--kz-muted);font-size:12px;font-weight:500}
#app.rf-shell .kz-stat strong{display:inline-flex;align-items:center;color:var(--kz-ink);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
#app.rf-shell .kz-magic>.rf-notice,#app.rf-shell .kz-magic>.kx-upsell{margin:12px 18px 0}
#app.rf-shell .kz-body{display:grid;grid-template-columns:220px minmax(0,1fr);min-width:0}
#app.rf-shell .kz-body.is-full{grid-template-columns:minmax(0,1fr)}
#app.rf-shell .kz-main{min-width:0;padding:12px 18px 6px}
/* Word groups sidebar. */
#app.rf-shell .kz-words{min-width:0;padding:12px 0;border-right:1px solid var(--kz-soft-line);background:#fbfcfc}
#app.rf-shell .kz-words header{display:grid;gap:8px;padding:0 14px 10px}
#app.rf-shell .kz-words header strong{color:var(--kz-ink);font-size:13px;font-weight:700}
#app.rf-shell .kz-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--kz-line);border-radius:8px;background:#f3f4f6}
#app.rf-shell .kz-seg button{flex:1;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:var(--kz-muted);font:inherit;font-size:12px;font-weight:550;white-space:nowrap;cursor:pointer}
#app.rf-shell .kz-seg button.is-current{background:#fff;color:var(--kz-ink);box-shadow:0 1px 2px rgba(16,24,40,.12)}
#app.rf-shell .kz-words ul{max-height:640px;margin:0;padding:0;overflow-y:auto;list-style:none}
#app.rf-shell .kz-word{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;padding:0 14px;border:0;background:none;color:#1f2933;font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
#app.rf-shell .kz-word span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.rf-shell .kz-word em{flex:none;color:var(--kz-muted);font-size:12px;font-style:normal;font-variant-numeric:tabular-nums}
#app.rf-shell .kz-word:hover{background:#f1f7f4}
#app.rf-shell .kz-word.is-current{background:var(--kz-accent-soft);box-shadow:inset 3px 0 0 var(--kz-accent);color:var(--kz-accent);font-weight:600}
#app.rf-shell .kz-word.is-current em{color:var(--kz-accent)}
#app.rf-shell .kz-word.is-all{font-weight:600}
/* Quick views and filters. */
#app.rf-shell .kz-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
#app.rf-shell .kz-chip{display:inline-flex;align-items:center;height:28px;padding:0 11px;border:1px solid var(--kz-line);border-radius:999px;background:#fff;color:#374151;font:inherit;font-size:12.5px;font-weight:550;cursor:pointer}
#app.rf-shell .kz-chip:hover{border-color:#c9cfd6}
#app.rf-shell .kz-chip.is-current{border-color:var(--kz-accent-line);background:var(--kz-accent-soft);color:var(--kz-accent)}
#app.rf-shell .kz-chip .kx-count{margin-left:6px}
#app.rf-shell .kz-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 10px;min-width:0}
#app.rf-shell .kz-tools .kx-filterbar{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin:0}
#app.rf-shell .kz-tools .kx-filter-status{display:flex;align-items:center;gap:8px;margin:0;color:var(--kz-muted);font-size:12.5px}
#app.rf-shell .kz-tools .rf-filter{margin-left:auto}
/* The table. */
#app.rf-shell .kz-table{min-width:0;max-width:100%}
#app.rf-shell .kz-table .rf-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--kz-soft-line);border-radius:10px}
#app.rf-shell .kz-kw-table{width:100%;font-size:13.5px}
#app.rf-shell .kz-kw-table th{background:#fafbfb;color:#374151;font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap}
#app.rf-shell .kz-kw-table td{vertical-align:middle}
#app.rf-shell .kz-kw-table td.kz-col-kw{min-width:220px}
#app.rf-shell .kz-kw{display:inline;padding:0;border:0;background:none;color:#1f2933;font:inherit;font-weight:400;line-height:1.4;text-align:left;cursor:pointer;overflow-wrap:anywhere}
#app.rf-shell .kz-kw b{color:var(--kz-ink);font-weight:700}
#app.rf-shell .kz-kw:hover{color:var(--kz-accent);text-decoration:underline;text-underline-offset:3px}
#app.rf-shell .kz-kw:hover b{color:var(--kz-accent)}
#app.rf-shell .kz-kw:focus-visible{outline:2px solid var(--kz-accent);outline-offset:2px;border-radius:3px}
#app.rf-shell .kz-kw+.kx-yours{display:block}
#app.rf-shell .kz-intent{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#f1f3f5;color:#374151;font-size:11.5px;font-weight:750;cursor:help}
#app.rf-shell .kz-intent.is-informational{background:#e0ecff;color:#1d4ed8}
#app.rf-shell .kz-intent.is-navigational{background:#f3e8ff;color:#7e22ce}
#app.rf-shell .kz-intent.is-commercial{background:#fdf1d6;color:#a16207}
#app.rf-shell .kz-intent.is-transactional{background:#dcf5e6;color:#0f6b4e}
#app.rf-shell .kz-intent.is-local{background:#e0f2fe;color:#0369a1}
#app.rf-shell .kz-kd{display:inline-flex;align-items:center;gap:0;white-space:nowrap}
#app.rf-shell .kz-dot{display:inline-block;flex:none;width:9px;height:9px;margin-right:7px;border-radius:50%;background:#9aa3af}
#app.rf-shell .kz-dot.is-green{background:#16a34a}
#app.rf-shell .kz-dot.is-amber{background:#f5a524}
#app.rf-shell .kz-dot.is-orange{background:#f97316}
#app.rf-shell .kz-dot.is-red{background:#ef4444}
#app.rf-shell .kz-col-date{color:var(--kz-muted);font-size:12.5px;white-space:nowrap}
#app.rf-shell .kz-loading{display:flex;align-items:center;gap:8px;margin:0;padding:22px 18px;color:var(--kz-muted);font-size:13px}
#app.rf-shell .kz-loading .ic{width:16px;height:16px;animation:kz-spin 1s linear infinite}
@keyframes kz-spin{to{transform:rotate(360deg)}}
#app.rf-shell .kz-magic>.rf-source{margin:4px 18px 14px}
/* Topic summary: one compact strip of equal tiles, the two mix bars side by side, rounded quick-win pills. */
#app.rf-shell .kz-topic{margin:0 0 16px;padding:0 0 4px;overflow:hidden}
#app.rf-shell .kz-topic-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:14px 18px 0}
#app.rf-shell .kz-topic-head h2{margin:0;color:var(--kz-ink);font-size:16px;font-weight:700;letter-spacing:-.01em}
#app.rf-shell .kz-topic-head p{margin:0;color:var(--kz-muted);font-size:12.5px}
#app.rf-shell .kz-tstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:12px 18px 0;border:1px solid var(--kz-soft-line);border-radius:10px;overflow:hidden}
#app.rf-shell .kz-tstat{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:10px 14px;box-shadow:-1px 0 0 var(--kz-soft-line),0 -1px 0 var(--kz-soft-line);cursor:help}
#app.rf-shell .kz-tstat small{max-width:100%;overflow:hidden;color:var(--kz-muted);font-size:11.5px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
#app.rf-shell .kz-tstat strong{color:var(--kz-ink);font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
#app.rf-shell .kz-tstat .kx-honest-badge{font-size:10.5px}
#app.rf-shell .kz-mixes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding:12px 18px 0}
#app.rf-shell .kz-mixes>div>small{display:block;margin-bottom:6px;color:var(--kz-muted);font-size:12px;font-weight:500}
#app.rf-shell .kz-wins{padding:12px 18px 12px}
#app.rf-shell .kz-wins>small{display:flex;align-items:center;gap:6px;margin-bottom:8px;color:var(--kz-muted);font-size:12px;font-weight:500}
#app.rf-shell .kz-wins>small .ic{width:14px;height:14px;color:#d97706}
#app.rf-shell .kz-win-list{display:flex;flex-wrap:wrap;gap:8px}
#app.rf-shell .kz-win{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:32px;padding:4px 13px;border:1px solid var(--kz-accent-line);border-radius:999px;background:#f6fbf8;color:var(--kz-ink);font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
#app.rf-shell .kz-win small{flex:none;color:var(--kz-muted);font-size:12px;font-weight:500;white-space:nowrap}
#app.rf-shell .kz-win:hover{border-color:var(--kz-accent);background:var(--kz-accent-soft);color:var(--kz-accent)}
#app.rf-shell .kz-win:focus-visible{outline:2px solid var(--kz-accent);outline-offset:2px}
@media(max-width:900px){
  #app.rf-shell .kz-body{grid-template-columns:minmax(0,1fr)}
  #app.rf-shell .kz-words{padding:10px 0;border-right:0;border-bottom:1px solid var(--kz-soft-line)}
  #app.rf-shell .kz-words header{display:flex;align-items:center;justify-content:space-between;padding:0 14px 8px}
  #app.rf-shell .kz-words ul{display:flex;gap:6px;max-height:none;padding:0 14px 2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  #app.rf-shell .kz-words li{flex:none}
  #app.rf-shell .kz-word{gap:6px;min-height:30px;padding:0 11px;border:1px solid var(--kz-line);border-radius:999px;background:#fff}
  #app.rf-shell .kz-word.is-current{box-shadow:none;border-color:var(--kz-accent-line)}
}
@media(max-width:720px){
  #app.rf-shell .kz-hero{margin:18px auto 24px}
  #app.rf-shell .kz-title{font-size:27px}
  #app.rf-shell .kz-sub{font-size:14.5px}
  #app.rf-shell .kz-bar,#app.rf-shell .kz-bar.is-slim{flex-wrap:wrap;gap:6px;height:auto;padding:6px;border-radius:14px}
  #app.rf-shell .kz-cell,#app.rf-shell .is-slim .kz-cell{flex:1 1 calc(50% - 6px);height:44px;padding:0 12px;border:1px solid var(--kz-soft-line);border-radius:10px}
  #app.rf-shell .kz-cell:first-child{border-left:1px solid var(--kz-soft-line)}
  #app.rf-shell .kz-cell-keyword{order:-1;flex-basis:100%!important}
  #app.rf-shell .kz-cell-mode{flex-basis:100%!important}
  #app.rf-shell .kz-cell-mode select{width:100%}
  #app.rf-shell .kz-go,#app.rf-shell .is-slim .kz-go{flex:1 1 100%;width:auto;height:44px;border-radius:10px}
  /* Results: keyword + search button on one row, list / country / language on the next. */
  #app.rf-shell .is-slim .kz-cell{flex:1 1 calc(33% - 6px);height:40px;padding:0 8px}
  #app.rf-shell .is-slim .kz-cell :is(input,select){font-size:13.5px}
  #app.rf-shell .is-slim .kz-cell-keyword{flex:1 1 calc(100% - 52px)!important;order:-2}
  #app.rf-shell .is-slim .kz-cell-mode{flex-basis:calc(33% - 6px)!important;padding-left:8px}
  #app.rf-shell .is-slim .kz-go{order:-1;flex:0 0 44px;width:44px;height:40px}
  #app.rf-shell .kz-dock-meta{width:100%;justify-content:space-between}
  #app.rf-shell .kz-head h1{font-size:19px}
  #app.rf-shell .kz-tabs{padding:0 10px}
  #app.rf-shell .kz-tab{padding:0 9px;font-size:13.5px}
  #app.rf-shell .kz-stats{padding:12px 14px}
  #app.rf-shell .kz-stat{margin-right:14px;padding-right:14px}
  #app.rf-shell .kz-stat strong{font-size:18px}
  #app.rf-shell .kz-main{padding:10px 12px 4px}
  #app.rf-shell .kz-tools .rf-filter{flex:1 1 100%;margin-left:0}
  #app.rf-shell .kz-tstats{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 14px 0}
  #app.rf-shell .kz-topic-head,#app.rf-shell .kz-mixes,#app.rf-shell .kz-wins{padding-left:14px;padding-right:14px}
  #app.rf-shell .kz-mixes{grid-template-columns:minmax(0,1fr)}
  #app.rf-shell .kz-win{flex-wrap:wrap;gap:2px 8px}
}
@media(prefers-reduced-motion:reduce){#app.rf-shell :is(.kz-bar,.kz-go,.kz-win){transition:none}#app.rf-shell .kz-loading .ic{animation:none}}
/* ==== end Keyword Research redesign (kz) ==== */
/* Without Keyword Planner: one quiet line under the bar; the long explanation lives in the info icon's tooltip. */
#app.rf-shell .kz-provider{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin:0;color:var(--kz-muted);font-size:12.5px;line-height:1.4;text-align:left}
#app.rf-shell .kz-search.is-docked .kz-provider{justify-content:flex-start}
#app.rf-shell .kz-provider-info{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;color:#9aa3af;cursor:help}
#app.rf-shell .kz-provider-info:focus-visible{outline:2px solid var(--kz-accent);outline-offset:2px}
#app.rf-shell .kz-provider-info .ic{width:15px;height:15px}
#app.rf-shell .kz-provider-link{padding:0;border:0;background:none;color:var(--kz-accent);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#app.rf-shell .kz-provider-link:hover{color:var(--kz-accent-hover)}
/* Start screen below the hero: the Search Console table and a sticky side column. */
#app.rf-shell .kz-landing{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,1fr);align-items:start;gap:16px;margin:0}
#app.rf-shell .kz-landing.is-single{grid-template-columns:minmax(0,1fr)}
#app.rf-shell .kz-landing.is-single .kz-side{position:static;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
#app.rf-shell .kz-side{position:sticky;top:16px;display:grid;gap:12px;min-width:0}
#app.rf-shell .kz-start{min-width:0;border:1px solid var(--kz-line);border-radius:12px;background:#fff;overflow:hidden}
#app.rf-shell .kz-start-head{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 14px;border-bottom:1px solid var(--kz-soft-line)}
#app.rf-shell .kz-start-icon{display:grid;flex:none;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--kz-accent-soft);color:var(--kz-accent)}
#app.rf-shell .kz-start-icon .ic{width:15px;height:15px}
#app.rf-shell .kz-start-title{flex:1;min-width:0}
#app.rf-shell .kz-start-title h3{margin:0;color:var(--kz-ink);font-size:14px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
#app.rf-shell .kz-start-title p{margin:1px 0 0;color:var(--kz-muted);font-size:12.5px;line-height:1.35}
#app.rf-shell .kz-tag{flex:none;padding:3px 8px;border-radius:999px;background:#f3f4f6;color:#5b6472;font-size:11.5px;font-weight:600;white-space:nowrap}
#app.rf-shell .kz-ghost{display:inline-flex;flex:none;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid var(--kz-line);border-radius:8px;background:#fff;color:#374151;font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer}
#app.rf-shell .kz-ghost:hover{border-color:var(--kz-accent-line);color:var(--kz-accent)}
#app.rf-shell .kz-ghost .ic{width:14px;height:14px}
#app.rf-shell .kz-link{padding:0;border:0;background:none;color:var(--kz-accent);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer}
#app.rf-shell .kz-link:hover{text-decoration:underline;text-underline-offset:3px}
#app.rf-shell .kz-site-scroll{max-width:100%;overflow-x:auto}
#app.rf-shell .kz-site-table{width:100%;border-collapse:collapse;font-size:13.5px}
#app.rf-shell .kz-site-table th{height:36px;padding:0 14px;border-bottom:1px solid var(--kz-soft-line);background:#fafbfb;color:#374151;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}
#app.rf-shell .kz-site-table th.num,#app.rf-shell .kz-site-table td.num{text-align:right}
#app.rf-shell .kz-site-table th .kx-th{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
#app.rf-shell .kz-site-table th .kx-th .ic{width:12px;height:12px;color:#9aa3af}
#app.rf-shell .kz-site-table th .kx-th.is-active,#app.rf-shell .kz-site-table th .kx-th.is-active .ic{color:var(--kz-accent)}
#app.rf-shell .kz-site-table td{height:44px;padding:0 14px;border-bottom:1px solid #f2f3f5;color:#374151;font-variant-numeric:tabular-nums}
#app.rf-shell .kz-site-table tr:last-child td{border-bottom:0}
#app.rf-shell .kz-site-table tbody tr:hover{background:#f6faf8}
#app.rf-shell .kz-site-kw{max-width:100%;padding:0;border:0;background:none;color:var(--kz-ink);font:inherit;font-size:13.5px;font-weight:550;text-align:left;cursor:pointer;overflow-wrap:anywhere}
#app.rf-shell .kz-site-kw:hover{color:var(--kz-accent);text-decoration:underline;text-underline-offset:3px}
#app.rf-shell .kz-imp{display:inline-flex;align-items:center;gap:8px}
#app.rf-shell .kz-imp b{min-width:44px;font-weight:550}
#app.rf-shell .kz-imp-track{fill:#eef0f2}
#app.rf-shell .kz-imp-fill{fill:var(--kz-accent);opacity:.75}
#app.rf-shell .kz-pos{display:inline-grid;place-items:center;min-width:30px;height:22px;padding:0 7px;border-radius:6px;font-size:12px;font-weight:700}
#app.rf-shell .kz-pos.is-top{background:#16a34a;color:#fff}
#app.rf-shell .kz-pos.is-page1{background:#dcf5e6;color:#0f6b4e}
#app.rf-shell .kz-pos.is-close{background:#fdf1d6;color:#a16207}
#app.rf-shell .kz-pos.is-far{background:#f1f3f5;color:#5b6472}
#app.rf-shell .kz-site-go-cell{width:44px;padding:0 10px 0 0!important;text-align:right}
#app.rf-shell .kz-site-go{display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--kz-accent);opacity:0;cursor:pointer;transition:opacity .15s,background .15s}
#app.rf-shell .kz-site-go .ic{width:15px;height:15px}
#app.rf-shell .kz-site-table tr:hover .kz-site-go,#app.rf-shell .kz-site-go:focus-visible{opacity:1}
#app.rf-shell .kz-site-go:hover{background:var(--kz-accent-soft)}
#app.rf-shell .kz-site-foot{padding:8px 14px;border-top:1px solid var(--kz-soft-line);text-align:center}
#app.rf-shell .kz-recent{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px 12px}
#app.rf-shell .kz-recent-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;padding:0 10px;border:1px solid var(--kz-line);border-radius:999px;background:#fff;color:#1f2933;font:inherit;font-size:12.5px;font-weight:550;cursor:pointer}
#app.rf-shell .kz-recent-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.rf-shell .kz-recent-chip .ic{flex:none;width:12px;height:12px;color:#9aa3af}
#app.rf-shell .kz-recent-chip:hover{border-color:var(--kz-accent-line);background:var(--kz-accent-soft);color:var(--kz-accent)}
#app.rf-shell .kz-checks{display:grid;gap:7px;margin:0;padding:10px 14px 12px;list-style:none}
#app.rf-shell .kz-checks li{display:flex;align-items:flex-start;gap:8px;color:var(--kz-muted);font-size:12.5px;line-height:1.4}
#app.rf-shell .kz-checks li .ic{flex:none;width:14px;height:14px;margin-top:2px;color:var(--kz-accent)}
#app.rf-shell .kz-checks b{color:var(--kz-ink);font-weight:600}
@media(max-width:1100px){#app.rf-shell .kz-landing{grid-template-columns:minmax(0,1fr)}#app.rf-shell .kz-side{position:static;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}
@media(max-width:720px){
  #app.rf-shell .kz-site .kz-start-head{flex-wrap:wrap}
  #app.rf-shell .kz-site .kz-start-title{flex-basis:calc(100% - 40px)}
  #app.rf-shell .kz-site .kz-tag{margin-left:38px}
  #app.rf-shell .kz-site .kz-ghost{margin-left:auto}
  #app.rf-shell .kz-site-table th,#app.rf-shell .kz-site-table td{padding:0 10px}
  #app.rf-shell .kz-imp-bar{display:none}
  #app.rf-shell .kz-site-go{opacity:1}
}
@media(hover:none){#app.rf-shell .kz-site-go{opacity:1}}

/* 2026-11-23 search bar polish: the app-wide input focus style drew a second rounded box inside the pill; the bar now
   has one outline, a softer shadow and one focus ring. */
#app.rf-shell .kz-cell :is(input,select):is(:focus,:focus-visible,:hover){outline:none!important;box-shadow:none!important;border:0!important;background:transparent!important}
#app.rf-shell .kz-bar{border:1px solid #dfe4e8;box-shadow:0 1px 2px rgba(16,24,40,.04),0 6px 20px -8px rgba(16,24,40,.12)}
#app.rf-shell .kz-bar:focus-within{border-color:#1d644a;box-shadow:0 0 0 3px rgba(29,100,74,.12),0 6px 20px -8px rgba(16,24,40,.12)}

/* 2026-11-23 dark mode: app-dark.css gives every #app-content input and select the raised-control fill and border, which
   drew a box around each cell inside the pill. The cells stay seamless, as in light mode; the pill keeps its own fill.
   The :not() chain matches app-dark's selector so this rule outranks it. */
html[data-theme="dark"] #app.rf-shell #app-content .kz-bar .kz-cell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select),
html[data-theme="dark"] #app.rf-shell #app-content .kz-bar .kz-cell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select):is(:hover,:focus,:focus-visible){background:transparent!important;background-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important}
/* Metric notes on the keyword overview wrap instead of being cut off mid-word ("It is n…"). */
#app.rf-shell .kx-live-metrics .rf-metric-foot small{min-width:0;white-space:normal;overflow:visible;text-overflow:clip}
/* Results header (2026-11-23): the docked search row sits centred, bar capped so it doesn't stretch edge to edge. */
#app.rf-shell .kz-search.is-docked .kz-dock{justify-content:center}
#app.rf-shell .kz-search.is-docked .kz-bar.is-slim{flex:0 1 960px}
@media (max-width:900px){#app.rf-shell .kz-search.is-docked .kz-bar.is-slim{flex:1 1 100%}#app.rf-shell .kz-search.is-docked .kz-dock-meta{justify-content:center;width:100%}}
