/* Quality guide, flat perplexity: loaded only on the guide's page, after style.css. */
.qa-f-text { margin: 0; min-height: 1.6em; font: 500 16px/1.6 var(--sans); }
.qa-f-prompt { color: var(--soft); }
.qa-f-tok { color: var(--quiet); border-radius: 4px; text-decoration: underline transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .4s, background .4s, text-decoration-color .4s; }
.qa-f-tok.done { color: var(--fg); }
.qa-f-tok.moved { text-decoration-color: var(--red); }
.qa-f-tok.now { background: var(--glow); }
.qa-f-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: -10px; }
.qa-f-head .label { margin: 0; }
.qa-f-read { font: 600 13px var(--mono); color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qa-f-chart { position: relative; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; }
.qa-f-a { height: 92px; }
.qa-f-b { height: 72px; border-bottom: 1px solid var(--border-strong); }
.qa-f-dir { position: absolute; right: 0; font: 10.5px var(--mono); color: var(--quiet); pointer-events: none; }
.qa-f-dir.up { top: 0; }
.qa-f-dir.down { bottom: 0; }
.qa-f-zero { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--border-strong); }
.qa-f-col { position: relative; }
.qa-f-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 2px; transition: height .55s cubic-bezier(.2, .8, .2, 1), bottom .55s cubic-bezier(.2, .8, .2, 1); }
.qa-f-a .qa-f-bar { background: var(--soft); }
.qa-f-a .qa-f-bar.better { background: var(--purple); }
.qa-f-b .qa-f-bar { background: var(--border-strong); border-radius: 2px 2px 0 0; }
.qa-f-b .qa-f-bar.far { background: var(--red); }
.qa-f-verdict { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; opacity: 0; transition: opacity .5s; }
.qa-f-verdict.on { opacity: 1; }
.qa-f-v.fail { border-color: var(--red); color: var(--red); }

@media (max-width: 600px) {
  .qa-f-text { font-size: 14.5px; min-height: 3.2em; }
  .qa-f-verdict { min-height: 64px; align-content: start; }
  .qa-f-chart { gap: 3px; }
  .qa-f-read { font-size: 12px; }
  .qa-f-head { flex-wrap: wrap; gap: 2px 10px; }
  .qa-f-v { font-size: 12px; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-f-bar, .qa-f-tok, .qa-f-verdict { transition: none; }
}
