/* 공통 구조 — 어느 안이든 같다.
 *
 * 여기 있는 것: 좌측 메뉴의 동작 · 공통 조각(vc-…)의 기본 모양 · 접근성 · 모션 줄이기 · 기본 화면(vc-fb-…).
 * 색은 전부 변수다. 안은 theme.css 의 [data-design="<id>"] 에서 변수 값만 정해도 쓸 만하게 보인다.
 * 기본값은 :where() 로 걸어 두어 특이도가 0 이다 — 안의 값이 늘 이긴다.
 */

/* ── 변수 기본값 ─────────────────────────────────────────────── */
:where(#app) {
  --vc-bg: #ECEEF1;          /* 바깥 바탕 */
  --vc-frame: #FFFFFF;       /* 메뉴 바탕 */
  --vc-main: #F4F5F7;        /* 본문 바탕 = 메뉴 선택 칸 색 */
  --vc-card: #FFFFFF;
  --vc-card-2: #F0F2F5;
  --vc-text: #15181D;
  --vc-text-2: #4B5260;
  --vc-text-3: #6B7280;
  --vc-line: #DDE1E6;
  --vc-accent: #2F5BD3;
  --vc-on-accent: #FFFFFF;
  --vc-ok: #1F7A4D;
  --vc-warn: #9A6200;
  --vc-crit: #C2281F;
  --vc-down: #6B4BA1;
  --vc-radius: 20px;
  --vc-radius-sm: 10px;
  --vc-font: system-ui, -apple-system, 'Segoe UI', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --vc-font-num: var(--vc-font);
  --vc-font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --vc-nav-text: var(--vc-text-2);
  --vc-nav-text-on: var(--vc-text);
  --vc-nav-ico-on-bg: var(--vc-accent);
  --vc-nav-ico-on-fg: var(--vc-on-accent);
  --vc-nav-ico-shadow: 0 10px 18px -6px rgba(0, 0, 0, .35);

  /* 메뉴 치수 — 안이 바꿔도 된다. 칸 위치 = 순서 × (높이 + 간격) */
  --vc-side-w: 228px;
  --vc-side-w-narrow: 84px;
  --vc-side-pad: 16px;       /* 메뉴 왼쪽 여백(칸은 오른쪽 끝까지 닿는다) */
  --vc-nav-h: 52px;          /* 메뉴 한 칸 높이 */
  --vc-nav-gap: 6px;         /* 칸 사이 */
  --vc-nav-curve: 26px;      /* 오목한 모서리 크기 */
  --vc-nav-pad: 10px;        /* 글자 왼쪽 여백 */
  --vc-nav-pad-on: 18px;     /* 선택됐을 때 */
  --vc-nav-ico: 36px;        /* 아이콘 원 지름 */
  --vc-main-radius: 32px;    /* 본문 왼쪽 위·아래 둥글기 */
}
:where(#app[data-mode="dark"]) {
  --vc-bg: #0E1014;
  --vc-frame: #15181D;
  --vc-main: #1C2027;
  --vc-card: #242932;
  --vc-card-2: #2B313B;
  --vc-text: #EEF1F5;
  --vc-text-2: #B7BEC9;
  --vc-text-3: #8F98A6;
  --vc-line: #353C47;
  --vc-accent: #7EA2FF;
  --vc-on-accent: #0E1014;
  --vc-ok: #5FD39A;
  --vc-warn: #F2C14E;
  --vc-crit: #FF8A80;
  --vc-down: #C3A6F5;
  --vc-nav-ico-shadow: 0 10px 18px -6px rgba(0, 0, 0, .7);
}

