/* 정적 데모 — 투어 바와 비활성 표시. 앱 CSS 위에 얹는다. */
:root { --demo-tour-h: 92px; }

body.demo-static { padding-top: var(--demo-tour-h); }
body.demo-static .gnb { top: var(--demo-tour-h); }
body.demo-static .batch-detail { height: calc(100vh - var(--gnb) - var(--demo-tour-h)); }
body.demo-static .panes { max-height: calc(100vh - var(--gnb) - var(--demo-tour-h)); }
@media (min-width: 1024px) { body.demo-static .prompt-savebar { top: calc(var(--gnb) + var(--demo-tour-h)); } }

[data-demo-off] { cursor: not-allowed !important; }
select[data-demo-off], input[type="checkbox"][data-demo-off], input[type="radio"][data-demo-off] { pointer-events: none; }
a[data-demo-href], a[href] { cursor: pointer; }
.demo-next-wrap { display: contents; text-decoration: none; }
.demo-next-wrap > *, a[data-demo-next-link]:not(.demo-next-wrap) { outline: 2px solid #f5a524; outline-offset: 2px; animation: demo-pulse 1.6s ease-in-out infinite; }
a[data-demo-next-link] > button, a[data-demo-next-link] { cursor: pointer; }
@keyframes demo-pulse { 50% { outline-color: rgba(245, 165, 36, .25); } }

.demo-iframe-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 24px; text-align: center; color: #666; background: repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 10px, transparent 10px 20px); }

.demo-tour {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000; box-sizing: border-box;
  height: var(--demo-tour-h); padding: 10px 20px 8px;
  background: #1f2330; color: #e9ebf2; border-bottom: 3px solid #f5a524;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: normal; text-align: left;
}
.demo-tour * { box-sizing: border-box; }
.demo-tour a { color: inherit; text-decoration: none; }
.demo-tour__row { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.demo-tour__home { font-weight: 700; color: #fff; }
.demo-tour__sec { padding: 1px 8px; border-radius: 999px; background: #f5a524; color: #1f2330; font-weight: 700; font-size: 12px; }
.demo-tour__title { font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.demo-tour__spacer { flex: 1 1 auto; }
.demo-tour__who { font-size: 12px; color: #b9bfd3; overflow: hidden; text-overflow: ellipsis; }
.demo-tour__btn { padding: 4px 12px; border: 1px solid #4a5068; border-radius: 6px; color: #e9ebf2; background: #2a2f40; }
.demo-tour__btn:hover { background: #363c52; }
.demo-tour__btn--primary { background: #f5a524; border-color: #f5a524; color: #1f2330 !important; font-weight: 700; }
.demo-tour__btn--primary:hover { background: #ffb940; }
.demo-tour__desc { margin: 6px 0 0; color: #cfd3e1; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.demo-tour__list { position: relative; }
.demo-tour__list > summary { cursor: pointer; list-style: none; padding: 3px 10px; border: 1px solid #4a5068; border-radius: 6px; font-size: 12px; }
.demo-tour__list > summary::-webkit-details-marker { display: none; }
.demo-tour__list > summary::after { content: " ▾"; }
.demo-tour__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10001; width: min(760px, 92vw); max-height: 70vh; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  padding: 14px; background: #fff; color: #1f2330; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.35); white-space: normal;
}
.demo-tour__group > p { margin: 0 0 6px; font-weight: 700; color: #b26b00; }
.demo-tour__group ol { margin: 0; padding: 0; list-style: none; }
.demo-tour__group li a { display: flex; gap: 8px; padding: 3px 6px; border-radius: 5px; color: #1f2330; }
.demo-tour__group li a:hover { background: #f3f4f8; }
.demo-tour__group li a span { min-width: 1.6em; color: #8a90a6; text-align: right; }
.demo-tour__group li.is-current a { background: #fff3dc; font-weight: 700; }

@media (max-width: 760px) {
  :root { --demo-tour-h: 118px; }
  .demo-tour { padding: 8px 12px; }
  .demo-tour__row { flex-wrap: wrap; row-gap: 6px; }
  .demo-tour__who, .demo-tour__home { display: none; }
  .demo-tour__desc { -webkit-line-clamp: 2; font-size: 12px; }
}

/* 앱의 전체 화면 오버레이(다이얼로그·서랍)는 투어 바 아래에서 시작한다 */
body.demo-static :is(.palette-overlay, .confirm-overlay, .modal-overlay, .drawer-overlay) { top: var(--demo-tour-h); }
