/*
 * 구축 사례 시연 — 화면 유형 notice-alert (설계 0005 §3-2 · §3-4). 토큰 · 부품은 agent-demo-kit.css.
 * 접두어 agd-na- · 키프레임 adNa. 배치는 data-size로. 반복 표시는 .agd-k-spin · .agd-k-loop(일시정지를 따름).
 */

.agd-na [hidden] {
  display: none !important;
}

/* 원본 화면 색(관계부처 통보 화면과 같은 값) */
.agd-na {
  --k-primary: #1f4a86;
  --k-p50: #ebf1fa;
  --k-p100: #cfdcef;
  --k-p600: #1a3f73;
  --k-p700: #17365f;
  --k-bg: #f5f6f9;
  --na-navy: #1d3c6e;
  --na-ink: #3d4352;
  --na-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
}

.agd-na .agd-na-caret svg,
.agd-na .agd-na-i svg,
.agd-na .agd-na-scircle .agd-k-ico svg,
.agd-na .agd-na-pickbox svg {
  width: 12px;
  height: 12px;
}

.agd-na .agd-na-filters .agd-k-ico svg,
.agd-na .agd-na-lastrun .agd-k-ico svg,
.agd-na .agd-na-esel .agd-k-ico svg {
  width: 13px;
  height: 13px;
}

.agd-na-btntext,
.agd-na-donemsg,
.agd-na-logmsg {
  min-width: 0;
}

.agd-na-htext,
.agd-na-dtitle,
.agd-na-dlgtitles,
.agd-na-pickbody {
  flex: 1 1 auto;
  min-width: 0;
}

.agd-na .agd-na-navy {
  border-color: var(--na-navy);
  background: var(--na-navy);
}

.agd-na-mono,
.agd-na-cno,
.agd-na-logt {
  font-family: var(--na-mono);
  letter-spacing: 0;
}

/* 한 줄 말줄임 */
.agd-na-sub,
.agd-na-strong,
.agd-na-desc,
.agd-na-picksub,
.agd-na-statsub,
.agd-na-difftext,
.agd-na-searchtext,
.agd-na-dmail,
.agd-na-dmeta,
.agd-na-csub,
.agd-na-ecount,
.agd-na-selname,
.agd-na-dlgsub,
.agd-na-logstep,
.agd-na-mtab,
.agd-na-tr.is-head .agd-na-td {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 내부 스크롤(스크롤 막대 숨김) */
.agd-na-batch,
.agd-na-left,
.agd-na-mscroll,
.agd-na-loglist,
.agd-na-prog {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.agd-na-batch::-webkit-scrollbar,
.agd-na-left::-webkit-scrollbar,
.agd-na-mscroll::-webkit-scrollbar,
.agd-na-loglist::-webkit-scrollbar,
.agd-na-prog::-webkit-scrollbar,
.agd-na-dbody::-webkit-scrollbar {
  display: none;
}

/* ---------------------------------------------------------------- 앱 머리 */
.agd-na-top {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--k-border);
  background: var(--k-surface);
}

.agd-na-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.agd-na-mark {
  position: relative;
  overflow: hidden;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cd2e3a 50%, #0047a0 50%);
  transform: rotate(-28deg);
}

.agd-na-mark::before,
.agd-na-mark::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: #cd2e3a;
}

.agd-na-mark::after {
  left: 50%;
  background: #0047a0;
}

.agd-na-brandname {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #2a3042;
}

.agd-na-menu {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.agd-na-menuitem {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
  color: var(--na-ink);
}

.agd-na-menuitem.is-active,
.agd-na-mtab.is-on {
  background: var(--k-p50);
  font-weight: 800;
  color: var(--k-p700);
}

.agd-na-user {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 12px;
  color: var(--k-muted);
}

.agd-na-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--k-p50);
  font-size: 11px;
  font-weight: 800;
  color: var(--k-p700);
}