/* ── 바탕 ───────────────────────────────────────────────────── */
html, body { margin: 0; }
body { background: #ECEEF1; }
#app {
  min-height: 100vh;
  background: var(--vc-bg);
  color: var(--vc-text);
  font-family: var(--vc-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app *, #app *::before, #app *::after { box-sizing: border-box; }
:where(#app) button { font: inherit; color: inherit; cursor: pointer; }
:where(#app) input, :where(#app) textarea { font: inherit; color: inherit; }
:where(#app) code { font-family: var(--vc-font-mono); font-size: .92em; }
.vc-boot { margin: 0; padding: 40px; font-family: system-ui, sans-serif; color: #4B5260; }

/* ── 접근성 ─────────────────────────────────────────────────── */
.vc-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
#app :focus-visible { outline: 2px solid var(--vc-accent); outline-offset: 2px; }
.vc-num { font-family: var(--vc-font-num); font-variant-numeric: tabular-nums; }
.vc-muted { color: var(--vc-text-3); }

/* ── 바깥 틀(선택) — 안이 써도 되고 자기 틀을 그려도 된다 ─────────── */
.vc-shell { display: flex; min-height: 100vh; background: var(--vc-frame); }
.vc-main {
  flex: 1; min-width: 0;
  background: var(--vc-main);
  border-radius: var(--vc-main-radius) 0 0 var(--vc-main-radius);
  padding: 24px 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ── 좌측 메뉴 ──────────────────────────────────────────────────
 * 선택 칸(--vc-main)이 오른쪽 끝까지 닿아 본문과 이어지고, 위아래가 오목하게 말린다(가상 요소 + box-shadow).
 * 칸 이동 .2s → 그 뒤 글자(.14s 지연)·아이콘 원(.2s 지연)이 켜진다. 꺼질 때는 지연 없이. 들썩임 없음.
 */
.vc-side {
  width: var(--vc-side-w); flex: none;
  display: flex; flex-direction: column; gap: 24px;
  padding: 26px 0 20px var(--vc-side-pad);
  background: var(--vc-frame);
  color: var(--vc-nav-text);
}
.vc-side-logo { padding-left: 10px; color: var(--vc-text); }
.vc-side-foot { margin-top: auto; padding: 0 16px 0 10px; }
.vc-nav { position: relative; }
.vc-nav-ind {
  position: absolute; left: 0; right: 0; top: 0; height: var(--vc-nav-h);
  transform: translateY(calc(var(--vc-nav-i, 0) * (var(--vc-nav-h) + var(--vc-nav-gap))));
  transition: transform .2s cubic-bezier(.5, 0, .2, 1);
  pointer-events: none;
}
.vc-nav-ind-body {
  position: absolute; inset: 0;
  background: var(--vc-main);
  border-radius: calc(var(--vc-nav-h) / 2) 0 0 calc(var(--vc-nav-h) / 2);
}
.vc-nav-ind-body::before, .vc-nav-ind-body::after {
  content: ""; position: absolute; right: 0;
  width: var(--vc-nav-curve); height: var(--vc-nav-curve);
  background: transparent; pointer-events: none;
}
.vc-nav-ind-body::before {
  top: calc(var(--vc-nav-curve) * -1);
  border-bottom-right-radius: var(--vc-nav-curve);
  box-shadow: 10px 10px 0 10px var(--vc-main);
}
.vc-nav-ind-body::after {
  bottom: calc(var(--vc-nav-curve) * -1);
  border-top-right-radius: var(--vc-nav-curve);
  box-shadow: 10px -10px 0 10px var(--vc-main);
}
.vc-nav-list {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--vc-nav-gap);
}
.vc-nav-btn {
  width: 100%; height: var(--vc-nav-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 0 0 var(--vc-nav-pad);
  border: 0; background: transparent;
  color: var(--vc-nav-text);
  font-size: 14px; font-weight: 500; text-align: left; white-space: nowrap;
  transition: color .12s, padding-left .18s cubic-bezier(.3, 1.3, .5, 1);
}
.vc-nav-btn:hover { color: var(--vc-nav-text-on); }
.vc-nav-btn:active { transform: scale(.97); }
.vc-nav-btn.is-on {
  color: var(--vc-nav-text-on); font-weight: 700;
  padding-left: var(--vc-nav-pad-on);
  transition-delay: .14s;
}
.vc-nav-ico {
  width: var(--vc-nav-ico); height: var(--vc-nav-ico); flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: currentColor; box-shadow: none;
  transition: background-color .12s, color .12s, box-shadow .16s;
}
.vc-nav-btn.is-on .vc-nav-ico {
  background: var(--vc-nav-ico-on-bg); color: var(--vc-nav-ico-on-fg);
  box-shadow: var(--vc-nav-ico-shadow);
  transition-delay: .2s;
}
.vc-nav-label { overflow: hidden; text-overflow: ellipsis; }
.vc-nav-badge {
  margin-left: auto; margin-right: 18px;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--vc-accent); color: var(--vc-on-accent);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .vc-side { width: var(--vc-side-w-narrow); padding-left: 12px; }
  .vc-nav-label, .vc-nav-badge, .vc-side-hide { display: none !important; }
  .vc-side-foot { padding: 0 8px 0 4px; }
}

/* ── 상태 · 심각도 ───────────────────────────────────────────── */
.vc-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.vc-st-icon { flex: none; }
.vc-st--ok { color: var(--vc-ok); }
.vc-st--warn { color: var(--vc-warn); }
.vc-st--crit { color: var(--vc-crit); }
.vc-st--down { color: var(--vc-down); }
.vc-st--unknown { color: var(--vc-text-3); }
.vc-sev { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.vc-sev--P1 { color: var(--vc-crit); }
.vc-sev--P2 { color: var(--vc-warn); }
.vc-sev--P3 { color: var(--vc-text-3); }
.vc-state { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--vc-card-2); color: var(--vc-text-2); }
.vc-state--sent { color: var(--vc-ok); }
.vc-state--failed { color: var(--vc-crit); }
.vc-state--queued { color: var(--vc-warn); }

/* ── 차트 ───────────────────────────────────────────────────── */
.vc-spark { display: block; color: var(--vc-accent); overflow: visible; }
.vc-spark-line { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.vc-spark-area { fill: currentColor; opacity: .12; }
.vc-spark-dot { fill: currentColor; }

.vc-chart { position: relative; margin: 0; color: var(--vc-accent); }
.vc-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.vc-chart-grid line { stroke: var(--vc-line); stroke-width: 1; }
.vc-chart-grid text, .vc-chart-axis text { fill: var(--vc-text-3); font-size: 11px; font-family: var(--vc-font-num); }
.vc-chart-line { stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vc-chart-area { fill: currentColor; opacity: .1; }
.vc-chart-thr line { stroke: var(--vc-crit); stroke-width: 1.2; stroke-dasharray: 5 4; }
.vc-chart-thr text { fill: var(--vc-crit); font-size: 11px; font-weight: 600; }
.vc-chart-empty { fill: var(--vc-text-3); font-size: 13px; }
.vc-chart-hover line { stroke: var(--vc-text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.vc-chart-hover circle { fill: var(--vc-card); stroke: currentColor; stroke-width: 2; }
.vc-chart-tip {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(10px, -50%);
  padding: 4px 9px; border-radius: 8px;
  background: var(--vc-text); color: var(--vc-card);
  font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.vc-chart-tip.is-left { transform: translate(calc(-100% - 10px), -50%); }

.vc-ring { display: block; color: var(--vc-ok); }
.vc-ring--warn { color: var(--vc-warn); }
.vc-ring--crit { color: var(--vc-crit); }
.vc-ring-track { stroke: var(--vc-line); }
.vc-ring-bar { stroke: currentColor; transition: stroke-dasharray .8s cubic-bezier(.22, 1, .36, 1); }
.vc-ring-text { fill: var(--vc-text); font-size: 13px; font-weight: 700; font-family: var(--vc-font-num); }

/* ── 단추 · 입력 ─────────────────────────────────────────────── */
.vc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--vc-accent); color: var(--vc-on-accent);
  font-weight: 600;
  transition: filter .15s, transform .15s;
}
.vc-btn:hover { filter: brightness(1.08); }
.vc-btn:active { transform: scale(.97); }
.vc-btn--ghost { background: transparent; color: var(--vc-text); box-shadow: inset 0 0 0 1.5px var(--vc-line); }
.vc-icon-btn {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--vc-card-2); color: var(--vc-text);
}
.vc-input {
  min-height: 40px; min-width: 0; padding: 0 14px;
  border: 1.5px solid var(--vc-line); border-radius: 999px;
  background: var(--vc-card); color: var(--vc-text);
}
.vc-seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--vc-card-2);
}
.vc-seg-btn {
  min-height: 32px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: var(--vc-text-2);
  font-size: 13px; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.vc-seg-btn[aria-pressed="true"] { background: var(--vc-card); color: var(--vc-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.vc-seg-count { margin-left: 6px; font-size: 11px; color: var(--vc-text-3); font-variant-numeric: tabular-nums; }
.vc-search {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 1 1 220px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--vc-card); color: var(--vc-text-3);
  box-shadow: inset 0 0 0 1.5px var(--vc-line);
}
.vc-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--vc-text); }
.vc-search:focus-within { box-shadow: inset 0 0 0 2px var(--vc-accent); }

/* ── 카드 · 머리글 · 빈 상태 ────────────────────────────────────── */
.vc-card { background: var(--vc-card); border-radius: var(--vc-radius); padding: 18px 20px; }
.vc-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vc-page-head { display: flex; flex-direction: column; gap: 2px; }
.vc-page-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.vc-page-sub { margin: 0; color: var(--vc-text-3); }
.vc-h2 { margin: 0; font-size: 16px; font-weight: 700; }
.vc-h3 { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--vc-text-2); }
.vc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vc-empty { padding: 28px 16px; text-align: center; color: var(--vc-text-3); }
.vc-empty p { margin: 0 0 10px; }
.vc-pre {
  margin: 0; padding: 10px 12px; overflow-x: auto;
  border-radius: var(--vc-radius-sm); background: var(--vc-card-2); color: var(--vc-text);
  font-family: var(--vc-font-mono); font-size: 12px; line-height: 1.55; white-space: pre;
}
.vc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 10px 0 0; }
.vc-dl div { min-width: 0; }
.vc-dl dt { font-size: 11px; color: var(--vc-text-3); }
.vc-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ── 표 ─────────────────────────────────────────────────────── */
.vc-table-wrap { overflow-x: auto; border-radius: var(--vc-radius); background: var(--vc-card); }
.vc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vc-table th { position: sticky; top: 0; background: var(--vc-card); text-align: left; font-size: 12px; font-weight: 600; color: var(--vc-text-3); padding: 10px 14px; border-bottom: 1px solid var(--vc-line); white-space: nowrap; }
.vc-table td { padding: 9px 14px; border-bottom: 1px solid var(--vc-line); vertical-align: top; }
.vc-table tr:last-child td { border-bottom: 0; }
.vc-table--num td { font-variant-numeric: tabular-nums; }
.vc-cell-text { min-width: 220px; overflow-wrap: anywhere; }
.vc-cell-err { display: block; margin-top: 2px; font-size: 12px; color: var(--vc-crit); }

/* ── 실시간 에러 ─────────────────────────────────────────────── */
.vc-err-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vc-err-layout.has-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 1100px) { .vc-err-layout.has-detail { grid-template-columns: minmax(0, 1fr); } .vc-err-side { order: -1; } }
.vc-err-main { background: var(--vc-card); border-radius: var(--vc-radius); padding: 6px; min-width: 0; }
.vc-err-list { list-style: none; margin: 0; padding: 0; }
.vc-err-row {
  width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 0; border-radius: var(--vc-radius-sm); background: transparent; text-align: left;
}
.vc-err-row:hover { background: var(--vc-card-2); }
.vc-err-row.is-open { background: var(--vc-card-2); box-shadow: inset 3px 0 0 var(--vc-accent); }
.vc-err-body { display: flex; flex-direction: column; min-width: 0; }
.vc-err-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-err-meta { font-size: 12px; color: var(--vc-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-err-count { min-width: 34px; padding: 2px 8px; border-radius: 999px; background: var(--vc-card-2); text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vc-err-detail { background: var(--vc-card); border-radius: var(--vc-radius); padding: 16px 18px; min-width: 0; }
.vc-err-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-err-detail-title { margin: 8px 0 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.vc-samples, .vc-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vc-sample-at, .vc-hist-at { display: block; font-size: 11px; color: var(--vc-text-3); font-variant-numeric: tabular-nums; }
.vc-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vc-hist-at { display: inline; }
.vc-hist-err { flex-basis: 100%; font-size: 12px; color: var(--vc-crit); }

/* ── 자원 추이 ───────────────────────────────────────────────── */
.vc-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.vc-chart-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vc-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-chart-head .vc-muted { font-size: 12px; }

/* ── 설정 ───────────────────────────────────────────────────── */
.vc-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.vc-set { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vc-set--wide { grid-column: 1 / -1; }
.vc-set .vc-muted { margin: 0; }
.vc-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vc-set-label { min-width: 90px; font-size: 13px; color: var(--vc-text-3); }
.vc-token-form { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-token-form .vc-input { flex: 1 1 200px; }
.vc-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.vc-steps li > span { display: block; margin-bottom: 6px; }
.vc-dl--keys { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── 대화 ───────────────────────────────────────────────────── */
.vc-chat { display: flex; flex-direction: column; min-height: 0; height: 100%; gap: 10px; }
.vc-chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; }
.vc-chat-msgs { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.vc-chat-hint { margin: 0; padding: 12px 14px; border-radius: var(--vc-radius-sm); background: var(--vc-card-2); color: var(--vc-text-2); font-size: 13px; }
.vc-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vc-msg--me { align-items: flex-end; }
.vc-msg-who { font-size: 11px; font-weight: 600; color: var(--vc-text-3); }
.vc-msg--hub .vc-msg-who { color: var(--vc-crit); }
.vc-msg-text {
  max-width: 88%; padding: 10px 14px;
  border-radius: 6px 18px 18px 18px;
  background: var(--vc-card-2); color: var(--vc-text);
  white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6;
}
.vc-msg--me .vc-msg-text { border-radius: 18px 18px 6px 18px; background: var(--vc-accent); color: var(--vc-on-accent); }
.vc-msg--hub .vc-msg-text { box-shadow: inset 0 0 0 1.5px var(--vc-crit); }
.vc-msg-code {
  max-width: 88%; margin: 0; padding: 10px 12px; overflow-x: auto;
  border-radius: 12px; background: var(--vc-text); color: var(--vc-card);
  font-family: var(--vc-font-mono); font-size: 12px; line-height: 1.6;
}
.vc-typing { flex-direction: row; gap: 5px; padding: 12px 14px; border-radius: 6px 18px 18px 18px; background: var(--vc-card-2); align-self: flex-start; }
.vc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-text-2); }
.vc-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip {
  min-height: 32px; padding: 0 12px;
  border: 0; border-radius: 999px;
  background: var(--vc-card-2); color: var(--vc-text);
  font-size: 12px; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.vc-chip:hover:not(:disabled) { background: var(--vc-accent); color: var(--vc-on-accent); }
.vc-chip:disabled { opacity: .5; cursor: default; }
.vc-chat-form { display: flex; gap: 8px; }
.vc-chat-input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 16px;
  border: 1.5px solid var(--vc-line); border-radius: 999px;
  background: var(--vc-card); color: var(--vc-text);
}
.vc-chat-send {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--vc-accent); color: var(--vc-on-accent);
}
.vc-chat-send[aria-disabled="true"] { opacity: .5; cursor: default; }

/* ── 코어가 안 바깥에 그리는 것 ─────────────────────────────────── */
.vc-designs {
  position: fixed; left: 50%; bottom: 14px; z-index: 60; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(20, 22, 28, .82); color: #FFFFFF;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
}
.vc-designs-btn {
  min-height: 30px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .75);
  font: 600 12px/1 system-ui, sans-serif;
}
.vc-designs-btn[aria-pressed="true"] { background: #FFFFFF; color: #14161C; }
.vc-designs-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.vc-gate {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 12, 16, .55);
}
.vc-gate-card {
  width: min(400px, 100%);
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: 22px;
  background: #FFFFFF; color: #15181D;
  font-family: system-ui, 'Noto Sans KR', sans-serif;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}
.vc-gate-ico { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EEF2FF; color: #2F5BD3; }
.vc-gate-title { margin: 0; font-size: 19px; }
.vc-gate-desc { margin: 0; color: #4B5260; }
.vc-gate .vc-input { border-color: #DDE1E6; background: #FFFFFF; color: #15181D; min-height: 44px; }
.vc-gate .vc-btn { background: #2F5BD3; color: #FFFFFF; min-height: 44px; }
.vc-gate :focus-visible { outline-color: #2F5BD3; }

/* ── 새로 들어온 항목 · 입력 중 — 안이 덮어써도 된다 ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  :where(.fresh-a) { animation: vc-fresh-a 1.2s cubic-bezier(.22, 1, .36, 1) both; }
  :where(.fresh-b) { animation: vc-fresh-b 1.2s cubic-bezier(.22, 1, .36, 1) both; }
  :where(.vc-typing i) { animation: vc-dot 1s infinite; }
  :where(.vc-typing i:nth-child(2)) { animation-delay: .15s; }
  :where(.vc-typing i:nth-child(3)) { animation-delay: .3s; }
}
@keyframes vc-fresh-a { from { opacity: 0; transform: translateY(-8px); } }
@keyframes vc-fresh-b { from { opacity: 0; transform: translateY(-8px); } }
@keyframes vc-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ── 모션 줄이기 — 움직임을 끈다(색 바뀜은 즉시) ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  #app *, #app *::before, #app *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ── 기본 화면(app/fallback.js) ─────────────────────────────────── */
.vc-fb-logo { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.vc-fb-conn { font-size: 12px; }
.vc-fb-top { display: flex; justify-content: flex-end; gap: 14px; color: var(--vc-text-3); font-size: 13px; }
.vc-fb-agents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vc-fb-agent {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: 0; text-align: left; box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s;
}
.vc-fb-agent.is-on { box-shadow: inset 0 0 0 2px var(--vc-accent); }
.vc-fb-agent-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vc-fb-agent .vc-muted { font-size: 12px; }
.vc-fb-big { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.vc-fb-detail { display: flex; flex-direction: column; gap: 10px; }
.vc-fb-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vc-fb-detail-head .vc-btn { margin-left: auto; }
.vc-fb-say { margin: 0; font-size: 17px; font-weight: 700; }
.vc-fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.vc-fb-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; }
.vc-fb-hours li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--vc-text-3); }
.vc-fb-bar { width: 100%; max-width: 28px; height: calc(8px + var(--v) * .9px); border-radius: 999px; background: var(--vc-accent); opacity: .55; }
.vc-fb-bar[data-empty] { height: 60px; background: repeating-linear-gradient(135deg, var(--vc-line) 0 2px, transparent 2px 6px); opacity: 1; }
.vc-fb-hours li.is-now .vc-fb-bar { opacity: 1; }
.vc-fb-disks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.vc-fb-disks li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.vc-fb-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vc-fb-events li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.vc-fb-ev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-fb-chat {
  position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 40;
  width: min(440px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border-radius: 24px; background: var(--vc-card);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45);
}
.vc-fb-chat-head { display: flex; align-items: center; gap: 10px; }
.vc-fb-chat-head .vc-icon-btn { margin-left: auto; }
.vc-fb-chat .vc-chat { flex: 1; min-height: 0; }
@media (max-width: 640px) {
  .vc-main { padding: 16px; }
}

/* AI 해설 — 에러 상세. 모델이 쓴 글이라 일반 본문과 구분되게 한 판에 담는다 */
.vc-ai-tag { display: inline-flex; align-items: center; margin-right: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--vc-accent) 16%, transparent); color: var(--vc-text); }
.vc-ai { margin-top: 14px; padding: 12px 14px; border-radius: var(--vc-radius-sm); background: var(--vc-card-2); border: 1px solid var(--vc-line); }
.vc-ai--failed { font-size: 12px; color: var(--vc-text-3); }
.vc-ai-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; }
.vc-ai-conf { color: var(--vc-text-2); }
.vc-ai-meta { margin-left: auto; color: var(--vc-text-3); }
.vc-ai-summary { margin: 8px 0 0; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.vc-ai-dl { margin: 8px 0 0; display: grid; gap: 8px; }
.vc-ai-dl dt { font-size: 11px; color: var(--vc-text-3); }
.vc-ai-dl dd { margin: 2px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.vc-snip-where { font-weight: 500; font-size: 12px; color: var(--vc-text-3); }
.vc-snip { max-height: 260px; overflow: auto; }
