/* 로딩창(작업공간·홈페이지 공통) — 막대 + %, 진행률은 js/loading.js. 두 페이지가 같은 자리·모양이라 넘어갈 때 이어져 보인다 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-main, #f8fafc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  transition: opacity 0.15s ease-out;
}
.loading-overlay.done {
  opacity: 0;
  pointer-events: none;
}
.loading-bar {
  width: min(240px, 60vw);
  height: 4px;
  border-radius: 2px;
  background: var(--border, #e2e8f0);
  overflow: hidden;
}
.loading-fill {
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--accent, #3b82f6);
  transition: width 0.2s ease-out;
}
.loading-pct {
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #64748b);
}
.hidden {
  display: none;
}

/* 홈페이지: 로그인했던 브라우저가 작업공간으로 넘어갈 것 같으면 홈페이지 대신 로딩창부터 (index.html head 스크립트·js/index.js) */
.boot-overlay { display: none; }
html.booting .boot-overlay { display: flex; }
html.booting body { overflow: hidden; }
