/* Download card [p231_app_download] */
.p231ar-dl { background: #fff; border: 1px solid #eaecf0; border-radius: 22px; padding: 24px; box-shadow: 0 12px 30px rgba(16, 24, 40, .06); max-width: 560px; }
.p231ar-dl__head { display: flex; gap: 16px; align-items: center; }
.p231ar-dl__head img { width: 64px; height: 64px; border-radius: 16px; }
.p231ar-dl__head h3 { margin: 0 0 4px; font-size: 22px; }
.p231ar-dl__head p { margin: 0; color: #667085; font-size: 14px; }
.p231ar-dl__features { list-style: none; margin: 18px 0; padding: 0; }
.p231ar-dl__features li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.p231ar-dl__features li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #dcfae6; color: #067647; font-size: 12px; text-align: center; line-height: 20px; font-weight: 700; }
.p231ar-dl__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p231ar-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none !important; }
.p231ar-btn--play { background: #1f2230; color: #fff !important; }
.p231ar-btn--ghost { border: 1.5px solid #d0d5dd; color: #1f2230 !important; background: #fff; }
.p231ar-dl__notes { margin-top: 16px; font-size: 14px; color: #475467; }
.p231ar-dl__notes summary { cursor: pointer; font-weight: 600; }
@media (max-width: 480px) { .p231ar-dl { padding: 18px; } .p231ar-btn { flex: 1 1 100%; } }

/* Smart banner (mobile web, Android) */
.p231ar-banner {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 99990;
	display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
	background: #1f2230; color: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	font-size: 14px; line-height: 1.3; transform: translateY(150%); transition: transform .35s ease;
}
.p231ar-banner.is-in { transform: none; }
.p231ar-banner img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.p231ar-banner .t { flex: 1; min-width: 0; }
.p231ar-banner .t strong { display: block; }
.p231ar-banner .t span { opacity: .75; font-size: 12px; }
.p231ar-banner a.go { background: #0f9d58; color: #fff !important; border-radius: 999px; padding: 10px 16px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.p231ar-banner button.x { background: none; border: 0; color: #fff; font-size: 22px; width: 36px; height: 36px; min-height: 36px; padding: 0; opacity: .7; cursor: pointer; }
body:has(.p2-mbar:not(.hide)) .p231ar-banner { display: none; }

/* In-app UI (bridge) */
.p231ar-sheet-bg { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); z-index: 100001; display: flex; align-items: flex-end; justify-content: center; }
.p231ar-sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); animation: p231ar-up .3s ease; }
.p231ar-sheet h4 { margin: 0 0 6px; font-size: 19px; }
.p231ar-sheet p { margin: 0 0 16px; color: #475467; font-size: 15px; }
.p231ar-sheet .row { display: flex; gap: 10px; }
.p231ar-sheet button { flex: 1; min-height: 48px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; }
.p231ar-sheet .pri { background: #0f9d58; color: #fff; }
.p231ar-sheet .sec { background: #f2f4f7; color: #1f2230; }
@keyframes p231ar-up { from { transform: translateY(100%); } to { transform: none; } }
.p231ar-toast { position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 100002; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(16, 24, 40, .25); display: flex; flex-direction: column; gap: 2px; animation: p231ar-down .3s ease; }
.p231ar-toast strong { font-size: 14px; }
.p231ar-toast span { font-size: 13px; color: #475467; }
@keyframes p231ar-down { from { transform: translateY(-140%); } to { transform: none; } }
.p231ar-offline { position: fixed; left: 0; right: 0; top: 0; z-index: 100003; background: #b42318; color: #fff; text-align: center; font-size: 13px; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; }
.p231ar-ptr { position: fixed; left: 50%; top: 0; z-index: 100000; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); display: flex; align-items: center; justify-content: center; transform: translateY(-60px); transition: transform .2s; color: #0f9d58; font-size: 20px; }
.p231ar-ptr.spin { animation: p231ar-spin .8s linear infinite; }
@keyframes p231ar-spin { to { rotate: 360deg; } }
