/* ASKPERTASK-INSTALL-UX-1A — Install AskPerTask banner + one-time invitation (website Home, Easy mode, app Home). */

.apt-install {
	display: flex; align-items: center; gap: 14px; box-sizing: border-box;
	width: min(1180px, calc(100% - 32px)); margin: 20px auto; padding: 14px 14px 14px 16px;
	border: 1px solid #D5DCE8; border-radius: 16px; background: linear-gradient(90deg, #F2F6FC 0%, #FFFFFF 70%);
	box-shadow: 0 4px 12px rgba(16, 24, 40, .06); color: #1A1A1A;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.apt-install[hidden] { display: none; }
.apt-install__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; }
.apt-install__body { flex: 1 1 auto; min-width: 0; }
.apt-install__title { margin: 0 0 2px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #1A2E52; }
.apt-install__text { margin: 0; font-size: 14px; line-height: 1.45; color: #4B5563; }
.apt-install__text[hidden], .apt-install__ios[hidden], .apt-install__steps[hidden] { display: none; }
.apt-install__steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: #1A1A1A; }
.apt-install__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.apt-install__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
	border: 0; border-radius: 10px; background: #168238; color: #fff; font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.apt-install__btn:hover { background: #11692D; }
.apt-install__btn[hidden] { display: none; }
.apt-install__close {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 0; border-radius: 10px; background: none; color: #4B5563; font-size: 26px; line-height: 1; cursor: pointer;
}
.apt-install__close:hover { background: #E8EBF2; color: #1A2E52; }
.apt-install button:focus-visible, .apt-install-modal button:focus-visible { outline: 2px solid #2D6CDF; outline-offset: 2px; }

@media (max-width: 600px) {
	.apt-install { flex-wrap: wrap; align-items: flex-start; }
	.apt-install__body { flex-basis: calc(100% - 62px - 48px); }
	.apt-install__actions { width: 100%; justify-content: space-between; }
	.apt-install__actions .apt-install__btn { flex: 1 1 auto; }
	.apt-install__close { order: 2; }
}
/* The app's Home: full width inside the app column. */
.apt-install--app { width: auto; margin: 0 0 16px; }

/* One-time invitation */
.apt-install-modal { position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.apt-install-modal[hidden] { display: none; }
.apt-install-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .5); }
.apt-install-modal__card {
	position: relative; box-sizing: border-box; width: min(420px, 100%); padding: 28px 24px 20px; border-radius: 20px;
	background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(16, 24, 40, .3);
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.apt-install-modal__card:focus { outline: none; }
.apt-install-modal__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; font-size: 26px; color: #4B5563; cursor: pointer; }
.apt-install-modal__x:hover { background: #E8EBF2; }
.apt-install-modal__icon { width: 64px; height: 64px; border-radius: 16px; }
.apt-install-modal__title { margin: 12px 0 6px; font-size: 22px; font-weight: 700; color: #1A2E52; }
.apt-install-modal__text { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #4B5563; }
.apt-install-modal .apt-install__steps { text-align: left; margin: 10px 0 4px; }
.apt-install-modal__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.apt-install-modal__later { min-height: 44px; border: 0; border-radius: 10px; background: none; color: #1A2E52; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: underline; }
html.apt-install-modal-open { overflow: hidden; }

/* INSTALL-READY-PWA-1A: the quiet entries (Menu sheet row, footer link) — [hidden] until this browser can install. */
.apt-pwa-menu__install[hidden], .apt-footer__install[hidden] { display: none !important; }
.apt-pwa-menu__install i { color: #2E7D32; }
.apt-footer__install i { margin-right: 4px; }
