/* Quicksift Bench: dark page, one centered column of search plugins. */
:root {
	--qsb-bg: #0e1116;
	--qsb-card: #151a21;
	--qsb-line: #232a34;
	--qsb-text: #e6e8ec;
	--qsb-mute: #9aa3af;
	--qsb-dim: #6b7380;
	--qsb-us: #3b82f6;
	--qsb-hit-bg: #14361f;
	--qsb-hit: #4ade80;
	--qsb-miss-bg: #262b33;
	--qsb-miss: #a3acb9;
	--qsb-err: #fca5a5;
	/* No color-scheme: dark here: the plugins' forms keep the light controls they have on an ordinary site. */
}

html { background: var(--qsb-bg); }

body.qsb {
	margin: 0;
	background: var(--qsb-bg);
	color: var(--qsb-text);
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.qsb a { color: #93c5fd; }

.qsb-head { max-width: 760px; margin: 0 auto; padding: 18px 16px 6px; text-align: center; }
.qsb-nav { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 26px; }
.qsb-nav a { text-decoration: none; }
.qsb-brand { font-weight: 700; color: var(--qsb-text) !important; }
.qsb-head h1 { margin: 0; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.3px; line-height: 1.2; }
.qsb-lead { color: var(--qsb-mute); margin: 10px auto 0; max-width: 640px; }
.qsb-tries { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; margin: 16px 0 6px; color: var(--qsb-mute); font-size: 13px; }
.qsb-chip { border: 1px solid #2a313c; background: #161b22; color: #cbd2dc; border-radius: 99px; padding: 5px 12px; font: inherit; cursor: pointer; }
.qsb-chip:hover, .qsb-chip:focus-visible { border-color: var(--qsb-hit); color: var(--qsb-hit); }
.qsb-rules { color: var(--qsb-dim); font-size: 13px; margin: 6px 0; }
.qsb-status { min-height: 1.45em; margin: 4px 0 14px; font-size: 14px; color: #fde68a; }

.qsb-scale { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--qsb-mute); margin: 0 auto 26px; max-width: 680px; }
.qsb-scale > span { white-space: nowrap; line-height: 8px; }
.qsb-scale-bar { position: relative; flex: 1; height: 26px; margin: 0 14px; }
.qsb-scale-bar i { display: block; height: 8px; border-radius: 9px; background: linear-gradient(90deg, rgb(187 247 208), rgb(34 197 94), rgb(234 179 8), rgb(249 115 22), rgb(239 68 68), rgb(127 29 29)); }
.qsb-scale-bar b { position: absolute; top: 12px; transform: translateX(-50%); font-weight: 400; color: var(--qsb-dim); font-size: 11px; white-space: nowrap; }

.qsb-col { max-width: 680px; margin: 0 auto; padding: 0 16px 30px; display: flex; flex-direction: column; gap: 16px; }
.qsb-hint { color: var(--qsb-dim); font-size: 13px; text-align: center; margin: 0; }

.qsb-lane { background: var(--qsb-card); border: 1px solid var(--qsb-line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.qsb-lane.qsb-us { border-color: var(--qsb-us); box-shadow: 0 0 0 1px var(--qsb-us) inset, 0 8px 30px -10px rgb(59 130 246 / 50%); }
.qsb-lane.qsb-busy { border-color: #64748b; }
.qsb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.qsb-name { font-weight: 600; font-size: 16px; min-width: 0; }
.qsb-free { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid #22c55e66; border-radius: 999px; background: #22c55e1a; color: #4ade80; font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: 0.02em; text-transform: lowercase; vertical-align: 2px; }
.qsb-name small { display: block; font-weight: 400; color: #8b94a1; font-size: 12px; }
.qsb-result { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.qsb-sec { font: 700 34px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -1px; color: var(--qsb-dim); white-space: nowrap; }
.qsb-sec small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.qsb-sec.qsb-word { font-size: 16px; letter-spacing: 0; font-weight: 600; }
.qsb-sec.qsb-bad { color: var(--qsb-err); }
.qsb-cache { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
[hidden] { display: none !important; }
.qsb-cache svg { width: 16px; height: 16px; }
.qsb-cache.qsb-hit { background: var(--qsb-hit-bg); color: var(--qsb-hit); }
.qsb-cache.qsb-miss { background: var(--qsb-miss-bg); color: var(--qsb-miss); }

/* The plugins' own forms keep their own look; only the width is ours. */
.qsb-form { position: relative; min-width: 0; }
.qsb-form > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.qsb-form .search-form { display: flex; gap: 6px; margin: 0; }
.qsb-form .search-form label { flex: 1; display: flex; }
.qsb-form .search-form input[type="search"] { flex: 1; min-width: 0; padding: 6px 8px; font-size: 15px; }
.qsb-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.qsb-toggle { margin-top: 12px; background: none; border: 1px solid var(--qsb-line); color: #cbd2dc; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.qsb-toggle:hover, .qsb-toggle:focus-visible { border-color: #64748b; }
.qsb-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #c4cbd5; counter-reset: qsb; }
.qsb-list li { counter-increment: qsb; padding: 6px 0; border-top: 1px solid #1f252e; display: flex; justify-content: space-between; gap: 10px; }
.qsb-list li a { color: var(--qsb-text); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.qsb-list li a::before { content: counter(qsb) ". "; color: var(--qsb-dim); }
.qsb-list li a:hover { text-decoration: underline; }
.qsb-list .qsb-price { color: #8b94a1; white-space: nowrap; }
.qsb-list .qsb-none { color: var(--qsb-mute); font-style: italic; }

.qsb-foot { max-width: 680px; margin: 0 auto; padding: 10px 16px 50px; color: var(--qsb-dim); font-size: 12.5px; }

@media (max-width: 520px) {
	.qsb-top { flex-wrap: wrap; }
	.qsb-sec { font-size: 28px; }
	.qsb-scale > span { display: none; }
}