/* ---------------------------------------------------------------- 본문 · 화면 전환 */
.agd-na-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.agd-na-view {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.agd-na-view.is-enter {
  animation: adFade 0.28s ease-out both;
}

/* ---------------------------------------------------------------- 기수 현황 */
.agd-na-batch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 18px;
}

.agd-na-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.agd-na-h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.agd-na-desc {
  display: -webkit-box;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
  color: var(--k-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agd-na-hacts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.agd-na-hacts .agd-k-btn {
  height: 32px;
  padding: 0 12px;
  font-weight: 700;
}

.agd-na-lastrun {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--k-muted);
}

.agd-na-stats {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 0.8fr) repeat(3, minmax(0, 1.25fr));
  gap: 8px;
}

.agd-na-stat,
.agd-na-diff,
.agd-na-table,
.agd-na-card {
  min-width: 0;
  border: 1px solid var(--k-border-strong);
  border-radius: 10px;
  background: var(--k-surface);
}

.agd-na-stat {
  padding: 9px 12px 8px;
}

.agd-na-stat.is-on {
  border-color: var(--k-p700);
  box-shadow: inset 0 0 0 1px var(--k-p700);
}

.agd-na-stat.is-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agd-na-pickname {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.agd-na-picksub,
.agd-na-statsub {
  max-width: 100%;
  font-size: 11px;
  color: var(--k-subtle);
}

.agd-na-statlabel > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agd-na-statlabel {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--na-ink);
}

.agd-na-dot,
.agd-na-pdot,
.agd-na-sdot,
.agd-na-logdot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b92a3;
}

.agd-na-dot.is-blue,
.agd-na-pill.is-ready .agd-na-pdot {
  background: #3aa6ff;
}

.agd-na-dot.is-green {
  background: #22c55e;
}

.agd-na-statval {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 1px;
}

.agd-na-statnum,
.agd-na-pct {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.agd-na-statunit {
  font-size: 11px;
  color: var(--k-muted);
}

.agd-na-stat.is-flash,
.agd-na-diff.is-flash {
  animation: adNaFlash 1.4s ease-out;
}

.agd-na-diff {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.agd-na-diff .agd-k-ico,
.agd-na-loghead .agd-k-ico,
.agd-na-cinfo {
  color: var(--k-muted);
}

.agd-na-difftitle {
  font-weight: 800;
}

.agd-na-difftext {
  color: var(--na-ink);
}

.agd-na-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  border-bottom: 1px solid var(--k-border-strong);
}

.agd-na-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--k-muted);
}

.agd-na-tab.is-on {
  font-weight: 800;
  color: var(--k-p700);
  box-shadow: inset 0 -2px 0 var(--k-p700);
}

.agd-na-tab.is-pressed {
  background: var(--k-p50);
}

.agd-na-tabcount {
  padding: 0 7px;
  border-radius: 999px;
  background: #eceef3;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  color: var(--na-ink);
}

.agd-na-tab.is-on .agd-na-tabcount {
  background: transparent;
  color: var(--k-p700);
}

.agd-na-panel {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.agd-na-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--k-border);
  border-radius: 10px;
  background: var(--k-surface);
}

.agd-na-search,
.agd-na-select {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--k-border-strong);
  border-radius: 7px;
  background: var(--k-surface);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--na-ink);
}

.agd-na-search {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  color: var(--k-subtle);
}

.agd-na-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: var(--na-ink);
}

/* ---------------------------------------------------------------- 표 */
.agd-na-table {
  overflow: hidden;
}

.agd-na-tr {
  display: grid;
  align-items: center;
  column-gap: 12px;
  min-height: 54px;
  padding: 7px 16px;
  border-top: 1px solid var(--k-border);
}

.agd-na-tr.is-notice {
  grid-template-columns: 58px 122px minmax(0, 1fr) 112px 98px 150px 84px;
}

.agd-na-tr.is-member {
  grid-template-columns: 220px minmax(0, 1fr) 100px 64px 150px;
}

