/* =========================================================
   MES feature visuals
   페이지 편집기에 넣은 표(.mes-viz table)를 common.js(renderViz)가
   그래프로 그립니다. 편집기가 빈 태그를 지우므로 막대/점 요소는 JS가 생성.
   JS가 없으면 표가 그대로 보입니다.
   ========================================================= */

/* --- Tab panel: copy | visual --- */
#top .jtom-mes-home .mes-features .mes-explorer__panels > .has-viz {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 52px;
  min-height: 480px;
  padding: 50px 54px;
}

#top .jtom-mes-home .mes-feature-no {
  color: #006ea6;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
}

#top .jtom-mes-home .mes-feature-copy h3 { margin: 18px 0 16px; }
#top .jtom-mes-home .mes-feature-copy p { font-size: 16px; }

/* --- Card --- */
#top .jtom-mes-home .mes-viz {
  --viz-line: #dfe7ea;
  --viz-muted: #6b7f8b;
  --viz-ink: #173746;
  position: relative;
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid #cfdbe0;
  background: #fff;
  color: var(--viz-ink);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 26px 42px -34px rgba(6, 40, 61, .5);
}

#top .jtom-mes-home .mes-viz .is-s0 { --c: #06283d; }
#top .jtom-mes-home .mes-viz .is-s1 { --c: #006ea6; }
#top .jtom-mes-home .mes-viz .is-s2 { --c: #4fb3dc; }
#top .jtom-mes-home .mes-viz .is-s3 { --c: #b7d100; }
#top .jtom-mes-home .mes-viz .is-s4 { --c: #8fa3ad; }
#top .jtom-mes-home .mes-viz .is-info { --c: #006ea6; }
#top .jtom-mes-home .mes-viz .is-good { --c: #2f8a57; }
#top .jtom-mes-home .mes-viz .is-warn { --c: #c28400; }
#top .jtom-mes-home .mes-viz .is-bad { --c: #d4582a; }

/* No-JS fallback table; hidden visually once the chart is drawn */
#top .jtom-mes-home .mes-viz table { width: 100%; margin: 0; border-collapse: collapse; background: transparent; font-size: 13px; }
#top .jtom-mes-home .mes-viz caption { caption-side: top; padding: 0 0 12px; color: #06283d; font-weight: 600; text-align: left; }
#top .jtom-mes-home .mes-viz :is(th, td) { padding: 9px 10px; border: 0; border-bottom: 1px solid var(--viz-line); background: transparent; color: inherit; font-size: 13px; text-align: left; }
#top .jtom-mes-home .mes-viz__source {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#top .jtom-mes-home .mes-viz__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--viz-line);
}
#top .jtom-mes-home .mes-viz__head b { color: #06283d; font-size: 14px; font-weight: 600; }
#top .jtom-mes-home .mes-viz__badge { flex-shrink: 0; padding: 4px 7px; border: 1px solid #d2dfe3; color: var(--viz-muted); font-size: 9px; letter-spacing: .12em; }

/* --- Shared pieces --- */
#top .jtom-mes-home .mes-viz__summary { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 18px; }
#top .jtom-mes-home .mes-viz__stat { display: grid; gap: 2px; padding-left: 11px; border-left: 3px solid var(--c, #c5d4db); }
#top .jtom-mes-home .mes-viz__stat span { color: var(--viz-muted); font-size: 11px; }
#top .jtom-mes-home .mes-viz__stat b { color: #06283d; font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__stat small { margin-left: 3px; color: var(--viz-muted); font-size: 11px; font-weight: 400; }
#top .jtom-mes-home .mes-viz__stat em { color: #2f8a57; font-size: 11px; font-style: normal; }

#top .jtom-mes-home .mes-viz__label { color: var(--viz-ink); font-size: 13px; font-weight: 600; }
#top .jtom-mes-home .mes-viz__value { color: #06283d; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__track { position: relative; display: block; height: 8px; background: #e6edf0; }
#top .jtom-mes-home .mes-viz__fill { display: block; height: 100%; background: var(--c, #006ea6); transform-origin: left; }
#top .jtom-mes-home .mes-viz__chip { justify-self: start; padding: 3px 8px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 11px; font-weight: 600; white-space: nowrap; }

