/* ==========================================================================
   v7-knowledge.css — Knowledge page (KN-F). RESTRAINT.md: neutral, one accent,
   radius 6 controls / 8 panels / 10 popovers, 1px borders, no panel shadows.
   Panes: filters 248 · results flex (≥440) · record 420 (360–640, resizable).
   ========================================================================== */

#view-knowledge > .kn { flex: 1 1 auto; min-height: 0; }
.kn {
  --kn-insp-w: 420px;
  display: flex; height: 100%; min-height: 0; position: relative; background: var(--surface);
  font: var(--type-13); color: var(--text);
}
.kn .pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.kn-mono, .kn .kn-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.kn-num { font-variant-numeric: tabular-nums; }
.kn-muted { color: var(--text-3); }
.kn-dot { color: var(--text-3); padding: 0 6px; flex: 0 0 auto; }
.kn-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; border-radius: 4px; }
.kn-linkbtn:hover { text-decoration: underline; }
.kn-linkbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.kn mark { background: var(--accent-soft); color: var(--text); font-weight: 600; border-radius: 2px; padding: 0 1px; }
.kn-sk { display: block; border-radius: 4px; }

/* ---------------------------------------------------------------- filters */
.kn-fpane { flex: 0 0 248px; width: 248px; border-right: 1px solid var(--line); }
.kn-fhead { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.kn-ftitle { margin: 0; font-size: var(--fs-13); line-height: 20px; font-weight: 600; flex: 1 1 auto; }
.kn-fclose { display: none; }
.kn-fbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 0 16px; }
.kn-ffoot { display: none; }
.kn-fpad { padding: 12px 16px; }
.kn-fg { border: 0; margin: 0; padding: 12px 16px 4px; min-width: 0; }
.kn-fg + .kn-fg { border-top: 1px solid var(--line); }
.kn-fg-l { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: var(--fs-12); line-height: 18px; font-weight: 500; color: var(--text-2); }
.kn-fg-l + * { clear: both; }
.kn-fg-empty { margin: 2px 0 8px; font-size: var(--fs-12); color: var(--text-3); }
.kn-fi { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 4px; margin: 0 -4px; border-radius: 6px; cursor: pointer; }
.kn-fi:hover { background: var(--row-hover); }
.kn-fi input { width: 14px; height: 14px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.kn-fi input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kn-fi-l { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-fi-n { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kn-fi-zero { cursor: default; }
.kn-fi-zero .kn-fi-l, .kn-fi-zero .kn-fi-n { color: var(--text-3); }
.kn-fi-zero:hover { background: none; }
.kn-fg-more { margin: 2px 0 6px -8px; }
.kn-seg { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.kn-seg-i { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kn-seg-l { flex: 1 1 0; text-align: center; height: 28px; line-height: 26px; font-size: var(--fs-12); color: var(--text-2); cursor: pointer; border-left: 1px solid var(--line); white-space: nowrap; }
.kn-seg-l:first-of-type { border-left: 0; }
.kn-seg-l:last-of-type { flex-grow: 1.5; }
.kn-seg-l:hover { background: var(--row-hover); color: var(--text); }
.kn-seg-i:checked + .kn-seg-l { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.kn-seg-i:focus-visible + .kn-seg-l { box-shadow: var(--ring-inset); }
.kn-dates { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.kn-date { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; font-size: var(--fs-12); color: var(--text-2); min-width: 0; }
.kn-date input { width: 100%; min-width: 0; height: 28px; box-sizing: border-box; font-size: var(--fs-12); }
.kn-saved-l { list-style: none; margin: 0; padding: 0; }
.kn-saved-l li { display: flex; align-items: center; gap: 2px; }
.kn-saved-b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; margin-left: -4px; border: 0; background: none; border-radius: 6px; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.kn-saved-b svg { color: var(--text-3); flex: 0 0 auto; }
.kn-saved-b:hover { background: var(--row-hover); }
.kn-saved-b:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.kn-saved-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-saved-w { flex: 0 1 auto; max-width: 40%; font-size: var(--fs-11); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-fskel { padding: 12px 16px; }
.kn-fskel-g { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 16px; }

/* ---------------------------------------------------------------- results */
.kn-res { flex: 1 1 auto; min-width: 440px; position: relative; }
.kn-shead { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.kn-ftoggle { display: none; flex: 0 0 auto; }
.kn-sbox { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--field-bg); }
.kn-sbox > svg { color: var(--text-3); flex: 0 0 auto; }
.kn-sbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--signal-ring); }
.kn-sbox input { flex: 1 1 auto; min-width: 0; height: 30px; border: 0; outline: 0; background: transparent; padding: 0; font: var(--type-13); color: var(--text); box-shadow: none; }
.kn-sbox input::placeholder { color: var(--text-3); }
.kn-qx { flex: 0 0 auto; }
.kn-hact { flex: 0 0 auto; }
.kn-hact[disabled] { opacity: .45; cursor: not-allowed; }
.kn-sugg { position: absolute; z-index: 40; top: 36px; left: -1px; width: 360px; max-width: calc(100vw - 32px); max-height: 320px; overflow: auto;
  background: var(--pop-bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 4px; }
.kn-sugg-h { padding: 6px 8px 4px; font-size: var(--fs-11); color: var(--text-3); }
.kn-sugg-o { display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 4px 8px; box-sizing: border-box; border-radius: 6px; cursor: pointer; }
.kn-sugg-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kn-sugg-zero { cursor: default; opacity: .55; }
.kn-sugg-zero:hover { background: none; }
.kn-sugg-o.on, .kn-sugg-o:hover { background: var(--accent-soft); }
.kn-sugg-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); }
.kn-sugg-v { display: none; font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-sugg-o.on .kn-sugg-v { display: block; }
.kn-sugg-n { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.kn-progress { position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: var(--accent); z-index: 3; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .kn-progress { background: var(--accent-soft); }
  .kn-progress::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--accent); animation: kn-slide 1s linear infinite; }
}
@keyframes kn-slide { from { left: -30%; } to { left: 100%; } }

.kn-chips { position: relative; flex: 0 0 auto; height: 36px; border-bottom: 1px solid var(--line); }
.kn-chips[hidden] { display: none; }
.kn-chips { display: flex; align-items: center; }
.kn-chips::after { display: none; }
.kn-chips-in { position: relative; flex: 1 1 auto; min-width: 0; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-wrap: nowrap; }
.kn-chips-in::-webkit-scrollbar { display: none; }
.kn-chip { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; height: 24px; padding: 0 2px 0 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  font-size: var(--fs-12); color: var(--text); background: var(--surface); white-space: nowrap; }
.kn-chip-k { color: var(--text-3); }
.kn-chip > svg { color: var(--text-3); }
.kn-chip-scope { padding-right: 8px; background: var(--surface-2); cursor: default; }
.kn-chip-scope:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-chip-na { color: var(--text-3); background: var(--surface-2); }
.kn-chip-i { display: inline-flex; color: var(--text-3); margin: 0 4px 0 2px; }
.kn-chips-end { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 4px; height: 100%; }
.kn-chip-g { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.kn-chip-g:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-chip-more { font-size: var(--fs-11); color: var(--text-2); background: var(--surface-3); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.kn-chip-unk { padding-right: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-2); text-decoration: underline 1px var(--warn); text-underline-offset: 3px; cursor: help; }
.kn-chip-unk:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-unk-n { color: var(--warn); }
.kn-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 4px; background: none; color: var(--text-3); cursor: pointer; padding: 0; }
.kn-chip-x:hover { background: var(--surface-3); color: var(--text); }
.kn-chip-x:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-chip-clear { flex: 0 0 auto; }

.kn-count { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 16px; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.kn-count-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; }
.kn-count-t b { color: var(--text); font-weight: 600; }
.kn-ms { color: var(--text-3); }
.kn-hidden { color: var(--text-2); }
.kn-count-act { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.kn-sort { color: var(--text-2); }
.kn-shared { padding: 6px 16px; font-size: var(--fs-12); color: var(--text-3); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.kn-notice { display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 4px 8px 4px 14px; flex: 0 0 auto; background: var(--surface-2);
  border-bottom: 1px solid var(--line); box-shadow: inset 2px 0 0 var(--warn); font-size: var(--fs-12); color: var(--text); }
.kn-notice[hidden] { display: none; }
.kn-notice-t { flex: 1 1 auto; min-width: 0; }
.kn-rid { color: var(--text-3); margin-left: 6px; }

.kn-list-wrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; transition: opacity 120ms; }
.kn-list-wrap.kn-dim { opacity: .55; }
.kn-list { list-style: none; margin: 0; padding: 0; }
.kn-li { position: relative; border-bottom: 1px solid var(--line); }
.kn-pinned-l { display: block; padding: 6px 16px 0 44px; font-size: var(--fs-11); line-height: 16px; color: var(--text-3); }
.kn-row { display: flex; gap: 12px; padding: 7px 16px; min-height: 70px; box-sizing: border-box; color: var(--text); text-decoration: none; cursor: pointer; outline: none; }
.kn-row:hover { background: var(--row-hover); text-decoration: none; }
.kn-row.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.kn-row:focus-visible { box-shadow: var(--ring-inset); }
.kn-row.sel:focus-visible { box-shadow: inset 2px 0 0 var(--accent), var(--ring-inset); }
.kn-row.kn-compact { min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
.kn-row-skel { cursor: default; }
.kn-ico { flex: 0 0 16px; height: 20px; display: flex; align-items: center; color: var(--text-3); }
.kn-row.sel .kn-ico, .kn-row.kn-picked .kn-ico { color: var(--accent); }
.kn-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kn-l1 { display: flex; align-items: baseline; gap: 12px; min-width: 0; height: 20px; }
.kn-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; line-height: 20px; }
.kn-key { font-family: var(--mono); font-size: 12px; color: var(--text-2); font-weight: 500; }
.kn-time { flex: 0 0 auto; font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 20px; }
.kn-snip { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 18px; font-size: var(--fs-13); color: var(--text-2); }
.kn-kv-k { color: var(--text-3); }
.kn-meta { display: flex; align-items: center; gap: 6px; min-width: 0; height: 18px; font-size: var(--fs-12); color: var(--text-3); }
.kn-meta-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.kn-meta-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-src { flex: 0 0 auto; max-width: 50%; color: var(--text-2); }
.kn-who { flex: 0 1 auto; }
.kn-matched { flex: 0 1 auto; font-style: normal; }
.kn-pill { display: inline-flex; align-items: center; flex: 0 0 auto; height: 18px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--text-2); background: transparent; white-space: nowrap; }
.kn-pill-s { font-family: var(--font); }
.kn-masked { font-family: var(--mono); font-size: 12px; color: var(--text-2); letter-spacing: .02em; }
.kn-mask-hit { background: var(--accent-soft); color: var(--text); font-weight: 600; border-radius: 2px; }

.kn-landing { border-bottom: 1px solid var(--line); }
.kn-land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-bottom: 1px solid var(--line); }
.kn-land-sec { padding: 10px 16px 8px; min-width: 0; }
.kn-land-sec + .kn-land-sec { border-left: 1px solid var(--line); }
.kn-land-none { margin: 6px 0 0; font-size: var(--fs-12); color: var(--text-3); }
.kn-land-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-land-w { flex: 0 1 auto; max-width: 40%; font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-land-h { display: flex; align-items: center; gap: 8px; }
.kn-land-h h2 { margin: 0; flex: 1 1 auto; font-size: var(--fs-12); line-height: 18px; font-weight: 500; color: var(--text-2); }
.kn-land-all { padding: 10px 16px 8px; }
.kn-land-l { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.kn-land-b { display: flex; align-items: center; gap: 8px; width: calc(100% + 6px); height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; text-align: left;
  background: var(--surface); color: var(--text); font: var(--type-12); cursor: pointer; }
.kn-land-b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-land-b svg { color: var(--text-3); flex: 0 0 auto; }
.kn-land-b:hover { background: var(--row-hover); }
.kn-land-b:focus-visible { outline: none; box-shadow: var(--ring); }

.kn-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; max-width: 460px; margin: 0 auto; }
.kn-empty-ico { color: var(--text-3); margin-bottom: 8px; }
.kn-empty-t { margin: 0; font-size: var(--fs-14); line-height: 22px; font-weight: 600; }
.kn-empty-b { margin: 4px 0 0; color: var(--text-2); }
.kn-empty-h { margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-12); }
.kn-empty-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

.kn-pager { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 16px; border-top: 1px solid var(--line); flex: 0 0 auto; font-size: var(--fs-12); color: var(--text-2); }
.kn-pager:empty { display: none; }
.kn-hints { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: var(--fs-11); white-space: nowrap; overflow: hidden; }
.kn-hints kbd { font-size: 10px; height: 16px; min-width: 16px; }
.kn-hints-x { margin-left: 2px; }
.kn-pg { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.kn-pg .kn-num { margin-right: 6px; }

/* ---------------------------------------------------------------- gutter + record panel */
.kn-gutter { flex: 0 0 5px; margin: 0 -2px; position: relative; z-index: 2; cursor: col-resize; background: transparent; outline: none; }
.kn-gutter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 2px; width: 1px; background: var(--line); }
.kn-gutter:hover::after, .kn-gutter:focus-visible::after, .kn-resizing .kn-gutter::after { width: 2px; left: 1.5px; background: var(--accent); }
.kn-resizing { cursor: col-resize; user-select: none; }
.kn-insp { flex: 0 0 var(--kn-insp-w); width: var(--kn-insp-w); }
.kn-iempty { margin: auto; padding: 24px; text-align: center; max-width: 300px; }
.kn-iempty-ico { color: var(--text-3); }
.kn-iempty-t { margin: 8px 0 2px; font-weight: 600; font-size: var(--fs-14); }
.kn-iempty-b { margin: 0; color: var(--text-2); }
.kn-iempty-k { display: block; margin-top: 8px; color: var(--text-3); font-size: var(--fs-12); }
.kn-mtop { display: none; }
.kn-rhead { flex: 0 0 auto; padding: 12px 16px 10px; border-bottom: 0; }
.kn-rkick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 18px; font-size: var(--fs-12); color: var(--text-2); }
.kn-rkick .kn-dot { padding: 0; }
.kn-kt { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.kn-kt svg { color: var(--text-3); }
.kn-ks { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.kn-rtitle { margin: 6px 0 0; font-size: var(--fs-14); line-height: 20px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; outline: none; border-radius: 4px; }
.kn-rtitle:focus-visible { box-shadow: var(--ring); }
.kn-ractions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kn-ract-b[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.kn-tabs { display: flex; gap: 16px; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.kn-tabs[hidden] { display: none; }
.kn-tab { position: relative; height: 36px; padding: 0; border: 0; background: none; font: var(--type-13); color: var(--text-2); cursor: pointer; }
.kn-tab:hover { color: var(--text); }
.kn-tab.on { color: var(--text); font-weight: 500; }
.kn-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.kn-tab:focus-visible { outline: none; box-shadow: var(--ring-inset); border-radius: 4px; }
.kn-rbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 16px 24px; outline: none; }
.kn-rfoot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 16px; border-top: 1px solid var(--line); flex: 0 0 auto; font-size: var(--fs-12); color: var(--text-2); }
.kn-rfoot[hidden] { display: none; }
.kn-rfoot-t { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.kn-rfoot-t svg { color: var(--text-3); flex: 0 0 auto; }
.kn-mnav { display: none; }
.kn-rskel { display: flex; flex-direction: column; gap: 6px; }
.kn-rskel-r { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; height: 28px; }

.kn-sec + .kn-sec { margin-top: 20px; }
.kn-sec-h { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: var(--fs-12); line-height: 18px; font-weight: 500; color: var(--text-2); }
.kn-sec > .kn-sec-h:first-child, .kn-rbody > .kn-sec-h:first-child { margin-top: 0; }
.kn-sec-sub { color: var(--text-3); font-weight: 400; }
.kn-sub { margin: 0 0 8px; font-size: var(--fs-12); color: var(--text-3); }
.kn-p { margin: 0 0 8px; color: var(--text); }
.kn-note { margin: 6px 0 8px; font-size: var(--fs-12); color: var(--text-3); }
.kn-kvl { margin: 0; }
.kn-kvr { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: baseline; min-height: 28px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.kn-kvr:last-child { border-bottom: 0; }
.kn-kvr dt { font-size: var(--fs-12); color: var(--text-2); overflow-wrap: anywhere; }
.kn-kvr dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kn-kvl-row dd.kn-mono { font-size: 13px; }
.kn-kvr-hit dt { color: var(--text); font-weight: 500; }
.kn-break { word-break: break-all; }
.kn-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 20px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.kn-body.kn-clamped { max-height: 480px; overflow: hidden; }
.kn-body + .btn { margin-top: 8px; }
.kn-tw { border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-width: 100%; }
.kn-dt { width: 100%; border-collapse: collapse; }
.kn-dt th { height: 34px; }
.kn-dt td { height: 32px; overflow-wrap: anywhere; }
.kn-bul { margin: 0; padding-left: 18px; }
.kn-bul li { margin: 2px 0; }
.kn-tl { list-style: none; margin: 0; padding: 0; }
.kn-tl li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.kn-raw { margin-top: 16px; }
.kn-raw summary { cursor: pointer; font-size: var(--fs-12); color: var(--text-2); }
.kn-raw pre { margin: 8px 0 0; padding: 10px 12px; max-height: 360px; overflow: auto; font: 12px/18px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kn-conf { margin-left: 8px; font-size: var(--fs-11); color: var(--text-3); }

/* masked identifiers in the record panel: a quiet button, never a colour */
.kn-mask { display: inline; padding: 0 3px; margin: 0; border: 0; border-radius: 4px; background: var(--surface-2); font: 12px/18px var(--mono);
  color: var(--text-2); cursor: pointer; letter-spacing: .02em; }
.kn-mask:hover { background: var(--surface-3); color: var(--text); }
.kn-mask:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-mask.kn-mask-hit { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.kn-revealed { border-bottom: 1px dotted var(--text-3); }

/* chat context */
.kn-thread { display: flex; flex-direction: column; gap: 2px; }
.kn-tmsg { position: relative; padding: 8px 10px; border-radius: 6px; }
.kn-tmsg-hit { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.kn-tmsg-h { display: flex; align-items: baseline; gap: 8px; }
.kn-tmsg-a { font-size: var(--fs-12); font-weight: 500; }
.kn-tmsg-t { font-size: var(--fs-11); color: var(--text-3); }
.kn-tmsg-b { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kn-tmsg-o { position: absolute; top: 8px; right: 10px; font-size: var(--fs-12); opacity: 0; }
.kn-tmsg:hover .kn-tmsg-o, .kn-tmsg-o:focus-visible { opacity: 1; }
.kn-thread-more { margin: 8px 0 0 10px; font-size: var(--fs-12); }

/* attachments + pages */
.kn-att { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kn-att-b { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.kn-att-b:hover { border-color: var(--line-strong); background: var(--row-hover); }
.kn-att-b:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-att-b svg { color: var(--text-3); flex: 0 0 auto; }
.kn-att-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-att-go { flex: 0 0 auto; font-size: var(--fs-12); color: var(--accent); }
.kn-pages { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.kn-page { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; color: var(--text-2); text-decoration: none; font-size: var(--fs-11); border-radius: 6px; }
.kn-page:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-page-img { display: flex; align-items: center; justify-content: center; width: 88px; height: 114px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text-3); overflow: hidden; }
.kn-page:hover .kn-page-img { border-color: var(--accent); }
.kn-page-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* lineage */
.kn-chain { list-style: none; margin: 0; padding: 0; position: relative; }
.kn-step { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.kn-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line-strong); }
.kn-step:last-child::before { display: none; }
.kn-step-i { flex: 0 0 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text-2); position: relative; z-index: 1; }
.kn-step-ink .kn-step-i { background: var(--text); color: var(--surface); border-color: var(--text); }
.kn-step-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kn-step-k { font-size: var(--fs-11); color: var(--text-3); }
.kn-step-v { font-weight: 500; overflow-wrap: anywhere; }
.kn-step-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-12); color: var(--text-2); }
.kn-step-a { flex: 0 0 auto; align-self: flex-start; padding-top: 14px; }
.kn-warn { color: var(--warn); }
.kn-jump { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-12); color: var(--accent); text-decoration: none; white-space: nowrap; border-radius: 4px; }
.kn-jump:hover { text-decoration: underline; }
.kn-jump:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-rel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kn-rel li + li { border-top: 1px solid var(--line); }
.kn-rel-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.kn-rel-b:hover { background: var(--row-hover); }
.kn-rel-b:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.kn-rel-b > svg { color: var(--text-3); flex: 0 0 auto; }
.kn-rel-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kn-rel-t, .kn-rel-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-rel-s { font-size: var(--fs-12); color: var(--text-3); }
.kn-ents { display: flex; flex-direction: column; gap: 8px; }
.kn-ent-g { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kn-ent-k { font-size: var(--fs-12); color: var(--text-2); }
.kn-ent-v { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.kn-ent { max-width: 100%; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: var(--type-12); color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-ent:hover { border-color: var(--line-strong); background: var(--row-hover); }
.kn-ent:focus-visible { outline: none; box-shadow: var(--ring); }
.kn-ent-v .kn-mask { height: 24px; line-height: 22px; }

.kn-denied { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px 4px; }
.kn-denied-ico { color: var(--text-3); margin-bottom: 8px; }
.kn-denied-t { margin: 0; font-size: var(--fs-14); line-height: 22px; font-weight: 600; }
.kn-denied-m { margin: 2px 0 0; font-size: var(--fs-12); color: var(--text-3); }
.kn-denied-b { margin: 6px 0 14px; color: var(--text-2); }

/* dialogs (reveal, request access, export, share) */
.kn-reasons { border: 0; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.kn-reasons legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-12); font-weight: 500; color: var(--text-2); }
.kn-reason { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; }
.kn-reason input { margin: 0; accent-color: var(--accent); }
.kn-reason-other { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0 22px; font-size: var(--fs-12); color: var(--text-2); }
.kn-reason-other[hidden] { display: none; }
.kn-reason-other input { height: 32px; }
.kn-fl { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-size: var(--fs-12); color: var(--text-2); }
.kn-fl input, .kn-fl select, .kn-fl textarea { width: 100%; box-sizing: border-box; font: var(--type-13); }
.kn-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.kn-err { margin: 8px 0 0; color: var(--err); font-size: var(--fs-12); }
.kn-err[hidden] { display: none; }

.kn-scrim { display: none; }

/* ---------------------------------------------------------------- <1100: filters drawer + record overlay */
@media (max-width: 1099.98px) {
  .kn-fpane { position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; width: 300px; max-width: 86vw; transform: translateX(-102%); visibility: hidden;
    border-right: 1px solid var(--line); box-shadow: var(--shadow-modal); transition: transform var(--t-med, 160ms) var(--ease), visibility 0s linear var(--t-med, 160ms); }
  .kn-fopen .kn-fpane { transform: none; visibility: visible; transition: transform var(--t-med, 160ms) var(--ease); }
  .kn-fclose { display: inline-flex; }
  .kn-ftoggle { display: inline-flex; }
  .kn-res { min-width: 0; }
  .kn-gutter { display: none; }
  .kn-scrim:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 25; background: var(--scrim); }
  .kn-insp { position: absolute; z-index: 30; top: 0; bottom: 0; right: 0; width: min(520px, 92vw); flex: none; transform: translateX(102%); visibility: hidden;
    border-left: 1px solid var(--line); box-shadow: var(--shadow-modal); transition: transform var(--t-med, 160ms) var(--ease), visibility 0s linear var(--t-med, 160ms); }
  .kn-iopen .kn-insp { transform: none; visibility: visible; transition: transform var(--t-med, 160ms) var(--ease); }
  .kn-mtop { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
  .kn-mtop-act { margin-left: auto; display: flex; gap: 2px; }
  .kn-ractions .kn-ract[data-act="copy"], .kn-ractions .kn-ract[data-act="more"] { display: none; }
  .kn-mnav { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px; border-top: 1px solid var(--line); flex: 0 0 auto; }
  .kn-mnav-n { flex: 1 1 auto; text-align: center; font-size: var(--fs-12); color: var(--text-2); }
  .kn-hints { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kn-fpane, .kn-insp { transition: none !important; } }

/* ---------------------------------------------------------------- <720: bottom sheet + pushed record view */
@media (max-width: 719.98px) {
  /* the shell's view-in animation leaves an identity transform (fill: both), which would make the view the
     containing block of the fixed sheet / pushed record view */
  #view-knowledge.view.active { animation: none; transform: none; }
  .kn-fpane:not(.kn-x), .kn-insp:not(.kn-x) { display: none; }
  .kn-fopen .kn-fpane, .kn-iopen .kn-insp { display: flex; }
  .kn { display: block; height: auto; min-height: calc(100dvh - var(--topbar-h)); }
  .kn-res { min-width: 0; }
  .kn-shead { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--surface); padding: 0 8px; gap: 6px; height: 56px; }
  .kn-progress { position: sticky; top: calc(var(--topbar-h) + 54px); z-index: 21; }
  .kn-sbox { height: 40px; }
  .kn-sbox input { font-size: 16px; }
  .kn-ftoggle { min-height: 40px; }
  .kn-hact { width: 40px; height: 40px; }
  .kn-hact[id="kn-export"] { display: none; }
  .kn-chips { height: 44px; }
  .kn-chip { height: 32px; }
  .kn-chip-x { width: 32px; height: 32px; }
  .kn-count { height: 44px; padding-right: 4px; }
  .kn-sort, .kn-dens { min-height: 40px; min-width: 40px; }
  .kn-list-wrap { overflow: visible; }
  .kn-row { padding: 10px 12px; }
  .kn-pinned-l { padding-left: 40px; }
  .kn-pager { height: 52px; }
  .kn-pgb { width: 44px; height: 44px; }
  .kn-scrim:not([hidden]) { position: fixed; z-index: 400; }
  .kn-fpane { position: fixed; z-index: 410; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 85vh; height: auto;
    border: 0; border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; transform: translateY(102%); }
  .kn-fopen .kn-fpane { transform: none; }
  .kn-fhead { height: 52px; position: relative; padding-top: 6px; }
  .kn-fhead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong); }
  .kn-fclear { display: none; }
  .kn-fclose { width: 44px; height: 44px; }
  .kn-fi { min-height: 44px; }
  .kn-fi input { width: 18px; height: 18px; }
  .kn-seg-l { height: 40px; line-height: 38px; }
  .kn-saved-b { height: 44px; }
  .kn-saved-m { width: 44px; height: 44px; }
  .kn-ffoot { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: 0 0 auto; background: var(--surface); }
  .kn-ffoot .btn { height: 44px; }
  .kn-ffoot-clear { flex: 0 0 auto; }
  .kn-ffoot-show { flex: 1 1 auto; justify-content: center; }
  /* pushed record view: covers the list below the topbar; ‹ Results returns */
  .kn-insp { position: fixed; z-index: 390; top: var(--topbar-h); left: 0; right: 0; bottom: 0; width: auto; border: 0; box-shadow: none; transform: translateX(100%); }
  .kn-iopen .kn-res { visibility: hidden; }
  .kn-mtop { height: 52px; }
  .kn-mback { min-height: 44px; padding: 0 10px; }
  .kn-mtop-act .icon-btn { width: 44px; height: 44px; }
  .kn-ractions .btn { min-height: 40px; }
  .kn-tabs { gap: 0; padding: 0 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
  .kn-tab { height: 44px; padding: 0 12px; }
  .kn-mnav { height: 60px; padding-bottom: env(safe-area-inset-bottom); }
  .kn-mnav-b { min-height: 44px; }
  .kn-kvr { grid-template-columns: 112px minmax(0, 1fr); }
  .kn-ent-g { grid-template-columns: 1fr; gap: 4px; }
  .kn-rel-b { min-height: 48px; }
  .kn-att-b { min-height: 44px; }
  .kn-rfoot .btn { min-height: 40px; }
}

/* touch: 44px targets wherever the pointer is coarse */
@media (pointer: coarse) {
  .kn-fi { min-height: 44px; }
  .kn-chip-x { min-width: 32px; min-height: 32px; }
  .kn-ract, .kn-hact, .kn-pgb { min-width: 44px; min-height: 44px; }
  .kn-ract-b, .kn-tab, .kn-mask, .kn-ent, .kn-land-b { min-height: 44px; }
  .kn-hints { display: none; }
}

/* ---------------------------------------------------------------- access requests: requester state */
.kn-reqstate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kn-req { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); }
.kn-req svg { color: var(--text-3); flex: 0 0 auto; }
.kn-req-ok svg { color: var(--ok); }
.kn-req-no svg { color: var(--text-3); }
#kn-zero-req:empty { display: none; }
#kn-zero-req { flex-basis: 100%; display: flex; justify-content: center; }

/* ---------------------------------------------------------------- Admin › Access requests */
.kar-tabn { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 6px;
  background: var(--surface-3); color: var(--text); font: 500 11px/18px var(--font); font-variant-numeric: tabular-nums; }
.kar { display: flex; flex-direction: column; gap: 12px; }
.kar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kar-h { margin: 0; font-size: var(--fs-14); line-height: 22px; font-weight: 600; }
.kar-count { margin: 2px 0 0; font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 18px; }
.kar-seg { width: 320px; max-width: 100%; }
.kar-tw { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.kar-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kar-t th:nth-child(1) { width: 17%; } .kar-t th:nth-child(2) { width: 21%; } .kar-t th:nth-child(3) { width: 80px; }
.kar-t th:nth-child(5) { width: 84px; } .kar-t th:nth-child(6) { width: 200px; }
.kar-t td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; height: auto; }
.kar-name, .kar-src { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kar-sub { display: block; font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.kar-rec { color: var(--accent); text-decoration: none; }
a.kar-rec:hover { text-decoration: underline; }
.kar-reason span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kar-age { font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; }
.kar-act { text-align: right; white-space: nowrap; }
.kar-act .btn + .btn { margin-left: 6px; }
.kar-dec { display: inline-flex; flex-direction: column; align-items: flex-end; max-width: 100%; text-align: right; }
.kar-dec-t { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 500; }
.kar-done .kar-dec-t svg { color: var(--text-3); }
.kar-note { max-width: 190px; }
.kar-err { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--warn); font-size: var(--fs-13); }
.kar-err > span { flex: 1 1 auto; }
.kar-err svg { color: var(--text-3); }
.kar-skel { border: 1px solid var(--line); border-radius: 8px; }
.kar-skel-r { display: flex; gap: 24px; align-items: center; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.kar-skel-r:last-child { border-bottom: 0; }
.kar-quote { margin: 0 0 12px; padding: 8px 12px; border-left: 2px solid var(--line-strong); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 1099.98px) {
  .kar-t th:nth-child(6) { width: 180px; }
  .kar-t th:nth-child(5) { width: 70px; }
}
@media (max-width: 899.98px) {
  /* stacked rows: label/value pairs, actions full width */
  .kar-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kar-t, .kar-t tbody, .kar-t tr, .kar-t td { display: block; width: auto; }
  .kar-t tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .kar-t tr:last-child { border-bottom: 0; }
  .kar-t td { padding: 2px 0; border: 0; height: auto; }
  .kar-t td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-11); color: var(--text-3); margin-top: 6px; }
  .kar-t td[data-label="Requester"]::before { display: none; }
  .kar-act { text-align: left; padding-top: 10px !important; display: flex !important; gap: 8px; }
  .kar-act .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
  .kar-act .btn + .btn { margin-left: 0; }
  .kar-dec { align-items: flex-start; text-align: left; }
  .kar-seg { width: 100%; }
  .kar-seg .kn-seg-l { height: 40px; line-height: 38px; }
}

/* round 2 (G3, G8, G10.1, G10.2, privacy settings) */
.kn-src-c { flex: 0 1 auto; min-width: 0; max-width: 34%; font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-l1 .kn-pill { align-self: center; }
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .kn-nosel .kn-insp, .kn-nosel .kn-gutter { display: none; }
}
.kn-rfoot-t > span { min-width: 0; }
.kpv-g { border: 0; margin: 0 0 16px; padding: 0; }
.kpv-l { padding: 0; margin-bottom: 8px; font-size: var(--fs-13); font-weight: 600; }
.kpv-o { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.kpv-o input { margin: 3px 0 0; accent-color: var(--accent); }
.kpv-t { display: block; font-weight: 500; }
.kpv-d { display: block; font-size: var(--fs-12); color: var(--text-3); }
.kpv-note { margin: 0; font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 719.98px) {
  .kn-ms, .kn-ms + .kn-dot { display: none; }
  .kn-count { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .kn-count-t { white-space: normal; overflow: visible; text-overflow: clip; line-height: 18px; }
  .kn-land-sec + .kn-land-sec { border-left: 0; border-top: 1px solid var(--line); }
  .kn-land-b { height: 44px; }
}
@media (pointer: coarse) {
  .kn-chip-x { position: relative; min-width: 22px !important; min-height: 22px !important; width: 22px !important; height: 22px !important; }
  .kn-chip-x::after { content: ""; position: absolute; inset: -11px; }
  .kn-sbox { min-height: 44px; box-sizing: border-box; }
  .kn-sbox input { min-height: 42px; }
  .kn-chip { height: 32px; }
}

/* 1100-1279 px: filters become a drawer so results keep >= 440 px beside the record panel */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .kn-fpane { position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; width: 300px; transform: translateX(-102%); visibility: hidden;
    border-right: 1px solid var(--line); box-shadow: var(--shadow-modal); transition: transform var(--t-med, 160ms) var(--ease), visibility 0s linear var(--t-med, 160ms); }
  .kn-fopen .kn-fpane { transform: none; visibility: visible; transition: transform var(--t-med, 160ms) var(--ease); }
  .kn-fclose, .kn-ftoggle { display: inline-flex; }
  .kn-scrim:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 25; background: var(--scrim); }
}