.agd-na-tr.is-head {
  min-height: 34px;
  border-top: 0;
  background: var(--k-alt);
}

.agd-na-tr.is-head .agd-na-td {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--k-muted);
}

.agd-na-tr.is-fill {
  animation: adNaRow 1s ease-out;
}

.agd-na-tr.is-in,
.agd-na-mblock.is-in,
.agd-na-logline.is-in,
.agd-na-logfoot.is-enter {
  animation: adRise 0.35s ease-out both;
}

.agd-na-td {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  color: var(--na-ink);
}

.agd-na-td > * {
  max-width: 100%;
}

.agd-na-cno {
  font-size: 11.5px;
}

.agd-na-sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--k-muted);
}

.agd-na-cuser .agd-na-sub {
  font-size: 10.5px;
}

.agd-na-strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--k-text);
}

.agd-na-kind,
.agd-na-chip,
.agd-na-etype,
.agd-na-pickbasis {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--k-border-strong);
  border-radius: 4px;
  background: var(--k-alt);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #4b5263;
}

.agd-na-etype,
.agd-na-pickbasis,
.agd-na-sel .agd-na-kind,
.agd-na-pick .agd-na-kind {
  height: 20px;
  padding: 0 6px;
  font-size: 10.5px;
  line-height: 18px;
}

.agd-na-kind.is-adm {
  border-color: #dccaf5;
  background: #f5eefe;
  color: #7a3fc7;
}

.agd-na-etype {
  background: var(--k-surface);
  color: var(--k-muted);
}

.agd-na-pickbasis {
  border-color: var(--k-border);
}

.agd-na-termline {
  white-space: nowrap;
  color: var(--k-text);
}

.agd-na-termline b,
.agd-na-memn,
.agd-na-ccnt b {
  font-weight: 800;
  color: var(--k-text);
}

.agd-na-memn {
  font-size: 13px;
}

.agd-na-cbasis {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.agd-na-ccnt {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.agd-na-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--k-border-strong);
  border-radius: 999px;
  background: var(--k-surface);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--na-ink);
}

.agd-na-pdot,
.agd-na-sdot,
.agd-na-logdot {
  width: 5px;
  height: 5px;
}

.agd-na-pill.is-ok {
  border-color: #d6e7b8;
  background: #f1f8e4;
  color: #3f6212;
}

.agd-na-pill.is-ok .agd-na-pdot {
  background: #4d7c0f;
}

.agd-na-skels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.agd-na-skel {
  display: block;
  width: 70%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eceef3 0%, #f7f8fb 50%, #eceef3 100%);
  background-size: 200% 100%;
  animation: adNaShimmer 1.3s linear infinite;
}

.agd-na-skel:nth-child(even) {
  width: 92%;
}

.agd-na-skels.is-pill .agd-na-skel {
  width: 72px;
  height: 22px;
  border-radius: 999px;
}

.agd-na-skels.is-meta,
.agd-na-skels.is-paper {
  gap: 12px;
  margin-top: 10px;
}

.agd-na-skels.is-meta .agd-na-skel:nth-child(2),
.agd-na-skels.is-paper .agd-na-skel:nth-child(2) {
  width: 100%;
  height: 40px;
}

/* ---------------------------------------------------------------- 회원 상세 */
.agd-na-member {
  display: flex;
  flex-direction: column;
  background: var(--k-bg);
}

.agd-na-dhead {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--k-border);
  background: var(--k-surface);
}

.agd-na-dhead .agd-k-btn {
  height: 32px;
}

.agd-na-dname {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.agd-na-dnm {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.agd-na-dmail {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--na-ink);
}

.agd-na-did {
  font-size: 11.5px;
  color: var(--k-muted);
}

.agd-na-dsub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 3px;
  font-size: 12px;
  color: var(--k-muted);
}

.agd-na-dbody {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}

.agd-na-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 12px 14px 16px 18px;
}

.agd-na-card {
  flex: 0 0 auto;
  padding: 12px 14px 13px;
}