#top .jtom-mes-home .mes-viz__plot { position: relative; height: 190px; margin: 8px 0 0 34px; }
#top .jtom-mes-home .mes-viz__gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed #dde6e9; }
#top .jtom-mes-home .mes-viz__gridline small { position: absolute; right: 100%; top: -8px; padding-right: 8px; color: #8b9ca6; font-size: 10px; white-space: nowrap; }
#top .jtom-mes-home .mes-viz__axis { display: flex; margin: 8px 0 0 34px; color: var(--viz-muted); font-size: 11px; }
#top .jtom-mes-home .mes-viz__axis span { flex: 1; min-width: 0; text-align: center; }
#top .jtom-mes-home .mes-viz__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: #526a77; font-size: 11px; }
#top .jtom-mes-home .mes-viz__legend span { display: inline-flex; align-items: center; gap: 7px; }
#top .jtom-mes-home .mes-viz__legend span::before { content: ""; width: 10px; height: 10px; background: var(--c); }

/* --- progress: 공정 진척 --- */
#top .jtom-mes-home .mes-viz__progress-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 44px 64px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--viz-line);
}
#top .jtom-mes-home .mes-viz__progress-row:last-child { border-bottom: 0; }

/* --- columns: 계획 대비 실적 --- */
#top .jtom-mes-home .mes-viz__groups { position: absolute; inset: 0; display: flex; }
#top .jtom-mes-home .mes-viz__group { display: flex; flex: 1; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
#top .jtom-mes-home .mes-viz__col { display: block; width: min(16px, 30%); background: var(--c); transform-origin: bottom; }
#top .jtom-mes-home .mes-viz__columns .is-s0 { --c: #c5d4db; }
#top .jtom-mes-home .mes-viz__columns .is-s1 { --c: #006ea6; }

/* --- donut: 불량 유형 --- */
#top .jtom-mes-home .mes-viz__donut { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); align-items: center; gap: 30px; }
#top .jtom-mes-home .mes-viz__donut-chart { position: relative; aspect-ratio: 1; max-width: 100%; }
#top .jtom-mes-home .mes-viz__donut-chart svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
#top .jtom-mes-home .mes-viz__donut-bg,
#top .jtom-mes-home .mes-viz__arc { fill: none; stroke-width: 16; }
#top .jtom-mes-home .mes-viz__donut-bg { stroke: #e6edf0; }
#top .jtom-mes-home .mes-viz__arc { stroke: var(--c); }
#top .jtom-mes-home .mes-viz__donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
#top .jtom-mes-home .mes-viz__donut-center span { color: var(--viz-muted); font-size: 11px; }
#top .jtom-mes-home .mes-viz__donut-center b { color: #06283d; font-size: 26px; font-weight: 600; line-height: 1.15; }
#top .jtom-mes-home .mes-viz__legend-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--viz-line); }
#top .jtom-mes-home .mes-viz__legend-list li:last-child { border-bottom: 0; }
#top .jtom-mes-home .mes-viz__legend-list li::before { content: ""; width: 10px; height: 10px; background: var(--c); }
#top .jtom-mes-home .mes-viz__legend-list b { color: #06283d; font-variant-numeric: tabular-nums; }

/* --- stock: 현재고 / 안전재고 --- */
#top .jtom-mes-home .mes-viz__stock { display: grid; gap: 16px; }
#top .jtom-mes-home .mes-viz__stock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#top .jtom-mes-home .mes-viz__stock-head .mes-viz__label { flex: 1; min-width: 0; }
#top .jtom-mes-home .mes-viz__stock .mes-viz__track { height: 12px; }
#top .jtom-mes-home .mes-viz__marker { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #06283d; }
#top .jtom-mes-home .mes-viz__legend.is-stock { margin-top: 0; }
#top .jtom-mes-home .mes-viz__legend.is-stock .is-s0 { --c: #006ea6; }
#top .jtom-mes-home .mes-viz__legend.is-stock .is-s1::before { width: 2px; height: 14px; }

