/* 知识与工具（说明书、知识库检索、计算工具）与评分量表 */

.kt-drug { min-height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 14px; }

.kt-search { display: flex; gap: 8px; margin-bottom: 10px; }
.kt-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 15px; }
.kt-search .btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.kt-search .btn--primary { color: var(--on-accent); }
.kt-chips { margin-bottom: 12px; }
.kt-chips button { min-height: 38px; min-width: 0; }
.kt-empty { margin: 14px 0; color: var(--muted); font-size: 13px; }
.kt-empty a, .kt-insert a, .as-src a { color: var(--accent); }
.kt-insert { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); }
.kt-insert header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.kt-insert header b { font-size: 18px; }
.kt-insert header small { color: var(--muted); font-size: 12px; }
.kt-insert section { padding: 6px 0; border-top: 1px solid var(--line); }
.kt-insert h4 { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kt-insert p { margin: 0; font-size: 14px; line-height: 1.55; }
.kt-insert footer { margin-top: 8px; font-size: 11px; color: var(--dim); }

.kc-grid select { grid-row: span 2; width: 100%; min-height: 40px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 14px; }
.kc-grid .lb { grid-template-columns: 1fr 104px; }
.kc-grid .lb em { color: var(--accent); }
.kc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.kc-out li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--panel-2); }
.kc-out span { font-size: 13px; }
.kc-out b { font: 600 22px var(--num); }
.kc-out small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

#asFoot[hidden] { display: none; }
.as-cats { margin-bottom: 10px; }
.as-cats button.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.as-grid { grid-template-columns: repeat(3, 1fr); }
.as-grid b i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.as-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.as-head b { font-size: 16px; }
.as-head small { margin-left: auto; color: var(--muted); font-size: 12px; }
.as-guide { margin: 0 0 6px; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.5; }
.as-item { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.as-item .field-label small { display: block; margin-top: 2px; color: var(--dim); }
.as-no { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 6px 0 0 !important; border-radius: 50%; background: var(--panel-3); font-size: 11px !important; }
.as-opts { display: flex; flex-direction: column; gap: 5px; }
.as-opts button { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 44px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: left; font-size: 14px; }
.as-opts button b { font: 600 18px var(--num); color: var(--muted); }
.as-opts button.is-on { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.as-opts button.is-on b { color: var(--ok); }
.as-nums { gap: 6px; }
.as-nums button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; padding: 0 6px; border-radius: 8px; line-height: 1.1; }
.as-nums button b { font: 600 18px var(--num); }
.as-nums button small { margin: 0; font-size: 10px; }
.as-int { width: 160px; min-height: 44px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 18px var(--num); }
.as-nt { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.as-nt .btn { min-height: 36px; font-size: 12px; }
.as-nt input, .as-note { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 14px; }
.as-note { width: 100%; margin-top: 8px; box-sizing: border-box; }
.as-src { margin: 10px 0 0; font-size: 11px; color: var(--dim); line-height: 1.6; }
.as-src a { margin-right: 10px; }