.agd-na-card.is-in {
  animation: adRise 0.38s ease-out both;
}

.agd-na-chead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}

.agd-na-ctitle,
.agd-na-mh {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.agd-na-csub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--k-subtle);
}

.agd-na-cinfo,
.agd-na-legend {
  margin-left: auto;
}

.agd-na-legend {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--k-subtle);
}

.agd-na-legend::before {
  content: '';
  width: 14px;
  height: 10px;
  border: 1px dashed var(--k-border-strong);
  border-radius: 3px;
  background: var(--k-alt);
}

.agd-na-igrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.agd-na-igrid .agd-na-field:last-child {
  grid-column: 1 / -1;
}

.agd-na-fk {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--k-muted);
}

.agd-na-fv {
  margin-top: 3px;
  font-size: 12px;
  color: var(--na-ink);
}

.agd-na-muted {
  color: var(--k-subtle);
}

.agd-na-laws {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agd-na-law {
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--k-border-strong);
  border-radius: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--k-muted);
}

.agd-na-law b {
  font-weight: 700;
  color: var(--k-text);
}

.agd-na-cdesc {
  margin: -3px 0 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--k-muted);
}

.agd-na-est,
.agd-na-pick {
  padding: 9px 11px;
  border: 1px dashed var(--k-border-strong);
  border-radius: 8px;
  background: var(--k-alt);
}

.agd-na-est + .agd-na-est,
.agd-na-pick + .agd-na-pick {
  margin-top: 7px;
}

.agd-na-esttop,
.agd-na-seltop {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
}

.agd-na-evalue {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 800;
}

.agd-na-ecount {
  color: var(--k-muted);
}

.agd-na-ebase {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  color: var(--k-subtle);
}

.agd-na-ai {
  margin: 6px -4px 0;
  padding: 5px 6px 6px;
  border-radius: 7px;
}

.agd-na-ai.is-hl {
  animation: adNaGlow 2.2s ease-out;
}

.agd-na-aitop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--na-ink);
}

.agd-na-aibadge {
  flex: 0 0 auto;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--k-primary);
  border-radius: 4px;
  background: var(--k-p50);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 16px;
  color: var(--k-p700);
}

.agd-na-airow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin-top: 3px;
  padding-left: 10px;
  font-size: 12px;
  color: var(--na-ink);
}

.agd-na-airow b,
.agd-na-aiarrow {
  font-weight: 800;
  color: var(--k-text);
}

.agd-na-aiwhy {
  font-size: 11px;
  color: var(--k-subtle);
}

.agd-na-esel {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--k-muted);
}

.agd-na-esel.is-none {
  margin-top: 4px;
  font-weight: 600;
  color: var(--k-subtle);
}

.agd-na-sel {
  margin: 5px 0 0 16px;
  padding: 6px 10px;
  border: 1px solid var(--k-border);
  border-radius: 7px;
  background: var(--k-surface);
}

.agd-na-selname {
  font-weight: 700;
}

.agd-na-term {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.agd-na-why {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--k-muted);
}

.agd-na-pick {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  background: var(--k-surface);
}

.agd-na-pickbox {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 4px;
  background: var(--k-primary);
  color: #fff;
}

.agd-na-pkname {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agd-na-pickmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 3px 0 2px;
  font-size: 11.5px;
  color: var(--k-muted);
}

.agd-na-strength {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--k-p700);
}

.agd-na-pick.is-weak .agd-na-strength {
  color: #8a5a00;
}

.agd-na-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--k-border);
}

.agd-na-mtop {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--k-border);
  background: var(--k-surface);
}

.agd-na-mtab {
  flex: 0 1 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 28px;
  color: var(--k-muted);
}

.agd-na-mtab.is-on {
  flex: 0 0 auto;
}

.agd-na-mtop .agd-na-send {
  margin-left: auto;
}

.agd-na-mscroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 16px 18px;
}

.agd-na-mmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--k-muted);
}