/* --- status: 설비 가동 상태 --- */
#top .jtom-mes-home .mes-viz__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#top .jtom-mes-home .mes-viz__tile { min-width: 0; padding: 14px 14px 13px; border: 1px solid var(--viz-line); border-top: 3px solid var(--c); background: #fbfcfc; }
#top .jtom-mes-home .mes-viz__tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#top .jtom-mes-home .mes-viz__tile-top .mes-viz__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .jtom-mes-home .mes-viz__state { display: inline-flex; align-items: center; gap: 5px; color: var(--c); font-size: 11px; font-weight: 600; white-space: nowrap; }
#top .jtom-mes-home .mes-viz__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
#top .jtom-mes-home .mes-viz__tile.is-good .mes-viz__state::before { animation: mes-viz-pulse 1.8s ease-out infinite; }
#top .jtom-mes-home .mes-viz__tile-value { display: block; margin: 12px 0 8px; color: #06283d; font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__tile-value small { margin-left: 2px; color: var(--viz-muted); font-size: 12px; font-weight: 400; }
#top .jtom-mes-home .mes-viz__tile .mes-viz__track { height: 5px; }

/* --- line: KPI 추이 --- */
#top .jtom-mes-home .mes-viz__layer { position: absolute; inset: 0; pointer-events: none; }
#top .jtom-mes-home .mes-viz__layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#top .jtom-mes-home .mes-viz__path { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#top .jtom-mes-home .mes-viz__dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid var(--c); border-radius: 50%; background: #fff; }
#top .jtom-mes-home .mes-viz__line .is-s0 { --c: #006ea6; }
#top .jtom-mes-home .mes-viz__line .is-s1 { --c: #7f9800; }

/* --- Motion: replays whenever a tab panel is shown (display none → block) --- */
#top .jtom-mes-home .mes-in-view .mes-viz__fill { animation: mes-viz-grow-x .9s cubic-bezier(.2, .7, .2, 1) both; }
#top .jtom-mes-home .mes-in-view .mes-viz__col { animation: mes-viz-grow-y .9s cubic-bezier(.2, .7, .2, 1) both; }
#top .jtom-mes-home .mes-in-view .mes-viz__arc { animation: mes-viz-arc 1s ease-out both; }
#top .jtom-mes-home .mes-in-view .mes-viz__layer svg { animation: mes-viz-reveal 1.3s ease-out both; }
#top .jtom-mes-home .mes-in-view .mes-viz__dot { animation: mes-viz-pop .35s ease-out both; }
@keyframes mes-viz-grow-x { from { transform: scaleX(0); } }
@keyframes mes-viz-grow-y { from { transform: scaleY(0); } }
@keyframes mes-viz-arc { from { stroke-dasharray: 0 100; } }
@keyframes mes-viz-reveal { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px -12px -12px -12px); } }
@keyframes mes-viz-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes mes-viz-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } to { box-shadow: 0 0 0 7px transparent; } }

/* =========================================================
   Hero dashboard: compact panels (.mes-viz--dash) in .mes-dash-grid
   레이아웃은 화면 폭이 아니라 대시보드 자체 폭(container query)에 맞춥니다.
   ========================================================= */
#top .jtom-mes-home .mes-dash-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
#top .jtom-mes-home .mes-dash-grid > * { grid-column: span 12; min-width: 0; }
#top .jtom-mes-home .mes-dash-grid > .mes-dash-trend { grid-column: span 8; }
#top .jtom-mes-home .mes-dash-grid > .mes-dash-oee { grid-column: span 4; }
#top .jtom-mes-home .mes-dash-grid > .mes-dash-timeline { grid-column: span 7; }
#top .jtom-mes-home .mes-dash-grid > .mes-dash-feed { grid-column: span 5; }

#top .jtom-mes-home .mes-dashboard .mes-viz--dash { padding: 12px 13px; border-color: #dde6ea; box-shadow: none; font-size: 11px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__head { margin-bottom: 10px; padding-bottom: 8px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__head b { font-size: 11px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__summary { gap: 6px 16px; margin-bottom: 8px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__stat { padding-left: 7px; border-left-width: 2px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__stat span { font-size: 9px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__stat b { font-size: 15px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__stat small { font-size: 9px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__plot { height: 118px; margin: 6px 0 0 26px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__gridline small { top: -6px; padding-right: 5px; font-size: 8px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__axis { margin: 5px 0 0 26px; font-size: 9px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__legend { gap: 4px 12px; margin-top: 8px; font-size: 9px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__legend span { gap: 5px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__legend span::before { width: 8px; height: 8px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__label { font-size: 10px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__value { font-size: 10px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__chip { padding: 1px 5px; font-size: 9px; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

