.data-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  color: #e8fbfc;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 200, .18), transparent 28%),
    linear-gradient(145deg, #061f2f 0%, #0b3a53 58%, #082233 100%);
  border: 1px solid rgba(122, 232, 226, .22);
  border-radius: 16px;
}

.data-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(122, 232, 226, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 232, 226, .12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.data-visual::after {
  content: "";
  position: absolute;
  inset: auto -18% -22% -18%;
  height: 42%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(34, 211, 200, .18), transparent 68%);
}

.hero-img-wrap .data-visual,
.hero-visual .data-visual,
.hero-right .data-visual,
.hero-img-col .data-visual,
.problem-img-wrap .data-visual,
.problem-img .data-visual,
.problem-visual .data-visual,
.problem-img-col .data-visual,
.illus-wrap .data-visual {
  min-height: 100%;
  border-radius: inherit;
}

.hero-visual .data-visual,
.hero-right .data-visual,
.hero-img-col .data-visual {
  min-height: 440px;
  border-radius: 0;
}

.hero-img-wrap .data-visual {
  min-height: 420px;
}

.problem-img-wrap .data-visual,
.problem-img .data-visual,
.problem-visual .data-visual,
.problem-img-col .data-visual,
.illus-wrap .data-visual {
  min-height: 420px;
}

.hero-img-col .data-visual {
  min-height: 500px;
}

.problem-img-col .data-visual {
  min-height: 640px;
  border-radius: 0;
}

.dv-window {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  overflow: hidden;
  color: #0f172a;
  background: rgba(248, 252, 253, .98);
  border: 1px solid rgba(204, 228, 234, .92);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}

.dv-window--wide {
  width: min(100%, 640px);
}

.dv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fa 100%);
  border-bottom: 1px solid #cce4ea;
}

.dv-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #0d4f6c;
}

.dv-subtitle {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
}

.dv-fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 8px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.dv-fresh::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.dv-body {
  padding: 14px;
}

.dv-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dv-kpi {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-kpi-label {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.dv-kpi-value {
  color: #0d4f6c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
}

.dv-kpi-note {
  margin-top: 6px;
  color: #0e7490;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.dv-kpi-note--warn { color: #b45309; }
.dv-kpi-note--danger { color: #b91c1c; }
.dv-kpi-note--ok { color: #047857; }

.dv-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 12px;
}

.dv-panel {
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dv-panel-title {
  min-width: 0;
  color: #0d4f6c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.dv-pill {
  flex-shrink: 0;
  padding: 3px 7px;
  color: #0e7490;
  background: #e0f7f6;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.dv-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  height: 112px;
}

.dv-bar {
  min-height: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #22d3c8 0%, #0e7490 100%);
}

.dv-bar--plan {
  background: #cbd5e1;
}

.dv-line {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(14, 116, 144, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, .12) 1px, transparent 1px);
  background-size: 100% 28px, 25% 100%;
}

.dv-line svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dv-table {
  display: grid;
  gap: 7px;
}

.dv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(70px, .72fr) minmax(70px, .62fr);
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  background: #f8fcfd;
  border: 1px solid #e2eef2;
  border-radius: 7px;
}

.dv-row--head {
  color: #64748b;
  background: transparent;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 9px;
  font-weight: 800;
}

.dv-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.25;
}

.dv-row strong {
  color: #0d4f6c;
  font-size: 11px;
}

.dv-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.dv-status--ok { color: #047857; background: #ecfdf5; }
.dv-status--warn { color: #92400e; background: #fffbeb; }
.dv-status--danger { color: #991b1b; background: #fef2f2; }
.dv-status--info { color: #0e7490; background: #e0f7f6; }

.dv-alerts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dv-alert {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  color: #0f172a;
  background: #f8fcfd;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.45;
}

.dv-alert::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #22d3c8;
}

.dv-alert--warn::before { background: #f59e0b; }
.dv-alert--danger::before { background: #ef4444; }

.dv-alert strong {
  display: block;
  margin-bottom: 2px;
  color: #0d4f6c;
  font-size: 10px;
  line-height: 1.3;
}

.dv-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.dv-lane {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-lane--muted {
  background: #f8fcfd;
}

.dv-lane-title {
  margin-bottom: 10px;
  color: #0d4f6c;
  font-size: 11px;
  font-weight: 800;
}

.dv-source-list,
.dv-workflow {
  display: grid;
  gap: 8px;
}

.dv-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 9px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.dv-source span:last-child {
  flex-shrink: 0;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.dv-source--bad {
  border-color: #fecaca;
  background: #fff7f7;
}

.dv-source--bad span:last-child {
  color: #b91c1c;
}

.dv-source--ok span:last-child {
  color: #047857;
}

.dv-flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dv-flow-line::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #9ecdd4;
}

.dv-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 34px 8px 8px;
  text-align: center;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.dv-step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #22d3c8;
  box-shadow: 0 0 0 5px #e0f7f6;
}

.dv-ai-list {
  display: grid;
  gap: 9px;
}

.dv-ai-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 11px;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-ai-title {
  color: #0d4f6c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.dv-ai-copy {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.dv-score {
  flex-shrink: 0;
  min-width: 46px;
  padding: 5px 7px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 7px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.dv-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dv-module {
  min-height: 66px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-module strong {
  display: block;
  color: #0d4f6c;
  font-size: 10px;
  line-height: 1.25;
}

.dv-module span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.dv-aging {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dv-aging-cell {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d7e8ee;
  border-radius: 8px;
}

.dv-aging-cell span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.dv-aging-cell strong {
  display: block;
  margin-top: 6px;
  color: #0d4f6c;
  font-size: 15px;
  line-height: 1.1;
}

.dv-aging-cell--danger strong { color: #b91c1c; }
.dv-aging-cell--warn strong { color: #b45309; }

@media (max-width: 680px) {
  .data-visual {
    min-height: 300px;
    padding: 14px;
  }

  .hero-img-wrap .data-visual,
  .hero-visual .data-visual,
  .hero-right .data-visual,
  .hero-img-col .data-visual,
  .problem-img-wrap .data-visual,
  .problem-img .data-visual,
  .problem-visual .data-visual,
  .problem-img-col .data-visual,
  .illus-wrap .data-visual {
    min-height: 300px;
  }

  .dv-body {
    padding: 11px;
  }

  .dv-topbar {
    align-items: flex-start;
    padding: 12px;
  }

  .dv-kpis,
  .dv-aging,
  .dv-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dv-grid-2,
  .dv-split {
    grid-template-columns: 1fr;
  }

  .dv-row {
    grid-template-columns: minmax(0, 1fr) minmax(64px, .7fr);
  }

  .dv-row span:nth-child(3) {
    display: none;
  }

  .dv-flow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dv-flow-line::before {
    display: none;
  }

  .dv-hide-mobile {
    display: none;
  }
}
