Files

819 lines
24 KiB
CSS
Raw Permalink Normal View History

/* Documents & NAS Workbench v2 */
[x-cloak] { display: none !important; }
.doc-hub {
--doc-accent: #00e5ff;
--doc-gold: #ffd700;
--doc-purple: #a855f7;
--doc-border: rgba(0, 229, 255, 0.14);
--doc-text: #f1f5f9;
--doc-muted: #94a3b8;
--doc-dim: #64748b;
}
.doc-hub .page-header h1 {
font-size: 1.65rem;
background: linear-gradient(90deg, #f8fafc 0%, #00e5ff 55%, #a855f7 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
/* Tabs */
.doc-nav {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
margin-bottom: 1.25rem;
padding: 0.35rem;
background: rgba(6, 10, 18, 0.85);
border: 1px solid var(--doc-border);
border-radius: 14px;
}
.doc-nav-btn {
padding: 0.55rem 1.1rem;
border-radius: 10px;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
border: 1px solid transparent;
background: transparent;
color: var(--doc-muted);
transition: all 0.18s;
}
.doc-nav-btn:hover { color: var(--doc-text); background: rgba(0, 229, 255, 0.06); }
.doc-nav-btn.active {
color: #e0f2fe;
background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(168, 85, 247, 0.12));
border-color: rgba(0, 229, 255, 0.35);
box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}
/* Workbench shell */
.doc-workbench {
border-radius: 16px;
border: 1px solid var(--doc-border);
background: linear-gradient(165deg, rgba(8, 12, 22, 0.98), rgba(12, 18, 32, 0.95));
overflow: hidden;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.doc-wb-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent 70%);
}
.doc-wb-head h2 {
margin: 0;
font-size: 1.05rem;
color: var(--doc-text);
}
.doc-wb-head p { margin: 0.2rem 0 0; font-size: 0.75rem; color: var(--doc-dim); }
.doc-kpi-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
@media (max-width: 900px) { .doc-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.doc-kpi {
padding: 0.9rem 1.1rem;
border-right: 1px solid rgba(148, 163, 184, 0.06);
cursor: pointer;
transition: background 0.15s;
}
.doc-kpi:hover { background: rgba(0, 229, 255, 0.04); }
.doc-kpi:last-child { border-right: none; }
.doc-kpi .lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--doc-dim); }
.doc-kpi .val { font-size: 1.5rem; font-weight: 800; color: var(--doc-text); line-height: 1.15; margin-top: 0.15rem; }
.doc-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
align-items: center;
padding: 0.85rem 1.1rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.doc-toolbar .form-input { min-width: 140px; font-size: 0.8rem; }
/* Split layout */
.doc-split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
min-height: 280px;
}
@media (max-width: 900px) { .doc-split { grid-template-columns: 1fr; } }
.doc-split-col {
padding: 1rem;
border-right: 1px solid rgba(148, 163, 184, 0.08);
}
.doc-split-col:last-child { border-right: none; }
.doc-chart-wrap { height: 140px; position: relative; }
/* Document table */
.doc-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.doc-table-wrap .data-table { font-size: 0.78rem; }
.doc-table-wrap .data-table th { position: sticky; top: 0; background: #0a0f18; z-index: 2; }
.doc-table-wrap .data-table td { color: var(--doc-muted); vertical-align: top; }
.doc-table-wrap .data-table td strong { color: var(--doc-text); }
.doc-table-wrap .path-cell { font-size: 0.68rem; color: var(--doc-dim); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.doc-row-selected { background: rgba(0, 229, 255, 0.08) !important; }
/* Label chips */
.doc-chip {
display: inline-block;
padding: 0.18rem 0.55rem;
margin: 0.12rem 0.12rem 0 0;
border-radius: 999px;
font-size: 0.65rem;
font-weight: 600;
background: rgba(0, 229, 255, 0.12);
color: #7dd3fc;
border: 1px solid rgba(0, 229, 255, 0.25);
white-space: nowrap;
}
.doc-chip.muted { background: rgba(100, 116, 139, 0.15); color: var(--doc-dim); border-color: rgba(100, 116, 139, 0.25); }
/* Photo grid */
.photo-masonry {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
padding: 1rem;
}
.photo-tile {
border: 1px solid var(--doc-border);
border-radius: 14px;
overflow: hidden;
background: rgba(10, 15, 26, 0.95);
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.photo-tile:hover {
transform: translateY(-2px);
border-color: rgba(0, 229, 255, 0.35);
box-shadow: 0 8px 28px rgba(0, 229, 255, 0.1);
}
.photo-tile img {
width: 100%;
height: 150px;
object-fit: cover;
background: #060a10;
display: block;
}
.photo-tile-body {
padding: 0.65rem 0.75rem 0.75rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.photo-tile-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.35rem;
}
.photo-tile-id { font-size: 0.72rem; font-weight: 700; color: var(--doc-text); }
.photo-tile-src { font-size: 0.62rem; color: var(--doc-dim); text-transform: uppercase; }
.photo-tile-labels {
display: flex;
flex-wrap: wrap;
gap: 0.2rem;
min-height: 1.5rem;
align-items: flex-start;
}
.photo-tile-ocr {
font-size: 0.68rem;
line-height: 1.4;
color: var(--doc-muted);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 2.8em;
}
.photo-tile-meta { font-size: 0.62rem; color: var(--doc-dim); }
/* Label filter chips row */
.label-filter-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
padding: 0 1rem 0.75rem;
}
.label-filter-chip {
padding: 0.28rem 0.65rem;
border-radius: 999px;
font-size: 0.68rem;
cursor: pointer;
border: 1px solid rgba(100, 116, 139, 0.35);
background: transparent;
color: var(--doc-muted);
}
.label-filter-chip.active, .label-filter-chip:hover {
border-color: rgba(0, 229, 255, 0.4);
color: #e0f2fe;
background: rgba(0, 229, 255, 0.1);
}
/* ── Label modal (fixed overlap + dark text) ── */
.label-modal-backdrop {
position: fixed;
inset: 0;
z-index: 2000;
background: rgba(0, 0, 0, 0.82);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
padding: 1.25rem;
}
.label-modal {
width: min(780px, 100%);
max-height: 92vh;
overflow-y: auto;
background: linear-gradient(165deg, #0f1520 0%, #080c14 100%);
border: 1px solid rgba(0, 229, 255, 0.25);
border-radius: 20px;
padding: 1.35rem;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
color: var(--doc-text);
}
.label-modal h3 { margin: 0; font-size: 1.15rem; color: #f8fafc; }
.label-modal .modal-sub { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--doc-muted); }
.label-modal-preview {
display: grid;
grid-template-columns: 140px 1fr;
gap: 1rem;
margin: 1rem 0;
padding: 0.85rem;
background: rgba(0, 0, 0, 0.35);
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.12);
}
@media (max-width: 520px) { .label-modal-preview { grid-template-columns: 1fr; } }
.label-modal-preview img {
width: 100%;
border-radius: 10px;
object-fit: cover;
max-height: 160px;
border: 1px solid rgba(148, 163, 184, 0.15);
}
.modal-ocr-box {
font-size: 0.74rem;
line-height: 1.55;
color: #cbd5e1 !important;
background: rgba(15, 23, 42, 0.6);
border: 1px solid rgba(148, 163, 184, 0.15);
border-radius: 8px;
padding: 0.65rem 0.75rem;
max-height: 140px;
overflow-y: auto;
margin: 0;
white-space: pre-wrap;
word-break: break-word;
}
.modal-ocr-label {
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--doc-dim);
margin-bottom: 0.35rem;
}
.label-modal-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
gap: 0.5rem;
}
.label-pick {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 0.35rem;
padding: 0.75rem 0.5rem;
min-height: 92px;
border-radius: 12px;
border: 1px solid rgba(100, 116, 139, 0.35);
background: rgba(15, 23, 42, 0.7);
cursor: pointer;
transition: all 0.15s;
color: #e2e8f0;
}
.label-pick:hover {
border-color: rgba(0, 229, 255, 0.4);
background: rgba(0, 229, 255, 0.06);
}
.label-pick.selected {
border-color: var(--pick-color, #00e5ff);
background: rgba(0, 229, 255, 0.14);
box-shadow: 0 0 0 1px var(--pick-color, #00e5ff), inset 0 0 24px rgba(0, 229, 255, 0.06);
}
.label-pick-emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.label-pick-name {
font-size: 0.68rem;
font-weight: 600;
line-height: 1.3;
text-align: center;
color: #cbd5e1;
display: block;
width: 100%;
word-break: break-word;
}
.label-pick.selected .label-pick-name { color: #f8fafc; }
.label-modal-extra {
margin-top: 1rem;
display: grid;
gap: 0.5rem;
}
.label-modal-extra label {
font-size: 0.72rem;
color: var(--doc-muted);
display: block;
margin-bottom: 0.25rem;
}
.label-modal-actions {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
margin-top: 1.1rem;
padding-top: 1rem;
border-top: 1px solid rgba(148, 163, 184, 0.1);
}
/* Document label drawer */
.doc-label-drawer {
margin: 1rem;
padding: 1rem;
border-radius: 14px;
border: 1px solid rgba(0, 229, 255, 0.2);
background: rgba(0, 0, 0, 0.25);
}
.doc-label-drawer h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: #f8fafc; }
/* ── Docling workbench ── */
.dl-workbench { min-height: 620px; }
.dl-body {
display: grid;
grid-template-columns: 260px 300px 1fr;
min-height: 560px;
}
/* v3 split workbench: files | editor+preview */
.dl-body-v3 {
display: grid;
grid-template-columns: minmax(260px, 300px) 1fr;
min-height: 580px;
border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.dl-head-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.dl-auto-toggle { font-size: 0.72rem; padding: 0.3rem 0.55rem; white-space: nowrap; }
.dl-pipeline-panel {
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
background: rgba(0, 0, 0, 0.18);
}
.dl-pipeline-grid {
display: grid;
grid-template-columns: 1fr 1fr auto;
gap: 1rem;
align-items: start;
}
@media (max-width: 1000px) { .dl-pipeline-grid { grid-template-columns: 1fr; } }
.dl-workspace {
display: flex;
flex-direction: column;
min-height: 580px;
background: rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.dl-workspace.empty { justify-content: center; align-items: center; }
.dl-workspace-inner {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
height: 100%;
}
.dl-ws-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
flex-wrap: wrap;
}
.dl-ws-title { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.dl-ws-icon { font-size: 1.4rem; flex-shrink: 0; }
.dl-ws-title strong { font-size: 0.88rem; color: var(--doc-text); display: block; }
.dl-ws-path { font-size: 0.62rem; color: var(--doc-dim); display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-ws-kind { font-size: 0.62rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(0,229,255,0.12); color: #7dd3fc; white-space: nowrap; }
.dl-loading-bar { height: 2px; overflow: hidden; background: rgba(148,163,184,0.1); }
.dl-workspace-panes {
display: grid;
grid-template-columns: 1fr 1fr;
flex: 1;
min-height: 0;
gap: 0;
}
@media (max-width: 1100px) { .dl-workspace-panes { grid-template-columns: 1fr; } }
.dl-pane {
display: flex;
flex-direction: column;
min-height: 0;
border-right: 1px solid rgba(148, 163, 184, 0.06);
}
.dl-pane:last-child { border-right: none; }
.dl-pane-label {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.45rem 0.85rem;
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--doc-dim);
border-bottom: 1px solid rgba(148, 163, 184, 0.06);
gap: 0.5rem;
flex-wrap: wrap;
}
.dl-export-tabs-inline { margin: 0; }
.dl-editor-full {
flex: 1;
min-height: 420px;
max-height: none;
border: none;
border-radius: 0;
resize: none;
}
.dl-preview-viewport {
flex: 1;
min-height: 420px;
overflow: auto;
padding: 0.65rem;
}
.dl-preview-viewport .dl-preview-box {
min-height: 200px;
max-height: none;
height: 100%;
}
.dl-preview-img {
max-width: 100%;
max-height: 480px;
border-radius: 8px;
display: block;
margin: 0 auto;
}
.dl-preview-iframe {
width: 100%;
height: 480px;
border: none;
border-radius: 8px;
background: #fff;
}
.dl-file-row { display: flex; align-items: flex-start; gap: 0.45rem; }
.dl-file-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.2; }
.dl-file-meta { flex: 1; min-width: 0; }
.dl-file-ext { font-size: 0.58rem; color: #64748b; padding: 0.1rem 0.35rem; border-radius: 4px; background: rgba(100,116,139,0.15); flex-shrink: 0; }
.dl-file-tags { display: flex; gap: 0.25rem; margin-top: 0.2rem; padding-left: 1.5rem; }
.dl-file-badge.convert { background: rgba(0,229,255,0.15); color: #7dd3fc; }
.dl-body-v3 .dl-sidebar {
max-height: none;
height: 100%;
border-right: 1px solid rgba(148, 163, 184, 0.08);
}
@media (max-width: 1200px) {
.dl-body-v3 { grid-template-columns: 1fr; }
.dl-body-v3 .dl-sidebar { max-height: 280px; }
}
@media (max-width: 1200px) {
.dl-body { grid-template-columns: 240px 1fr; }
.dl-inspector { grid-column: 1 / -1; border-top: 1px solid rgba(148, 163, 184, 0.1); }
}
.dl-sidebar, .dl-options, .dl-preview, .dl-inspector {
padding: 1rem;
border-right: 1px solid rgba(148, 163, 184, 0.08);
overflow-y: auto;
max-height: 680px;
}
.dl-sidebar { background: rgba(0, 0, 0, 0.22); }
.dl-options { background: rgba(0, 0, 0, 0.12); }
.dl-section-title {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--doc-dim);
margin: 0 0 0.5rem;
}
.dl-ext-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.65rem; }
.dl-ext-chip {
padding: 0.22rem 0.5rem;
border-radius: 6px;
font-size: 0.65rem;
cursor: pointer;
border: 1px solid rgba(100, 116, 139, 0.3);
background: transparent;
color: var(--doc-muted);
}
.dl-ext-chip.active { border-color: #00e5ff; color: #e0f2fe; background: rgba(0, 229, 255, 0.12); }
.dl-file-list { display: flex; flex-direction: column; gap: 0.25rem; }
.dl-file-item {
padding: 0.5rem 0.6rem;
border-radius: 10px;
cursor: pointer;
border: 1px solid transparent;
transition: background 0.12s;
}
.dl-file-item:hover { background: rgba(0, 229, 255, 0.05); }
.dl-file-item.selected {
border-color: rgba(0, 229, 255, 0.35);
background: rgba(0, 229, 255, 0.1);
}
.dl-file-name { font-size: 0.76rem; font-weight: 600; color: var(--doc-text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-file-path { font-size: 0.62rem; color: var(--doc-dim); display: block; margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-file-badge {
display: inline-block;
margin-top: 0.25rem;
font-size: 0.58rem;
padding: 0.1rem 0.4rem;
border-radius: 4px;
background: rgba(74, 222, 128, 0.15);
color: #4ade80;
}
.dl-file-badge.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.dl-file-badge.failed { background: rgba(251, 113, 133, 0.15); color: #fb7185; }
.dl-toggle-grid { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.dl-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.6rem;
border-radius: 8px;
border: 1px solid rgba(100, 116, 139, 0.2);
font-size: 0.76rem;
color: var(--doc-muted);
cursor: pointer;
transition: all 0.12s;
}
.dl-toggle:has(input:checked) {
border-color: rgba(0, 229, 255, 0.35);
background: rgba(0, 229, 255, 0.08);
color: #e0f2fe;
}
.dl-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.dl-preview-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.65rem;
}
.dl-preview-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dl-export-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.65rem; }
.dl-tab {
padding: 0.32rem 0.7rem;
border-radius: 999px;
font-size: 0.68rem;
font-weight: 600;
cursor: pointer;
border: 1px solid rgba(100, 116, 139, 0.3);
background: transparent;
color: var(--doc-muted);
}
.dl-tab.active { border-color: #00e5ff; color: #e0f2fe; background: rgba(0, 229, 255, 0.12); }
.dl-preview-box {
min-height: 320px;
max-height: 480px;
overflow: auto;
font-size: 0.74rem;
line-height: 1.5;
background: #050810;
border: 1px solid rgba(0, 229, 255, 0.1);
border-radius: 10px;
padding: 0.85rem;
color: #cbd5e1;
white-space: pre-wrap;
word-break: break-word;
}
.dl-preview-box.rendered { white-space: normal; }
.dl-preview-box.rendered h1, .dl-preview-box.rendered h2, .dl-preview-box.rendered h3 { color: #f1f5f9; margin-top: 0.75rem; }
.dl-preview-box.rendered p, .dl-preview-box.rendered li { color: #cbd5e1; }
.dl-preview-box.rendered table { border-collapse: collapse; width: 100%; margin: 0.5rem 0; }
.dl-preview-box.rendered th, .dl-preview-box.rendered td { border: 1px solid rgba(148, 163, 184, 0.25); padding: 0.35rem; font-size: 0.72rem; }
.dl-search { width: 100%; margin-bottom: 0.5rem; font-size: 0.78rem; }
.dl-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-bottom: 1rem; }
.dl-stat {
padding: 0.55rem 0.65rem;
border-radius: 8px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(148, 163, 184, 0.1);
}
.dl-stat .n { font-size: 1.2rem; font-weight: 800; color: var(--doc-text); }
.dl-stat .l { font-size: 0.6rem; color: var(--doc-dim); text-transform: uppercase; }
.dl-history { display: flex; flex-direction: column; gap: 0.35rem; }
.dl-history-item {
padding: 0.45rem 0.55rem;
border-radius: 8px;
font-size: 0.68rem;
cursor: pointer;
border: 1px solid transparent;
color: var(--doc-muted);
}
.dl-history-item:hover { background: rgba(0, 229, 255, 0.05); border-color: rgba(0, 229, 255, 0.15); }
.dl-progress {
height: 3px;
background: rgba(148, 163, 184, 0.15);
border-radius: 999px;
overflow: hidden;
margin-top: 0.5rem;
}
.dl-progress-bar {
height: 100%;
background: linear-gradient(90deg, #00e5ff, #a855f7);
animation: dl-pulse 1.2s ease-in-out infinite;
width: 40%;
}
.dl-editor {
width: 100%;
min-height: 360px;
max-height: 520px;
font-family: ui-monospace, 'Cascadia Code', monospace;
font-size: 0.76rem;
line-height: 1.55;
background: #050810;
border: 1px solid rgba(0, 229, 255, 0.2);
border-radius: 10px;
padding: 0.85rem;
color: #e2e8f0;
resize: vertical;
}
.ppt-workbench { min-height: 560px; }
.ppt-grid { display: grid; grid-template-columns: 280px 1fr; min-height: 500px; }
@media (max-width: 900px) { .ppt-grid { grid-template-columns: 1fr; } }
.ppt-sidebar { padding: 1rem; border-right: 1px solid rgba(148, 163, 184, 0.08); background: rgba(0,0,0,0.22); max-height: 640px; overflow-y: auto; }
.ppt-editor { padding: 1rem; }
.ppt-meta-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
@media (max-width: 800px) { .ppt-meta-row { grid-template-columns: 1fr; } }
.ppt-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; max-height: 480px; overflow-y: auto; }
.ppt-slide-card { padding: 0.75rem; border-radius: 12px; border: 1px solid rgba(0,229,255,0.15); background: rgba(8,12,20,0.9); }
/* ── Document chat (RAG) ── */
.doc-chat-workbench { min-height: 560px; display: flex; flex-direction: column; }
.doc-chat-layout { display: grid; grid-template-columns: 1fr 280px; flex: 1; min-height: 420px; border-top: 1px solid rgba(148,163,184,0.08); }
@media (max-width: 900px) { .doc-chat-layout { grid-template-columns: 1fr; } }
.doc-chat-messages { padding: 1rem; overflow-y: auto; max-height: 480px; display: flex; flex-direction: column; gap: 0.75rem; }
.doc-chat-msg { padding: 0.75rem 0.9rem; border-radius: 12px; max-width: 92%; }
.doc-chat-msg.user { align-self: flex-end; background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.25); }
.doc-chat-msg.assistant { align-self: flex-start; background: rgba(8,12,20,0.95); border: 1px solid rgba(148,163,184,0.15); }
.doc-chat-role { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; display: block; margin-bottom: 0.25rem; }
.doc-chat-msg p { margin: 0; font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; }
.doc-chat-sources { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.doc-chat-src { font-size: 0.68rem; padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(100,116,139,0.2); color: #7dd3fc; text-decoration: none; }
.doc-chat-src:hover { background: rgba(0,229,255,0.15); }
.doc-chat-side { padding: 1rem; border-left: 1px solid rgba(148,163,184,0.08); background: rgba(0,0,0,0.2); overflow-y: auto; max-height: 480px; }
.doc-chat-hits { display: flex; flex-direction: column; gap: 0.4rem; }
.doc-chat-hit { padding: 0.5rem; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 0.72rem; }
.doc-chat-hit:hover { border-color: rgba(0,229,255,0.2); background: rgba(0,229,255,0.05); }
.doc-chat-hit strong { display: block; font-size: 0.74rem; color: #e2e8f0; margin-bottom: 0.2rem; }
.doc-chat-hit p { margin: 0; color: #64748b; font-size: 0.68rem; }
.doc-chat-input { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(148,163,184,0.08); }
.doc-chat-input .form-input { flex: 1; }
/* ── 360 Analytics ── */
.analytics360-workbench { min-height: 560px; }
.a360-toolbar { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(148,163,184,0.08); }
@media (max-width: 800px) { .a360-toolbar { grid-template-columns: 1fr; } }
.a360-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; padding: 1rem; }
.a360-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 700px) { .a360-kpis { grid-template-columns: 1fr 1fr; } }
.a360-panel { padding: 0.75rem; border-radius: 12px; border: 1px solid rgba(148,163,184,0.12); background: rgba(0,0,0,0.25); min-height: 120px; }
.a360-links { max-height: 200px; overflow-y: auto; }
.a360-link-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(148,163,184,0.06); }
.a360-pill { display: inline-block; margin: 0.2rem; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.68rem; background: rgba(0,229,255,0.1); color: #7dd3fc; }
.a360-trend-row { display: flex; justify-content: space-between; font-size: 0.68rem; padding: 0.25rem 0; color: #94a3b8; }
.a360-word { display: inline-block; margin: 0.15rem; padding: 0.15rem 0.4rem; font-size: 0.65rem; border-radius: 6px; background: rgba(100,116,139,0.2); color: #cbd5e1; }
@keyframes dl-pulse {
0%, 100% { transform: translateX(-100%); width: 30%; }
50% { transform: translateX(200%); width: 50%; }
}
.badge-positive { background: rgba(62, 207, 142, 0.2); color: #3ecf8e; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; }
.badge-neutral { background: rgba(107, 114, 128, 0.25); color: #cbd5e1; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; }
.badge-negative { background: rgba(239, 68, 68, 0.2); color: #ef4444; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; }