:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #637083;
  --line: #d9e0e8;
  --panel: #ffffff;
  --paper: #f5f7fa;
  --brand: #156f73;
  --brand-strong: #0d5558;
  --accent: #d64f2a;
  --ok: #237a45;
  --warn: #b15c00;
  --shadow: 0 12px 32px rgba(22, 33, 43, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f5f7fa 0%, #eef5f3 48%, #f8f1ec 100%); }
.auth-panel { width: min(100%, 460px); display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 26px; }
.auth-panel h1 { margin: 0; font-size: 28px; letter-spacing: 0; }
.auth-panel p { margin: 0; line-height: 1.5; }
.auth-brand { color: var(--ink); }
.auth-brand svg { color: var(--brand); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 268px 1fr; }
.sidebar { background: #101820; color: #f7fbff; padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.brand svg { width: 28px; height: 28px; color: #79d5cf; }
.mode-card { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 8px; padding: 14px; }
.mode-card small { color: #b8c5d1; display: block; margin-top: 4px; line-height: 1.45; }
.nav { display: grid; gap: 8px; }
.nav button { border: 0; border-radius: 8px; color: #d9e7f2; background: transparent; padding: 11px 12px; display: flex; gap: 10px; align-items: center; text-align: left; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav svg, .btn svg, .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.main { min-width: 0; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: 0; }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.content { padding: 24px 28px 40px; display: grid; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h2, .card h3 { margin: 0 0 12px; font-size: 17px; }
.metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.metric strong { font-size: 30px; }
.muted { color: var(--muted); }
.form { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; color: #344252; font-weight: 650; font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 11px; color: var(--ink); min-height: 42px; }
textarea { resize: vertical; min-height: 92px; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(21,111,115,.18); border-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 10px 13px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.danger { border-color: #f0c6ba; color: #92351f; }
.btn.ghost { background: transparent; }
.pill { border-radius: 999px; padding: 5px 9px; background: #e8f3f2; color: var(--brand-strong); font-size: 12px; font-weight: 750; display: inline-flex; align-items: center; gap: 6px; }
.pill.warn { background: #fff2de; color: var(--warn); }
.pill.ok { background: #e7f5eb; color: var(--ok); }
.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: grid; gap: 8px; }
.item-head { display: flex; gap: 10px; justify-content: space-between; align-items: start; }
.item h4 { margin: 0; font-size: 15px; }
.item p { margin: 0; color: var(--muted); line-height: 1.45; }
.table { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 680px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.app-chat { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #edf4f3; }
.app-chat .chat { width: min(100%, 860px); min-height: min(720px, calc(100vh - 40px)); }
.chat { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 560px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; box-shadow: var(--shadow); }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 360px; }
.bubble { max-width: min(78%, 620px); padding: 11px 13px; border-radius: 8px; line-height: 1.45; background: #eef4f8; align-self: flex-start; white-space: pre-wrap; }
.bubble.user { background: var(--brand); color: #fff; align-self: flex-end; }
.chat-form { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
.empty { border: 1px dashed #b9c5d1; border-radius: 8px; padding: 18px; color: var(--muted); background: #fbfcfe; text-align: center; }
.token { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #f1f5f9; padding: 8px; border-radius: 8px; border: 1px solid var(--line); word-break: break-all; }
.setup-field { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.profile-setup { gap: 16px; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.setup-step { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; min-height: 44px; }
.setup-step span { width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: #eef4f8; color: var(--muted); font-size: 12px; }
.setup-step.active { border-color: var(--brand); color: var(--brand-strong); background: #edf7f6; }
.setup-step.active span { background: var(--brand); color: #fff; }
.setup-panel { display: none; gap: 12px; }
.setup-panel.active { display: grid; }
.step-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.checklist { display: grid; gap: 8px; }
.checklist { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; min-height: 42px; }
.test-panel { align-self: start; }
.test-panel textarea { min-height: 118px; }
.qa-result { display: grid; gap: 10px; }
.qa-result p { margin: 0; line-height: 1.45; }
.result-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-summary > div { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fbfcfe; display: grid; gap: 4px; }
.result-summary strong { font-size: 18px; }
.answer-preview { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: grid; gap: 6px; }
.match-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.match-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: grid; gap: 9px; align-content: start; }
.match-card .btn { width: 100%; }
.matched { color: var(--muted); }
.train-exact { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfe; }
.unanswered-group > .answer-form { border-color: #eef2f6; background: #fbfcfe; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #101820; color: #fff; padding: 12px 14px; border-radius: 8px; box-shadow: var(--shadow); z-index: 20; }
.hide { display: none !important; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .chat-wrap { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 1; }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 16px; }
  .content { padding: 16px; }
  .row, .setup-field, .chat-form, .setup-steps { grid-template-columns: 1fr; }
  .step-actions { flex-direction: column-reverse; }
  .bubble { max-width: 94%; }
}
/* Workspace design system */
:root { --ink:#1c3038; --muted:#72818b; --line:#e4eaee; --paper:#f5f8fa; --brand:#117d79; --brand-strong:#09635f; --shadow:0 3px 16px rgba(27,49,60,.035); font-size:14px; }
body { line-height:1.55; -webkit-font-smoothing:antialiased; }
button, a, input, textarea, select { -webkit-tap-highlight-color:transparent; }
button { transition:background .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible { outline:3px solid #64c9bf; outline-offset:3px; }
button:disabled { opacity:.5; cursor:not-allowed; }
.shell { grid-template-columns:248px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100dvh; overflow-y:auto; padding:30px 20px 20px; gap:24px; background:#112c33; }
.brand { gap:12px; font-size:21px; letter-spacing:-.6px; line-height:1.2; }
.brand > .icon { width:36px; height:36px; padding:6px; border-radius:11px; background:#20454a; color:#80d9c9; }
.brand-caption { display:block; font-size:9px; letter-spacing:2.2px; color:#91b0b7; font-weight:600; margin-top:7px; }
.mode-card { border-color:#345057; background:#1b383f; padding:15px; border-radius:12px; }
.mode-card strong { display:block; font-size:14px; }
.mode-card small { color:#9eb8bf; font-size:12px; }
.workspace-label,.nav-label { font-size:10px; letter-spacing:1.6px; color:#819fa7; font-weight:700; }
.workspace-label { display:block; margin-bottom:8px; }
.nav-label { margin:0 12px -14px; }
.nav { gap:5px; }
.nav button { min-height:46px; padding:12px; border-radius:9px; color:#b8cdd2; font-size:13px; font-weight:550; gap:12px; }
.nav button:hover { background:#204047; }
.nav button.active { background:#23736f; color:white; box-shadow:0 3px 8px #071f2520; }
.nav-dot { margin-left:auto; width:6px; height:6px; border-radius:50%; background:#9ce6d2; }
.sidebar-footer { margin-top:auto; display:flex; align-items:center; gap:10px; border-top:1px solid #2b464d; padding:20px 5px 0; color:#89b3b9; }
.sidebar-footer strong { display:block; font-size:11px; font-weight:600; color:#b5cbcf; }
.sidebar-footer small { font-size:10px; }
.topbar { min-height:76px; padding:15px 36px; background:#ffffffed; }
.breadcrumb { display:flex; gap:13px; color:var(--muted); font-size:12px; align-items:center; }
.breadcrumb strong { color:#40535d; font-weight:550; }
.breadcrumb > span { color:#c3cdd2; }
.content { padding:32px 36px 48px; max-width:1600px; margin:0 auto; gap:24px; }
.page-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.eyebrow { color:var(--brand); letter-spacing:1.8px; font-size:10px; font-weight:750; }
.page-heading h1 { font-size:28px; letter-spacing:-.9px; margin:5px 0 6px; line-height:1.3; }
.page-heading p { margin:0; color:var(--muted); font-size:13px; }
.workspace-status { display:inline-flex; align-items:center; white-space:nowrap; gap:7px; font-size:11px; color:#54726a; background:#eaf3ef; padding:7px 11px; border-radius:20px; }
.workspace-status > span { width:6px; height:6px; background:#43a485; border-radius:50%; }
.grid { gap:20px; align-items:start; }
.card { padding:23px; border-radius:14px; }
.card h2,.card h3 { font-size:15px; font-weight:700; letter-spacing:-.2px; margin-bottom:19px; }
.metric { min-height:150px; position:relative; overflow:hidden; }
.metric:after { content:''; position:absolute; top:24px; right:23px; width:9px; height:9px; border:6px solid #e0f2ee; background:#3e9e90; border-radius:50%; box-sizing:content-box; }
.metric strong { display:inline-block; font-size:36px; font-weight:700; letter-spacing:-1px; margin-top:7px; line-height:1.2; }
.metric .muted { font-size:12px; }
.metric p { margin:9px 0 0; }
.form { gap:18px; }
.row { gap:16px; }
label { font-size:12px; font-weight:600; gap:7px; }
input,textarea,select { border-color:#dce5e9; border-radius:9px; padding:11px 13px; font-size:13px; min-height:44px; transition:border-color .15s,box-shadow .15s; }
input::placeholder,textarea::placeholder { color:#9aa7b0; }
input:focus,textarea:focus,select:focus { outline:none; border-color:#4aa79f; box-shadow:0 0 0 3px #117d7912; }
.btn { font-size:12px; font-weight:600; border-radius:9px; padding:10px 14px; min-height:40px; }
.btn:hover { background:#f4f8f9; border-color:#bdccd2; }
.btn.primary { box-shadow:0 3px 6px #117d7914; }
.btn.primary:hover { border-color:var(--brand-strong); background:var(--brand-strong); }
.btn.ghost { color:var(--muted); border-color:transparent; }
.item { border-radius:10px; padding:16px; gap:9px; }
.item h4 { font-size:13px; }
.item p { font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.item-head { align-items:center; }
.pill { font-size:10px; padding:4px 9px; font-weight:650; }
.token { display:inline-block; max-width:100%; font-size:11px; line-height:1.7; background:#f4f7f9; padding:7px 10px; border-color:#e9eef1; }
.table { border-radius:10px; }
th { padding:13px 16px; font-size:10px; letter-spacing:.8px; }
td { padding:17px 16px; font-size:12px; line-height:1.9; }
tbody tr:hover { background:#fafcfd; }
.empty { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; min-height:250px; border:1px dashed #dce6ea; border-radius:12px; background:#fbfcfd; padding:38px 20px; }
.empty-icon { width:52px; height:52px; display:grid; place-items:center; border:1px solid #e0ecea; border-radius:16px; background:#edf6f3; color:#428c81; margin-bottom:4px; }
.empty-icon .icon { width:23px; height:23px; }
.empty strong { color:#405560; font-size:14px; font-weight:600; }
.empty > span:last-child { font-size:12px; }
.auth-shell { background:radial-gradient(ellipse at 20% 15%,#dcedE8,transparent 55%),radial-gradient(ellipse at 90% 85%,#e0edf3,transparent 55%),#f5f8fa; }
.auth-panel { padding:36px; border-radius:20px; gap:22px; box-shadow:0 20px 70px #193f4810; }
.auth-panel .brand { margin-bottom:10px; font-size:17px; }
.auth-panel h1 { font-size:27px; letter-spacing:-.8px; }
.auth-panel .btn.primary { width:100%; min-height:46px; margin-top:4px; }
.auth-panel .muted { font-size:13px; line-height:1.8; }
.app-chat { background:radial-gradient(ellipse at top,#dcefe9,transparent 70%),#f2f6f7; padding:32px; }
.app-chat .chat { height:min(800px,calc(100dvh - 64px)); min-height:480px; border-radius:20px; box-shadow:0 18px 60px #173b4210; }
.chat-head { padding:22px 24px; background:white; }
.chat-head strong { font-size:16px; }
.chat-head .muted { font-size:12px; }
.messages { background:#fafcfc; padding:24px; gap:16px; min-height:0; }
.bubble { border-radius:14px 14px 14px 3px; padding:14px 17px; background:#edf2f4; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.bubble.user { border-radius:14px 14px 3px 14px; }
.chat-form { padding:18px 20px; background:#fff; }
.chat-form input { background:#f7f9fa; }
.setup-step { font-size:12px; border-radius:10px; }
.check-row input[type=checkbox] { width:16px; min-height:16px; accent-color:var(--brand); }
.toast { border-radius:12px; padding:14px 20px; max-width:calc(100vw - 32px); }
@media(min-width:981px) and (max-width:1200px) { .shell { grid-template-columns:220px minmax(0,1fr); } .content { padding:28px 24px; } .sidebar { padding:24px 16px; } .span-5,.span-7 { grid-column:span 6; } }
@media(max-width:980px) { .shell { grid-template-columns:1fr; } .sidebar { position:static; height:auto; padding:20px; gap:18px; } .sidebar .brand { font-size:19px; } .mode-card { padding:12px 15px; } .nav { display:flex; overflow-x:auto; gap:6px; padding-bottom:4px; } .nav button { flex:0 0 auto; white-space:nowrap; } .nav-label,.sidebar-footer { display:none; } .topbar { padding:16px 24px; } .content { padding:24px; } .grid,.chat-wrap { grid-template-columns:1fr; } .span-4,.span-5,.span-6,.span-7,.span-8,.span-12 { grid-column:span 1; } .metric { min-height:130px; } }
@media(max-width:620px) { .sidebar { padding:18px 16px 10px; gap:16px; } .mode-card { display:none; } .nav button { min-height:40px; padding:9px 12px; font-size:12px; } .topbar { flex-direction:row; align-items:center; padding:12px 16px; gap:8px; min-height:64px; } .breadcrumb { font-size:11px; gap:7px; flex-wrap:wrap; } .topbar .actions { gap:4px; flex-wrap:nowrap; } .topbar .btn { padding:8px; font-size:10px; min-height:34px; } .topbar .btn .icon { display:none; } .content { padding:24px 16px; gap:20px; } .page-heading { align-items:flex-start; } .page-heading h1 { font-size:24px; } .page-heading p { font-size:12px; } .workspace-status { display:none; } .card { padding:19px; border-radius:12px; } .row,.setup-field { grid-template-columns:1fr; } .auth-panel { padding:28px 23px; } .auth-shell { padding:16px; } .app-chat { padding:0; } .app-chat .chat { height:100dvh; min-height:0; width:100%; border:0; border-radius:0; } .chat-form { grid-template-columns:1fr auto; padding:12px; } .chat-head,.messages { padding:18px; } .bubble { max-width:90%; } .setup-steps { grid-template-columns:1fr; } .result-summary { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }
.check-row { width:100%; text-align:left; color:var(--ink); font:inherit; font-size:13px; }
.check-row:hover { background:#f0f8f5; border-color:#93c4bb; }
.check-action { margin-left:auto; color:var(--brand); font-size:11px; font-weight:650; white-space:nowrap; }
.check-row.incomplete { border-style:dashed; }
.knowledge-editor { margin-top:6px; border-top:1px solid var(--line); padding-top:12px; }
.knowledge-editor summary { cursor:pointer; color:var(--brand); font-size:12px; font-weight:650; padding:4px 0; width:fit-content; }
.knowledge-editor summary:focus-visible { outline:3px solid #64c9bf; outline-offset:3px; border-radius:3px; }
.knowledge-editor[open] summary { margin-bottom:16px; }
.knowledge-edit-form { max-width:900px; }
.knowledge-toolbar { display:grid; grid-template-columns:minmax(200px,1fr) minmax(160px,240px) auto; gap:14px; align-items:end; margin:4px 0 20px; }
.knowledge-table { table-layout:fixed; min-width:880px; }
.knowledge-table th:nth-child(1) { width:27%; }
.knowledge-table th:nth-child(2) { width:39%; }
.knowledge-table th:nth-child(3) { width:20%; }
.knowledge-table th:nth-child(4) { width:14%; }
.knowledge-table td { overflow-wrap:anywhere; line-height:1.65; }
.knowledge-table .actions { flex-direction:column; align-items:stretch; gap:7px; }
.knowledge-table .btn { min-height:34px; padding:7px 10px; }
.knowledge-title,.knowledge-keywords { display:block; margin-top:8px; color:var(--muted); font-size:11px; }
.knowledge-answer { white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.knowledge-pagination { display:flex; gap:16px; align-items:center; justify-content:flex-end; margin-top:18px; font-size:12px; }
.knowledge-no-results { text-align:center; padding:40px; color:var(--muted); }
.knowledge-dialog { width:min(720px,calc(100vw - 32px)); max-height:90dvh; overflow:auto; padding:28px; border:1px solid var(--line); border-radius:16px; color:var(--ink); box-shadow:0 20px 80px #102e3340; }
.knowledge-dialog::backdrop { background:#0b263570; backdrop-filter:blur(3px); }
.dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:24px; }
.dialog-header h2 { margin:0 0 6px; font-size:21px; }
.dialog-header p { margin:0; font-size:12px; }
.knowledge-dialog textarea[name=answer] { min-height:180px; }
.knowledge-dialog .actions { justify-content:flex-end; margin-top:6px; }
.delete-question { padding:18px; background:#f6f8fa; border-radius:10px; margin-bottom:24px; white-space:pre-wrap; overflow-wrap:anywhere; }
.form-error,.import-status.is-error { color:#a63826; }
.form-error:empty { display:none; }
.import-status { font-size:12px; padding:12px; background:#f4f8f7; border-radius:8px; overflow-wrap:anywhere; }
.results-count { font-size:12px; }
@media(max-width:620px) { .knowledge-toolbar { grid-template-columns:1fr; } .knowledge-dialog { padding:20px; } .knowledge-pagination { justify-content:space-between; gap:8px; } }
.import-mapping { display:grid; gap:14px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fbfcfd; }
.import-mapping h3 { margin:0; font-size:14px; }
.import-checkbox { display:flex; align-items:center; gap:8px; }
.import-checkbox input { width:16px; min-height:16px; accent-color:var(--brand); }
.import-summary { margin-top:14px; padding:12px; background:#eaf5ef; border-radius:9px; font-size:12px; }
.import-summary p { margin:5px 0 0; color:var(--muted); }
.import-skipped { margin-top:12px; font-size:12px; }
.import-skipped summary { cursor:pointer; padding:10px 0; color:var(--brand); font-weight:650; }
.import-skipped .table { max-height:320px; }
.import-skipped table,.import-preview-table table { min-width:500px; }
.import-preview-table { margin-top:12px; max-height:260px; }
.import-preview-table td { max-width:260px; white-space:pre-wrap; overflow-wrap:anywhere; }
.import-mapping,#importPreview,#importReport,.import-skipped { min-width:0; max-width:100%; }
.import-mapping .row,.import-mapping label,.import-mapping select { min-width:0; }
.bulk-knowledge-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px; margin-bottom:16px; border:1px solid var(--line); border-radius:10px; background:#f5f9f8; }
.bulk-knowledge-actions strong { margin-right:auto; font-size:12px; }
.knowledge-table th:nth-child(1) { width:5%; }
.knowledge-table th:nth-child(2) { width:25%; }
.knowledge-table th:nth-child(3) { width:36%; }
.knowledge-table th:nth-child(4) { width:20%; }
.knowledge-table th:nth-child(5) { width:14%; }
.selection-column input[type=checkbox] { width:17px; min-height:17px; padding:0; margin:3px 0; cursor:pointer; accent-color:var(--brand); }
.knowledge-table tr.knowledge-selected { background:#edf7f3; }
.bulk-delete-preview { max-height:240px; overflow:auto; padding-left:22px; line-height:1.8; }
.bulk-delete-preview li { margin-bottom:8px; overflow-wrap:anywhere; }
@media(max-width:620px) { .bulk-knowledge-actions strong { width:100%; } }
