.da-page { max-width:1320px; margin-inline:auto; }
.da-back { margin-bottom:12px; }
.da-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 24px;
  border:1px solid var(--border,#dfe5ed); border-radius:14px; background:var(--surface,#fff); }
.da-hero h1 { margin:5px 0 7px; font-size:clamp(21px,3vw,30px); overflow-wrap:anywhere; }
.da-hero p { margin:0; }
.da-eyebrow { font-size:12px; font-weight:700; letter-spacing:.05em; color:var(--text-dim,#637285); }
.da-saved,.da-purpose,.da-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.da-saved { margin:14px 0; }
.da-purpose { grid-column:1/-1; padding:4px 0; }
.da-purpose span { font-weight:650; margin-inline-end:5px; }
.da-saved button,.da-purpose button { border-radius:999px; }
.da-saved button.da-active,.da-purpose button.da-active { color:var(--info); background:var(--info-soft); border-color:var(--info); }
.da-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,360px); gap:12px 16px; align-items:start; }
.da-layout > *, .da-health { min-width:0; }
.da-result,.da-controls,.da-health,.da-empty { border:1px solid var(--border,#dfe5ed); background:var(--surface,#fff); border-radius:12px; }
.da-result-head,.da-health-title { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:13px 16px; }
.da-source { margin:0 16px 8px; font-size:12px; color:var(--text-dim,#637285); overflow-wrap:anywhere; }
.da-result-body { min-height:270px; padding:0 8px 10px; overflow:auto; }
.da-chart { width:100%; height:370px; }
.da-result-body .table-wrap { max-height:470px; }
.da-controls summary,.da-options summary { padding:10px 12px; font-weight:650; cursor:pointer; }
.da-control-in { display:grid; gap:9px; padding:0 12px 12px; }
.da-grid,.da-aliases { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.da-field { display:grid; gap:4px; min-width:0; font-size:13px; }
.da-field > span { font-weight:600; overflow-wrap:anywhere; }
.da-field :is(select,input), .da-rule :is(select,input) { width:100%; min-width:0; }
.da-rule { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto; gap:5px; align-items:center; }
.da-rule-filter { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto; }
.da-subhead { margin-top:5px; font-size:13px; font-weight:700; }
.da-actions { margin-top:7px; }
.da-note,.da-empty p { font-size:13px; color:var(--text-dim,#637285); }
.da-empty { padding:18px; grid-column:1/-1; overflow-wrap:anywhere; }
.da-result-body > .da-empty { margin:12px 6px; border:0; }
.da-health { margin-top:16px; }
.da-health:empty { display:none; }
.da-batch-list { display:grid; }
.da-batch { display:flex; flex-wrap:wrap; gap:7px 10px; align-items:center; padding:9px 16px; border-top:1px solid var(--border,#dfe5ed); }
.da-batch-name { flex:1 1 135px; font-weight:650; overflow-wrap:anywhere; }
.da-batch-reason { color:var(--warn); font-size:12px; overflow-wrap:anywhere; }
.da-status { padding:2px 7px; border-radius:999px; color:var(--info); background:var(--info-soft); font-size:11px; white-space:nowrap; }
.da-status[hidden] { display:none; }
.da-status[data-state="READY"] { color:var(--ok); background:var(--ok-soft); }
.da-status[data-state="REVIEW"] { color:var(--warn); background:var(--warn-soft); }
.da-config { display:grid; gap:10px; }
.da-fixed { border:1px solid var(--border,#dfe5ed); border-radius:8px; padding:8px; }
.da-fixed label { display:block; }
.da-modal .modal { width:min(600px,calc(100vw - 24px)); }
.da-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; padding:12px; }
.da-kpis article { display:grid; gap:5px; padding:14px; border:1px solid var(--border,#dfe5ed); border-radius:10px; overflow-wrap:anywhere; }
.da-kpis strong { font-size:28px; }
.da-overview-form { margin-block:14px; display:grid; gap:12px; }
.da-overview-source { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.da-overview-source .da-field { flex:1 1 260px; }
.da-shared-filters { display:grid; gap:8px; padding:14px; border:1px solid var(--border); background:var(--surface); border-radius:12px; }
.da-overview-context { padding:14px 16px; border-left:3px solid var(--info); background:var(--surface); border-radius:8px; overflow-wrap:anywhere; }
.da-overview-context p { margin:7px 0 0; font-size:13px; }
.da-overview-warning { color:var(--warn); }
.da-overview-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }
.da-overview-charts > :first-child { grid-column:1/-1; }
.da-column-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:7px; max-height:250px; overflow:auto; }
.da-column-picker label { display:flex; gap:6px; overflow-wrap:anywhere; font-size:12px; }
.da-overview-chart-table { padding:10px 14px; }
.da-overview-chart-table summary { cursor:pointer; }
.da-overview-details { min-width:0; max-width:100%; overflow:hidden; }
.da-overview-details .table-wrap { max-width:100%; overflow:auto; }
.da-detail-pages { padding:10px 14px; }
.da-detail-export { padding:10px 16px; border-bottom:1px solid var(--border, #e5e7eb); }
.da-detail-export progress { width:110px; height:6px; }
.da-detail-export .dim { font-size:12px; flex:1 1 240px; }
.da-overview .da-kpis article:last-child strong { font-size:16px; line-height:1.6; }
.da-board-layout { display:grid; grid-template-columns:180px minmax(0,1fr); gap:14px; margin-top:16px; }
.da-board { min-width:0; padding:16px; background:var(--surface-muted,var(--surface)); border-radius:14px; }
.da-board-layout > *, .da-overview-form > *, .da-designed-grid > *, .da-slicers > * { min-width:0; }
.da-board [aria-busy="true"] { min-height:130px; }
.da-overview-progress { display:grid; gap:12px; min-height:180px; padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); overflow-wrap:anywhere; }
.da-overview-progress p { margin:0; }
.da-progress-bar { display:block; width:100%; height:9px; accent-color:var(--accent,#ff4a25); }
.da-progress-bar[hidden] { display:none; }
.da-overview-origins { margin-top:8px; font-size:12px; }
.da-overview-origins summary { cursor:pointer; }
.da-overview-origins ul { margin:8px 0 0; padding-inline-start:18px; }
.da-filter-value { display:grid; gap:4px; min-width:0; }
.da-filter-value > select { font-size:11px; }
.da-view-sidebar { display:flex; flex-direction:column; gap:5px; min-width:0; padding-top:12px; }
.da-view-sidebar > strong { padding:0 10px 8px; }
.da-view-label { padding:14px 10px 5px; color:var(--text-dim); font-size:11px; }
.da-view-button { text-align:left; white-space:normal; overflow-wrap:anywhere; border:0; background:transparent; box-shadow:none; padding:9px 10px; border-radius:7px; }
.da-view-button:hover,.da-view-button.da-active { background:var(--info-soft); color:var(--info); }
.da-design-toolbar { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.da-design-toolbar > strong { flex:1 1 180px; font-size:17px; }
.da-design-toolbar .da-field { display:flex; align-items:center; gap:6px; }
.da-card-editor { padding:10px; border:1px solid var(--border); border-radius:8px; }
.da-card-editor summary { cursor:pointer; padding-bottom:8px; }
.da-designed-board { display:grid; gap:20px; margin-bottom:16px; }
.da-dashboard-section > h2 { margin:4px 0 10px; font-size:16px; }
.da-designed-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.da-designed-card { min-width:0; overflow:hidden; }
.da-designed-card .table-wrap { max-width:100%; max-height:360px; overflow:auto; }
.da-designed-card .da-result-head > strong { min-width:0; overflow-wrap:anywhere; }
.da-designed-card .da-result-head > button { flex:none; }
.da-overview-details :is(th,td) { max-width:300px; overflow-wrap:anywhere; }
.da-designed-card[data-width="2"] { grid-column:1/-1; }
.da-overview[data-theme="cream"] .da-board {
  background: #f8f7f4;
  color: #1e2229;
  color-scheme: light;
  --surface: #ffffff;
  --surface-2: #f2f1eb;
  --surface-muted: #f7f6f1;
  --field-bg: #ffffff;
  --text: #1e2229;
  --text-dim: #636c7a;
  --border: #e4e1d7;
  --border-strong: #d3cfc2;
  --border-subtle: #ece9e0;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --info: #0284c7;
  --info-soft: #f0f9ff;
  --warn: #b45309;
  --warn-soft: #fffbeb;
}
.da-overview[data-theme="cream"] .da-chart { height:350px; }
.da-overview[data-theme="cream"] .da-board :is(input,select,textarea) { color:var(--text); background:var(--surface); border-color:var(--border); }
.da-overview[data-theme="cream"] .da-board :is(summary,.dim) { color:var(--text-dim); }
.da-overview[data-theme="cream"] .da-board summary { color:var(--text); }
.da-overview { display:block; }
.da-overview .da-hero {
  padding:14px 20px;
  gap:12px;
  border-radius:14px;
  border:1px solid var(--border,#e4e1d7);
  background:var(--surface,#ffffff);
  box-shadow:0 1px 3px rgba(35,30,20,0.03);
}
.da-overview .da-overview-title { display:flex; gap:14px; align-items:center; min-width:0; }
.da-overview .da-hero h1 { font-size:22px; margin:0; font-weight:700; color:var(--text,#1e2229); letter-spacing:-0.02em; }
.da-overview .da-back { margin:0; padding:6px 0; border:0; background:transparent; color:var(--text-dim,#636c7a); box-shadow:none; white-space:nowrap; cursor:pointer; }
.da-overview .da-back:hover { color:var(--text,#1e2229); }
.da-overview .da-board-layout { grid-template-columns:200px minmax(0,1fr); gap:16px; margin-top:14px; }
.da-overview .da-board {
  min-width:0;
  padding:20px;
  border-radius:14px;
  border:1px solid var(--border,#e4e1d7);
}
.da-overview .da-board > [role="status"]:empty { display:none; }
.da-overview .da-view-sidebar {
  align-self:start;
  padding:14px;
  border:1px solid var(--border,#e4e1d7);
  border-radius:12px;
  background:var(--surface,#ffffff);
  box-shadow:0 1px 3px rgba(35,30,20,0.03);
}
.da-overview .da-view-sidebar > strong {
  padding:0 8px 8px;
  font-size:14px;
  font-weight:700;
  color:var(--text,#1e2229);
  border-bottom:1px solid var(--border-subtle,#ece9e0);
  margin-bottom:6px;
  display:block;
}
.da-view-label {
  padding:12px 8px 4px;
  color:var(--text-dim,#8c95a3);
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  display:block;
}
.da-view-button {
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  color:var(--text,#1e2229);
  transition:all 0.15s ease;
  display:block;
  width:100%;
  cursor:pointer;
}
.da-view-button:hover { background:var(--surface-2,#f2f1eb); color:var(--text,#1e2229); }
.da-view-button.da-active { background:#fff7ed; color:#c2410c; font-weight:600; }
.da-view-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.da-view-item:hover {
  background: var(--surface-2, #f2f1eb);
}
.da-view-item.da-active {
  background: #fff7ed;
}
.da-view-item .da-view-button {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 8px 0 0 8px;
}
.da-view-item.da-active .da-view-button {
  background: transparent;
  color: #c2410c;
  font-weight: 600;
}
.da-view-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.da-view-item:hover .da-view-item-actions,
.da-view-item:focus-within .da-view-item-actions {
  opacity: 1;
}
.da-view-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim, #71717a);
  cursor: pointer;
  line-height: 1;
  transition: all 0.1s ease;
}
.da-view-action-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text, #1e2229);
}
.da-view-item.da-active .da-view-action-btn {
  color: #c2410c;
}
.da-view-item.da-active .da-view-action-btn:hover:not(:disabled) {
  background: rgba(194, 65, 12, 0.15);
  color: #9a3412;
}
.da-view-action-btn.da-view-del:hover:not(:disabled) {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}
.da-view-action-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.da-view-item.da-dragging {
  opacity: 0.4;
}
.da-view-item.da-drag-over,
.da-view-item[data-drag-over="true"] {
  outline: 2px dashed var(--accent, #ea580c);
  outline-offset: -2px;
}
.da-overview-form { margin:0 0 12px; gap:12px; padding:16px; border:1px solid var(--border,#e4e1d7); border-radius:12px; background:var(--surface,#ffffff); }
.da-overview-options { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
.da-overview-options > details { max-width:100%; min-width:0; }
.da-overview-options > details:not([open]) { flex:1 1 155px; }
.da-overview-options > details[open] { flex:1 0 100%; }
.da-overview-options summary { font-size:12px; overflow-wrap:anywhere; }
.da-shared-filters { padding:0; display:block; }
.da-overview-context { padding:9px 12px; font-size:12.5px; border-radius:8px; }
.da-overview-origins { margin:0; }
.da-overview .da-kpis { padding:0; gap:10px; margin-bottom:14px; }
.da-overview .da-kpis article {
  padding:12px 16px;
  background:var(--surface,#ffffff);
  border:1px solid var(--border,#e4e1d7);
  border-radius:12px;
  box-shadow:0 1px 3px rgba(35,30,20,0.03);
  transition:box-shadow 0.2s ease, transform 0.2s ease;
}
.da-overview .da-kpis article:hover {
  box-shadow:0 2px 8px rgba(35,30,20,0.06);
  transform:translateY(-1px);
}
.da-overview .da-kpis article > span { font-size:12px; font-weight:600; color:var(--text-dim,#636c7a); text-transform:uppercase; letter-spacing:0.02em; }
.da-overview .da-kpis strong { font-size:26px; font-weight:700; color:var(--text,#1e2229); letter-spacing:-0.02em; }
.da-overview .da-kpis article:last-child strong { font-size:13px; font-weight:500; }
.da-category-switch {
  padding:10px 14px;
  border:1px solid var(--border,#e4e1d7);
  border-radius:12px;
  background:var(--surface,#ffffff);
  box-shadow:0 1px 3px rgba(35,30,20,0.03);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.da-category-switch .da-field { flex-basis:170px; }
.da-category-switch select {
  border:1px solid var(--border,#e4e1d7);
  border-radius:6px;
  padding:5px 8px;
  background:var(--surface-muted,#f7f6f1);
  color:var(--text,#1e2229);
}
.da-category-switch select:focus { border-color:var(--accent,#ea580c); outline:none; }
.da-section-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; margin:16px 0 12px; padding-bottom:4px; }
.da-section-head h2 { margin:0; font-size:18px; font-weight:700; color:var(--text,#1e2229); letter-spacing:-0.01em; }
.da-section-head p { margin:0; color:var(--text-dim,#636c7a); font-size:12.5px; }
.da-overview .da-dashboard-section > .da-note { margin:3px 0 8px; font-size:12px; }
.da-overview .da-design-toolbar .da-field { white-space:nowrap; }
.da-slicers {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:10px;
  align-items:start;
}
.da-slicer-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.da-slicer-reset-btn {
  padding:7px 16px;
  font-size:13px;
  font-weight:500;
  border-radius:8px;
  border:1px solid var(--border,#e4e1d7);
  background:var(--surface,#ffffff);
  color:var(--text-dim,#636c7a);
  cursor:pointer;
  transition:all 0.15s ease;
}
.da-slicer-reset-btn:hover {
  background:var(--surface-2,#f2f1eb);
  color:var(--text,#1e2229);
  border-color:#cbd5e1;
}
.da-slicer-run-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
  height:34px;
  padding:0 22px;
  font-size:13.5px;
  font-weight:600;
  border-radius:8px;
  background:var(--accent,#ea580c);
  color:#ffffff;
  border:1px solid var(--accent,#ea580c);
  box-shadow:0 1px 3px rgba(234,88,12,0.22), 0 2px 6px rgba(234,88,12,0.12);
  cursor:pointer;
  transition:all 0.16s ease;
  letter-spacing:0.02em;
}
.da-slicer-run-btn:hover {
  background:var(--accent-hover,#c2410c);
  border-color:var(--accent-hover,#c2410c);
  box-shadow:0 2px 8px rgba(234,88,12,0.32), 0 4px 12px rgba(234,88,12,0.18);
  transform:translateY(-1px);
}
.da-slicer-run-btn:active {
  transform:translateY(0);
  box-shadow:0 1px 2px rgba(234,88,12,0.2);
}
.da-category-switch select[aria-label="切换品类"] {
  display:none;
}
.da-category-switch .da-category-field {
  position:relative;
  min-width:240px;
  flex:1 1 260px;
}
.da-category-switch .da-multi-slicer {
  width:100%;
}
.da-slicers select { border:0; padding-inline:0; }
.da-overview .da-slicers .da-field {
  padding:12px 14px;
  border:1px solid var(--border,#e4e1d7);
  border-radius:12px;
  background:var(--surface,#ffffff);
  box-shadow:0 1px 3px rgba(35,30,20,0.03), 0 3px 10px -2px rgba(35,30,20,0.02);
  display:flex;
  flex-direction:column;
  gap:7px;
  position:relative;
  align-content:start;
  transition:box-shadow 0.2s ease, border-color 0.2s ease;
}
.da-overview .da-slicers .da-field:hover {
  border-color:var(--border-strong,#d3cfc2);
  box-shadow:0 2px 8px rgba(35,30,20,0.05);
}
.da-overview .da-slicers .da-field > span {
  font-size:12px;
  font-weight:600;
  color:var(--text-dim,#636c7a);
  letter-spacing:0.01em;
}
.da-multi-slicer {
  position:relative;
  min-width:0;
  border:1px solid var(--border-subtle,#ece9e0);
  border-radius:8px;
  background:var(--surface-muted,#f7f6f1);
  transition:all 0.18s cubic-bezier(0.16,1,0.3,1);
}
.da-multi-slicer:hover {
  background:var(--surface,#ffffff);
  border-color:#cbd5e1;
  box-shadow:0 1px 4px rgba(0,0,0,0.04);
}
.da-multi-slicer[open] {
  z-index:40;
  background:var(--surface,#ffffff);
  border-color:var(--accent,#ea580c);
  box-shadow:0 0 0 3px rgba(234,88,12,0.12);
}
.da-multi-slicer[data-filtered="true"] {
  border-color:rgba(234,88,12,0.4);
  background:#fffcf9;
}
.da-multi-slicer > summary {
  padding:8px 32px 8px 12px;
  min-height:38px;
  display:flex;
  align-items:center;
  font-size:13px;
  font-weight:500;
  color:var(--text,#1e2229);
  cursor:pointer;
  user-select:none;
  list-style:none;
  overflow-wrap:anywhere;
}
.da-multi-slicer > summary::-webkit-details-marker {
  display:none;
}
.da-multi-slicer > summary::after {
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  width:7px;
  height:7px;
  margin-top:-5px;
  border-right:2px solid var(--text-dim,#8c93a0);
  border-bottom:2px solid var(--text-dim,#8c93a0);
  transform:rotate(45deg);
  transition:transform 0.2s cubic-bezier(0.16,1,0.3,1), margin-top 0.2s ease, border-color 0.2s ease;
  pointer-events:none;
}
.da-multi-slicer[open] > summary::after {
  transform:rotate(225deg);
  margin-top:-1px;
  border-color:var(--accent,#ea580c);
}
.da-multi-slicer[data-filtered="true"] > summary {
  color:#c2410c;
  font-weight:600;
}
.da-multi-slicer[data-filtered="true"] > summary::after {
  border-color:#c2410c;
}
.da-slicer-popup {
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  width:max(100%,320px);
  max-width:min(480px,calc(100vw - 48px));
  max-height:min(520px,var(--slicer-space,65vh));
  overflow:hidden;
  padding:14px;
  border:1px solid var(--border-strong,#d3cfc2);
  border-radius:12px;
  background:var(--surface,#ffffff);
  box-shadow:0 16px 36px -6px rgba(35,30,20,0.16), 0 4px 12px -2px rgba(35,30,20,0.08);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:41;
}
.da-slicers > :last-child .da-slicer-popup { left:auto; right:0; }
.da-multi-slicer[data-side="up"] .da-slicer-popup { top:auto; bottom:calc(100% + 6px); }
.da-slicer-popup textarea {
  flex:none;
  width:100%;
  min-width:0;
  min-height:68px;
  max-height:120px;
  resize:vertical;
  font:inherit;
  font-size:13px;
  padding:8px 10px;
  border:1px solid var(--border,#e4e1d7);
  border-radius:8px;
  background:var(--surface-muted,#f7f6f1);
  color:var(--text,#1e2229);
  transition:border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
  box-sizing:border-box;
}
.da-slicer-popup textarea:focus {
  outline:none;
  background:#ffffff;
  border-color:var(--accent,#ea580c);
  box-shadow:0 0 0 3px rgba(234,88,12,0.14);
}
.da-slicer-body {
  min-height:0;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  scrollbar-width:thin;
}
.da-slicer-body small.dim {
  font-size:11.5px;
  color:var(--text-dim,#636c7a);
  line-height:1.4;
}
.da-slicer-body .da-slicer-options { max-height:none; overflow:visible; }
.da-slicer-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-height:110px;
  overflow-y:auto;
  padding:2px 0;
  scrollbar-width:thin;
}
.da-slicer-tag {
  border:1px solid var(--border,#e4e1d7);
  border-radius:6px;
  background:var(--surface-muted,#f7f6f1);
  color:var(--text,#1e2229);
  padding:3px 8px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.15s ease;
  overflow-wrap:anywhere;
  max-width:100%;
  display:inline-flex;
  align-items:center;
}
.da-slicer-tag:hover {
  background:#fee2e2;
  border-color:#fca5a5;
  color:#dc2626;
}
.da-slicer-options {
  display:flex;
  flex-direction:column;
  gap:2px;
  max-height:200px;
  overflow-y:auto;
  padding:2px 0;
  scrollbar-width:thin;
}
.da-slicer-option {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;
  font-size:13px;
  color:var(--text,#1e2229);
  transition:background-color 0.15s ease;
  user-select:none;
}
.da-slicer-option:hover {
  background-color:var(--surface-2,#f2f1eb);
}
.da-slicer-option input {
  accent-color:var(--accent,#ea580c);
  width:16px;
  height:16px;
  cursor:pointer;
  margin:0;
  flex:none;
}
.da-slicer-error {
  background:#fef2f2;
  border:1px solid #fee2e2;
  border-radius:6px;
  padding:6px 10px;
  color:#b91c1c;
  font-size:12px;
  line-height:1.4;
  overflow-wrap:anywhere;
  margin:4px 0 0;
}
.da-slicer-error:empty,.da-slicer-popup [role="status"]:empty { display:none; }
.da-slicer-popup .da-actions {
  flex:none;
  border-top:1px solid var(--border-subtle,#ece9e0);
  padding-top:10px;
  margin-top:2px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  background:var(--surface,#ffffff);
}
.da-slicer-popup .da-actions button {
  font-size:12.5px;
  padding:6px 12px;
  border-radius:6px;
  border:1px solid var(--border,#e4e1d7);
  background:var(--surface,#ffffff);
  color:var(--text-dim,#636c7a);
  cursor:pointer;
  transition:all 0.15s ease;
}
.da-slicer-popup .da-actions button:hover {
  background:var(--surface-2,#f2f1eb);
  color:var(--text,#1e2229);
  border-color:#cbd5e1;
}
.da-slicer-popup .da-actions button.primary {
  background:var(--accent,#ea580c);
  color:#ffffff;
  border-color:var(--accent,#ea580c);
  font-weight:600;
  padding:6px 16px;
  box-shadow:0 1px 3px rgba(234,88,12,0.28);
}
.da-slicer-popup .da-actions button.primary:hover {
  opacity:0.94;
  box-shadow:0 2px 6px rgba(234,88,12,0.38);
  transform:translateY(-1px);
}
.da-designed-card {
  min-width:0;
  overflow:hidden;
  background:var(--surface,#ffffff);
  border:1px solid var(--border,#e4e1d7);
  border-radius:14px;
  box-shadow:0 1px 3px rgba(35,30,20,0.04), 0 4px 14px -2px rgba(35,30,20,0.03);
  transition:box-shadow 0.2s ease, border-color 0.2s ease;
}
.da-designed-card:hover {
  box-shadow:0 2px 6px rgba(35,30,20,0.06), 0 8px 24px -4px rgba(35,30,20,0.04);
}
.da-designed-card .da-result-head {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px 12px;
  border-bottom:1px solid var(--border-subtle,#ece9e0);
}
.da-designed-card .da-result-head > strong {
  font-size:15px;
  font-weight:650;
  color:var(--text,#1e2229);
  letter-spacing:-0.01em;
}
.da-designed-card .da-result-head > button {
  font-size:12px;
  font-weight:500;
  color:var(--text-dim,#636c7a);
  background:#fafaf8;
  border:1px solid var(--border,#e4e1d7);
  border-radius:6px;
  padding:4px 12px;
  cursor:pointer;
  transition:all 0.15s ease;
}
.da-designed-card .da-result-head > button:hover {
  color:var(--text,#1e2229);
  background:var(--surface-2,#f2f1eb);
  border-color:#cbd5e1;
}
.da-chart-mapping {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:10px 18px 6px;
  margin:0;
}
.da-chart-mapping > span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--surface-muted,#f7f6f1);
  border:1px solid var(--border-subtle,#ece9e0);
  padding:3px 8px;
  border-radius:6px;
  font-size:12px;
  color:var(--text-dim,#636c7a);
}
.da-chart-mapping small {
  color:#8c95a3;
  font-weight:600;
}
.da-designed-card .da-source {
  margin:6px 18px 8px;
  padding:6px 12px;
  border-left:3px solid #cbd5e1;
  background:#f8fafc;
  border-radius:4px;
  font-size:12px;
  color:var(--text-dim,#636c7a);
}
.da-designed-card .da-chart {
  width:100%;
  height:350px;
}
.da-overview-chart-table {
  padding:10px 18px 14px;
  border-top:1px dashed var(--border-subtle,#ece9e0);
  margin-top:4px;
}
.da-overview-chart-table summary {
  font-size:12px;
  color:var(--text-dim,#636c7a);
  cursor:pointer;
  transition:color 0.15s ease;
  user-select:none;
}
.da-overview-chart-table summary:hover {
  color:var(--text,#1e2229);
}
.da-overview-details {
  min-width:0;
  max-width:100%;
  overflow:hidden;
  background:var(--surface,#ffffff);
  border:1px solid var(--border,#e4e1d7);
  border-radius:14px;
  box-shadow:0 1px 3px rgba(35,30,20,0.04), 0 4px 14px -2px rgba(35,30,20,0.03);
}
.da-overview-details .da-result-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--border,#e4e1d7);
}
.da-overview-details .da-result-head > strong {
  font-size:15px;
  font-weight:650;
  color:var(--text,#1e2229);
}
.da-overview-details .da-result-head .dim {
  background:var(--surface-muted,#f7f6f1);
  border:1px solid var(--border-subtle,#ece9e0);
  color:var(--text-dim,#636c7a);
  padding:3px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
}
.da-overview-details .table-wrap {
  max-width:100%;
  max-height:480px;
  overflow:auto;
}
.da-overview-details table {
  width:100%;
  border-collapse:collapse;
}
.da-overview-details th {
  position:sticky;
  top:0;
  z-index:2;
  background:#fafaf8;
  color:var(--text-dim,#636c7a);
  font-size:12px;
  font-weight:650;
  letter-spacing:0.02em;
  padding:10px 14px;
  border-bottom:1px solid var(--border,#e4e1d7);
  text-align:left;
  white-space:nowrap;
}
.da-overview-details td {
  padding:10px 14px;
  font-size:13px;
  color:var(--text,#1e2229);
  border-bottom:1px solid #f2f1ed;
  white-space:nowrap;
  transition:background-color 0.1s ease;
}
.da-overview-details tbody tr:nth-child(even) td {
  background-color:#faf9f7;
}
.da-overview-details tbody tr:hover td {
  background-color:#f2f0eb;
}
.da-detail-pages {
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--border,#e4e1d7);
  background:var(--surface,#ffffff);
}
.da-detail-pages button {
  font-size:12.5px;
  padding:5px 14px;
  border-radius:6px;
  border:1px solid var(--border,#e4e1d7);
  background:#fafaf8;
  color:var(--text,#1e2229);
  cursor:pointer;
  transition:all 0.15s ease;
}
.da-detail-pages button:hover {
  background:var(--surface-2,#f2f1eb);
  border-color:#cbd5e1;
}
.da-source-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:start; }
.da-source-grid .da-overview-source { margin:0; padding:10px; border:1px solid var(--border,#e4e1d7); border-radius:8px; align-items:end; }
.da-source-grid .da-field { flex-basis:150px; }
.da-overview .da-result { border:1px solid var(--border,#e4e1d7); border-radius:14px; background:var(--surface,#ffffff); box-shadow:0 1px 3px rgba(35,30,20,0.04), 0 4px 14px -2px rgba(35,30,20,0.03); }
.da-overview-form[data-mode="view"] :is(.da-chart-designer,.da-overview-settings,.da-theme-field) { display:none; }
.da-editing-guide { padding:10px 12px; border-left:3px solid var(--accent,#ea580c); background:var(--surface); border-radius:6px; margin:4px 0 10px; font-size:13px; }
.da-designer-target { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px 0; }
.da-designer-target .da-field { flex:1; min-width:180px; }
.da-card-editor[hidden] { display:none; }
.da-designed-card.da-editing { outline:2px solid var(--accent,#ea580c); outline-offset:2px; }
.da-mode-toggle { border:1px solid var(--border); background:var(--surface); }
.da-preparation { display:grid; gap:6px; min-width:220px; max-width:100%; padding:8px 12px; border-radius:10px; font-size:12px; background:var(--info-soft); color:var(--info); }
.da-preparation[hidden] { display:none; }
.da-prep-READY { background:#ecfdf3; color:#067647; }
.da-prep-FAILED { background:#fff4e5; color:#9d590d; }
@media(max-width:760px) {
  .da-overview .da-board-layout { grid-template-columns:minmax(0,1fr); }
  .da-source-grid { grid-template-columns:minmax(0,1fr); }
  .da-card-editor .da-grid { grid-template-columns:minmax(0,1fr); }
  .da-chart-designer .da-control-in > button.primary { position:sticky; bottom:calc(104px + env(safe-area-inset-bottom,0px)); z-index:8; box-shadow:0 -4px 12px #17203312; }
  .da-view-sidebar { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; border-bottom:1px solid var(--border); padding-bottom:10px; }
  .da-view-sidebar > strong,.da-view-label { display:none; }
  .da-view-button { flex:none; white-space:nowrap; padding:6px 9px; }
  .da-view-item { flex:none; display:inline-flex; }
  .da-view-item .da-view-button { white-space:nowrap; padding:6px 4px 6px 9px; }
  .da-view-item .da-view-item-actions { opacity:1; padding-right:4px; }
  .da-board { padding:10px; }
  .da-designed-grid,.da-slicers { grid-template-columns:minmax(0,1fr); }
  .da-overview .da-rule-filter { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
  .da-overview .da-rule-filter > :nth-child(3) { grid-column:1/3; grid-row:2; }
  .da-overview .da-rule-filter > :last-child { grid-column:3; grid-row:1/3; }
  .da-overview .da-design-toolbar .da-field { flex:1 1 100%; }
  .da-overview .da-design-toolbar :is(input,select) { min-width:0; width:100%; }
  .da-overview .da-designed-card .da-chart { height:305px; }
  .da-overview .da-overview-title { flex-wrap:wrap; gap:5px 12px; }
  .da-overview-charts { grid-template-columns:minmax(0,1fr); }
  .da-layout { grid-template-columns:minmax(0,1fr); }
  .da-hero { padding:14px; flex-wrap:wrap; }
  .da-chart { height:305px; }
  .da-batch { padding-inline:10px; }
}