.agd-na-mmeta b {
  font-weight: 700;
  color: var(--k-text);
}

.agd-na-mcount {
  margin-left: auto;
  font-size: 11.5px;
}

.agd-na-subj {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--k-border-strong);
  border-radius: 8px;
  background: var(--k-surface);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.agd-na-subjk {
  margin-right: 8px;
  font-weight: 400;
  color: var(--k-muted);
}

.agd-na-mbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--k-muted);
}

.agd-na-paper {
  margin-top: 6px;
  padding: 18px 20px 20px;
  border: 1px solid var(--k-border-strong);
  border-radius: 10px;
  background: #fff;
  color: #222;
}

.agd-na-phead {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: #111;
}

.agd-na-greet {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cfd3db;
  font-size: 12.5px;
  line-height: 1.75;
}

.agd-na-greet b {
  font-weight: 800;
}

.agd-na-greet .is-link {
  color: #1f4fb5;
}

.agd-na-psec {
  margin-top: 16px;
}

.agd-na-psech {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

.agd-na-psech::before {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 16px;
  background: #2350a8;
}

.agd-na-pitems {
  margin-top: 8px;
  padding: 2px 14px;
  background: #eef4fb;
}

.agd-na-pitem {
  padding: 9px 0;
}

.agd-na-pitem + .agd-na-pitem {
  border-top: 1px solid #d6e1ee;
}

.agd-na-plink {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  color: #1f3f8f;
}

.agd-na-pmeta {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: #555;
}

/* ---------------------------------------------------------------- 확인 창 · 진행 창 */
.agd-na-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 29, 46, 0.42);
}

.agd-na-overlay.is-enter {
  animation: adFade 0.22s ease-out both;
}

.agd-na-overlay.is-enter .agd-na-confirm,
.agd-na-dialog.is-enter {
  animation: adNaPop 0.3s ease-out both;
}

.agd-na-confirm,
.agd-na-dialog {
  border-radius: 12px;
  background: var(--k-surface);
  box-shadow: 0 24px 60px -18px rgba(10, 16, 34, 0.55);
}

.agd-na-confirm {
  width: 420px;
  max-width: calc(100% - 24px);
  padding: 18px 20px 16px;
}

.agd-na-ctitle {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.agd-na-cmsg {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--na-ink);
}

.agd-na-cacts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.agd-na-cacts .agd-k-btn {
  height: 34px;
  padding: 0 14px;
  font-weight: 700;
}

.agd-na-dialog {
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 16px;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 92%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.agd-na-dlghead {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--k-border);
}

.agd-na-dlgtitle {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.agd-na-dlgsub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--k-muted);
}

.agd-na-x {
  width: 30px;
  padding: 0;
}

.agd-na-dgrid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  background: var(--k-bg);
}

.agd-na-prog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 16px 18px 16px 20px;
  border-right: 1px solid var(--k-border);
}

.agd-na-ptop {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.agd-na-pct {
  font-size: 24px;
  line-height: 1.1;
}

.agd-na-pstep {
  font-size: 12px;
  color: var(--k-muted);
}

.agd-na-pstate {
  align-self: center;
  margin-left: auto;
  font-weight: 800;
}

.agd-na-bar {
  flex: 0 0 auto;
  height: 8px;
  margin-top: -4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--k-grid);
}

.agd-na-barfill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--k-primary);
  transition: width 0.4s ease;
}

.agd-na-steps {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
}

.agd-na-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  padding-bottom: 14px;
}

.agd-na-step:last-child {
  padding-bottom: 0;
}

.agd-na-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 3px;
  left: 11px;
  width: 2px;
  background: var(--k-border-strong);
}

.agd-na-step[data-state='done']::after {
  background: var(--k-primary);
}

.agd-na-scircle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--k-border-strong);
  border-radius: 50%;
  background: var(--k-surface);
  color: var(--k-subtle);
}

.agd-na-step[data-state='done'] .agd-na-scircle {
  border-color: var(--k-primary);
  background: var(--k-primary);
  color: #fff;
}

