/* ✹✺ app: install button, install sheet, app-window details */
.osb-app-btn[hidden] { display: none !important; }
.osb-app-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
	height: 36px; padding: 0 12px 0 9px; border: 1px solid var(--osb-line); border-radius: 999px;
	background: transparent; color: var(--osb-text); font: 500 13px/1 var(--osb-font); cursor: pointer;
}
.osb-app-btn svg { width: 19px; height: 19px; }
.osb-app-btn:focus-visible { outline: 2px solid var(--osb-accent); outline-offset: 2px; }
.osb-header .osb-app-btn { order: 2; margin-left: auto; }
.osb-header-inner:has(.osb-app-btn:not([hidden])) .osb-theme-toggle { margin-left: 0; }
body.osb-glass .osb-app-btn { border: 0; background: var(--g-surface); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
body.osb-glass .osb-board-bar .osb-app-btn { background: var(--g-surface-strong) !important; }
@media (max-width: 640px) {
	.osb-app-btn { width: 36px; padding: 0; }
	.osb-app-btn span { display: none; }
}

.osb-app-pop {
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px;
	background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	animation: osb-app-fade .2s ease-out;
}
.osb-app-pop.is-ios { align-items: end; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.osb-app-card {
	width: min(380px, 100%); padding: 18px 20px 20px; border-radius: 22px; color: var(--osb-text, #e8eaee);
	background: rgba(28, 30, 36, .96); -webkit-backdrop-filter: saturate(1.6) blur(24px); backdrop-filter: saturate(1.6) blur(24px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45); font: 15px/1.5 var(--osb-font, -apple-system, BlinkMacSystemFont, sans-serif);
	animation: osb-app-rise .28s cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] .osb-app-card { background: rgba(255, 255, 255, .97); color: #16181d; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.osb-app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.osb-app-head img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.osb-app-head div { flex: 1; min-width: 0; display: grid; }
.osb-app-head strong { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osb-app-head span { opacity: .6; font-size: 13px; }
.osb-app-x { align-self: start; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(127, 127, 127, .18); color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.osb-app-how { margin: 0 0 8px; font-weight: 500; }
.osb-app-after { margin: 0; opacity: .65; font-size: 13px; }
.osb-app-share { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.25em; color: #0a84ff; }
@keyframes osb-app-fade { from { opacity: 0; } }
@keyframes osb-app-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* opened as the app: room for the status bar / notch on pages with the normal header */
.osb-standalone .osb-header { padding-top: env(safe-area-inset-top); }
.osb-standalone body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.osb-standalone body :is(input, textarea, [contenteditable], p, li, .osb-t) { -webkit-user-select: text; user-select: text; }
