/* ============================================================================
   问题状态 · 五类 × 名单（契约 ㉔，24 号文 S63）
   ────────────────────────────────────────────────────────────────────────────
   版式照 `设计样板/立邦-问题状态-按问题类型-一屏样稿.html`。
   单独一个文件：这一页的类名全带 `qs-` 前缀，和老「问题 × 引擎」矩阵的 .die / .legend 不打架
   （老矩阵收在页尾折叠里，两套同屏）。

   颜色只用控制台已有的 token；样张上多出来的四样（条形用的实色、「没提到」的浅灰、
   竞品紫）在下面第一块里**本文件内定义**，幽灵 token 守卫认同文件局部变量。
   三态都写：浅色默认 / 显式深色 / 跟随系统的深色。

   两条不许动的（S63 任务 3）：
     · .t-unjudged 实心灰底 + 「?」，.t-nodata 斜纹 + 「–」：**长得不许一样**；
     · .t-part 用于 unverified（给了具体数，我们没真值核）：**黄，不是红**。
   ============================================================================ */

:root {
  --qs-ok-solid:   #34c724;
  --qs-warn-solid: #ff8800;
  --qs-bad-solid:  #f54a45;
  --qs-none:       #c9cdd4;
  --qs-unj:        #8f959e;
  --qs-rival:      #8f5cff;
  --qs-rival-wash: #f1ebff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --qs-ok-solid:   #4fbf40;
    --qs-warn-solid: #e08a2a;
    --qs-bad-solid:  #e0524d;
    --qs-none:       #5a5e66;
    --qs-unj:        #7d838c;
    --qs-rival:      #a98aff;
    --qs-rival-wash: #2b2245;
  }
}
:root[data-theme="dark"] {
  --qs-ok-solid:   #4fbf40;
  --qs-warn-solid: #e08a2a;
  --qs-bad-solid:  #e0524d;
  --qs-none:       #5a5e66;
  --qs-unj:        #7d838c;
  --qs-rival:      #a98aff;
  --qs-rival-wash: #2b2245;
}

.qs { gap: 12px; }
.qs .qs-muted { color: var(--ink-3); }