.agd-na-step[data-state='now'] .agd-na-scircle {
  border-color: var(--k-p100);
  background: var(--k-p50);
}

.agd-na-sdot {
  background: currentColor;
}

.agd-na-stext {
  min-width: 0;
  padding-top: 2px;
}

.agd-na-sname {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--k-muted);
}

.agd-na-step[data-state='now'] .agd-na-sname,
.agd-na-step[data-state='done'] .agd-na-sname {
  color: var(--k-text);
}

.agd-na-shint {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  color: var(--k-subtle);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agd-na-step[data-state='now'] .agd-na-shint {
  color: var(--k-primary);
}

.agd-na-psum {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--k-muted);
}

.agd-na-psumb,
.agd-na-cmsg b {
  font-weight: 800;
  color: var(--k-text);
}

.agd-na-logpane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--k-surface);
}

.agd-na-loghead,
.agd-na-logfoot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 800;
}

.agd-na-loghead {
  border-bottom: 1px solid var(--k-border);
}

.agd-na-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--k-muted);
}

.agd-na-livedot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--k-primary);
  animation: adPulse 1.2s ease-in-out infinite;
}

.agd-na-loglist {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 16px 12px;
}

.agd-na-logline {
  display: grid;
  grid-template-columns: 58px 6px 128px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  font-size: 11.5px;
  line-height: 1.6;
}

.agd-na-logt {
  font-size: 11px;
  color: var(--k-subtle);
}

.agd-na-logdot {
  align-self: center;
  background: #b4b9c6;
}

.agd-na-logstep {
  font-weight: 700;
  color: var(--k-primary);
}

.agd-na-logstep.is-all {
  color: var(--k-subtle);
}

.agd-na-logmsg {
  color: var(--na-ink);
}

.agd-na-logfoot {
  gap: 10px;
  border-top: 1px solid var(--k-border);
  font-weight: 700;
}

.agd-na .agd-na-closebtn {
  height: 32px;
  margin-left: auto;
  padding: 0 16px;
}

/* ---------------------------------------------------------------- 키프레임 */
@keyframes adNaPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes adNaShimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@keyframes adNaFlash {
  0%,
  35% {
    border-color: var(--k-primary);
    box-shadow: 0 0 0 3px var(--k-p100);
  }
}

@keyframes adNaRow {
  0%,
  30% {
    background-color: var(--k-p50);
  }
}

@keyframes adNaGlow {
  0%,
  65% {
    background-color: var(--k-p50);
    box-shadow: 0 0 0 2px var(--k-p100);
  }
}

/* ---------------------------------------------------------------- 영역 폭별 배치(§3-4) */
/* md — 표에서 구분 · 대상 여부 열 숨김 · 회원 상세는 2열(왼쪽 위주) · 진행 창은 거의 전체 폭 */
.agent-demo[data-size='md'] .agd-na-top {
  gap: 10px;
  padding: 0 14px;
}

.agent-demo[data-size='md'] .agd-na-menuitem {
  padding: 0 9px;
  font-size: 12.5px;
}

.agent-demo[data-size='md'] .agd-na-batch {
  padding: 12px 16px 14px;
}

.agent-demo[data-size='md'] .agd-na-lastrun,
.agent-demo[data-size='md'] .agd-na-select.is-minor,
.agent-demo[data-size='md'] .agd-na-ckind,
.agent-demo[data-size='md'] .agd-na-celig,
.agent-demo[data-size='md'] .agd-na-did,
.agent-demo[data-size='md'] .agd-na-rem .agd-na-btntext,
.agent-demo[data-size='md'] .agd-na-mtab:not(.is-on),
.agent-demo[data-size='md'] .agd-na-ebase {
  display: none;
}

.agent-demo[data-size='md'] .agd-na-tr.is-notice {
  grid-template-columns: 56px minmax(0, 1fr) 104px 96px 140px 82px;
}

