.kx-dash {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
}

/* 행사 헤더 */
.kx-dash__event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.kx-dash__event-name {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--color-neutral-900);
}
.kx-dash__event-meta {
  font-size: var(--fs-body);
  color: var(--color-neutral-500);
  margin-top: 2px;
}
.kx-dash__countdown {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-600);
  color: var(--color-on-accent);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}

/* 히어로 타임라인 */
.kx-dash__hero {
  padding: var(--space-5) var(--space-4);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  overflow-x: auto;
}
.kx-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 720px;
}
.kx-timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}
.kx-timeline__bar {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--color-neutral-200);
}
.kx-timeline__node.is-done .kx-timeline__bar {
  background: var(--color-success);
}
.kx-timeline__dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--color-on-accent);
  background: var(--color-neutral-200);
}
.kx-timeline__node.is-done .kx-timeline__dot {
  background: var(--color-success);
}
.kx-timeline__node.is-current .kx-timeline__dot {
  background: var(--color-primary-600);
}
.kx-timeline__node.is-imminent .kx-timeline__dot {
  background: var(--color-violation-warn);
  animation: kx-pulse 1.6s ease-in-out infinite;
}
@keyframes kx-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(247, 144, 9, 0);
  }
}
.kx-timeline__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kx-timeline__d {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
}
.kx-timeline__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-neutral-900);
}
.kx-timeline__card {
  font-size: var(--fs-caption);
  text-align: center;
}
.kx-timeline__imminent {
  color: var(--color-violation-warn-text);
  font-weight: var(--fw-bold);
}
.kx-timeline__muted {
  color: var(--color-neutral-500);
}

/* KPI */
.kx-dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.kx-kpi {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.kx-kpi__label {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
}
.kx-kpi__value {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-bold);
  color: var(--color-neutral-900);
}
.kx-kpi__sub {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
}
.kx-kpi--warn {
  border-color: var(--color-violation-warn);
}
.kx-kpi--warn .kx-kpi__sub {
  color: var(--color-violation-warn-text);
  font-weight: var(--fw-semibold);
}
.kx-kpi--error .kx-kpi__value {
  color: var(--color-error);
}

/* 하단 split */
.kx-dash__split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.kx-dash__table-wrap {
  border: var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  /* overflow:hidden 은 넓은 표를 잘라냈다 → 가로 스크롤로 전환(모서리 클립 유지). */
  overflow-x: auto;
  min-width: 0;
}
.kx-dash__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: var(--border-card);
}
.kx-dash__section-head h2 {
  font-size: var(--fs-h3);
  color: var(--color-neutral-900);
}
.kx-dash__degraded {
  font-size: var(--fs-micro);
  color: var(--color-warning);
  background: #fff4e5;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.kx-dash__degraded-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  color: var(--color-neutral-700);
  background: #fff8ef;
  border: 1px solid #ffe4bf;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
}

/* 테이블 — 그리드 표준(Nifty Advanced headers, shared.css 정의와 동일) */
.kx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  color: var(--color-neutral-700);
}
.kx-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: var(--color-neutral-500);
  background: var(--color-neutral-050);
  border-bottom: 2px solid var(--color-neutral-200);
  white-space: nowrap;
  vertical-align: bottom;
}
.kx-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
  vertical-align: middle;
}
.kx-table tbody tr:hover {
  background: var(--row-hover);
}
.kx-table__thumb {
  display: inline-block;
  width: 44px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-neutral-200);
  background: linear-gradient(120deg, var(--color-neutral-100), var(--color-neutral-200));
}

/* aside */
.kx-dash__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.kx-feed,
.kx-dash__s7 {
  border: var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: var(--space-4);
}
.kx-feed__title,
.kx-dash__s7 h2 {
  font-size: var(--fs-h3);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}
.kx-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.kx-feed__item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: var(--space-2);
  align-items: baseline;
  font-size: var(--fs-body);
}
.kx-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--color-neutral-200);
}
.kx-feed__item.is-approved .kx-feed__dot {
  background: var(--color-success);
}
.kx-feed__item.is-rejected .kx-feed__dot {
  background: var(--color-error);
}
.kx-feed__item.is-deadline .kx-feed__dot {
  background: var(--color-violation-warn);
}
.kx-feed__item.is-submitted .kx-feed__dot {
  background: var(--color-primary-600);
}
.kx-feed__text {
  color: var(--color-neutral-700);
}
.kx-feed__time {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
  white-space: nowrap;
}
.kx-dash__s7-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.kx-dash__s7-head h2 {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .kx-dash__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kx-dash__split {
    grid-template-columns: 1fr;
  }
}