/* kpi */
#top .jtom-mes-home .mes-dashboard .mes-viz--dash.mes-dash-kpi { padding: 0; border: 0; background: transparent; }
#top .jtom-mes-home .mes-viz__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#top .jtom-mes-home .mes-viz__kpi { min-width: 0; padding: 10px 12px 0; overflow: hidden; border: 1px solid #dde6ea; background: #fbfdfd; }
#top .jtom-mes-home .mes-viz__kpi-label { display: block; overflow: hidden; color: #6b7f8b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#top .jtom-mes-home .mes-dashboard .mes-viz__kpi-value { display: block; margin-top: 3px; color: #06283d; font-size: 20px; font-weight: 700; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__kpi-value small { margin-left: 2px; color: #6b7f8b; font-size: 10px; font-weight: 400; }
#top .jtom-mes-home .mes-viz__kpi-change { display: block; margin-top: 2px; overflow: hidden; color: var(--c); font-size: 9px; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
#top .jtom-mes-home .mes-viz__spark { display: block; width: calc(100% + 24px); height: 28px; margin: 6px -12px 0; overflow: visible; }
#top .jtom-mes-home .mes-viz__spark-line { fill: none; stroke: #006ea6; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
#top .jtom-mes-home .mes-viz__spark-area { fill: rgba(0, 110, 166, .1); }

/* combo */
#top .jtom-mes-home .mes-viz__combo .is-s1 { --c: #006ea6; }
#top .jtom-mes-home .mes-viz__combo .is-plan { --c: #06283d; }
#top .jtom-mes-home .mes-viz__combo .is-under { --c: #e08a4c; }
#top .jtom-mes-home .mes-viz__combo .is-current { --c: #006ea6; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__col { width: min(14px, 62%); }
#top .jtom-mes-home .mes-viz__combo .mes-viz__col.is-current,
#top .jtom-mes-home .mes-viz__combo .mes-viz__legend .is-current::before { background: repeating-linear-gradient(135deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 40%, #fff) 3px 6px); }
#top .jtom-mes-home .mes-viz__combo .mes-viz__path { stroke-width: 1.5; stroke-dasharray: 4 3; }
#top .jtom-mes-home .mes-viz__combo .mes-viz__legend .is-plan::before { height: 2px; width: 12px; }
#top .jtom-mes-home .mes-viz__group { cursor: default; }
#top .jtom-mes-home .mes-viz__group:hover { background: rgba(0, 110, 166, .06); }

/* oee */
#top .jtom-mes-home .mes-viz__oee { display: grid; gap: 7px; }
#top .jtom-mes-home .mes-viz__gauge { position: relative; width: 100%; max-width: 180px; margin: 2px auto 4px; }
#top .jtom-mes-home .mes-viz__gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
#top .jtom-mes-home .mes-viz__gauge-bg { fill: none; stroke: #e6edf0; stroke-width: 12; }
#top .jtom-mes-home .mes-viz__gauge .mes-viz__arc { stroke-width: 12; }
#top .jtom-mes-home .mes-viz__gauge-target { stroke: #06283d; stroke-width: 2; }
#top .jtom-mes-home .mes-viz__gauge-center { position: absolute; right: 0; bottom: 0; left: 0; line-height: 1.1; text-align: center; }
#top .jtom-mes-home .mes-dashboard .mes-viz__gauge-center b { display: block; color: #06283d; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__gauge-center small { margin-left: 1px; font-size: 11px; }
#top .jtom-mes-home .mes-viz__gauge-center span { color: #6b7f8b; font-size: 9px; }
#top .jtom-mes-home .mes-viz__oee-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; align-items: center; gap: 6px; }
#top .jtom-mes-home .mes-viz__oee-row .mes-viz__track { height: 5px; }