.agent-demo[data-size='md'] .agd-na-tr.is-member {
  grid-template-columns: 200px minmax(0, 1fr) 92px 140px;
}

.agent-demo[data-size='md'] .agd-na-dbody {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.agent-demo[data-size='md'] .agd-na-mscroll,
.agent-demo[data-size='md'] .agd-na-paper {
  padding: 12px 14px 16px;
}

.agent-demo[data-size='md'] .agd-na-dialog {
  top: 12px;
  bottom: 12px;
  width: calc(100% - 28px);
}

.agent-demo[data-size='md'] .agd-na-dgrid {
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}

.agent-demo[data-size='md'] .agd-na-logline {
  grid-template-columns: 56px 6px 104px minmax(0, 1fr);
}

/* sm — 표는 카드형 · 회원 상세는 한 열(메일은 아래로) · 창은 전체 폭 */
.agent-demo[data-size='sm'] .agd-na-top {
  gap: 8px;
  padding: 0 10px;
}

.agent-demo[data-size='sm'] .agd-na-brandname,
.agent-demo[data-size='sm'] .agd-na-username,
.agent-demo[data-size='sm'] .agd-na-menuitem:not(.is-active),
.agent-demo[data-size='sm'] .agd-na-desc,
.agent-demo[data-size='sm'] .agd-na-lastrun,
.agent-demo[data-size='sm'] .agd-na-estbtn,
.agent-demo[data-size='sm'] .agd-na-statsub,
.agent-demo[data-size='sm'] .agd-na-diff,
.agent-demo[data-size='sm'] .agd-na-select,
.agent-demo[data-size='sm'] .agd-na-excel,
.agent-demo[data-size='sm'] .agd-na-tr.is-head,
.agent-demo[data-size='sm'] .agd-na-cno,
.agent-demo[data-size='sm'] .agd-na-ckind,
.agent-demo[data-size='sm'] .agd-na-corg,
.agent-demo[data-size='sm'] .agd-na-cterm,
.agent-demo[data-size='sm'] .agd-na-celig,
.agent-demo[data-size='sm'] .agd-na-back .agd-na-btntext,
.agent-demo[data-size='sm'] .agd-na-did,
.agent-demo[data-size='sm'] .agd-na-rem,
.agent-demo[data-size='sm'] .agd-na-csub,
.agent-demo[data-size='sm'] .agd-na-cinfo,
.agent-demo[data-size='sm'] .agd-na-ebase,
.agent-demo[data-size='sm'] .agd-na-mtab:not(.is-on),
.agent-demo[data-size='sm'] .agd-na-mbar,
.agent-demo[data-size='sm'] .agd-na-x,
.agent-demo[data-size='sm'] .agd-na-logt,
.agent-demo[data-size='sm'] .agd-na-live {
  display: none;
}

.agent-demo[data-size='sm'] .agd-na-menuitem {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  font-size: 12px;
  text-overflow: ellipsis;
}

.agent-demo[data-size='sm'] .agd-na-batch {
  gap: 9px;
  padding: 12px 12px 14px;
}

.agent-demo[data-size='sm'] .agd-na-head {
  align-items: center;
  gap: 8px;
}

.agent-demo[data-size='sm'] .agd-na-h1,
.agent-demo[data-size='sm'] .agd-na-dnm {
  font-size: 15.5px;
}

.agent-demo[data-size='sm'] .agd-na-hacts .agd-k-btn {
  padding: 0 10px;
}

.agent-demo[data-size='sm'] .agd-na-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.agent-demo[data-size='sm'] .agd-na-stat {
  padding: 7px 9px 6px;
}

.agent-demo[data-size='sm'] .agd-na-stat.is-pick {
  flex-direction: row;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}

.agent-demo[data-size='sm'] .agd-na-pickname {
  font-size: 13px;
}

.agent-demo[data-size='sm'] .agd-na-statnum {
  font-size: 17px;
}

.agent-demo[data-size='sm'] .agd-na-tab {
  flex: 1 1 0;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  font-size: 12.5px;
}

.agent-demo[data-size='sm'] .agd-na-filters {
  padding: 0;
  border: 0;
  background: transparent;
}

.agent-demo[data-size='sm'] .agd-na-tr {
  row-gap: 4px;
  min-height: 0;
  padding: 9px 12px 10px;
}

.agent-demo[data-size='sm'] .agd-na-tr.is-notice {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'name state' 'mem mem';
}

.agent-demo[data-size='sm'] .agd-na-cname {
  grid-area: name;
}

.agent-demo[data-size='sm'] .agd-na-cname .agd-na-strong {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-demo[data-size='sm'] .agd-na-cstate {
  grid-area: state;
  align-self: start;
}

.agent-demo[data-size='sm'] .agd-na-cmem {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  grid-area: mem;
}

.agent-demo[data-size='sm'] .agd-na-cmem .agd-na-skels {
  flex-direction: row;
}

.agent-demo[data-size='sm'] .agd-na-tr.is-member {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'user send' 'basis cnt';
}

.agent-demo[data-size='sm'] .agd-na-cuser {
  grid-area: user;
}

.agent-demo[data-size='sm'] .agd-na-csend {
  grid-area: send;
  align-self: start;
}

.agent-demo[data-size='sm'] .agd-na-cbasis {
  grid-area: basis;
}

.agent-demo[data-size='sm'] .agd-na-ccnt {
  grid-area: cnt;
}

.agent-demo[data-size='sm'] .agd-na-dhead {
  gap: 8px;
  padding: 9px 12px;
}

.agent-demo[data-size='sm'] .agd-na-back {
  width: 32px;
  padding: 0;
}

.agent-demo[data-size='sm'] .agd-na-dsub {
  flex-wrap: wrap;
  row-gap: 4px;
}

.agent-demo[data-size='sm'] .agd-na-dbody {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.agent-demo[data-size='sm'] .agd-na-left,
.agent-demo[data-size='sm'] .agd-na-mscroll {
  overflow: visible;
  padding: 10px 12px 12px;
}

.agent-demo[data-size='sm'] .agd-na-right {
  border-top: 1px solid var(--k-border);
  border-left: 0;
}

.agent-demo[data-size='sm'] .agd-na-card {
  padding: 11px 12px 12px;
}

.agent-demo[data-size='sm'] .agd-na-igrid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.agent-demo[data-size='sm'] .agd-na-paper {
  padding: 14px 12px 16px;
}

.agent-demo[data-size='sm'] .agd-na-dialog {
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: 0;
}

.agent-demo[data-size='sm'] .agd-na-dgrid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.agent-demo[data-size='sm'] .agd-na-prog {
  gap: 10px;
  padding: 12px;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid var(--k-border);
}

/* 크게 보기 안 휴대폰(앱 창 420~465): 단계 · 로그를 반씩 나눠 각자 스크롤 — [닫기] 줄이 밀려나지 않게 */
.agent-demo.is-theater[data-size='sm'] .agd-na-dgrid {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.agent-demo.is-theater[data-size='sm'] .agd-na-prog {
  overflow-y: auto;
}

.agent-demo[data-size='sm'] .agd-na-step {
  padding-bottom: 8px;
}

.agent-demo[data-size='sm'] .agd-na-shint {
  -webkit-line-clamp: 1;
}

.agent-demo[data-size='sm'] .agd-na-psum {
  margin-top: 0;
}

.agent-demo[data-size='sm'] .agd-na-loghead,
.agent-demo[data-size='sm'] .agd-na-loglist,
.agent-demo[data-size='sm'] .agd-na-logfoot {
  padding-right: 12px;
  padding-left: 12px;
  font-size: 12px;
}

.agent-demo[data-size='sm'] .agd-na-logline {
  grid-template-columns: 6px 88px minmax(0, 1fr);
  gap: 6px;
  font-size: 11px;
}
