/* Question Explorer and keyword suggestion tools: shared by the free tool pages and the app view (views/question-explorer.js
   loads this file itself). Colours follow the free tool pages (tool-pages.css). Everything is scoped under .qe-*. */
.qe-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.qe-form{display:grid;gap:12px}
.qe-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.qe-row input[type="text"],.qe-row input[type="search"]{width:100%;box-sizing:border-box}
.qe-seed{width:100%;box-sizing:border-box;height:48px;padding:0 14px;border:1px solid #cfd9d5;border-radius:12px;background:#fff;color:#142f33;font:inherit;font-size:16px}
.qe-seed:focus{outline:2px solid #1d6b3f;outline-offset:1px;border-color:#1d6b3f}
.qe-go{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border:0;border-radius:12px;background:#203e44;color:#fff;font:inherit;font-size:15px;font-weight:650;cursor:pointer;white-space:nowrap}
.qe-go:hover{background:#142f33}.qe-go[disabled]{opacity:.6;cursor:progress}
.qe-options{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.qe-options>label,.qe-opt{display:inline-flex;align-items:center;gap:6px;color:#3c5356;font-size:13.5px}
.qe-options>label>select{height:36px;max-width:100%;padding:0 8px;border:1px solid #cfd9d5;border-radius:10px;background:#fff;color:#142f33;font:inherit;font-size:13.5px}
.qe-platforms{display:flex;flex-wrap:wrap;gap:6px}
.qe-platforms label{gap:0}
.qe-platforms input{position:absolute;opacity:0;pointer-events:none}
.qe-platforms span{display:inline-flex;align-items:center;height:34px;padding:0 13px;border:1px solid #cfd9d5;border-radius:999px;background:#fff;color:#2d4a4d;font-size:13px;font-weight:600;cursor:pointer}
.qe-platforms input:checked+span{background:#203e44;border-color:#203e44;color:#fff}
.qe-platforms input:focus-visible+span{outline:2px solid #1d6b3f;outline-offset:2px}
.qe-note{margin:0;color:#5d7171;font-size:12.5px}
/* App view: mode tabs use the app's own .rf-tabs; keep a little air under them. */
.pg-question-explorer .qe-modes{margin:0 0 14px}
.pg-question-explorer .qe-card{padding:16px 18px;margin-bottom:16px}
.pg-question-explorer .qe-out{margin-bottom:16px}

.qe-out{display:grid;gap:14px;min-width:0}
.qe-summary{display:grid;gap:10px}
.qe-summary-head h2{margin:0;font-size:clamp(20px,2.2vw,26px);letter-spacing:-.02em;color:#142f33;overflow-wrap:anywhere}
.qe-summary-head p{margin:4px 0 0;color:#5d7171;font-size:13px}
.qe-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.qe-counts li{display:grid;gap:2px;padding:10px 12px;border:1px solid #e1e8e4;border-radius:12px;background:#fff}
.qe-counts b{font-size:22px;font-weight:700;color:#142f33;font-variant-numeric:tabular-nums}
.qe-counts span{color:#5f716f;font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase}
.qe-legend{margin:0;color:#5d7171;font-size:12.5px}
.qe-warn{margin:0;padding:8px 12px;border-radius:10px;background:#fff4d6;color:#7a4f00;font-size:13px}

.qe-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.qe-tab{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:1px solid #d6dfdb;border-radius:999px;background:#fff;color:#2d4a4d;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.qe-tab span{color:#5f716f;font-weight:600;font-variant-numeric:tabular-nums}
.qe-tab[aria-pressed="true"]{background:#203e44;border-color:#203e44;color:#fff}
.qe-tab[aria-pressed="true"] span{color:#d5e4df}

.qe-toolbar{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.qe-views{display:inline-flex;border:1px solid #cfd9d5;border-radius:10px;overflow:hidden}
.qe-views button{height:34px;padding:0 14px;border:0;background:#fff;color:#2d4a4d;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.qe-views button[aria-pressed="true"]{background:#eef4f1;color:#1d6b3f}
.qe-filter input{height:34px;width:200px;max-width:100%;box-sizing:border-box;padding:0 10px;border:1px solid #cfd9d5;border-radius:10px;font:inherit;font-size:13px}
.qe-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.qe-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border:1px solid #cfd9d5;border-radius:10px;background:#fff;color:#203e44;font:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer}
.qe-btn:hover{border-color:#203e44}
.qe-btn-dark{background:#203e44;border-color:#203e44;color:#fff}
.qe-btn-dark:hover{background:#142f33}

.qe-body{min-width:0}
.qe-wheel{margin:0;padding:8px;border:1px solid #e1e8e4;border-radius:16px;background:#fbfcfb}
.qe-wheel svg{display:block;width:100%;max-width:1100px;height:auto;margin:0 auto}
.qe-wheel figcaption{margin-top:6px;color:#5d7171;font-size:12.5px;text-align:center}
.qe-spoke{stroke:var(--qe-c);stroke-width:2.5;opacity:.55}
.qe-twig{fill:none;stroke:var(--qe-c);stroke-width:1;opacity:.35}
/* The marketing pages style every svg text (home-kit.css, landing.css); the wheel keeps its own. */
.qe-wheel svg text.qe-leaf{fill:#142f33!important;font:500 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important}
.qe-wheel a:hover text.qe-leaf,.qe-wheel a:focus text.qe-leaf{fill:var(--qe-c)!important;text-decoration:underline}
.qe-node circle{fill:var(--qe-c)}
.qe-wheel .qe-node text{fill:#fff!important;font:700 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important}
.qe-wheel .qe-node text.qe-more{fill:#4b5f61!important;font-weight:600!important;font-size:11px!important}
.qe-center circle{fill:#203e44}
.qe-wheel .qe-center text{fill:#fff!important;font:700 16px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important}

.qe-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.qe-group{min-width:0;border:1px solid #e1e8e4;border-top:3px solid var(--qe-c);border-radius:14px;background:#fff}
.qe-group header{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef2ef}
.qe-group h3{margin:0;font-size:15px;font-weight:700;color:#142f33;overflow-wrap:anywhere}
.qe-count{color:#5f716f;font-size:12.5px;font-weight:600}
.qe-copy{margin-left:auto;height:28px;padding:0 10px;border:1px solid #d6dfdb;border-radius:8px;background:#fff;color:#203e44;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.qe-group ol{margin:0;padding:6px 12px 10px 34px;display:grid;gap:4px}
.qe-group li{color:#20373a;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.qe-group li a{color:inherit;text-decoration:none}
.qe-group li a:hover{color:var(--qe-c);text-decoration:underline}
.qe-src{display:inline-flex;gap:3px;margin-left:6px;vertical-align:1px}
.qe-src abbr,.qe-legend abbr{display:inline-grid;place-items:center;min-width:18px;height:16px;padding:0 3px;border-radius:5px;background:#eef2f6;color:#334155;font-size:10px;font-weight:700;text-decoration:none;font-style:normal}
abbr.qe-src-google{background:#e7f0fe;color:#1a56c4}abbr.qe-src-youtube{background:#fde8e8;color:#b42318}abbr.qe-src-bing{background:#e3f4f4;color:#0f6b6b}abbr.qe-src-amazon{background:#fff1dc;color:#8a5200}
.qe-empty{margin:0;padding:18px;border:1px dashed #d6dfdb;border-radius:12px;color:#5d7171;text-align:center}
.qe-loading{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid #e1e8e4;border-radius:14px;background:#fff}
.qe-loading p{margin:4px 0 0;color:#5d7171;font-size:13px}
.qe-spinner{flex:none;width:26px;height:26px;border:3px solid #dfe7e3;border-top-color:#1d6b3f;border-radius:50%;animation:qe-spin .8s linear infinite}
@keyframes qe-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.qe-spinner{animation-duration:2.4s}}
.qe-error{padding:14px 16px;border:1px solid #f0c9c3;border-radius:14px;background:#fff8f6;color:#7a2416}
.qe-error p{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.qe-usage{margin:0;color:#5d7171;font-size:12.5px}

@media (max-width:560px){
  .qe-row{grid-template-columns:1fr}
  .qe-go{width:100%}
  .qe-actions{margin-left:0}
  .qe-filter,.qe-filter input{width:100%}
  .qe-list{grid-template-columns:1fr}
  .qe-options>label,.qe-opt{flex:1 1 140px}
  .qe-options>label>select{flex:1;min-width:0}
}
