/* 数据目录（版式参考 PowerX 看板）：来源条 + 指标卡 + 每日到达柱图 + 数据集表 + 最新到达 / 详情日历。各皮肤共用，颜色只读通用变量。 */
#view .ct-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: var(--text-secondary); }
#view .ct-source-l { min-width: 0; overflow-wrap: anywhere; }
#view .ct-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
#view .ct-kpis .ct-kpi { margin: 0; }
#view .ct-kpi .k-val small { font-size: var(--text-secondary); color: var(--tx-2); font-weight: 400; }
#view .ct-kpi .k-foot { margin-top: 4px; font-size: var(--text-caption); color: var(--tx-3); }
#view .ct-kpi.warn .k-val { color: var(--warn); }
#view .ct-block { margin-top: var(--gap); }
#view .ct-block .card-h h3 small { font-weight: 400; margin-left: 6px; font-size: var(--text-caption); }
#view .ct-chart { min-height: 160px; }
#view .ct-chart .ct-bar { fill: var(--pri); opacity: .85; }
#view .ct-chart .ct-bar:hover { opacity: 1; }
#view .ct-chart .ct-grid { stroke: var(--line); stroke-dasharray: 3 3; }
#view .ct-chart .ct-tick { fill: var(--tx-3); font-size: 11px; }
#view .ct-sets td, #view .ct-sets th { white-space: nowrap; }
#view .ct-sets tr.ct-empty td { color: var(--tx-3); }
#view .ct-sets tr.ct-empty .fm-name { color: var(--tx-2); }
#view .ct-file { font-weight: 500; overflow-wrap: anywhere; }
#view .ct-key { font-size: var(--text-caption); overflow-wrap: anywhere; }
#view .ct-sub { margin: 16px 0 8px; font-size: var(--text-secondary); }
#view .ct-detail-h { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
#view .ct-detail-h h2 { margin: 0; font-size: var(--text-section); }
#view .ct-gaps, #view .ct-months { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* 覆盖日历：按月排，到了的天实心（深浅看文件数），缺口用告警色描边 */
#view .ct-cal { display: flex; flex-wrap: wrap; gap: 20px; }
#view .ct-month { width: 196px; }
#view .ct-mh { font-size: var(--text-secondary); font-weight: 600; margin-bottom: 6px; }
#view .ct-wk, #view .ct-days { display: grid; grid-template-columns: repeat(7, 24px); gap: 4px; }
#view .ct-wk b { font-weight: 400; font-size: 11px; color: var(--tx-3); text-align: center; }
#view .ct-d { display: inline-block; width: 24px; height: 18px; border-radius: 4px; }
#view .ct-d.none { visibility: hidden; }
#view .ct-d.on.l1 { background: color-mix(in srgb, var(--pri) 40%, transparent); }
#view .ct-d.on.l2 { background: color-mix(in srgb, var(--pri) 65%, transparent); }
#view .ct-d.on.l3 { background: var(--pri); }
#view .ct-d.gap { border: 1.5px dashed var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
#view .ct-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--text-caption); color: var(--tx-2); }
#view .ct-legend .ct-d { width: 14px; height: 12px; visibility: visible; }
@media (max-width: 1100px) { #view .ct-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #view .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } #view .ct-source { flex-wrap: wrap; } }
/* 智能舱：柱子与日历用智能舱青色 */
:root[data-skin="alice"][data-theme][data-palette] body #view :is(.ct-chart .ct-bar) { fill: rgb(var(--ac-cy-rgb)); }
:root[data-skin="alice"][data-theme][data-palette] body #view .ct-d.on.l1 { background: rgba(var(--ac-cy-rgb), .35); }
:root[data-skin="alice"][data-theme][data-palette] body #view .ct-d.on.l2 { background: rgba(var(--ac-cy-rgb), .6); }
:root[data-skin="alice"][data-theme][data-palette] body #view .ct-d.on.l3 { background: rgb(var(--ac-cy-rgb)); }
#view .ct-source-r { display: flex; align-items: center; gap: 12px; flex: none; }
/* 数据接入页顶部：人工上传已移到文件管理的提示条 */
#view .imp-moved { display: flex; align-items: center; padding: 10px 16px; font-size: var(--text-secondary); color: var(--tx-2); }
#view .imp-moved .i { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
#view .imp-upload-intro { margin: 4px 0 12px; }
#fmImportPanel { padding: 4px 0; }
