/* Subscriber Notifications: window, bell and dedicated page. Theme-neutral. */
.nab-box {
	--nab-bg: #ffffff;
	--nab-fg: #1d1d1f;
	--nab-muted: #4a4a4f;
	--nab-accent: #1a56b8;
	--nab-accent-fg: #ffffff;
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	box-sizing: border-box;
	width: min(360px, calc(100vw - 32px));
	padding: 16px 16px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	background: var(--nab-bg);
	color: var(--nab-fg);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.nab-title {
	margin: 0 24px 6px 0;
	font-weight: 600;
}
.nab-text {
	margin: 0 0 12px;
	color: var(--nab-muted);
}
.nab-actions {
	display: inline-flex;
	gap: 8px;
	margin-right: 8px;
}
.nab-actions {
	flex-wrap: wrap;
}
.nab-mail label,
.nab-mail .nab-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}
.nab-input {
	min-height: 44px;
	margin: 4px 0 8px;
	padding: 8px 10px;
	border: 1px solid #767680;
	border-radius: 6px;
	font: inherit;
}
.nab-small {
	font-size: 14px;
	color: var(--nab-muted, #4a4a4f);
	margin: 6px 0;
}
.nab-small a,
.nab-panel a {
	color: var(--nab-accent, #1a56b8);
}
.nab-trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.nab-more {
	display: flex;
	gap: 12px;
	margin-top: 10px;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
	padding-top: 6px;
}
.nab-link {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--nab-accent, #1a56b8);
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.nab-panel {
	max-height: 40vh;
	overflow: auto;
}
.nab-recent {
	margin: 6px 0;
	padding-left: 18px;
}
.nab-recent li {
	margin: 4px 0;
}
.nab-btn {
	display: inline-block;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--nab-accent);
	border-radius: 6px;
	background: transparent;
	color: var(--nab-accent);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.nab-btn-main {
	background: var(--nab-accent);
	color: var(--nab-accent-fg);
}
.nab-btn-quiet {
	border-color: transparent;
}
.nab-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.nab-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--nab-muted);
	font-size: 22px;
	cursor: pointer;
}
.nab-bell {
	/* Plainly visible on any page (request of 10/10): a solid blue disc with a
	   white bell and a white ring, so it stands out on light and dark themes.
	   The !important values resist themes that restyle every button. */
	position: fixed !important;
	right: 16px !important;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	z-index: 99989;
	box-sizing: border-box !important;
	width: 56px !important;
	height: 56px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border: 3px solid #ffffff !important;
	border-radius: 50% !important;
	background: #1a56b8 !important;
	color: #ffffff !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
	cursor: pointer;
}
.nab-bell svg {
	width: 30px !important;
	height: 30px !important;
}
.nab-bell:hover {
	background: #123f87 !important;
}
.nab-bell[hidden] {
	display: none !important;
}
.nab-box button:focus-visible,
.nab-box a:focus-visible,
.nab-bell:focus-visible,
.nab-page button:focus-visible,
.nab-box input:focus-visible,
.nab-page input:focus-visible {
	outline: 3px solid #e8a400;
	outline-offset: 2px;
}
.nab-page .nab-btn {
	--nab-accent: #1a56b8;
	--nab-accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
	.nab-box {
		--nab-bg: #1f1f22;
		--nab-fg: #f2f2f4;
		--nab-muted: #c4c4ca;
		--nab-accent: #7eb0ff;
		--nab-accent-fg: #0b1a33;
		border-color: rgba(255, 255, 255, 0.2);
	}
}
@media print {
	.nab-box,
	.nab-bell {
		display: none !important;
	}
}

/* Links styled as buttons (relay window): a host theme colours every link, often
   with a more specific rule; these keep the button's own colours and look. */
.nab-box a.nab-btn,
.nab-box a.nab-btn:link,
.nab-box a.nab-btn:visited,
.nab-box a.nab-btn:hover,
.nab-box a.nab-btn:focus {
	color: var(--nab-accent) !important;
	text-decoration: none !important;
	display: inline-block;
}
.nab-box a.nab-btn-main,
.nab-box a.nab-btn-main:link,
.nab-box a.nab-btn-main:visited,
.nab-box a.nab-btn-main:hover,
.nab-box a.nab-btn-main:focus {
	color: var(--nab-accent-fg) !important;
	background: var(--nab-accent) !important;
}
