/* vm-flow/seq/cfstl "크게 보기" 오버레이 스타일 */
.vm-flow, .vm-seq, .vm-cfstl { position: relative; }

.vm-expand-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: rgba(128, 128, 128, 0.10);
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.12s ease;
}
.vm-expand-btn:hover { opacity: 1; }

.vm-expand-close {
  display: none;
  position: fixed;
  top: 16px;
  right: 22px;
  z-index: 10000;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(128, 128, 128, 0.3);
  background: var(--flow-surface, var(--sq-surface, #fff));
  color: inherit;
}

/* 전체화면 확대 */
.vm-flow.is-expanded, .vm-seq.is-expanded, .vm-cfstl.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  border: none;
  border-radius: 0;
  padding: clamp(20px, 4vh, 56px) clamp(20px, 4vw, 72px);
  overflow: auto;
  display: grid;
  place-items: center;
}
.is-expanded .vm-expand-btn { display: none; }
.is-expanded .vm-expand-close { display: inline-flex; align-items: center; justify-content: center; }
/* 확대 시 도식 전체가 화면에 맞게(축소만, 비율 유지) — 한눈에 크게 */
.is-expanded .flow-svg, .is-expanded .seq-svg, .is-expanded .cft-svg {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
html.vm-expand-lock { overflow: hidden; }
