/* Scoped extension of the site's existing visual system. No modal or overlay. */
.pm-analytics, .pm-analytics-sr { box-sizing: border-box; font-family: var(--font, Gilroy, Arial, sans-serif); }
.pm-analytics[hidden], .pm-analytics__state[hidden] { display: none !important; }
.pm-analytics {
	position: fixed; z-index: 100010; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
	padding: 12px 14px; border: 1px solid var(--line-dark, #aab2a7); border-radius: 12px;
	background: var(--paper, #fff); color: var(--ink, #232624); font-size: 14px; line-height: 1.5;
	scrollbar-width: thin; scrollbar-color: #aab2a7 #f5f6f3;
}
.pm-analytics__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pm-analytics .pm-analytics__text { margin: 0; padding: 0; min-width: 0; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--ink-soft, #454b47); }
.pm-analytics .pm-analytics__text a { color: var(--accent-dark, #982730); text-decoration: underline; text-underline-offset: 3px; }
.pm-analytics .pm-analytics__text a:hover { color: #732029; }
.pm-analytics .pm-analytics__state { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted, #5b625d); }
.pm-analytics__actions { display: flex; margin: 0; padding: 0; }
.pm-analytics .pm-analytics__actions button {
	display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px;
	margin: 0; padding: 10px 12px; border: 1px solid var(--accent-button, #b93038); border-radius: 8px;
	background: var(--accent-button, #b93038); color: #fff; font: 600 14px/1.35 var(--font, Gilroy, Arial, sans-serif);
	letter-spacing: normal; text-transform: none; text-align: center; text-decoration: none; cursor: pointer; box-shadow: none;
	transform: none; transition: none; white-space: normal; overflow-wrap: anywhere;
}
.pm-analytics .pm-analytics__actions button:hover { background: var(--accent-dark, #982730); border-color: var(--accent-dark, #982730); color: #fff; }
.pm-analytics .pm-analytics__actions button::before, .pm-analytics .pm-analytics__actions button::after { content: none; display: none; }
.pm-analytics :focus-visible { outline: 3px solid var(--accent-dark, #982730); outline-offset: 3px; }
.pm-analytics ::selection { background: #f9cecb; color: #392121; }
.pm-analytics-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
	.pm-analytics { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 12px 14px; }
	.pm-analytics__summary { gap: 8px; }
}
@media print { .pm-analytics, .pm-analytics-sr { display: none !important; } }
