.hbr-app-prompt {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(100px, calc(82px + env(safe-area-inset-bottom)));
	z-index: 90;
	width: min(390px, calc(100vw - 36px));
	color: var(--hbr-ink, #0a0a0a);
	font-family: var(--hbr-body, Inter, ui-sans-serif, system-ui, sans-serif);
}

.hbr-app-prompt[hidden] {
	display: none !important;
}

.hbr-app-prompt__card,
.hbr-app-prompt__compact {
	border: 2px solid var(--hbr-ink, #0a0a0a);
	background: var(--hbr-paper, #f2eadb);
	box-shadow: 6px 6px 0 var(--hbr-ink, #0a0a0a);
}

.hbr-app-prompt__card {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	max-height: calc(100vh - 120px);
	overflow: hidden;
	border-radius: 16px;
	animation: hbr-app-enter .38s cubic-bezier(.2, .8, .2, 1) both;
}

.hbr-app-prompt__visual {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 12px;
	background: var(--hbr-orange, #ff5b22);
	border-right: 2px solid var(--hbr-ink, #0a0a0a);
}

.hbr-app-prompt__visual strong {
	font: 900 2.15rem/.82 var(--hbr-display, "Arial Black", Impact, sans-serif);
	letter-spacing: -.08em;
}

.hbr-app-prompt__visual small {
	margin-top: 10px;
	font-size: .57rem;
	font-weight: 900;
	letter-spacing: .12em;
}

.hbr-app-prompt__signal {
	display: flex;
	height: 24px;
	align-items: flex-end;
	gap: 3px;
	margin-bottom: 18px;
}

.hbr-app-prompt__signal i {
	display: block;
	width: 4px;
	background: currentColor;
	animation: hbr-app-signal .9s ease-in-out infinite alternate;
}

.hbr-app-prompt__signal i:nth-child(1) { height: 9px; }
.hbr-app-prompt__signal i:nth-child(2) { height: 22px; animation-delay: -.55s; }
.hbr-app-prompt__signal i:nth-child(3) { height: 14px; animation-delay: -.25s; }
.hbr-app-prompt__signal i:nth-child(4) { height: 19px; animation-delay: -.7s; }

.hbr-app-prompt__content {
	padding: 22px 20px 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.hbr-app-prompt__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 28px 9px 0;
	font-size: .61rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hbr-app-prompt__eyebrow span {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: var(--hbr-orange, #ff5b22);
	box-shadow: 0 0 0 4px rgba(255, 91, 34, .16);
}

.hbr-app-prompt h2 {
	margin: 0;
	font: 900 1.48rem/.86 var(--hbr-display, "Arial Black", Impact, sans-serif);
	letter-spacing: -.045em;
}

.hbr-app-prompt__copy {
	margin: 12px 0 10px;
	font-size: .75rem;
	font-weight: 650;
	line-height: 1.35;
}

.hbr-app-prompt ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: .63rem;
	font-weight: 850;
}

.hbr-app-prompt li span {
	color: var(--hbr-orange, #ff5b22);
}

.hbr-app-prompt__cta {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	border: 2px solid var(--hbr-ink, #0a0a0a);
	background: var(--hbr-ink, #0a0a0a);
	color: var(--hbr-paper, #f2eadb) !important;
	font-size: .77rem;
	font-weight: 900;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: transform .16s ease, background .16s ease, color .16s ease;
}

.hbr-app-prompt__cta:hover,
.hbr-app-prompt__cta:focus-visible {
	transform: translateY(-2px);
	background: var(--hbr-orange, #ff5b22);
	color: var(--hbr-ink, #0a0a0a) !important;
}

.hbr-app-prompt__later {
	display: block;
	width: 100%;
	margin: 9px 0 0;
	padding: 3px;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: 750 .65rem/1.2 var(--hbr-body, Inter, ui-sans-serif, system-ui, sans-serif);
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hbr-app-prompt__close {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 1;
	display: grid;
	width: 30px;
	height: 30px;
	padding: 0;
	place-items: center;
	border: 0 !important;
	border-radius: 50%;
	background: transparent !important;
	color: inherit !important;
	cursor: pointer;
}

.hbr-app-prompt__close:hover,
.hbr-app-prompt__close:focus-visible {
	background: rgba(10, 10, 10, .1) !important;
}

.hbr-app-prompt button:focus-visible,
.hbr-app-prompt a:focus-visible {
	outline: 3px solid var(--hbr-orange, #ff5b22);
	outline-offset: 3px;
}

.hbr-app-prompt__close svg,
.hbr-app-prompt__compact svg {
	width: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.hbr-app-prompt__compact {
	display: none;
	width: 60px;
	height: 60px;
	margin-left: auto;
	place-items: center;
	padding: 0;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	animation: hbr-app-enter .28s ease-out both;
	transition: transform .18s ease;
}

.hbr-app-prompt__compact-icon {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border-radius: 50%;
	background: var(--hbr-orange, #ff5b22);
}

.hbr-app-prompt__compact:hover,
.hbr-app-prompt__compact:focus-visible {
	transform: translateY(-3px) rotate(3deg);
}

.hbr-app-prompt__compact > span:nth-child(2),
.hbr-app-prompt__compact-arrow {
	display: none;
}

.hbr-app-prompt.is-compact .hbr-app-prompt__card {
	display: none;
}

.hbr-app-prompt.is-compact .hbr-app-prompt__compact {
	display: grid;
}

@keyframes hbr-app-enter {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hbr-app-signal {
	to { height: 6px; }
}

@media (max-width: 600px) {
	.hbr-app-prompt {
		right: 12px;
		bottom: max(84px, calc(72px + env(safe-area-inset-bottom)));
		width: min(360px, calc(100vw - 24px));
	}

	.hbr-app-prompt__card {
		grid-template-columns: 86px minmax(0, 1fr);
		max-height: calc(100vh - 104px);
	}

	.hbr-app-prompt__visual {
		padding: 18px 8px;
	}

	.hbr-app-prompt__visual strong {
		font-size: 1.65rem;
	}

	.hbr-app-prompt__content {
		padding: 18px 15px 14px;
	}

	.hbr-app-prompt h2 {
		font-size: 1.22rem;
	}

	.hbr-app-prompt__copy {
		margin: 9px 0;
	}

	.hbr-app-prompt ul {
		margin-bottom: 10px;
	}
}

@media (max-height: 520px) {
	.hbr-app-prompt {
		bottom: 18px;
	}

	.hbr-app-prompt__card {
		max-height: calc(100vh - 36px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbr-app-prompt *,
	.hbr-app-prompt *::before,
	.hbr-app-prompt *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

@media (forced-colors: active) {
	.hbr-app-prompt__card,
	.hbr-app-prompt__compact,
	.hbr-app-prompt__cta {
		box-shadow: none;
	}
}
