/* 앱 설치 카드 · 메뉴 줄(시안 `이츠자비스 앱 설치 카드`, 2026-11-11 Lewis).
   카드는 /home · 공고 목록(/) 두 곳만 · 기본 hidden, static/js/install-card.js 가 조건이 맞을 때만 연다.
   휴대폰(폭 1023 이하): 하단 탭(58px) 바로 위 띄운 카드 · PC: 오른쪽 아래 폭 360. 어두운 홈은 .inst-dark. */
.inst[hidden], .inst-ios[hidden], .inst-run[hidden], [data-install-menu][hidden] { display: none !important; }
/* 공고 목록에서 고른 공고 바(.m-selbar, 같은 z-index 46 · 같은 아래 자리)가 떠 있는 동안은 카드를 숨긴다 */
body:has([data-m-selbar]:not([hidden])) .inst { display: none; }
.inst {
  box-sizing: border-box; position: fixed; z-index: 46; left: 12px; right: 12px; max-width: 460px; margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e1e5eb; color: #141a24;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all;
}
body.m-tabs .inst { bottom: calc(var(--m-tabbar, 58px) + 12px + env(safe-area-inset-bottom, 0px)); }
.inst-mark { width: 48px; height: 48px; }
.inst-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inst-t { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #141a24; }
.inst-d { font-size: 15px; font-weight: 600; line-height: 1.5; color: #4d5868; }
.inst-pc { display: none; }
.inst-ios { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #eef2f8; font-size: 16px; font-weight: 600; line-height: 1.6; color: #141a24; }
.inst-ios svg { width: 20px; height: 20px; vertical-align: -4px; color: #1a2d5a; }
.inst-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.inst-btn { min-height: 50px; padding: 0 18px; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; border: 1.5px solid #c5ccd6; background: #fff; color: #141a24; }
.inst-run { flex: 1; background: #1a2d5a; border-color: #1a2d5a; color: #fff; }
.inst-run:hover { background: #24407a; border-color: #24407a; }
.inst-ios:not([hidden]) ~ .inst-act .inst-later { flex: 1; }
.inst-btn:focus-visible { outline: 3px solid #5ee0fa; outline-offset: 2px; }

/* 어두운 화면(어두운 홈) */
.inst-dark { background: #141c2b; border-color: #26324a; color: #e6edf6; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.inst-dark .inst-t { color: #fff; }
.inst-dark .inst-d { color: #a9b6c8; }
.inst-dark .inst-ios { background: #1d2a44; color: #e6edf6; }
.inst-dark .inst-ios svg { color: #8fb4ff; }
.inst-dark .inst-btn { background: transparent; border-color: #26324a; color: #e6edf6; }
.inst-dark .inst-run { background: #3a6df0; border-color: #3a6df0; color: #fff; }
.inst-dark .inst-run:hover { background: #4f7cf2; border-color: #4f7cf2; }

/* PC: 오른쪽 아래 작은 카드 */
@media (min-width: 1024px) {
  .inst { left: auto; right: 20px; bottom: 20px; width: 360px; max-width: calc(100% - 40px); margin: 0; }
  body.m-tabs .inst { bottom: 20px; }
  .inst-m { display: none; }
  .inst-pc { display: inline; }
}

/* 알림(설치 끝 · 사파리 안내) */
.inst-toast {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 16px; border-radius: 10px; background: #141a24; color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; word-break: keep-all;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body.m-tabs .inst-toast { bottom: calc(var(--m-tabbar, 58px) + 12px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .inst-toast, body.m-tabs .inst-toast { bottom: 20px; } }

/* 메뉴 한 줄 */
.m-menu-list [data-install-menu] img { width: 22px; height: 22px; flex: none; }
.nav-dd-item[data-install-menu] img { width: 20px; height: 20px; flex: none; }
