/* =========================================================
   apps.css  —  앱이 열리고 닫히는 방식 / 밝은 앱일 때 상태바 색
   ========================================================= */

#app-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.app-win {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 44px;
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.24, 1),
              opacity 0.22s ease, border-radius 0.38s;
}
.app-win.open {
  opacity: 1;
  transform: none;
  border-radius: 0;
  pointer-events: auto;
}

/* 밝은 앱(X 등)을 보고 있을 때: 상태바 / 홈바를 어둡게 */
#phone[data-theme="light"] #statusbar { color: #0f1419; text-shadow: none; }
#phone[data-theme="light"] .sb-icon { filter: invert(1); }
#phone[data-theme="light"] .battery { border-color: rgba(0, 0, 0, 0.55); }
#phone[data-theme="light"] .battery::after { background: rgba(0, 0, 0, 0.55); }
#phone[data-theme="light"] .battery i { background: #0f1419; }
#phone[data-theme="light"] #homebar span { background: #0f1419; }

/* 입력창은 글자 선택/입력이 되도록 */
input, textarea { user-select: text; -webkit-user-select: text; font-family: inherit; }