/* ---------- 页首 ---------- */
.qs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.qs-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.qs-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.65; max-width: 68ch; }
.qs-picker { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.qs-picker .qs-lab { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.qs-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.qs-seg button { border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; padding: 5px 12px; cursor: pointer; }
.qs-seg button:first-child { border-left: 0; }
.qs-seg button:hover:not([disabled]):not([aria-pressed="true"]) { background: var(--surface-2); }
.qs-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.qs-seg button[disabled] { color: var(--ink-3); cursor: not-allowed; }
.qs-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qs-seg.big button { font-size: 13px; padding: 6px 14px; font-weight: 500; }
.qs-seg button small { font-weight: 400; opacity: .75; margin-left: 4px; font-family: var(--fs-mono); }

/* ---------- 一句话 ---------- */
.qs-verdict { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.qs-verdict h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.55; color: var(--ink); flex: 1 1 40em; }
.qs-asked { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 卡 + 分类条 ---------- */
.qs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.qs-pad, .qs-pad-x { padding: 8px 16px; }
.qs-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.qs-tab { background: transparent; border: 0; border-right: 1px solid var(--line-soft); padding: 9px 13px 8px; text-align: left; cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.qs-tab:first-child { border-top-left-radius: 10px; }
.qs-tab:last-child { border-right: 0; border-top-right-radius: 10px; }
.qs-tab:hover { background: var(--surface-2); }
.qs-tab[aria-pressed="true"] { background: var(--accent-wash); }
.qs-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.qs-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qs-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.qs-name { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-width: 0; }
.qs-worst { font-style: normal; font-size: 11px; font-weight: 500; color: var(--bad); }
.qs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--qs-none); flex: none; }
.qs-tab.lv-bad .qs-dot { background: var(--qs-bad-solid); }
.qs-tab.lv-warn .qs-dot { background: var(--qs-warn-solid); }
.qs-tab.lv-ok .qs-dot { background: var(--qs-ok-solid); }
.qs-tab.lv-unjudged .qs-dot { background: var(--qs-unj); }
.qs-n { font-family: var(--fs-mono); color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.qs-row2 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.qs-big { font-size: 20px; font-weight: 600; line-height: 1.1; font-family: var(--fs-mono); letter-spacing: -.01em; color: var(--ink-3); }
.qs-tab.lv-bad .qs-big { color: var(--bad); }
.qs-tab.lv-warn .qs-big { color: var(--warn); }
.qs-tab.lv-ok .qs-big { color: var(--ok); }
.qs-row2 .qs-lab { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-row3 { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--ink-3); }
.qs-row3 em { font-style: normal; color: var(--warn); font-weight: 500; }

/* 战绩条与列头汇总条共用的色块 */
.qs-bar, .qs-colbar { display: flex; overflow: hidden; gap: 1px; background: var(--line-soft); }
.qs-bar { height: 4px; border-radius: 2px; }
.qs-colbar { height: 5px; width: 52px; margin: 4px auto 0; border-radius: 3px; }
.qs-bar i, .qs-colbar i { display: block; height: 100%; }
.qs-f-ok { background: var(--qs-ok-solid); }
.qs-f-part { background: var(--qs-warn-solid); }
.qs-f-bad, .qs-f-amp { background: var(--qs-bad-solid); }
.qs-f-miss { background: var(--qs-none); }
.qs-f-rival { background: var(--qs-rival); }
.qs-f-unjudged { background: var(--qs-unj); }
.qs-f-nodata { background: repeating-linear-gradient(135deg, var(--qs-none) 0 2px, transparent 2px 4px); }

/* ---------- 详情头 + 流水线 ---------- */
.qs-dh { display: flex; align-items: baseline; gap: 14px; padding: 10px 16px 2px; flex-wrap: wrap; }
.qs-dh h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.qs-find { color: var(--ink-2); font-size: 12px; }
.qs-pipe-box { padding: 6px 16px 8px; }
.qs-pipe { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
.qs-st { display: flex; flex-direction: column; gap: 1px; padding: 5px 11px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; min-width: 132px; flex: 1 1 0; position: relative; }
.qs-st + .qs-st { margin-left: 20px; }
.qs-st + .qs-st::before { content: "→"; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; }
.qs-st .k { font-size: 11px; color: var(--ink-3); letter-spacing: .03em; white-space: nowrap; }
.qs-st .v { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.qs-st .v small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; line-height: 1.35; }
.qs-st.you { border-color: var(--accent-line); background: var(--accent-wash); }
.qs-st.you .k { color: var(--accent); }
.qs-st.auto .k::after { content: "自动"; font-size: 9px; border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; margin-left: 5px; color: var(--ink-3); }
.qs-pipe-note { margin: 5px 0 0; font-size: 11.5px; color: var(--warn); }

.qs-legend { display: flex; flex-wrap: wrap; gap: 4px 13px; padding: 0 16px 8px; font-size: 11px; color: var(--ink-3); align-items: center; }
.qs-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.qs-legend-r { margin-left: auto; }
.qs-badge-demo { font-style: normal; font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 4px; background: var(--qs-rival); color: #fff; }
.qs-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: inherit; cursor: pointer; padding: 0; }
.qs-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- 左表 + 右名单 ---------- */
.qs-split { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(290px, 1fr); border-top: 1px solid var(--line); }
.qs-wrap { overflow-x: auto; min-width: 0; }
.qs-mx { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: 12px; }
.qs-mx th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink-3); font-weight: 500; font-size: 11px; letter-spacing: .03em; text-align: center; padding: 6px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; vertical-align: bottom; }
.qs-mx th.qs-qcol { width: 42%; }
.qs-mx th small { display: block; font-weight: 400; }
.qs-mx .qs-l { text-align: left; padding-left: 16px; }
.qs-eng { color: var(--ink); font-size: 12px; font-weight: 600; display: block; }
.qs-eng.target::after { content: "要赢"; font-size: 9px; font-weight: 500; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 4px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }
.qs-mx td { padding: 5px 5px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; color: var(--ink); }
.qs-r { cursor: pointer; }
.qs-r:hover td { background: var(--surface-2); }
.qs-r[aria-expanded="true"] td { background: var(--accent-wash); }
.qs-r[aria-expanded="true"] td.qs-l { box-shadow: inset 3px 0 0 var(--accent); }
.qs-r:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qs-r.dim td { opacity: .32; }
.qs-r.off .qs-qtext { color: var(--ink-3); }
.qs-qtext { font-weight: 500; }
.qs-qmeta { color: var(--ink-3); font-size: 11px; margin-top: 1px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qs-heat { letter-spacing: .02em; }
.qs-heat-off { color: var(--qs-none); }
.qs-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--sunken); color: var(--ink-2); line-height: 1.6; }
.qs-mx td .qs-tag { white-space: nowrap; }
.qs-tag.rival { background: var(--qs-rival-wash); color: var(--qs-rival); }
.qs-tag.from { background: var(--accent-wash); color: var(--accent); }
.qs-tag.soft { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); }
.qs-tag.wait { background: var(--warn-wash); color: var(--warn); }
.qs-sum { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.qs-emptyrow { color: var(--ink-3); padding-top: 18px !important; padding-bottom: 18px !important; }

/* 一格 */
.qs-die { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 5px; font-size: 12px; font-weight: 600; border: 1px solid transparent; font-family: var(--fs-mono); position: relative; cursor: default; }
.qs-die.sm { min-width: 20px; height: 16px; font-size: 10px; border-radius: 4px; }
.qs-die.t-ok { background: var(--ok-wash); color: var(--ok); }
.qs-die.t-part { background: var(--warn-wash); color: var(--warn); }
.qs-die.t-bad { background: var(--qs-bad-solid); color: #fff; border-color: var(--bad); }
.qs-die.t-amp { background: var(--bad-wash); color: var(--bad); border-color: var(--qs-bad-solid); }
.qs-die.t-miss { background: transparent; color: var(--ink-3); border-color: var(--qs-none); }
.qs-die.t-rival { background: var(--qs-rival-wash); color: var(--qs-rival); }
.qs-die.t-nodata { background: repeating-linear-gradient(135deg, var(--sunken) 0 3px, transparent 3px 6px); color: var(--ink-3); border-color: var(--line); }
.qs-die.t-unjudged { background: var(--qs-unj); color: var(--surface); border-color: var(--qs-unj); cursor: help; }
.qs-badge { position: absolute; right: -6px; top: -7px; font-style: normal; font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 4px; background: var(--qs-rival); color: #fff; font-family: var(--fs-cjk); border: 1px solid var(--surface); }

/* 下一步 */
.qs-act { font: inherit; font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; border: 0; }
button.qs-act { cursor: pointer; }
button.qs-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.qs-act.fix { background: var(--bad-wash); color: var(--bad); }
.qs-act.page { background: var(--accent-wash); color: var(--accent); }
.qs-act.fill { background: var(--warn-wash); color: var(--warn); }
.qs-act.keep { background: var(--ok-wash); color: var(--ok); }
.qs-act.wait { background: var(--sunken); color: var(--ink-3); }
.qs-act.client { background: var(--qs-rival-wash); color: var(--qs-rival); }

/* 表底：洞 / 上限 */
.qs-hole td { color: var(--bad); background: transparent; }
.qs-holebtn { border: 1px dashed var(--qs-bad-solid); background: transparent; color: var(--bad); border-radius: 5px; padding: 1px 8px; font: inherit; font-size: 11px; cursor: pointer; margin-left: 8px; }
.qs-holebtn[disabled] { opacity: .6; cursor: progress; }
.qs-capnote td { color: var(--warn); font-size: 11.5px; }

/* 展开一行 */
.qs-detail td { background: var(--surface-2); padding: 9px 16px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.qs-dmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 11.5px; color: var(--ink-2); margin-bottom: 8px; }
.qs-dops { margin-left: auto; display: flex; gap: 6px; }
.qs-dgrid { display: grid; gap: 8px; }
.qs-dcell { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qs-dcell .t { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 600; font-size: 12px; }
.qs-dlab { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; font-size: 11px; color: var(--ink-2); }
.qs-dcell p { margin: 0; font-size: 11.5px; line-height: 1.5; }
.qs-unj { color: var(--ink-2); background: var(--sunken); border-radius: 5px; padding: 3px 6px; }
.qs-basis { color: var(--ink); }
.qs-basis .qs-muted { display: block; font-size: 10.5px; }
.qs-basis q { quotes: "「" "」"; }
.qs-rv { color: var(--qs-rival); }
.qs-ex { font-size: 12px; color: var(--ink-2); line-height: 1.55; min-width: 0; }
.qs-ex .loading { padding: 4px 0; text-align: left; }
.qs-ex .empty { padding: 6px; }
/* 引擎格只有一百多像素宽：提示条横排时标签占掉一半，正文被挤成一字一行（2026-09-14 联调截图）。窄格里改竖排 */
.qs-ex .banner { flex-direction: column; gap: 4px; padding: 6px 8px; font-size: 11.5px; line-height: 1.5; margin-bottom: 6px; }
.qs-ex .banner > div { min-width: 0; overflow-wrap: anywhere; }
.qs-quote { overflow-wrap: anywhere; }
.qs-quote mark { background: var(--warn-wash); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.qs-cite { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.qs-cite .own { color: var(--accent); font-weight: 500; }

/* 小表单（改类 / 不适用原因 / 补真值 / 加一条） */
.qs-form { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 10px; margin: 0 0 8px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: 8px; font-size: 12px; color: var(--ink-2); cursor: default; }
.qs-form.col { flex-direction: column; align-items: stretch; margin: 4px 0 6px; }
.qs-form label { display: inline-flex; align-items: center; gap: 6px; }
.qs-form-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qs-form-row .qs-input { flex: 1 1 140px; }
.qs-form-note { font-size: 11px; color: var(--ink-3); }
.qs-input { font: inherit; font-size: 12px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); min-width: 0; }
.qs-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.qs-chip { font: inherit; font-size: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 10px; padding: 1px 8px; cursor: pointer; }

/* 右：名单 */
.qs-side { border-left: 1px solid var(--line); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qs-side h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qs-side h4 small { color: var(--ink-3); font-weight: 400; font-size: 11px; text-align: right; }
.qs-srcs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; color: var(--ink-3); align-items: center; }
.qs-srcs .qs-tag { font-family: var(--fs-mono); }
.qs-partial { margin: 0; font-size: 11.5px; color: var(--warn); }
.qs-unavail { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.qs-unavail b { color: var(--ink); font-weight: 600; }
.qs-unavail p { margin: 4px 0 0; line-height: 1.6; }
.qs-grp { font-size: 11px; color: var(--ink-3); letter-spacing: .03em; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.qs-grp em { font-style: normal; color: var(--warn); font-weight: 500; }
.qs-roster { display: flex; flex-direction: column; }
.qs-it { border-top: 1px solid var(--line-soft); margin: 0 -6px; border-radius: 6px; }
.qs-it:first-child { border-top: 0; }
.qs-it-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; font-size: 12px; border-radius: 6px; cursor: pointer; }
.qs-it-main:hover { background: var(--surface-2); }
.qs-it-main[aria-pressed="true"] { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
.qs-it-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qs-it .k { font-weight: 500; display: flex; align-items: center; gap: 2px 6px; flex-wrap: wrap; min-width: 0; color: var(--ink); }
.qs-it .drv { font-family: var(--fs-mono); font-weight: 400; font-size: 11px; color: var(--accent); white-space: nowrap; }
.qs-it .drv.zero { color: var(--bad); }
.qs-it .m { display: block; flex-basis: 100%; color: var(--ink-3); font-weight: 400; font-size: 11px; line-height: 1.4; }
.qs-it .q { display: block; flex-basis: 100%; color: var(--ink-2); font-size: 11px; font-style: normal; border-left: 2px solid var(--qs-warn-solid); padding-left: 6px; margin-top: 2px; line-height: 1.4; font-weight: 400; }
.qs-it.hole .qs-it-name { color: var(--bad); }
.qs-it.disc { background: var(--warn-wash); }
.qs-it.disc .m { color: var(--warn); }
.qs-it.na .qs-it-name { color: var(--ink-3); text-decoration: line-through; }
.qs-ops { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.qs-ops button { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 2px 7px; font: inherit; font-size: 11px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.qs-ops button.pri { border-color: var(--accent-line); color: var(--accent); }
.qs-ops button[disabled] { opacity: .6; cursor: progress; }
.qs-ops .st { font-size: 11px; font-family: var(--fs-mono); white-space: nowrap; }
.qs-ops .st.ok { color: var(--ok); }
.qs-ops .st.gen { color: var(--accent); font-family: var(--fs-cjk); }
.qs-it-note { margin: 0 6px 6px; font-size: 11.5px; color: var(--warn); }
.qs-gen { margin: 0 6px 6px; font-size: 11.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 5px 8px; }
.qs-gen ul { margin: 3px 0 0; padding-left: 18px; color: var(--warn); }
.qs-it .qs-form { margin: 0 6px 6px; }
.qs-add { align-self: flex-start; margin-top: 6px; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.qs-add:hover { border-color: var(--accent-line); color: var(--accent); }
/* 让 AI 联网找一版竞品（24 号文 9.8） */
.qs-discover { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.qs-discover-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qs-discover p { margin: 4px 0 0; line-height: 1.6; }
.qs-discover.running { border: 1px solid var(--accent-line); border-radius: 8px; padding: 8px 10px; background: var(--surface-2); }
.qs-discover.done > p, .qs-discover.failed > p { background: var(--surface-2); border-radius: 6px; padding: 5px 8px; }
.qs-discover .qs-discover-bad { color: var(--warn); }
.qs-discover details { margin-top: 4px; }
.qs-discover summary { cursor: pointer; color: var(--ink-3); }
.qs-discover ul { margin: 3px 0 0; padding-left: 18px; }
.qs-discover li b { color: var(--ink); font-weight: 600; }
.qs-src-link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.qs-src-link:hover { text-decoration: underline; }
/* 型号单：系列展开成员、目录池折叠行与搜索（24 号文 9.9） */
.qs-it .qs-mem-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 7px; font: inherit; font-size: 11px; font-weight: 400; color: var(--ink-2); cursor: pointer; white-space: nowrap; line-height: 1.6; }
.qs-it .qs-mem-btn:hover, .qs-it .qs-mem-btn[aria-expanded="true"] { border-color: var(--accent-line); color: var(--accent); }
.qs-members { margin: 0 6px 6px; padding: 5px 8px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; font-size: 11.5px; color: var(--ink-2); }
.qs-members p { margin: 0 0 3px; font-size: 11px; color: var(--ink-3); }
.qs-members ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.qs-members li small { color: var(--ink-3); }
.qs-members .qs-src-link { white-space: normal; }
.qs-catalog { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; font-size: 12px; color: var(--ink-2); }
.qs-catalog-toggle { display: flex; align-items: flex-start; gap: 6px; width: 100%; text-align: left; border: 0; background: transparent; padding: 3px 0; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.qs-catalog-toggle:hover { color: var(--accent); }
.qs-catalog-toggle i { font-style: normal; color: var(--ink-3); flex: none; }
.qs-catalog-body { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.qs-catalog-body > p { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.qs-catalog-hits { display: flex; flex-direction: column; }
.qs-catalog-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line-soft); }
.qs-catalog-hit:first-child { border-top: 0; }
.qs-catalog-hit .n { color: var(--ink); font-weight: 500; }
.qs-catalog-hit .n a { color: var(--ink); text-decoration: none; }
.qs-catalog-hit .n a:hover { color: var(--accent); text-decoration: underline; }
.qs-catalog-hit small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.qs-catalog-hit .listed { font-size: 11px; color: var(--ok); white-space: nowrap; }
.qs-catalog-hit button { border: 1px solid var(--accent-line); background: var(--surface); border-radius: 5px; padding: 2px 7px; font: inherit; font-size: 11px; color: var(--accent); cursor: pointer; white-space: nowrap; }
.qs-catalog-hit button[disabled] { opacity: .6; cursor: progress; }

.qs-foot { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.7; padding: 0 4px; }

@media (max-width: 1180px) {
  .qs-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qs-split { grid-template-columns: minmax(0, 1fr); }
  .qs-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .qs-tabs { grid-template-columns: 1fr 1fr; }
  .qs-head { grid-template-columns: 1fr; }
  .qs-picker { align-items: flex-start; }
}
