#ga-open[hidden], #ga-panel:not([open]) { display: none !important; }
#ga-open {
	position: fixed;
	z-index: 99998;
	inset-block-end: min(calc(var(--ga-bottom) + env(safe-area-inset-bottom, 0px)), calc(100dvh - 56px));
	right: max(min(var(--ga-offset), calc(100vw - 56px)), env(safe-area-inset-right, 0px));
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: none;
	background: var(--ga-color);
	color: var(--ga-icon);
	cursor: pointer;
}
.ga-access-left #ga-open {
	right: auto;
	left: max(min(var(--ga-offset), calc(100vw - 56px)), env(safe-area-inset-left, 0px));
}
#ga-open svg { width: 28px; height: 28px; display: block; }
#ga-open:focus-visible, #ga-panel :is(button,a):focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
#ga-panel {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(360px, calc(100% - 24px));
	max-height: calc(100dvh - 24px);
	overflow: auto;
	box-sizing: border-box;
	padding: 16px;
	background: #fff;
	color: #171717;
	border: 2px solid #555;
	border-radius: 12px;
	font: 16px/1.5 Arial, sans-serif;
	text-align: start;
}
#ga-panel::backdrop { background: rgb(0 0 0 / 42%); }
#ga-panel button {
	min-height: 44px; padding: 8px; border: 2px solid #555; border-radius: 6px;
	background: #fff; color: #171717; font: inherit; cursor: pointer;
}
#ga-panel #ga-close { min-width: 44px; }
#ga-panel h2 { font: 700 20px/1.3 Arial, sans-serif; margin: 0; color: inherit; }
#ga-panel a { color: #004d99; text-decoration: underline; }
.ga-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ga-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
#ga-panel button[aria-pressed="true"] { background: #202020; color: #fff; border-color: #202020; }
#ga-reset { width: 100%; }
#ga-status { min-height: 1.5em; margin: 8px 0; }
@media (max-width: 330px) { .ga-controls { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	#ga-access *, #ga-access *::after, #ga-access *::before { animation: none !important; transition: none !important; }
}
/* Retain presentation classes used by existing installations. */
/* Text scaling is applied to computed font sizes by access.js. */
.ga-a-font body :is(p, li, h1, h2, h3, h4, h5, h6, a, button, label, input, textarea):not(#ga-access *, .ga-side-tags, .ga-side-tags *) { font-family: Arial, sans-serif !important; }
.ga-a-spacing body :is(p, li, h1, h2, h3, h4, h5, h6, a, label):not(#ga-access *, .ga-side-tags, .ga-side-tags *) { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
.ga-a-links body a:not(#ga-access *, .ga-side-tags, .ga-side-tags *) { text-decoration: underline !important; }
html.ga-a-focus body :is(:focus, :focus-visible):not(#ga-access):not(#ga-access *, .ga-side-tags, .ga-side-tags *) { outline: 3px solid #ff9500 !important; outline-offset: 3px !important; box-shadow: 0 0 0 3px #111, 0 0 0 6px #fff !important; }
.ga-a-motion *, .ga-a-motion *::before, .ga-a-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
.ga-a-contrast body, .ga-a-contrast body :is(main, header, footer, nav, section, article, div, p, h1, h2, h3, h4, h5, h6, li, span, label, button, input, textarea, a):not(#ga-access):not(#ga-access *, .ga-side-tags, .ga-side-tags *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
.ga-a-contrast body a:not(#ga-access *, .ga-side-tags, .ga-side-tags *) { color: #ffeb3b !important; text-decoration: underline !important; }

