:root {
  --navy: #102a4a;
  --navy-soft: #183b62;
  --blue: #176bcb;
  --blue-hover: #0e58ad;
  --blue-pale: #edf6ff;
  --ink: #162235;
  --muted: #6b7788;
  --border: #dce5ee;
  --surface: #ffffff;
  --page: #f5f8fb;
  --danger: #b3261e;
  --shadow: 0 12px 30px rgba(20, 48, 83, .08);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(70, 147, 235, .48);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; padding-bottom: 157px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 28px;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.brand-cluster { display: flex; align-items: center; gap: 22px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 650; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; color: #cfe7ff; font-family: Georgia, serif; font-size: 16px; }
.view-tabs { display: flex; align-items: stretch; align-self: stretch; gap: 3px; }
.view-tab { position: relative; border: 0; padding: 0 12px; background: transparent; color: #a9bed4; font-size: 13px; }
.view-tab:hover { color: #fff; }
.view-tab.active { color: #fff; font-weight: 650; }
.view-tab.active::after { position: absolute; right: 10px; bottom: 0; left: 10px; height: 3px; border-radius: 3px 3px 0 0; background: #7cc4ff; content: ""; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.service-status { display: inline-flex; align-items: center; gap: 7px; color: #c8d7e8; font-size: 12px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5b84c; }
.service-status.ready .status-dot { background: #48c58a; box-shadow: 0 0 0 3px rgba(72,197,138,.13); }
.service-status.offline .status-dot { background: #e47e7e; }

.button { border: 1px solid transparent; border-radius: 8px; padding: 7px 11px; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.button-quiet { background: rgba(255,255,255,.10); color: #fff; font-size: 13px; }
.button-quiet:hover { background: rgba(255,255,255,.19); }
.button-stop { border-color: #d4dce6; background: #fff; color: #3d4c5e; font-size: 13px; }
.button-stop:hover { border-color: #9fb2c8; background: #f7fafc; }

.chat-workspace { width: min(100%, 980px); margin: 0 auto; padding: 24px 26px; }
.conversation { min-height: calc(100vh - 215px); }
.notice { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 7px 11px; border: 1px solid #cfe3f7; border-radius: 8px; background: #f1f8ff; color: #4b6682; font-size: 12px; }
.notice-icon { display: grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border: 1px solid #7ba8d3; border-radius: 50%; color: #3977ae; font-family: Georgia, serif; font-size: 11px; font-weight: bold; }

.message-list { display: grid; gap: 22px; }
.empty-state { display: grid; justify-items: center; padding: min(15vh, 140px) 20px 40px; text-align: center; }
.empty-orb { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #edf7ff, #d9edff); color: var(--blue); font-size: 37px; line-height: 1; box-shadow: inset 0 0 0 1px #c9e3fa; }
.empty-state h1 { margin: 19px 0 5px; color: #1d3652; font-size: 23px; font-weight: 650; }
.empty-state p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; }

.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.message-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 700; }
.message.user .message-avatar { background: #e6eef8; color: #315474; }
.message.assistant .message-avatar { background: linear-gradient(135deg, #176bcb, #4c93dd); color: white; font-family: Georgia, serif; }
.message-main { min-width: 0; }
.message-name { margin: 2px 0 6px; color: #66788b; font-size: 12px; font-weight: 600; }
.message-content { max-width: 760px; overflow-wrap: anywhere; white-space: pre-wrap; color: #1e2d3e; }
.message.user .message-content { width: fit-content; max-width: min(760px, 100%); margin-left: auto; padding: 10px 14px; border: 1px solid #d3e5f6; border-radius: 14px 4px 14px 14px; background: var(--blue-pale); }
.message.user .message-name { text-align: right; }
.message.user .message-main { display: grid; justify-items: end; }
.message.assistant .message-content { padding: 2px 1px; }
.message-content.formatted-answer { white-space: normal; }
.formatted-answer p { margin: 0 0 12px; }
.formatted-answer h2, .formatted-answer h3, .formatted-answer h4 { margin: 18px 0 8px; font-size: 17px; line-height: 1.5; }
.formatted-answer ul, .formatted-answer ol { margin: 0 0 12px; padding-left: 24px; }
.formatted-answer li { margin-bottom: 6px; }
.formatted-answer pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-sources { display: grid; max-width: 760px; gap: 7px; margin-top: 14px; }
.message-sources-title { color: #47657f; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.message-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #dce7f0; border-radius: 8px; background: #f7fafc; color: #294f70; font-size: 12px; text-decoration: none; }
.message-source:hover { border-color: #9ebbd2; background: #f0f6fa; }
.message-source span:last-child { color: #7b8d9f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.message-thinking { color: #66788b; }
.message-record-link { display: inline-block; margin-top: 10px; color: #47657f; font-size: 12px; }
.records-panel { max-width: 1200px; margin: 0 auto; }
.records-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.records-heading h1 { font-size: 22px; }
.records-layout { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 28px; }
.records-list { min-width: 0; }
.record-link { display: grid; gap: 5px; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.record-link[aria-current], .record-link:hover { background: var(--blue-pale); }
.record-link span, .record-meta { color: #66788b; font-size: 12px; }
.record-detail { min-width: 0; overflow-wrap: anywhere; }
.record-detail h2 { font-size: 17px; margin: 18px 0 10px; }
.record-text { white-space: pre-wrap; }
.record-text.formatted-answer { white-space: normal; }
.record-detail details { padding: 12px 0; border-bottom: 1px solid var(--border); }
.record-detail summary { cursor: pointer; font-weight: 600; }
.record-detail details > .record-text { margin-top: 12px; }
.message.assistant.pending:not(.waiting) .message-content::after { display: inline-block; width: 5px; height: 17px; margin-left: 4px; background: var(--blue); content: ""; vertical-align: -3px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.message-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; color: var(--danger); font-size: 13px; }
.retry-button { border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: var(--blue); font-size: 13px; }
.retry-button:hover { color: var(--blue-hover); }

.composer-area { position: fixed; right: 0; bottom: 0; left: 0; z-index: 4; padding: 9px 26px 11px; border-top: 1px solid var(--border); background: rgba(255,255,255,.94); box-shadow: 0 -8px 24px rgba(30,52,77,.05); backdrop-filter: blur(10px); }
.composer, .input-alert, .composer-hint { width: min(928px, 100%); margin-right: auto; margin-left: auto; }
.composer { padding: 9px 12px 8px; border: 1px solid #cbd9e7; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px rgba(16,42,74,.04); transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: #6fa7df; box-shadow: 0 0 0 3px rgba(75,148,222,.12); }
#message-input { display: block; width: 100%; max-height: 180px; min-height: 28px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); line-height: 1.55; }
#message-input::placeholder { color: #98a7b6; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }
.input-count { color: #94a1af; font-size: 12px; font-variant-numeric: tabular-nums; }
.input-count.limit { color: var(--danger); }
.composer-actions { display: flex; align-items: center; gap: 8px; }
.send-button { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 8px; padding: 7px 11px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; transition: background .16s ease, opacity .16s ease; }
.send-button:hover:not(:disabled) { background: var(--blue-hover); }
.send-button:disabled { cursor: not-allowed; opacity: .46; }
.send-button span:first-child { font-size: 17px; line-height: 1; }
.composer-hint { margin-top: 4px; color: #99a5b2; font-size: 11px; text-align: center; }
.input-alert { margin-bottom: 7px; padding: 7px 11px; border: 1px solid #f2c6c4; border-radius: 8px; background: #fff7f6; color: #9d2924; font-size: 13px; }
.knowledge-panel { padding-bottom: 28px; }
.knowledge-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 5px 0 22px; }
.eyebrow { margin: 0 0 3px; color: #5b88ad; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.knowledge-heading h1 { margin: 0; color: #1c3551; font-size: 28px; line-height: 1.25; }
.knowledge-description { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.knowledge-search { display: flex; align-items: center; width: min(360px, 100%); min-height: 40px; gap: 8px; padding: 0 12px; border: 1px solid #cbd9e7; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(16,42,74,.04); }
.knowledge-search:focus-within { border-color: #6fa7df; box-shadow: 0 0 0 3px rgba(75,148,222,.12); }
.search-icon { color: #6f8296; font-size: 21px; line-height: 1; }
#knowledge-search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
#knowledge-search-input::placeholder { color: #9aa8b7; }
.knowledge-sections { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 3px; border: 1px solid #d4e0ea; border-radius: 9px; background: #edf3f8; }
.knowledge-section { min-height: 34px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: #60778c; font-weight: 600; }
.knowledge-section.active { background: #fff; color: #174e7d; box-shadow: 0 1px 4px rgba(20,48,83,.12); }
.knowledge-domains { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.knowledge-domain { min-height: 31px; padding: 0 11px; border: 1px solid #d3dfe9; border-radius: 999px; background: #fff; color: #61778a; font-size: 12px; }
.knowledge-domain:hover, .knowledge-domain.active { border-color: #7ba6ca; background: #eaf4fb; color: #195e93; }
.knowledge-toolbar { min-height: 28px; margin-bottom: 8px; color: #78889a; font-size: 12px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.knowledge-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #d9e3ec; border-radius: 9px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(20,48,83,.05); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.knowledge-card:hover { border-color: #96b8d4; box-shadow: 0 9px 23px rgba(20,48,83,.11); transform: translateY(-2px); }
.knowledge-card:focus-visible { outline: 3px solid rgba(45,126,198,.24); outline-offset: 2px; }
.knowledge-card-media { display: grid; width: 100%; height: 132px; place-items: center; overflow: hidden; background: #edf3f8; color: #55738e; }
.knowledge-card-media img { width: 100%; height: 100%; object-fit: cover; }
.knowledge-card-glyph { font-size: 38px; font-weight: 700; letter-spacing: .04em; }
.knowledge-card-body { display: flex; min-height: 205px; flex: 1; flex-direction: column; padding: 13px 14px 14px; }
.knowledge-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #71859a; font-size: 11px; }
.knowledge-card-category { max-width: 70%; overflow: hidden; color: #2c6d9d; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-card h2 { display: -webkit-box; margin: 8px 0 7px; overflow: hidden; color: #203b58; font-size: 16px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.knowledge-card-excerpt { display: -webkit-box; flex: 1; margin: 0; overflow: hidden; color: #596d80; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.knowledge-card-concepts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.knowledge-chip { max-width: 100%; overflow: hidden; padding: 2px 7px; border-radius: 999px; background: #eef5fb; color: #507290; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-card-source { margin-top: 10px; overflow: hidden; color: #9aa7b4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-empty { padding: 58px 16px; border: 1px dashed #cbd9e7; border-radius: 9px; background: rgba(255,255,255,.55); color: #73869a; text-align: center; }
.knowledge-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; color: #687d92; font-size: 12px; }
.knowledge-detail { max-width: 860px; margin: 0 auto; padding-bottom: 48px; }
.knowledge-back { display: inline-flex; margin-bottom: 22px; color: #276b9f; font-size: 13px; font-weight: 600; text-decoration: none; }
.knowledge-detail-meta { color: #2c6d9d; font-size: 12px; font-weight: 700; }
.knowledge-detail h1 { margin: 7px 0 8px; color: #173653; font-size: clamp(24px, 4vw, 35px); line-height: 1.25; }
.knowledge-detail-source { margin: 0 0 9px; color: #8a99a8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.knowledge-detail-original-pdf { display: inline-flex; margin: 0 0 28px; color: #276b9f; font-size: 12px; font-weight: 600; text-decoration: none; }
.knowledge-detail-original-pdf:hover { color: #174e7d; text-decoration: underline; }
.knowledge-detail-content { color: #24384c; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.knowledge-detail-content h2, .knowledge-detail-content h3, .knowledge-detail-content h4 { margin: 28px 0 10px; color: #193e5f; line-height: 1.35; }
.knowledge-detail-content h2 { font-size: 22px; }
.knowledge-detail-content h3 { font-size: 18px; scroll-margin-top: 74px; }
.knowledge-detail-content p { margin: 0 0 13px; white-space: pre-wrap; }
.knowledge-detail-content ul { margin: 0 0 15px; padding-left: 22px; }
.knowledge-detail-content pre { overflow: auto; margin: 0 0 15px; padding: 14px; border-radius: 8px; background: #102b43; color: #eaf3fa; white-space: pre-wrap; }
.knowledge-detail-table-scroll { max-width: 100%; margin: 0 0 15px; overflow-x: auto; border: 1px solid #d7e2eb; border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; }
.knowledge-detail-table-scroll:focus-visible { outline: 3px solid rgba(45,126,198,.32); outline-offset: 2px; }
.knowledge-detail-table { width: max-content; min-width: 100%; border-collapse: collapse; color: #294359; font-size: 13px; line-height: 1.55; }
.knowledge-detail-table th, .knowledge-detail-table td { min-width: 110px; padding: 8px 10px; border-right: 1px solid #dce7ef; border-bottom: 1px solid #dce7ef; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.knowledge-detail-table th { background: #edf5fa; color: #244b6c; font-weight: 700; }
.knowledge-detail-table tr > :last-child { border-right: 0; }
.knowledge-detail-table tbody tr:last-child td { border-bottom: 0; }
.knowledge-detail-content img { display: block; max-width: 100%; max-height: 620px; margin: 18px auto; border: 1px solid #d7e2eb; border-radius: 8px; object-fit: contain; }
.knowledge-detail-image { cursor: zoom-in; }
.knowledge-detail-image:focus-visible { outline: 3px solid rgba(45,126,198,.42); outline-offset: 3px; }
.image-lightbox { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 14px; border: 1px solid #9ebbd2; border-radius: 10px; background: #fff; box-shadow: 0 22px 70px rgba(8,27,45,.42); color: #203b58; }
.image-lightbox::backdrop { background: rgba(11,26,39,.68); }
.image-lightbox-figure { display: grid; max-height: calc(100dvh - 60px); margin: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.image-lightbox-figure img { display: block; width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; }
.image-lightbox-figure figcaption { min-height: 20px; padding-right: 70px; color: #516d84; font-size: 13px; overflow-wrap: anywhere; }
.image-lightbox-close { position: absolute; z-index: 1; top: 18px; right: 18px; min-height: 34px; padding: 0 10px; border: 1px solid #a8bfd2; border-radius: 7px; background: rgba(255,255,255,.94); color: #234c6f; font-size: 12px; font-weight: 700; }
.image-lightbox-close:hover { border-color: #6d9cbe; background: #f2f8fc; }
.image-lightbox-close:focus-visible { outline: 3px solid rgba(45,126,198,.42); outline-offset: 2px; }
body.lightbox-open { overflow: hidden; }
.knowledge-detail-note { margin: 18px 0; padding: 11px 13px; border-left: 3px solid #69a2cf; background: #edf6fc; color: #49667e; font-size: 12px; }
.button-secondary { border-color: #cad8e5; background: #fff; color: #3d5a75; font-size: 12px; }
.button-secondary:hover:not(:disabled) { border-color: #94b4cf; background: #f5f9fc; }
.button-secondary:disabled { cursor: not-allowed; opacity: .45; }
.app-shell.knowledge-active .conversation, .app-shell.knowledge-active .composer-area { display: none; }
.app-shell.knowledge-active { padding-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skf-views { display: flex; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid #cad7de; }
.skf-views button { min-height: 40px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #52646e; }
.skf-views button[aria-selected="true"] { border-bottom-color: #287563; color: #185f4e; font-weight: 700; }
.skf-family { min-width: 0; min-height: 165px; padding: 18px; text-align: left; border: 1px solid #cbd9d3; border-radius: 6px; background: #fff; color: #284d40; }
.skf-family:hover { border-color: #478d72; background: #f2f8f5; }
.skf-family h2 { margin: 0 0 10px; font-size: 17px; overflow-wrap: anywhere; }
.skf-family p { min-height: 44px; font-size: 13px; color: #65736c; }
.skf-family span { font-size: 12px; color: #287563; }
.skf-family-bar { display: flex; align-items: center; gap: 15px; margin: 0 0 20px; }
.knowledge-pages { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; color: #376652; }
.knowledge-pages select { min-width: 0; max-width: 100%; flex: 1; padding: 8px; border: 1px solid #b7cfc3; background: #fff; color: #294839; }
.knowledge-detail-sections { display: flex; align-items: center; gap: 12px; max-width: 100%; margin: 0 0 12px; font-size: 13px; color: #376652; }
.knowledge-detail-sections select { min-width: 0; max-width: 100%; flex: 1; padding: 8px; border: 1px solid #b7cfc3; background: #fff; color: #294839; }
.knowledge-detail-sections { position: sticky; top: 58px; z-index: 4; padding: 8px 0; background: var(--page); }
.knowledge-card-compact .knowledge-card-media:has(.knowledge-card-glyph) { display: none; }
.knowledge-card-compact { border-radius: 6px; box-shadow: none; }
.knowledge-card-compact .knowledge-card-body { min-height: 160px; }
.knowledge-card-compact .knowledge-card-media img { object-fit: contain; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .app-shell { padding-bottom: 172px; }
  .topbar { min-height: 52px; padding: 0 14px; }
  .topbar { flex-wrap: wrap; }
  .records-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .records-list { max-height: 240px; overflow-y: auto; }
  .brand-cluster { gap: 9px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 23px; height: 23px; font-size: 14px; }
  .view-tab { padding: 0 8px; font-size: 12px; }
  .view-tab.active::after { right: 7px; left: 7px; }
  .topbar-actions { gap: 8px; }
  .service-status { display: none; }
  .chat-workspace { padding: 16px 14px; }
  .notice { margin-bottom: 22px; font-size: 11px; }
  .message-list { gap: 18px; }
  .message { grid-template-columns: 29px minmax(0, 1fr); gap: 9px; }
  .message-avatar { width: 29px; height: 29px; border-radius: 8px; font-size: 11px; }
  .message-content { font-size: 14px; }
  .empty-state { padding-top: 18vh; }
  .empty-state h1 { font-size: 21px; }
  .composer-area { padding: 8px 10px 9px; }
  .send-label { display: none; }
  .send-button { padding: 7px 10px; }
  .knowledge-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 2px; }
  .knowledge-heading h1 { font-size: 24px; }
  .knowledge-search { width: 100%; }
  .knowledge-grid { grid-template-columns: 1fr; gap: 12px; }
  .knowledge-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .knowledge-card-media { height: 100%; min-height: 184px; }
  .knowledge-card-body { min-height: 184px; padding: 11px 12px; }
  .knowledge-card h2 { font-size: 14px; }
  .knowledge-card-excerpt { -webkit-line-clamp: 3; }
  .knowledge-card-compact { display: flex; }
  .knowledge-card-compact .knowledge-card-media { height: 130px; min-height: 130px; }
  .knowledge-detail-sections { top: 52px; align-items: stretch; flex-direction: column; gap: 5px; }
  .knowledge-detail-sections select { width: 100%; }
  .knowledge-detail-table { font-size: 12px; }
  .knowledge-detail-table th, .knowledge-detail-table td { min-width: 96px; padding: 7px 8px; }
  .image-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 9px; }
  .image-lightbox-figure { max-height: calc(100dvh - 34px); }
  .image-lightbox-figure img { max-height: calc(100dvh - 105px); }
  .image-lightbox-figure figcaption { padding-right: 62px; font-size: 12px; }
  .image-lightbox-close { top: 13px; right: 13px; min-height: 30px; padding: 0 8px; }
}
