* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; display: flex; min-height: 100vh; background: #f5f5f5; }
.sidebar { width: 240px; background: #1a1a2e; color: #fff; padding: 20px; position: fixed; height: 100vh; overflow-y: auto; }
.sidebar h1 { font-size: 1.4em; margin-bottom: 20px; color: #00d4ff; }
.sidebar ul { list-style: none; }
.sidebar li a { display: block; padding: 10px; color: #aaa; text-decoration: none; border-radius: 4px; transition: all 0.2s; }
.sidebar li a:hover, .sidebar li a.active { background: #16213e; color: #fff; }
.search-box { margin-top: 20px; position: relative; }
.search-box input { width: 100%; padding: 8px 12px; border: none; border-radius: 4px; background: #16213e; color: #fff; font-size: 14px; }
.search-box input::placeholder { color: #666; }
#searchResults { position: absolute; top: 100%; left: 0; right: 0; background: #16213e; border-radius: 0 0 4px 4px; max-height: 200px; overflow-y: auto; z-index: 100; }
#searchResults a { display: block; padding: 8px 12px; color: #00d4ff; text-decoration: none; font-size: 13px; }
#searchResults a:hover { background: #0f3460; }
.content { margin-left: 240px; padding: 30px; flex: 1; }
h2 { margin-bottom: 20px; color: #333; }
h3 { margin: 20px 0 10px; color: #555; }
.status-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 30px; }
.status-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.status-card .label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.status-card .value { font-size: 2em; font-weight: 700; color: #00d4ff; margin-top: 5px; }
.status-card .sub { font-size: 12px; color: #888; margin-top: 5px; }
.status-card.ok .value { color: #4caf50; }
.status-card.warn .value { color: #ff9800; }
.status-card.error .value { color: #f44336; }
.status-loading { padding: 20px; color: #888; }
.page-card { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.page-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.page-card h3 { margin: 0 0 5px; }
.page-card h3 a { color: #00d4ff; text-decoration: none; }
.page-card h3 a:hover { text-decoration: underline; }
.page-card .meta { color: #888; font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; background: #e0f7fa; color: #00838f; border-radius: 12px; font-size: 11px; margin-right: 4px; }
form { max-width: 800px; }
form input[type="text"], form textarea { width: 100%; padding: 10px 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; }
form textarea { font-family: 'Monaco', 'Consolas', monospace; resize: vertical; }
.btn-group { display: flex; gap: 10px; margin-top: 10px; }
button { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: #00d4ff; color: #fff; }
.btn-primary:hover { background: #00b8d9; }
.btn-secondary { background: #16213e; color: #fff; }
.btn-secondary:hover { background: #1a1a2e; }
#articleView { max-width: 800px; }
#articleView h1 { margin-bottom: 15px; color: #333; }
#articleView .meta { color: #888; font-size: 13px; margin-bottom: 20px; }
#articleView .meta a { color: #00d4ff; margin-left: 15px; }
#articleView .content { line-height: 1.7; color: #444; }
.wikilink { color: #00d4ff; cursor: pointer; text-decoration: none; }
.wikilink:hover { text-decoration: underline; }
.edge-list { list-style: none; margin-top: 20px; }
.edge-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.edge-type { color: #888; font-size: 12px; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; }
.refresh-btn { background: none; border: 1px solid #ddd; padding: 5px 10px; font-size: 12px; color: #666; cursor: pointer; border-radius: 4px; }
.refresh-btn:hover { background: #f0f0f0; }

/* v0.2.1 auth/admin/update/graph hardening */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at top, #233156, #101426 55%, #0b0d18); }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,0.35); }
.auth-card h1 { color: #00a8cc; margin-bottom: 6px; }
.auth-card h2 { margin-bottom: 16px; }
.auth-card label, .panel label { display: block; margin: 12px 0 6px; color: #555; font-size: 13px; font-weight: 600; }
.auth-card input, .panel input, .panel select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.auth-card hr { border: 0; border-top: 1px solid #eee; margin: 18px 0; }
.user-box { padding: 10px; margin-bottom: 14px; border-radius: 10px; background: #16213e; }
.user-box strong, .user-box span { display: block; }
.user-box span { color: #95a3c7; font-size: 12px; margin-top: 3px; }
.muted { color: #777; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.alert.error { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
.alert.ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.panel { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); margin: 14px 0; }
.panel.wide { overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 9px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.admin-table th { color: #666; background: #f8f8fb; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: none; }
.inline-form input[type="password"] { width: 160px; margin: 0; }
.inline-form select { width: auto; margin: 0; }
.check { display: inline-flex !important; align-items: center; gap: 6px; margin: 8px 0 !important; font-weight: 500 !important; }
.check input { width: auto !important; }
.btn-danger { background: #f44336; color: #fff; }
.btn-danger:hover { background: #d32f2f; }
.codebox { white-space: pre-wrap; background: #101426; color: #c7e9ff; padding: 12px; border-radius: 8px; overflow: auto; max-height: 340px; }
.update-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.update-summary div { background: #f7fbff; border: 1px solid #dff3ff; border-radius: 10px; padding: 12px; }
.update-summary span { display: block; color: #777; font-size: 12px; }
.update-summary strong { display: block; margin-top: 5px; color: #16213e; }
.article-content { line-height: 1.72; color: #444; background: #fff; padding: 18px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.tag-row { margin-top: 16px; }
.graph-content { padding: 18px; height: 100vh; overflow: hidden; }
.graph-toolbar { height: 42px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 10px; padding: 0 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.graph-container { position: relative; height: calc(100vh - 114px); min-height: 520px; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px #e9eef7, 0 6px 24px rgba(0,0,0,0.08); }
.graph-info { min-height: 32px; margin-top: 10px; display: flex; gap: 12px; align-items: center; color: #666; }
.graph-info a { color: #00a8cc; font-weight: 700; }
.graph-error, .graph-empty { padding: 18px; }
.graph-runtime-note { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(16,20,38,0.88); color: #fff; padding: 9px 12px; border-radius: 9px; font-size: 12px; }
.wiki-flow-node { min-width: 150px; max-width: 220px; padding: 10px 12px; background: #fff; border: 1px solid #7ddcff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); font-size: 12px; }
.wiki-flow-title { font-weight: 700; color: #16213e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiki-flow-meta { color: #888; margin-top: 4px; }
.svg-graph { width: 100%; height: 100%; background: linear-gradient(180deg, #ffffff, #f7fbff); }
.svg-edge { stroke: #9ab6c9; stroke-width: 1.5; marker-end: url(#svgArrow); opacity: 0.75; }
.svg-edge-label { font-size: 10px; fill: #607d8b; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.svg-node circle { fill: #fff; stroke: #00a8cc; stroke-width: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12)); }
.svg-node text { fill: #16213e; font-size: 11px; text-anchor: middle; pointer-events: none; }
.svg-node:hover circle { stroke-width: 3; }
@media (max-width: 900px) {
  body { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; }
  .content { margin-left: 0; padding: 18px; }
  .admin-grid { grid-template-columns: 1fr; }
  .graph-content { height: auto; overflow: visible; }
  .graph-container { height: 70vh; min-height: 420px; }
}

/* v0.2.2 documents + LM providers */
.dropzone { border: 2px dashed #9ddff0; border-radius: 14px; padding: 28px; text-align: center; background: #f8fdff; cursor: pointer; transition: all .15s ease; }
.dropzone:hover, .dropzone.is-dragover { background: #eaf9ff; border-color: #00a8cc; transform: translateY(-1px); }
.dropzone-title { font-size: 20px; font-weight: 800; color: #16213e; margin-bottom: 8px; }
.upload-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0; }
.upload-status { margin-top: 12px; }
.upload-result { padding: 8px 10px; border-bottom: 1px solid #edf2f7; }
.upload-result.ok { color: #1b5e20; }
.upload-result.bad { color: #b71c1c; }
.document-card, .provider-card { background: #fff; border: 1px solid #edf2f7; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.provider-card.active { border-color: #00a8cc; box-shadow: 0 4px 18px rgba(0,168,204,.12); }
.document-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.doc-preview { margin-top: 8px; padding: 10px; border-radius: 9px; background: #f8f8fb; color: #444; white-space: pre-wrap; }
.tag.good { background: #e8f5e9; color: #1b5e20; }
.small-buttons { margin-top: 10px; flex-wrap: wrap; }
.small-buttons button { padding: 7px 10px; font-size: 12px; }
.codebox.mini { max-height: 180px; margin-top: 10px; font-size: 12px; }
.panel textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }

/* v0.2.3 document ingestion status */
.requirements-panel { margin-top: 12px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.req-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border, #d7dde8); border-radius: 10px; padding: 8px 10px; background: rgba(255,255,255,.7); }
.req-item.ok { border-color: #93d69b; background: rgba(46, 204, 113, .08); }
.req-item.bad { border-color: #f0a0a0; background: rgba(231, 76, 60, .07); }
.req-item small { opacity: .7; margin-left: auto; }
.document-card .doc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0; font-size: 12px; color: var(--muted, #667085); }
.tag.soft { background: rgba(80, 130, 255, .12); }
.tag.bad { background: rgba(231, 76, 60, .14); color: #a61b1b; }
.upload-options { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0; }
.upload-options .check { white-space: nowrap; }


/* v0.2.4 global drag-and-drop, update dropzone, upload queue */
.global-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 20, 38, .72);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.global-drop-overlay.is-visible { display: flex; }
.global-drop-overlay > div {
  width: min(560px, calc(100vw - 36px));
  padding: 34px;
  border: 2px dashed #7ddcff;
  border-radius: 22px;
  color: #fff;
  background: rgba(0, 168, 204, .18);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}
.global-drop-overlay strong { display: block; font-size: 28px; margin-bottom: 8px; }
.global-drop-overlay span { color: #d8f7ff; }
.update-dropzone { margin: 10px 0 14px; }
.update-dropzone.has-file { border-color: #4caf50; background: #f1fff3; }
.update-dropzone.has-error { border-color: #f44336; background: #fff4f4; }
.update-zip-name { margin-top: 10px; font-weight: 700; color: #16213e; }
.upload-queue-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  max-height: 58vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9000;
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.upload-queue-panel.is-open { display: flex; }
.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #16213e;
  color: #fff;
}
.queue-head button { padding: 4px 9px; background: rgba(255,255,255,.15); color: #fff; }
.queue-list { overflow: auto; padding: 8px; }
.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #edf2f7;
  margin-bottom: 6px;
  background: #fbfcff;
  font-size: 13px;
}
.queue-row small { grid-column: 1 / -1; color: #667085; }
.queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.queue-size { color: #667085; white-space: nowrap; }
.queue-state { white-space: nowrap; font-weight: 700; }
.queue-row.ok { background: #f1fff3; border-color: #bae6c0; }
.queue-row.bad { background: #fff4f4; border-color: #ffc9c9; }
.queue-row.work { background: #fffbea; border-color: #ffe58a; }
.queue-row.wait { background: #f7fbff; }
@media (max-width: 900px) {
  .upload-queue-panel { right: 10px; left: 10px; bottom: 10px; width: auto; }
  .queue-row { grid-template-columns: 1fr; }
}

/* v0.2.5 persistent ingestion queue + graph controls/search */
.graph-toolbar-actions { display: flex; align-items: center; gap: 10px; }
button.small, .btn-secondary.small { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.graph-settings-panel {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.graph-settings-panel.is-open { display: flex; }
.graph-settings-panel input[type="search"] { flex: 1 1 320px; min-width: 220px; padding: 9px 11px; border: 1px solid #dce5ef; border-radius: 9px; }
.graph-settings-panel label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: #526075; }
.graph-settings-panel input[type="number"] { width: 82px; padding: 7px 8px; border: 1px solid #dce5ef; border-radius: 8px; }
.graph-settings-panel input[type="range"] { width: 110px; }
.wiki-flow-node.is-match { border-color: #ff9800; box-shadow: 0 0 0 3px rgba(255,152,0,.18), 0 8px 22px rgba(0,0,0,.18); }
.wiki-flow-node.is-dim { opacity: .28; filter: grayscale(.4); }
.wiki-flow-node.is-compact { min-width: 110px; max-width: 160px; padding: 7px 9px; }
.svg-edge.is-match { stroke: #ff9800; stroke-width: 3; opacity: 1; }
.svg-edge.is-dim { opacity: .12; }
.svg-node.is-match circle { stroke: #ff9800; stroke-width: 4; fill: #fff7e6; }
.svg-node.is-dim { opacity: .24; }
.queue-log-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 800; color: #526075; background: #f8fbff; border-top: 1px solid #edf2f7; }
.queue-log-list { max-height: 170px; overflow: auto; padding: 6px 8px 9px; background: #f8fbff; }
.queue-log-row { display: grid; grid-template-columns: minmax(130px, auto) 1fr auto; gap: 8px; align-items: start; padding: 6px 7px; border-radius: 8px; font-size: 12px; }
.queue-log-row b { color: #16213e; }
.queue-log-row span { color: #475467; }
.queue-log-row small { color: #7a8798; white-space: nowrap; }
.queue-log-row.bad { background: #fff4f4; }
.queue-log-row.work { background: #fffbea; }
.queue-log-row.wait { background: #fff; }
.queue-row.upload { background: #eef9ff; border-color: #bdefff; }
.ingest-log-list { max-height: 360px; overflow: auto; }
.ingest-log-list .queue-log-row { border-bottom: 1px solid #eef2f6; }
@media (max-width: 900px) {
  .graph-toolbar { height: auto; gap: 8px; flex-direction: column; align-items: stretch; }
  .graph-toolbar-actions { justify-content: space-between; }
  .graph-settings-panel { align-items: stretch; }
  .graph-settings-panel label { width: 100%; }
  .queue-log-row { grid-template-columns: 1fr; }
}

/* v0.2.6 fullscreen graph, collapsible left menu, visual graph styles, queue hardening */
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.sidebar-head h1 { margin-bottom: 0; }
.sidebar-collapse-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: #16213e; color: #fff; border: 1px solid rgba(255,255,255,.12); }
.sidebar-collapse-btn:hover { background: #0f3460; }
body.sidebar-collapsed .sidebar { width: 58px; padding: 14px 8px; overflow-x: hidden; }
body.sidebar-collapsed .content { margin-left: 58px; }
body.sidebar-collapsed .sidebar h1,
body.sidebar-collapsed .user-box,
body.sidebar-collapsed .search-box { display: none; }
body.sidebar-collapsed .sidebar li a { white-space: nowrap; overflow: hidden; text-indent: -999px; position: relative; min-height: 38px; }
body.sidebar-collapsed .sidebar li a::after { content: attr(href); text-indent: 0; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 6px; background: #00d4ff; opacity: .8; }
body.sidebar-collapsed .sidebar-collapse-btn { margin: 0 auto; }
body.sidebar-collapsed.is-graph-page .graph-content { margin-left: 58px; width: calc(100vw - 58px); }

.is-graph-page { background: #edf2f8; }
.is-graph-page .content.graph-content {
  margin-left: 240px;
  padding: 0;
  width: calc(100vw - 240px);
  height: 100vh;
  overflow: hidden;
}
.graph-shell {
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  background: #edf2f8;
}
.graph-shell:fullscreen { width: 100vw; height: 100vh; background: #edf2f8; }
.graph-toolbar { margin: 0; min-height: 42px; height: auto; }
.graph-settings-panel { margin: 0; display: flex; }
.graph-settings-panel select { padding: 7px 8px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.graph-canvas {
  height: 100%;
  min-height: 0;
  border-radius: 16px;
}
.graph-info {
  margin-top: 0;
  min-height: 32px;
  padding: 7px 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e4eaf3;
  border-radius: 12px;
}
body.graph-fullscreen-mode .sidebar { display: none; }
body.graph-fullscreen-mode .content.graph-content { margin-left: 0; width: 100vw; }
body.graph-fullscreen-mode .graph-shell { position: fixed; inset: 0; z-index: 10000; }

.graph-bg-white, .svg-graph.graph-bg-white { background: #ffffff; }
.graph-bg-grid, .svg-graph.graph-bg-grid { background-color: #ffffff; background-image: linear-gradient(#edf2f8 1px, transparent 1px), linear-gradient(90deg, #edf2f8 1px, transparent 1px); background-size: 24px 24px; }
.graph-bg-blue, .svg-graph.graph-bg-blue { background: radial-gradient(circle at top left, #e8f9ff, #f8fdff 45%, #edf6ff); }
.graph-bg-dark, .svg-graph.graph-bg-dark { background: radial-gradient(circle at top left, #233156, #101426 58%, #090b12); }
.graph-bg-dark .svg-edge { stroke: #81a7c8; opacity: .55; }
.graph-bg-dark .svg-edge-label { fill: #e8f7ff; stroke: #101426; }
.graph-bg-dark .svg-node circle { fill: #16213e; stroke: #7ddcff; }
.graph-bg-dark .svg-node text { fill: #ecfbff; }
.graph-bg-dark .graph-runtime-note { background: rgba(0,0,0,.7); }

.wiki-flow-node.node-style-pill { border-radius: 999px; min-width: 120px; padding: 8px 14px; text-align: center; }
.wiki-flow-node.node-style-dot { min-width: 26px; max-width: 42px; width: 34px; height: 34px; padding: 0; border-radius: 50%; overflow: visible; }
.wiki-flow-node.node-style-dot .wiki-flow-title { position: absolute; transform: translate(-38%, 34px); width: 110px; text-align: center; font-size: 11px; white-space: normal; }
.wiki-flow-node.node-style-dot .wiki-flow-meta { display: none; }
.svg-graph.graph-nodes-pill .svg-node circle { rx: 18px; }
.svg-graph.graph-nodes-dot .svg-node circle { filter: none; }
.svg-graph.graph-nodes-dot .svg-node text { font-size: 10px; transform: translateY(18px); }
.svg-edge { vector-effect: non-scaling-stroke; }
.svg-edge.is-match { stroke: #ff9800; }
.svg-node.is-match text { font-weight: 800; }

.queue-head small { opacity: .7; font-weight: 400; }
.queue-log-row { word-break: break-word; }
.upload-queue-panel .queue-log-list { overscroll-behavior: contain; }
@media (max-width: 900px) {
  body.sidebar-collapsed .content, .content { margin-left: 0 !important; }
  .is-graph-page .content.graph-content { width: 100vw; margin-left: 0; }
  .graph-shell { height: 100vh; padding: 8px; }
  .graph-settings-panel { max-height: 34vh; overflow: auto; }
  .sidebar-collapse-btn { display: none; }
}

/* v0.2.7 graph document icons + queue admin */
.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  margin-right: 7px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  color: #16213e;
  background: #eef6ff;
  border: 1px solid #cfe6ff;
  vertical-align: middle;
}
.doc-icon-pdf { background: #fff1f1; border-color: #ffcdcd; color: #b42318; }
.doc-icon-img { background: #f0fff4; border-color: #b7e4c7; color: #1b7f3a; }
.doc-icon-md { background: #f6f1ff; border-color: #dac8ff; color: #6236a2; }
.doc-icon-doc, .doc-icon-txt { background: #f1f7ff; border-color: #bfd9ff; color: #1849a9; }
.doc-icon-xls, .doc-icon-csv { background: #ecfdf3; border-color: #abe7c4; color: #067647; }
.doc-icon-ppt { background: #fff4ed; border-color: #ffd6ae; color: #b54708; }
.doc-icon-json, .doc-icon-html { background: #fffbe6; border-color: #f7d977; color: #7a5b00; }
.wiki-flow-node .doc-icon { margin: 0 0 5px 0; min-width: 42px; height: 24px; }
.svg-node-icon { font-size: 9px !important; fill: #00a8cc !important; font-weight: 900; text-anchor: middle; pointer-events: none; }
.graph-nodes-dot .svg-node-icon { display: none; }

.queue-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.queue-admin-stats { display: grid; gap: 6px; margin-bottom: 12px; }
.queue-stat-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.queue-admin-list { display: grid; gap: 8px; }
.queue-admin-list .queue-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.queue-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.queue-row.muted-row { background: #f7f7f8; border-color: #e4e7ec; opacity: .82; }
.queue-row .queue-name { display: inline-flex; align-items: center; gap: 0; }
.btn-secondary.small, .btn-danger.small { padding: 6px 9px; font-size: 12px; border-radius: 7px; }