/* timeline */
#top .jtom-mes-home .mes-viz__timeline { display: grid; gap: 7px; }
#top .jtom-mes-home .mes-viz__timeline-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
#top .jtom-mes-home .mes-viz__timeline-row .mes-viz__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .jtom-mes-home .mes-viz__strip { display: flex; gap: 2px; height: 16px; }
#top .jtom-mes-home .mes-viz__seg { flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--c); color: #fff; font-size: 8px; font-weight: 600; line-height: 16px; text-align: center; white-space: nowrap; }
#top .jtom-mes-home .mes-viz--dash .mes-viz__axis.is-timeline { margin: 0 38px 0 68px; }

/* feed */
#top .jtom-mes-home .mes-viz__feed { display: grid; margin: 0; padding: 0; }
#top .jtom-mes-home .mes-viz__feed li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid var(--viz-line); }
#top .jtom-mes-home .mes-viz__feed li:first-child { padding-top: 0; }
#top .jtom-mes-home .mes-viz__feed li:last-child { padding-bottom: 0; border-bottom: 0; }
#top .jtom-mes-home .mes-viz__feed time { color: #6b7f8b; font-size: 9px; font-variant-numeric: tabular-nums; }
#top .jtom-mes-home .mes-viz__feed li.is-new time::after { content: "NEW"; margin-left: 5px; padding: 0 4px; background: #b7d100; color: #06283d; font-size: 8px; font-weight: 700; }
#top .jtom-mes-home .mes-viz__feed .mes-viz__chip { justify-self: end; }
#top .jtom-mes-home .mes-viz__feed-text { grid-column: 1 / -1; color: var(--viz-ink); font-size: 10px; line-height: 1.4; }

/* dashboard motion */
#top .jtom-mes-home .mes-in-view .mes-viz__spark,
#top .jtom-mes-home .mes-in-view .mes-viz__strip { animation: mes-viz-reveal 1s ease-out both; }
#top .jtom-mes-home .mes-in-view .mes-viz__feed li { animation: mes-viz-slide .5s ease-out both; }
@keyframes mes-viz-slide { from { opacity: 0; transform: translateY(6px); } }

/* 컨테이너 쿼리는 컨테이너(.mes-dash-grid) 자신이 아닌 자식에만 적용되므로 order로 배치 */
@container (max-width: 499px) {
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-trend,
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-timeline { grid-column: span 12; }
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-timeline { order: 1; }
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-oee { grid-column: span 5; }
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-feed { grid-column: span 7; }
}
@container (max-width: 420px) {
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-oee,
  #top .jtom-mes-home .mes-dash-grid > .mes-dash-feed { grid-column: span 12; }
  #top .jtom-mes-home .mes-viz__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #top .jtom-mes-home .mes-viz--dash .mes-viz__axis.is-timeline span:nth-child(even) { visibility: hidden; }
}

@media (max-width: 1180px) {
  #top .jtom-mes-home .mes-features .mes-explorer__panels > .has-viz { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 40px 36px; }
}

@media (max-width: 580px) {
  #top .jtom-mes-home .mes-features .mes-explorer__panels > .has-viz { padding: 28px 16px; }
  #top .jtom-mes-home .mes-feature-copy p { font-size: 15px; }
  #top .jtom-mes-home .mes-viz { padding: 18px 14px; }
  #top .jtom-mes-home .mes-viz__head { align-items: flex-start; }
  #top .jtom-mes-home .mes-viz__progress-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; }
  #top .jtom-mes-home .mes-viz__progress-row .mes-viz__track { grid-column: 1 / -1; order: 3; }
  #top .jtom-mes-home .mes-viz__summary { gap: 10px 18px; }
  #top .jtom-mes-home .mes-viz__stat b { font-size: 19px; }
  #top .jtom-mes-home .mes-viz__plot { height: 160px; }
  #top .jtom-mes-home .mes-viz__axis { font-size: 10px; }
  #top .jtom-mes-home .mes-viz__donut { grid-template-columns: 1fr; gap: 18px; }
  #top .jtom-mes-home .mes-viz__donut-chart { width: 170px; margin: 0 auto; }
  #top .jtom-mes-home .mes-viz__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
