/* Knowledge library: quiet shelf, content thumbnails, document reading and notes. */
.kb-metadata-field{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:13px}.kb-metadata-field input,.kb-metadata-field textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font:inherit}.kb-metadata-field textarea{resize:vertical;min-height:100px}.kb-file-link,.kb-source-link{display:block;width:fit-content;max-width:calc(100% - 32px);overflow-wrap:anywhere;color:var(--accent,#378c7b);font-size:12px;line-height:1.6;padding:10px 0;min-height:24px}.kb-file-link{margin:0 16px 0 82px}.knowledge-files.grid .kb-file-link{margin-left:16px}.kb-reader-description{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:14px;line-height:1.8;margin:0 0 12px}.kb-source-link{margin-bottom:20px}.kb-reading-body:has(.kb-source-link)>.file-viewer{margin-top:12px}
.kb-trash-tools,.kb-trash-actions{display:flex;align-items:center;gap:8px}.kb-trash-tools{justify-content:space-between;margin:12px 0}.kb-trash-actions{flex:none}.kb-trash-actions button{font-size:12px;padding:8px;min-height:38px}.knowledge-trash-row>span{min-width:0;overflow-wrap:anywhere}.kb-trash-tools .danger,.kb-trash-actions .danger{border:0;background:transparent;color:#b35849}.knowledge-dialog .kb-batch-bar{position:static;flex-direction:column;align-items:stretch;padding:10px}.knowledge-dialog .kb-batch-actions{flex-wrap:wrap;justify-content:flex-end}.knowledge-dialog .kb-batch-actions button{min-height:40px}
.kb-batch-actions button.secondary,.kb-batch-actions button.danger{border:0;border-radius:8px;background:transparent;color:var(--ink)}.kb-batch-actions button.danger{color:#b35849}.kb-batch-actions button.secondary:hover,.kb-batch-actions button.danger:hover{background:var(--bubble)}.kb-selection-head>button.secondary{border:0;background:transparent;color:var(--muted)}
.side-app-version{flex:none;text-align:left;margin:10px 16px max(8px,env(safe-area-inset-bottom));font-size:11px;line-height:1.5;color:var(--sidebar-muted,var(--muted));font-variant-numeric:tabular-nums}
.kb-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;font-size:12px;color:var(--muted)}.kb-selection-head .knowledge-check{border:0;margin:0;padding:5px 0;min-height:42px;gap:8px}.kb-selection-head .knowledge-check input,.kb-file-select{width:18px;height:18px;accent-color:#bd7848;cursor:pointer}.kb-selection-head button{font-size:11px}.kb-batch-bar{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:16px 0 0;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 5px 25px #0000000c}.kb-batch-bar strong{font-size:12px;font-weight:500;white-space:nowrap}.kb-batch-actions{display:flex;align-items:center;gap:3px}.kb-batch-actions button{font-size:12px;padding:8px 10px;min-height:38px}.kb-selection-note{font-size:11px;color:var(--muted);margin:12px 0 0;line-height:1.7}.knowledge-file{position:relative}.kb-file-select{position:absolute;left:9px;top:50%;transform:translateY(-50%);z-index:1;margin:0}.knowledge-files.kb-selecting .knowledge-file{padding-left:38px}.knowledge-files.kb-selecting .knowledge-file.kb-selected{background:color-mix(in srgb,#bd7848 9%,var(--panel));border-radius:10px}.knowledge-files.grid.kb-selecting .knowledge-file{padding-left:12px;padding-top:39px}.knowledge-files.grid .kb-file-select{top:12px;left:12px;transform:none}.kb-batch-failure{padding:12px;border-radius:10px;background:var(--bg);margin:10px 0}.kb-batch-failure strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.kb-batch-failure p{font-size:12px;line-height:1.8;margin:6px 0 0;color:var(--muted)}.kb-batch-names{max-height:220px;overflow:auto;padding-left:22px;font-size:12px;line-height:2;color:var(--muted);overflow-wrap:anywhere}.knowledge-trash-row .knowledge-check{border:0;padding:4px 0;margin:0;min-width:0;overflow-wrap:anywhere}.knowledge-trash-row .knowledge-check input{width:18px;height:18px;accent-color:#bd7848;flex:none}
@media(max-width:900px){.kb-batch-bar{align-items:flex-start;flex-direction:column;gap:7px}.kb-batch-actions{width:100%;justify-content:space-between}.kb-batch-actions button{padding:7px 5px;font-size:11px}}
@media(max-width:560px){.knowledge-toolbar{gap:5px;flex-wrap:wrap}.knowledge-toolbar .knowledge-tabs{gap:12px;flex:1}.knowledge-toolbar>.secondary{font-size:11px;padding:6px}.kb-selection-head .knowledge-check{font-size:11px}.kb-batch-bar{padding:11px 10px}.kb-selection-note{font-size:10px}.side-app-version{margin-left:16px}.knowledge-files.kb-selecting .knowledge-file{padding-left:32px}.kb-file-select{left:4px}.knowledge-files.grid.kb-selecting .knowledge-file{padding-left:10px}}
#files-view {
  --kb-action-bg: #363b36;
  --kb-action-ink: #fff;
  --kb-action-focus: #9d5330;
  --kb-feedback-ink: #666c64;
  --kb-feedback-error: #9a4837;
}
:root[data-theme="dark"] #files-view {
  --kb-action-bg: #e3e5da;
  --kb-action-ink: #292c28;
  --kb-action-focus: #e3a881;
  --kb-feedback-ink: #b0b4a9;
  --kb-feedback-error: #e8a48b;
}
.kb-heading-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
#files-view .kb-shelf-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 13px;
  gap: 7px;
  background: var(--kb-action-bg);
  color: var(--kb-action-ink);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color .14s;
}
.kb-shelf-action .kb-action-icon,
.kb-shelf-action .kb-action-icon svg {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover:hover) {
  #files-view .kb-shelf-action:enabled:not([aria-disabled="true"]):hover {
    background: color-mix(in srgb, var(--kb-action-bg) 90%, var(--kb-action-ink));
  }
}
#files-view .kb-shelf-action:enabled:not([aria-disabled="true"]):active {
  background: color-mix(in srgb, var(--kb-action-bg) 83%, var(--kb-action-ink));
}
#files-view .kb-shelf-action:focus-visible {
  outline: 2px solid var(--kb-action-focus);
  outline-offset: 3px;
}
#upload-file[data-state="busy"] { cursor: progress; opacity: 1 }
#upload-file[data-state="busy"] .kb-action-icon { animation: kb-import-turn 1s linear infinite }
@keyframes kb-import-turn { to { transform: rotate(360deg) } }
#files-view #kb-import-feedback {
  min-width: 0;
  min-height: 24px;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--kb-feedback-ink);
}
#files-view #kb-import-feedback[data-state="error"] { color: var(--kb-feedback-error) }
@media (max-width:560px) {
  .kb-heading-actions { gap: 5px }
  #files-view .kb-shelf-action { padding: 0 8px; gap: 4px; font-size: 12px }
  .kb-shelf-action .kb-action-icon,
  .kb-shelf-action .kb-action-icon svg { width: 14px; height: 14px }
  #files-view #kb-import-feedback { font-size: 12px }
}
@media (prefers-reduced-motion:reduce) {
  #files-view .kb-shelf-action { transition: none }
  #upload-file[data-state="busy"] .kb-action-icon { animation: none }
}
#files-view{background:var(--panel);padding:34px clamp(22px,5vw,72px) 45px;max-width:none}
#files-view>.page-heading,#files-view>.file-search-bar,#files-view>#files-list,#files-view>p{max-width:1000px;margin-left:auto;margin-right:auto}
#files-view h1{font-size:32px;letter-spacing:1px}#files-view>.page-heading{align-items:center;margin-bottom:12px;gap:14px}#files-view>.page-heading .eyebrow{display:none}#files-view>.page-heading h1:after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#b66c45;margin:0 0 4px 9px}#files-view>p{font-size:13px;color:var(--chat-muted);margin-top:0;margin-bottom:26px}
#files-view .file-search-bar{background:var(--bg);margin-bottom:25px;border-color:var(--line);box-shadow:none}#files-view #file-search{font-size:14px}
.knowledge-toolbar{justify-content:space-between;gap:9px;border-bottom:1px solid var(--line);margin:18px 0 0}.knowledge-toolbar .knowledge-tabs{margin-right:auto;gap:24px}.knowledge-tabs button{font-size:13px}.knowledge-toolbar>.secondary{border:0;background:none;font-size:11px;padding:7px}.kb-formats{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:16px 0 20px}.kb-formats .kb-format{padding:7px 12px;background:none;border:1px solid transparent;border-radius:7px;font-size:12px;color:var(--chat-muted);min-height:34px}.kb-formats .kb-format[aria-pressed=true]{background:var(--bubble);border-color:var(--line);color:var(--chat-text)}
.knowledge-files.list .knowledge-open{padding:15px 38px 15px 78px;min-height:88px}.knowledge-files.list .knowledge-cover{width:62px;height:58px;top:15px;left:0;border:1px solid var(--line);border-radius:5px;background:var(--panel)}.knowledge-files.list .knowledge-open>strong{font-size:14px;padding-top:4px}.knowledge-files.list .knowledge-open>small{font-size:11px;line-height:1.7;margin-top:4px;color:var(--chat-muted)}.knowledge-files.list .knowledge-cover img{object-fit:contain}.knowledge-files.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.knowledge-files.grid .knowledge-file{border-color:var(--line);border-radius:11px;background:var(--panel)}.knowledge-files.grid .knowledge-cover{height:176px;background:var(--bg)}.knowledge-files.grid .knowledge-cover img{object-fit:contain}.knowledge-cover iframe{pointer-events:none}.knowledge-files.grid .knowledge-cover iframe{width:850px;height:620px;transform:scale(.32)}.knowledge-files.list .knowledge-cover iframe{width:850px;height:780px;transform:scale(.074)}
.knowledge-cover.kb-note-cover{position:relative!important;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;color:#645e45;background:#e4ddc9!important;border-radius:2px 6px 6px 2px!important;box-shadow:inset 5px 0 #ffffff40,3px 5px 12px #3c352013;overflow:hidden;padding:20px 18px;border:1px solid #d9d1ba}.knowledge-cover.kb-note-cover:after{content:'';position:absolute;left:16px;right:16px;bottom:32px;height:23px;border-top:1px solid #a89e8055;border-bottom:1px solid #a89e8055;transform:skewY(-12deg)}.kb-note-cover>small{font-size:8px;letter-spacing:1px;white-space:nowrap}.kb-note-cover>b{font:600 21px/1.65 'Songti SC',SimSun,serif;overflow-wrap:anywhere;max-height:85px;overflow:hidden}.kb-note-cover>span{font-size:9px;color:#95896d}.knowledge-files.list .knowledge-cover.kb-note-cover{position:absolute!important;width:43px;left:5px;padding:7px 6px;border-radius:2px 3px 3px 2px!important}.knowledge-files.list .kb-note-cover>b{font-size:7px;max-height:34px;line-height:1.6}.knowledge-files.list .kb-note-cover>small,.knowledge-files.list .kb-note-cover>span{display:none}.knowledge-files.list .kb-note-cover:after{left:5px;right:5px;bottom:10px;height:7px}.knowledge-files.grid .knowledge-cover.kb-note-cover{margin:16px auto 0;width:112px;height:155px;padding:16px 12px}.knowledge-files.grid .kb-note-cover>b{font-size:17px}.knowledge-files.grid .kb-note-cover>small{font-size:5px}
.kb-continue{position:relative;margin:25px 0 24px}.kb-continue>h2{font-size:14px;margin:0 0 16px;font-weight:500}.kb-continue>small{position:absolute;right:0;top:3px;font-size:11px;color:var(--chat-muted)}.kb-continue-files{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.kb-continue-files .knowledge-file{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--bg);padding:5px 15px}.kb-continue-files .knowledge-open{padding-right:30px!important}.kb-continue-files .knowledge-more{right:10px}
.kb-reader-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:13px 22px;background:var(--panel);flex:none}.kb-reader-head>.secondary{min-width:38px;font-size:12px;border:0;background:none;padding:8px}.kb-reader-label{flex:1;min-width:0}.kb-reader-label strong{display:block;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kb-reader-label small{display:block;margin-top:5px;font-size:10px;color:var(--chat-muted)}#reader-content>.kb-reading{background:var(--panel);overflow:auto;padding:42px clamp(24px,6vw,75px);scroll-behavior:smooth;scroll-padding-top:25px}#reader-content>.kb-reading.kb-warm{background:#f6f2e7;color:#454c3c}.kb-reading-body{max-width:740px;margin:auto;min-width:0;overflow-wrap:anywhere}.kb-reading-body>h1{font:600 33px/1.55 'Songti SC',SimSun,serif;letter-spacing:1px;margin:18px 0 27px;color:inherit}.kb-document-kicker{font-size:10px;letter-spacing:2px;color:var(--chat-muted)}#reader-content .kb-reading .markdown-preview{background:none;padding:0;max-width:none;color:inherit;font-size:var(--kb-font,18px);line-height:var(--kb-leading,1.9)}.kb-reading .markdown-preview>p{margin:22px 0}.kb-reading .markdown-preview h2{font:600 23px/1.65 'Songti SC',SimSun,serif;margin:38px 0 18px}.kb-reading .markdown-preview blockquote{border-left:2px solid #b7916b;padding:3px 0 3px 20px;margin:28px 0;color:var(--chat-muted)}.kb-plain-text{white-space:pre-wrap;font-size:var(--kb-font,18px);line-height:var(--kb-leading,1.9)}.kb-reading-body>img{display:block;max-width:100%;height:auto;margin:auto}.kb-reading-body>audio,.kb-reading-body>video{max-width:100%;display:block;margin:30px auto}.kb-reading-body video{width:100%}.kb-frame-body{max-width:none;min-height:100%}.kb-frame-body>iframe{height:max(65dvh,560px)!important;border:1px solid var(--line)!important;border-radius:7px}.kb-reader-foot{display:flex;gap:15px;align-items:center;justify-content:center;padding:8px 15px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel);flex:none;min-height:59px}.kb-reader-foot>.secondary{border:0;background:none;font-size:12px;padding:8px;min-height:40px}.kb-reader-foot>small{font-size:10px;color:var(--chat-muted)}.kb-reader-foot>small:last-child:empty{display:none}.kb-setting{display:flex;align-items:center;justify-content:space-between;padding:15px 0;font-size:13px}.kb-setting select{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:9px 13px}
.kb-editor{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--panel)}.kb-editor-head{display:flex;align-items:center;padding:13px 22px;gap:12px;border-bottom:1px solid var(--line);flex:none}.kb-editor-head>.secondary{border:0;background:none}.kb-editor-head>.primary{margin-left:auto;font-size:12px;white-space:nowrap}.kb-editor-status{min-width:0}.kb-editor-status b{font-size:13px;font-weight:500}.kb-editor-status small{display:block;font-size:10px;line-height:1.6;color:var(--chat-muted);margin-top:4px;overflow-wrap:anywhere}.kb-format-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:7px 16px;border-bottom:1px solid var(--line);flex:none}.kb-format-tools>.secondary{border:0;background:none;border-radius:6px;padding:6px 10px;font-size:12px;min-height:34px}.kb-format-tools>.secondary:hover{background:var(--bubble)}.kb-editor-paper{flex:1;min-height:0;overflow:auto;padding:35px max(28px,calc((100% - 740px)/2));background:var(--panel)}.kb-editor-paper>input{font:600 29px/1.7 'Songti SC',SimSun,serif;display:block;width:100%;min-width:0;border:0;outline:0;background:none;padding:0;color:var(--ink)}.kb-editor-paper>p{font-size:11px;color:var(--chat-muted);margin:10px 0 27px}.kb-editor-paper>textarea{width:100%;min-height:420px;resize:vertical;border:0;outline:none;background:transparent;font:17px/1.95 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);padding:0;white-space:pre-wrap}.kb-editor-preview{font-size:17px;line-height:1.95;min-height:420px}.kb-editor>footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--chat-muted);padding:12px 25px;border-top:1px solid var(--line);flex:none}.kb-match{background:#ecd39a;color:#4c493a}.knowledge-dialog{background:var(--panel);color:var(--ink)}.knowledge-dialog .knowledge-trash-row{flex-wrap:wrap}.knowledge-dialog .knowledge-trash-row>span{flex:1;font-size:12px;min-width:110px}.knowledge-dialog .knowledge-trash-row button{font-size:11px}
@media(max-width:900px){#files-view{padding:24px 25px 35px}.knowledge-files.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-reader-head{padding:12px 16px}.kb-reader-label strong{font-size:13px}.kb-reader-foot{gap:12px}.kb-editor-head{padding:12px 15px}.kb-editor-paper{padding:30px 27px}.kb-reading-body>h1{font-size:30px}}
@media(max-width:560px){#files-view{padding:22px 22px 32px}#files-view h1{font-size:28px}#files-view>.page-heading{gap:10px;flex-wrap:nowrap}#files-view>p{font-size:11px;margin-bottom:22px}#files-view #file-search{font-size:13px}.knowledge-toolbar{gap:3px}.knowledge-toolbar .knowledge-tabs{gap:21px}.knowledge-tabs button{font-size:12px}.knowledge-toolbar>.secondary{font-size:10px;padding:7px 4px}.kb-formats{flex-wrap:nowrap;overflow-x:auto;gap:4px;overscroll-behavior-x:contain;padding:14px 0 19px;scrollbar-width:thin}.kb-formats .kb-format{flex-shrink:0;font-size:11px;padding:7px 10px;min-height:36px}.knowledge-files.list .knowledge-open{padding-left:67px;padding-right:30px}.knowledge-files.list .knowledge-cover{width:52px;height:56px}.knowledge-files.list .knowledge-open>strong{font-size:13px}.knowledge-files.list .knowledge-open>small{font-size:10px}.knowledge-files.grid{gap:13px}.knowledge-files.grid .knowledge-cover{height:132px}.knowledge-files.grid .knowledge-open>strong{font-size:12px;padding-left:10px;padding-top:12px}.knowledge-files.grid .knowledge-open>small{font-size:10px;padding-left:10px}.knowledge-files.grid .knowledge-cover iframe{transform:scale(.2)}.knowledge-files.grid .knowledge-cover.kb-note-cover{width:87px;height:117px;padding:12px 10px}.knowledge-files.grid .kb-note-cover>b{font-size:13px}.knowledge-files.grid .kb-note-cover>span{font-size:7px}.kb-continue-files{grid-template-columns:1fr}.kb-continue-files .knowledge-file:nth-of-type(n+2){display:none}.kb-continue>h2{font-size:13px}.kb-continue>small{font-size:10px}.kb-reader-head{padding:10px 11px;gap:6px}.kb-reader-head>.secondary{padding:7px 5px;font-size:11px}.kb-reader-label strong{font-size:12px}.kb-reader-label small{font-size:9px}.kb-reader-foot{justify-content:space-around;gap:2px;padding-left:7px;padding-right:7px;flex-wrap:wrap}.kb-reader-foot>.secondary{font-size:11px;padding:6px}.kb-reader-foot>small{font-size:9px}.kb-reader-foot>small:last-child:not(:empty){flex-basis:100%;text-align:center}#reader-content>.kb-reading{padding:33px 25px}.kb-reading-body>h1{font-size:28px}.kb-reading .markdown-preview h2{font-size:21px}.kb-frame-body>iframe{height:max(68dvh,500px)!important}.kb-editor-head>.secondary{font-size:11px;padding:8px 5px}.kb-editor-head>.primary{padding:8px 9px;font-size:11px}.kb-editor-status b{font-size:12px}.kb-editor-paper>input{font-size:27px}.kb-editor-paper>textarea{font-size:17px;min-height:52dvh}.kb-format-tools{gap:4px;justify-content:flex-start;padding:7px 15px}.kb-format-tools>.secondary{font-size:11px;padding:6px 8px}.kb-editor>footer{font-size:9px}.knowledge-dialog{padding:22px;max-height:85dvh}.knowledge-dialog>button,.knowledge-dialog>a{min-height:44px}}
@media(prefers-reduced-motion:reduce){#reader-content>.kb-reading{scroll-behavior:auto}}

.kb-file-snippet{font-size:12px;color:var(--chat-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 38px 0 14px;line-height:1.6}.knowledge-files.list .kb-file-snippet{margin-left:0}.knowledge-files.grid .kb-file-snippet{font-size:11px}@media(max-width:560px){.kb-file-snippet{font-size:11px}.knowledge-files.grid .kb-file-snippet{margin-left:10px;font-size:10px}}

/* Keep the category bar on one row and scale text previews as document pages. */
.knowledge-toolbar{flex-wrap:nowrap}.knowledge-toolbar .knowledge-tabs{width:auto;flex:1;flex-wrap:nowrap}.knowledge-files.list .knowledge-cover pre{width:650px;height:740px;padding:28px;font:17px/1.8 system-ui;transform:scale(.09);transform-origin:top left}.knowledge-files.grid .knowledge-cover pre{width:650px;height:740px;padding:32px;font:17px/1.8 system-ui;transform:scale(.33);transform-origin:top left}@media(max-width:560px){.knowledge-toolbar .knowledge-tabs{gap:17px}.knowledge-files.list .knowledge-cover pre{transform:scale(.079)}.knowledge-files.grid .knowledge-cover pre{transform:scale(.22)}}

/* Local feedback only: polling never animates or rebuilds the editor. */
.kb-formats button,.knowledge-open,.knowledge-more,.kb-format-tools button,.kb-reader-foot button{transition:background-color .16s ease,border-color .16s ease,color .16s ease}.knowledge-open:hover{background:color-mix(in srgb,var(--bubble) 35%,transparent)}.knowledge-open:active,.kb-format-tools button:active{background:var(--bubble)}.knowledge-dialog[open]{animation:kb-dialog-in .18s ease-out}.knowledge-dialog::backdrop{background:#242b2340;backdrop-filter:blur(2px)}.kb-editor-head .primary:disabled{opacity:.65}.kb-editor-paper textarea:focus-visible,.kb-editor-paper input:focus-visible{outline:0}.kb-file-snippet,.kb-editor-status small{transition:none}.kb-editor-status{min-height:38px}.kb-reading .reader-pagination button{min-width:70px}.knowledge-dialog button:focus-visible{outline:2px solid #ad7954;outline-offset:2px}@keyframes kb-dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:560px){.knowledge-dialog{position:fixed;top:auto;bottom:0;left:0;right:0;margin:0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding-bottom:max(24px,env(safe-area-inset-bottom))}.knowledge-dialog .dialog-heading{margin-bottom:15px}.knowledge-dialog:before{content:'';display:block;width:32px;height:3px;border-radius:3px;background:var(--line);margin:-7px auto 15px}.kb-editor-head .kb-editor-status small{font-size:9px}.knowledge-dialog[open]{animation:kb-sheet-in .2s ease-out}@keyframes kb-sheet-in{from{opacity:.7;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.knowledge-dialog[open]{animation:none}.kb-formats button,.knowledge-open,.knowledge-more,.kb-format-tools button,.kb-reader-foot button{transition:none}}
