.bd-toolbar{align-items:end}.bd-toolbar .search{min-width:260px;flex:1}
.bd-table td{vertical-align:middle}.bd-files{display:grid;gap:4px;white-space:nowrap}
.bd-file-ok,.bd-file-missing,.bd-type,.bd-status,.bd-ai{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}
.bd-file-ok{background:#ecfdf5;color:#047857}.bd-file-missing{background:#f3f4f6;color:#6b7280}
.bd-type{background:#eff6ff;color:#1d4ed8}.bd-status.DRAFT{background:#fff7ed;color:#c2410c}.bd-status.ACTIVE{background:#ecfdf5;color:#047857}.bd-status.INACTIVE{background:#f3f4f6;color:#4b5563}
.bd-ai.PENDING{background:#f3f4f6;color:#4b5563}.bd-ai.READY{background:#ecfdf5;color:#047857}.bd-ai.VERIFY{background:#fff7ed;color:#c2410c}.bd-ai.UNREADABLE{background:#fef2f2;color:#b91c1c}
.bd-detail-top{margin-bottom:16px}.bd-title{margin:10px 0 4px}.bd-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.bd-meta-grid div{padding:12px;border:1px solid var(--border);border-radius:12px}.bd-meta-grid small{display:block;color:var(--muted);margin-bottom:4px}.bd-meta-grid strong{display:block}
.bd-ai-panel{padding:16px;border-radius:14px;background:#f8fafc;border:1px solid var(--border);margin:12px 0}.bd-ai-panel.READY{background:#ecfdf5}.bd-ai-panel.VERIFY{background:#fff7ed}.bd-ai-panel.UNREADABLE{background:#fef2f2}
.bd-source-rule{padding:12px;border-radius:12px;background:var(--bg);font-size:13px}.bd-file-card{min-height:250px}.bd-file-name{padding:12px;border:1px dashed var(--border);border-radius:12px;margin:12px 0;word-break:break-word}
.bd-upload-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-top:16px}.bd-form-card{max-width:980px}
@media(max-width:760px){.bd-toolbar{display:grid;grid-template-columns:1fr}.bd-toolbar .search{min-width:0}.bd-meta-grid{grid-template-columns:1fr}.bd-upload-form{grid-template-columns:1fr}.bd-detail-top{align-items:flex-start}.bd-detail-top>.row{flex-wrap:wrap;justify-content:flex-end}.bd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bd-ai-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:12px 0;font-size:12px;color:var(--muted)}
.bd-ai-meta span{padding:6px 9px;border:1px solid var(--border);border-radius:999px;background:var(--card)}
.bd-extraction-card{margin-top:16px}.bd-extraction-summary{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0}
.bd-extraction-summary span{font-size:13px;color:var(--muted)}.bd-extraction-text{width:100%;min-height:360px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55}
