html, body {
	font-family: 'Consolas', Consolas, Arial, sans-serif;
}

/* Syncfusion responsive menu: keep hamburger on the far left */
.hyper-top-menu.e-menu-wrapper,
.hyper-top-menu.e-menu-container {
	justify-content: flex-start !important;
}

.hyper-top-menu .e-menu-header,
.hyper-top-menu .e-menu-icon {
	margin-inline: 0 auto 0 0 !important;
	justify-content: flex-start !important;
}

h1:focus {
	outline: none;
}

a, .btn-link {
	color: #0071c1;
}

.btn-primary {
	color: var(--hs-accent-ink);
	background: linear-gradient(135deg, var(--hs-accent), var(--hs-accent-mid) 55%, var(--hs-accent-end));
	border-color: transparent;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
	box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
	padding-top: 1.1rem;
	height: calc(100vh - 230px);
	min-height: 70vh;
	max-height: calc(100vh - 230px);
	overflow: hidden;
	max-width: 100vw;
	display: flex;
	flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
	outline: 1px solid #26b050;
}

.invalid {
	outline: 1px solid red;
}

.validation-message {
	color: red;
}

#blazor-error-ui {
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

	#blazor-error-ui .dismiss {
		cursor: pointer;
		position: absolute;
		right: 0.75rem;
		top: 0.5rem;
	}

.blazor-error-boundary {
	background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
	padding: 1rem 1rem 1rem 3.7rem;
	color: white;
}

	.blazor-error-boundary::after {
		content: "An error has occurred."
	}

.loading-progress {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
}

.loading-progress > img {
	position: relative;
	z-index: 1;
	display: block;
	animation: blink 0.8s infinite;
}

/* Theme-colored page behind the spinner (not on the logo cluster) */
html:has(#app .loading-progress),
body:has(#app .loading-progress),
#app:has(.loading-progress) {
	background-color: var(--app-body-bg) !important;
	min-height: 100%;
}

@keyframes blink {
	0% {
		opacity: 0.25;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.loading-progress .circle {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	display: inline-block;
	border-top: 5px solid #b200ff;
	border-right: 5px solid transparent;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
	top: -24px;
	left: -20px;
	position: absolute;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loading-progress circle:last-child {
	stroke: #1b6ec2;
	stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
	transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
	position: absolute;
	text-align: center;
	font-weight: bold;
	inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

	.loading-progress-text:after {
		content: var(--blazor-load-percentage-text, "Loading");
	}

.loading-completeH {
	position: absolute;
	z-index: 3;
	left: -4px;
	top: -20px;
	transform: scale(0.5);
	animation-delay: -3s;
	animation: intro 1s linear;
}

.brand-logo-wrap {
	position: relative;
	height: 28px;
	width: fit-content;
	max-width: min(200px, 42vw);
	overflow: visible;
	margin: 0;
	background: transparent;
}

.brand-logo {
	height: 28px;
	width: auto;
	max-width: min(200px, 42vw);
	object-fit: contain;
	object-position: left center;
	display: block;
	background: transparent;
}

/* Old loading H flies from screen center onto the H in the static wordmark */
.intro-h {
	position: fixed;
	z-index: 1001;
	width: 72px;
	height: 72px;
	pointer-events: none;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(2.5);
	opacity: 1;
}

.intro-h.is-animating {
	animation: intro-h-to-logo 1s linear forwards;
}

@keyframes intro {
	0% {
		transform: scale(2.5);
		top: 42%;
		left: calc(50vw - 42.5px);
	}

	99% {
		transform: scale(0.5);
	}

	100% {
		transform: scale(0.25);
		top: 0%;
		left: 0%;
	}
}

@keyframes intro-h-to-logo {
	0% {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) scale(2.5);
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		top: var(--intro-h-end-top, 10px);
		left: var(--intro-h-end-left, 12px);
		transform: translate(-50%, -50%) scale(var(--intro-h-end-scale, 0.78));
		opacity: 0;
	}
}

.switch {
	font-size: 24px;
	margin-top: 2px;
}

.tech-stack-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0;
	padding: 2px 4px;
	width: min(96vw, 720px);
	box-sizing: border-box;
	white-space: nowrap;
}

.tech-stack-sep {
	width: 1px;
	height: clamp(12px, 2vw, 14px);
	margin: 0 clamp(2px, 1vw, 10px);
	background: rgba(128, 128, 128, 0.45);
	flex-shrink: 0;
}

html.dark-mode .tech-stack-sep {
	background: rgba(255, 255, 255, 0.28);
}

.tech-icon-slot {
	display: inline-flex;
	align-items: center;
	gap: clamp(2px, 0.8vw, 6px);
	min-width: clamp(36px, 5.5vw, 54px);
	height: auto;
	text-align: left;
	box-sizing: border-box;
}

.tech-icon-slot img,
.tech-icon-slot i {
	height: clamp(12px, 3vw, 16px);
	width: clamp(12px, 3vw, 16px);
	display: block;
	margin: 0;
	line-height: 1;
	object-fit: contain;
	flex-shrink: 0;
}

.tech-icon-slot i {
	font-size: clamp(11px, 2.6vw, 14px);
	text-align: center;
}

.tech-icon-slot > span {
	font-size: clamp(8px, 2.2vw, 11px);
	line-height: 1;
	white-space: nowrap;
	display: block;
	text-align: left;
}

.tech-icon-link,
.tech-icon-link:hover,
.tech-icon-link *,
.tech-icon-link:hover * {
	color: inherit;
	text-decoration: none;
	cursor: pointer !important;
}

.tech-stack-bar > .tech-icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

button.tech-theme-toggle {
	appearance: none;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
}

code {
	color: #c02d76;
}

.dock-container {
	--dock-base-size: 48px;
	background: rgba(248, 248, 248, 0.55);
	backdrop-filter: blur(18px) saturate(1.35);
	-webkit-backdrop-filter: blur(18px) saturate(1.35);
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14), inset 0 0.5px 0 rgba(255, 255, 255, 0.55);
	border-radius: 18px;
	height: calc(var(--dock-base-size) + 16px);
	min-width: max-content;
	display: flex;
	/* Bottom-align so magnification grows upward; equal padding keeps rest state centered */
	align-items: flex-end;
	justify-content: center;
	padding: 8px 10px;
	gap: 0;
	cursor: default;
	overflow: visible;
	/* Keep finger tracking on the dock (magnify while dragging; open on release) */
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

html.dark-mode .dock-container {
	background: rgba(40, 40, 44, 0.55);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

.dock-icon-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--dock-base-size);
	height: var(--dock-base-size);
	margin: 0 4px;
	flex-shrink: 0;
	text-align: center;
	cursor: pointer;
	overflow: visible;
	/* Grow upward from the panel center line when magnified */
	transform-origin: center bottom;
	transition:
		width 160ms cubic-bezier(0.25, 0.8, 0.25, 1),
		height 160ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dock-icon-slot .dock-icon {
	transition: font-size 160ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dock-icon {
	margin: 0;
	font-size: calc(var(--dock-slot-size, var(--dock-base-size)) * 0.78) !important;
	width: 100%;
	height: 100%;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-origin: center center;
	pointer-events: none;
}

/* Floating label above icon (ryOS / macOS style) */
.dock-icon-label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%) translateY(6px);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(32, 32, 32, 0.9);
	color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	opacity: 0;
	pointer-events: none;
	z-index: 50;
	transition: opacity 120ms ease, transform 120ms ease;
}

.dock-icon-slot:hover .dock-icon-label,
.dock-icon-slot:focus-visible .dock-icon-label,
.dock-icon-slot.dock-touch-focus .dock-icon-label {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.dock-icon-sm {
	margin: 6px;
	font-size: 16px
}

.float-right {
	float: right;
}

.e-chip {
	background: gray;
	padding-left: 3px;
	padding-right: 3px;
	padding-top: 0px;
	border-radius: 5px;
	transform: scale(0.825);
	font-weight: 1000;
	margin-bottom: -3px;
}

.e-chip-text {
	font-weight: 1000;
}

/* Notes panel (HTML layout + Syncfusion dialog/context menu) */
.notes-panel {
	width: 90vw;
	margin: 0 auto;
	background: var(--app-panel-bg);
	border: 1px solid var(--app-panel-border);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	max-height: 100%;
}

.notes-panel.is-collapsed {
	flex: 0 0 auto;
	max-height: none;
}

.notes-panel-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.35rem 0.75rem;
	border: none;
	background: transparent;
	color: var(--app-text-color);
	flex-shrink: 0;
	min-height: 2.75rem;
	box-sizing: border-box;
}

.notes-panel-header-leading {
	flex: 0 0 auto;
	z-index: 3;
	display: flex;
	align-items: center;
	position: relative;
}

.notes-app-menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.notes-app-menu-root {
	position: relative;
}

.notes-app-menu-trigger {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--app-text-color);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.35rem 0.55rem;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.notes-app-menu-trigger > .fa:first-child {
	font-size: 0.9em;
	opacity: 0.9;
}

.notes-app-menu-caret {
	font-size: 0.65em;
	opacity: 0.75;
	transition: transform 140ms ease;
}

.notes-app-menu-trigger.is-open .notes-app-menu-caret {
	transform: rotate(180deg);
}

.notes-app-menu-trigger:hover,
.notes-app-menu-trigger.is-open {
	background: color-mix(in srgb, var(--app-text-color) 8%, transparent);
}

.notes-app-menu-trigger:focus-visible {
	outline: 2px solid var(--hs-accent, #0071c1);
	outline-offset: 2px;
}

.notes-app-submenu {
	position: absolute;
	top: calc(100% - 2px);
	left: 0;
	z-index: 20;
	min-width: 8.5rem;
	padding: 4px;
	margin: 0;
	background: var(--app-panel-bg);
	border: 1px solid var(--app-panel-border);
	border-radius: 7.5px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.notes-app-submenu-item {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	border: none;
	background: transparent;
	color: var(--app-text-color);
	font: inherit;
	font-size: 0.9rem;
	text-align: left;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	cursor: pointer;
}

.notes-app-submenu-item > .fa {
	width: 1em;
	text-align: center;
	opacity: 0.9;
}

.notes-app-submenu-item:hover,
.notes-app-submenu-item:focus-visible {
	background: var(--hs-btn-secondary-hover, color-mix(in srgb, var(--app-text-color) 10%, transparent));
	outline: none;
}

.notes-app-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2;
	background: transparent;
}

.notes-panel-header-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
	white-space: nowrap;
	z-index: 1;
}

.notes-panel-collapse {
	flex: 0 0 auto;
	z-index: 3;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.45rem;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 4px;
}

.notes-panel-collapse:hover {
	background: color-mix(in srgb, var(--app-text-color) 8%, transparent);
}

.notes-panel-collapse:focus-visible {
	outline: 2px solid var(--hs-accent, #0071c1);
	outline-offset: 2px;
}

.notes-panel-body {
	padding: 0 1rem 1rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.notes-panel-actions {
	display: flex;
	align-items: center;
	padding-top: 0.5rem;
	flex-shrink: 0;
}

.notes-new-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: none;
	background: transparent;
	color: var(--app-text-color);
	padding: 0.25rem 0.35rem;
}

.notes-card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.75rem;
	padding-top: 5px;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	align-content: flex-start;
	scrollbar-width: thin;
	scrollbar-color: var(--app-muted-color) transparent;
}

.notes-card-grid::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.notes-card-grid::-webkit-scrollbar-track {
	background: transparent;
}

.notes-card-grid::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--app-muted-color) 55%, transparent);
	border-radius: 999px;
}

.notes-card-grid::-webkit-scrollbar-thumb:hover {
	background: var(--app-muted-color);
}

.notes-card {
	flex: 1 1 135px;
	max-width: 165px;
	background: var(--app-card-bg);
	border: 1px solid var(--app-panel-border);
	border-radius: 5px;
	padding: 0.55rem;
	transition:
		transform 140ms ease,
		border-color 140ms ease,
		box-shadow 140ms ease;
}

.notes-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--hs-line) 35%, var(--hs-accent));
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--hs-accent) 40%, transparent),
		0 12px 28px color-mix(in srgb, var(--hs-accent) 22%, transparent),
		0 0 28px color-mix(in srgb, var(--hs-accent) 30%, transparent);
}

.notes-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.35rem;
}

.notes-card-top-right {
	text-align: end;
}

.notes-card-divider {
	border: none;
	background-color: var(--app-muted-color);
	height: 1px;
	margin: 0.75rem 0;
}

.notes-card-open {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	width: 100%;
	border: none;
	background: transparent;
	color: var(--app-text-color);
	min-width: 68px;
}

.notes-card-icon {
	font-size: 24px;
	text-align: center;
	height: 32px;
	line-height: 32px;
}

.notes-card-name {
	text-align: center;
	font-size: 0.75rem;
}

.notes-paging {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
	flex-shrink: 0;
}

.notes-page-btn {
	min-height: 40px;
	border: 1px solid var(--hs-line);
	border-radius: var(--hs-control-radius);
	background: var(--hs-btn-secondary-bg);
	color: var(--app-text-color);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 8px 14px;
	cursor: pointer;
	box-shadow: none;
	transition:
		transform 140ms ease,
		box-shadow 140ms ease,
		opacity 140ms ease,
		border-color 140ms ease,
		background 140ms ease;
}

.notes-page-btn:hover:not(:disabled) {
	background: var(--hs-btn-secondary-hover);
	border-color: color-mix(in srgb, var(--hs-line) 70%, var(--hs-accent));
	transform: translateY(-1px);
}

.notes-page-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.notes-page-btn:focus-visible {
	outline: 2px solid var(--hs-focus);
	outline-offset: 2px;
}

.notes-page-summary {
	color: var(--app-muted-color);
	font-size: 0.85rem;
}

.notes-summary {
	margin: 0;
	padding: 0.75rem 1rem;
	background: var(--app-card-bg);
	border-top: 1px solid var(--app-panel-border);
	border-radius: 0;
	flex-shrink: 0;
}

.notes-panel.is-collapsed .notes-summary {
	border-top: 1px solid var(--app-panel-border);
}

.note-badge,
.note-dialog .note-badge,
.note-sf-dialog .note-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	font-family: var(--app-font-family);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	border: 1px solid transparent;
	box-shadow: none;
	color: inherit;
}

.note-badge-info,
.note-dialog .note-badge-info,
.note-sf-dialog .note-badge-info {
	color: var(--app-badge-info) !important;
	background: var(--app-badge-info-bg) !important;
	border-color: color-mix(in srgb, var(--app-badge-info) 35%, transparent) !important;
}

.note-badge-warning,
.note-dialog .note-badge-warning,
.note-sf-dialog .note-badge-warning {
	color: var(--app-badge-warning) !important;
	background: var(--app-badge-warning-bg) !important;
	border-color: color-mix(in srgb, var(--app-badge-warning) 35%, transparent) !important;
}

.note-badge-danger,
.note-dialog .note-badge-danger,
.note-sf-dialog .note-badge-danger {
	color: var(--app-badge-danger) !important;
	background: var(--app-badge-danger-bg) !important;
	border-color: color-mix(in srgb, var(--app-badge-danger) 35%, transparent) !important;
}

.note-badge-success,
.note-dialog .note-badge-success,
.note-sf-dialog .note-badge-success {
	color: var(--app-badge-success) !important;
	background: var(--app-badge-success-bg) !important;
	border-color: color-mix(in srgb, var(--app-badge-success) 35%, transparent) !important;
}

.notes-trash {
	width: 1.2rem;
	height: 1.2rem;
	padding: 0;
	border-radius: 4px;
}

.note-dialog {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	background: transparent;
	color: var(--app-text-color);
}

/* Match note dialog chrome to home page panel palette */
.note-sf-dialog.e-dialog,
.e-dialog.note-sf-dialog {
	background: var(--app-panel-bg) !important;
	border: 1px solid var(--app-panel-border) !important;
	border-radius: 12px !important;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35) !important;
	color: var(--app-text-color) !important;
	overflow: hidden !important;
}

.note-sf-dialog .e-dlg-header-content,
.note-sf-dialog .e-dlg-content,
.note-sf-dialog .e-footer-content {
	background: var(--app-panel-bg) !important;
	color: var(--app-text-color) !important;
	border-color: var(--app-panel-border) !important;
	border-radius: 0 !important;
}

.note-sf-dialog .e-dlg-header {
	color: var(--app-text-color) !important;
	font-family: var(--app-font-family);
	font-weight: 700;
}

.note-sf-dialog .e-dlg-header-content {
	border-bottom: 1px solid var(--app-panel-border) !important;
	border-top-left-radius: 12px !important;
	border-top-right-radius: 12px !important;
}

.note-sf-dialog .e-btn-icon.e-icon-dlg-close,
.note-sf-dialog .e-dlg-closeicon-btn {
	color: var(--app-muted-color) !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 8px !important;
}

.note-sf-dialog .e-dlg-closeicon-btn:hover {
	color: var(--app-text-color) !important;
	background: var(--hs-btn-secondary-hover) !important;
}

.note-sf-dialog .e-dlg-content {
	padding-top: 1rem !important;
	border-bottom-left-radius: 12px !important;
	border-bottom-right-radius: 12px !important;
}

/* Syncfusion sometimes wraps the dialog; keep the outer shell clipped too */
.e-dlg-container:has(.note-sf-dialog),
.e-dlg-container .note-sf-dialog {
	border-radius: 12px !important;
	overflow: hidden !important;
}

.note-dialog-fields {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.note-dialog-name-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.note-dialog-label {
	color: var(--app-muted-color);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
}

.note-dialog-error {
	color: var(--app-badge-danger);
	font-size: 0.8rem;
}

.note-dialog-preview {
	height: 60vh;
	overflow: auto;
	padding: 1rem 1.5rem;
	border: 1px solid var(--app-panel-border);
	border-radius: 8px;
	background: var(--app-body-bg);
	color: var(--app-text-color);
	scrollbar-width: thin;
	scrollbar-color: var(--app-muted-color) transparent;
}

.note-about {
	max-width: 52rem;
	margin: 0 auto;
	padding: 0.35rem 0 0.75rem;
}

.note-about-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--app-panel-border);
}

.note-about-wordmark {
	height: 32px;
	width: auto;
	max-width: min(240px, 70%);
	display: block;
	object-fit: contain;
	object-position: left center;
	background: transparent;
	margin-bottom: 0.85rem;
}

.note-about-lead {
	margin: 0;
	max-width: none;
	font-size: 0.92rem;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--app-muted-color);
}

.note-about-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.5rem;
}

.note-about-section {
	min-width: 0;
	padding: 0.15rem 0 0.15rem 0.85rem;
	border-left: 2px solid color-mix(in srgb, var(--hs-accent, #5ee7ff) 70%, var(--app-panel-border));
}

.note-about-section h3 {
	margin: 0 0 0.35rem;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var(--app-text-color);
}

.note-about-kicker {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-accent, #5ee7ff);
}

.note-about-section p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--app-muted-color);
}

.note-about-section ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.note-about-section li {
	position: relative;
	margin: 0;
	padding: 0.18rem 0 0.18rem 0.9rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--app-muted-color);
}

.note-about-section li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hs-accent, #5ee7ff) 75%, transparent);
}

.note-about-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--app-panel-border);
	font-size: 0.82rem;
}

.note-about-footer a {
	color: var(--hs-accent, #5ee7ff);
	text-decoration: none;
}

.note-about-footer a:hover {
	text-decoration: underline;
}

.note-about-sep {
	color: var(--app-muted-color);
	opacity: 0.7;
}

@media (max-width: 720px) {
	.note-about-grid {
		grid-template-columns: 1fr;
	}

	.note-about-lead {
		white-space: normal;
	}
}

.note-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.55rem;
}

/* Hyperspace auth-style buttons (primary gradient + quiet secondary) */
.hs-btn,
.note-dialog-actions .e-btn {
	min-height: 33px;
	min-width: 72px;
	border: 0;
	border-radius: 9px !important;
	font: inherit;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	padding: 7px 12px !important;
	cursor: pointer;
	text-transform: none !important;
	box-shadow: none;
	transition:
		transform 140ms ease,
		box-shadow 140ms ease,
		opacity 140ms ease,
		border-color 140ms ease,
		background 140ms ease;
}

.hs-btn-primary,
.note-dialog-actions .e-btn.e-primary,
.note-dialog-ok.e-btn {
	background: linear-gradient(135deg, var(--hs-accent), var(--hs-accent-mid) 55%, var(--hs-accent-end)) !important;
	color: var(--hs-accent-ink) !important;
	border: 0 !important;
	box-shadow: var(--hs-btn-shadow) !important;
}

/* Light mode: primary Ok matches top-menu-shell (--app-menu-bg) */
html:not(.dark-mode) .hs-btn-primary,
html:not(.dark-mode) .note-dialog-actions .e-btn.e-primary,
html:not(.dark-mode) .note-dialog-ok.e-btn {
	background: var(--app-menu-bg) !important;
	color: var(--app-menu-color) !important;
	box-shadow: 0 10px 28px rgba(16, 22, 36, 0.28) !important;
}

.hs-btn-primary:hover:not(:disabled),
.note-dialog-actions .e-btn.e-primary:hover:not(:disabled),
.note-dialog-ok.e-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: var(--hs-btn-shadow-hover) !important;
}

html:not(.dark-mode) .hs-btn-primary:hover:not(:disabled),
html:not(.dark-mode) .note-dialog-actions .e-btn.e-primary:hover:not(:disabled),
html:not(.dark-mode) .note-dialog-ok.e-btn:hover:not(:disabled) {
	background: color-mix(in srgb, var(--app-menu-bg) 88%, #ffffff) !important;
	box-shadow: 0 14px 34px rgba(16, 22, 36, 0.36) !important;
}

.hs-btn-secondary,
.note-dialog-actions .e-btn.e-outline {
	background: var(--hs-btn-secondary-bg) !important;
	color: var(--app-muted-color) !important;
	border: 1px solid var(--hs-line) !important;
	box-shadow: none !important;
}

.hs-btn-secondary:hover:not(:disabled),
.note-dialog-actions .e-btn.e-outline:hover:not(:disabled) {
	color: var(--app-text-color) !important;
	background: var(--hs-btn-secondary-hover) !important;
	border-color: color-mix(in srgb, var(--hs-line) 70%, var(--hs-accent)) !important;
	transform: translateY(-1px);
	box-shadow: none !important;
}

.hs-btn:disabled,
.note-dialog-actions .e-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.hs-btn:focus-visible,
.note-dialog-actions .e-btn:focus-visible {
	outline: 2px solid var(--hs-focus);
	outline-offset: 2px;
}

.note-dialog-ok {
	min-width: 72px;
}

/* ---- Syncfusion chrome → Hyperspace tokens (menus, inputs, RTE, overlays) ---- */
.e-dlg-overlay {
	background: rgba(7, 9, 15, 0.62) !important;
}

.e-menu-popup,
.e-menu-container.e-menu-popup,
.e-contextmenu-wrapper,
.e-contextmenu-wrapper ul,
.e-contextmenu-container ul,
.e-ul.e-menu,
ul.e-contextmenu,
ul.e-menu-parent.e-ul {
	background: var(--app-panel-bg) !important;
	border: 1px solid var(--app-panel-border) !important;
	border-radius: 7.5px !important;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35) !important;
	color: var(--app-text-color) !important;
	padding: 4px !important;
	margin: 0 !important;
	font-family: var(--app-font-family) !important;
}

/* Explicit flyout radius (Syncfusion menu popup / context menu) */
.e-menu-popup,
.e-menu-container.e-menu-popup,
ul.e-menu-parent,
ul.e-menu-parent.e-ul,
[id^="sfcontextmenu-"] ul {
	border-radius: 7.5px !important;
}

/* Sit submenu flush under the horizontal menu bar (closes Syncfusion default offset gap) */
.e-menu-wrapper .e-menu-popup,
.e-menu-container.e-menu-popup,
.hyper-top-menu + .e-menu-popup,
.e-menu-popup.e-control {
	margin-top: -6px !important;
}

.e-menu-popup .e-menu-item,
.e-menu-container.e-menu-popup .e-menu-item,
.e-contextmenu .e-menu-item,
.e-ul .e-menu-item,
ul.e-menu-parent .e-menu-item {
	color: var(--app-text-color) !important;
	border-radius: 8px !important;
	font-family: var(--app-font-family) !important;
}

.e-menu-popup .e-menu-item .e-menu-text,
.e-menu-popup .e-menu-item .e-menu-url,
.e-menu-container.e-menu-popup .e-menu-item .e-menu-text,
.e-contextmenu .e-menu-item .e-menu-text,
.e-ul .e-menu-item .e-menu-text,
ul.e-menu-parent .e-menu-item .e-menu-text,
ul.e-menu-parent .e-menu-item {
	color: var(--app-text-color) !important;
}

.e-menu-popup .e-menu-item.e-focused,
.e-menu-popup .e-menu-item:hover,
.e-menu-popup .e-menu-item.e-selected,
.e-menu-container.e-menu-popup .e-menu-item.e-focused,
.e-menu-container.e-menu-popup .e-menu-item:hover,
.e-contextmenu .e-menu-item.e-focused,
.e-contextmenu .e-menu-item:hover,
.e-ul .e-menu-item.e-focused,
.e-ul .e-menu-item:hover,
ul.e-menu-parent .e-menu-item.e-focused,
ul.e-menu-parent .e-menu-item:hover {
	background: var(--hs-btn-secondary-hover) !important;
	color: var(--app-text-color) !important;
}

.e-menu-popup .e-menu-item.e-focused .e-menu-text,
.e-menu-popup .e-menu-item:hover .e-menu-text,
.e-menu-popup .e-menu-item.e-selected .e-menu-text,
.e-ul .e-menu-item.e-focused .e-menu-text,
.e-ul .e-menu-item:hover .e-menu-text,
ul.e-menu-parent .e-menu-item.e-focused .e-menu-text,
ul.e-menu-parent .e-menu-item:hover .e-menu-text {
	color: var(--app-text-color) !important;
}

/* Top bar items stay light-on-dark; do not let that bleed into popups */
.hyper-top-menu.e-menu-wrapper,
.hyper-top-menu.e-menu-container,
.hyper-top-menu .e-menu:not(.e-menu-popup) {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.hyper-top-menu > .e-menu > .e-menu-item,
.hyper-top-menu .e-menu:not(.e-menu-popup) > .e-menu-item,
.hyper-top-menu .e-menu-header,
.hyper-top-menu .e-menu-icon,
.hyper-top-menu .e-caret {
	color: var(--app-menu-color) !important;
}

.hyper-top-menu > .e-menu > .e-menu-item.e-selected,
.hyper-top-menu > .e-menu > .e-menu-item.e-focused,
.hyper-top-menu > .e-menu > .e-menu-item:hover,
.hyper-top-menu .e-menu:not(.e-menu-popup) > .e-menu-item.e-selected,
.hyper-top-menu .e-menu:not(.e-menu-popup) > .e-menu-item.e-focused,
.hyper-top-menu .e-menu:not(.e-menu-popup) > .e-menu-item:hover {
	background: rgba(94, 231, 255, 0.12) !important;
	color: var(--app-menu-color) !important;
}

.note-sf-dialog .e-input-group,
.note-sf-dialog .e-input-group:not(.e-success):not(.e-warning):not(.e-error):not(.e-float-icon-left),
.note-dialog .e-input-group,
.note-dialog .e-control-wrapper {
	background: var(--app-body-bg) !important;
	border: 1px solid var(--hs-line) !important;
	border-bottom: 1px solid var(--hs-line) !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	color: var(--app-text-color) !important;
	padding: 0 12px !important;
	min-height: 40px;
	box-sizing: border-box;
}

/* Remove Syncfusion Material primary underline (often red/pink in light Material) */
.note-sf-dialog .e-input-group::before,
.note-dialog .e-input-group::before,
.note-sf-dialog .e-input-group::after,
.note-dialog .e-input-group::after,
.note-sf-dialog .e-input-group.e-input-focus::before,
.note-dialog .e-input-group.e-input-focus::before,
.note-sf-dialog .e-input-group.e-input-focus::after,
.note-dialog .e-input-group.e-input-focus::after,
.note-sf-dialog .e-input-group.e-control-wrapper::before,
.note-dialog .e-input-group.e-control-wrapper::before,
.note-sf-dialog .e-input-group .e-float-line,
.note-dialog .e-input-group .e-float-line {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	opacity: 0 !important;
	background: transparent !important;
	border: none !important;
	transform: none !important;
	content: none !important;
}

.note-sf-dialog .e-input-group:hover:not(:has(input[readonly])):not(.e-disabled):not(.e-input-focus),
.note-dialog .e-input-group:hover:not(:has(input[readonly])):not(.e-disabled):not(.e-input-focus) {
	border-color: color-mix(in srgb, var(--hs-line) 45%, var(--hs-focus-border)) !important;
	border-bottom-color: color-mix(in srgb, var(--hs-line) 45%, var(--hs-focus-border)) !important;
	box-shadow: none !important;
}

.note-sf-dialog .e-input-group.e-input-focus:not(:has(input[readonly])):not(.e-disabled),
.note-dialog .e-input-group.e-input-focus:not(:has(input[readonly])):not(.e-disabled),
.note-sf-dialog .e-input-group.e-input-focus:not(:has(input[readonly])):not(.e-disabled):not(.e-success):not(.e-warning):not(.e-error),
.note-dialog .e-input-group.e-input-focus:not(:has(input[readonly])):not(.e-disabled):not(.e-success):not(.e-warning):not(.e-error) {
	border-color: var(--hs-focus-border) !important;
	border-bottom-color: var(--hs-focus-border) !important;
	box-shadow: 0 0 0 3px var(--hs-focus-ring) !important;
}

.note-sf-dialog .e-input-group:has(input[readonly]),
.note-dialog .e-input-group:has(input[readonly]),
.note-sf-dialog .e-input-group:has(input[readonly]).e-input-focus,
.note-dialog .e-input-group:has(input[readonly]).e-input-focus,
.note-sf-dialog .e-input-group:has(input[readonly]):hover,
.note-dialog .e-input-group:has(input[readonly]):hover {
	background: color-mix(in srgb, var(--app-muted-color) 14%, var(--app-body-bg)) !important;
	border: 1px dashed color-mix(in srgb, var(--app-muted-color) 55%, var(--app-panel-border)) !important;
	border-bottom-color: color-mix(in srgb, var(--app-muted-color) 55%, var(--app-panel-border)) !important;
	border-bottom-width: 1px !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: default;
}

/* Kill Syncfusion Material focus underline on readonly fields */
.note-sf-dialog .e-input-group:has(input[readonly])::before,
.note-dialog .e-input-group:has(input[readonly])::before,
.note-sf-dialog .e-input-group:has(input[readonly])::after,
.note-dialog .e-input-group:has(input[readonly])::after,
.note-sf-dialog .e-input-group:has(input[readonly]).e-input-focus::before,
.note-dialog .e-input-group:has(input[readonly]).e-input-focus::before,
.note-sf-dialog .e-input-group:has(input[readonly]).e-input-focus::after,
.note-dialog .e-input-group:has(input[readonly]).e-input-focus::after {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	background: transparent !important;
	transform: none !important;
	content: none !important;
}

.note-sf-dialog .e-input-group input.e-input,
.note-dialog .e-input-group input.e-input,
.note-sf-dialog input.e-control,
.note-dialog input.e-control,
.note-dialog #note-file-name {
	background: transparent !important;
	color: var(--app-text-color) !important;
	caret-color: var(--hs-accent) !important;
	font-family: var(--app-font-family) !important;
	padding: 8px 0 !important;
	margin: 0 !important;
	text-indent: 0 !important;
	box-sizing: border-box;
}

.note-dialog #note-file-name[readonly],
.note-dialog .e-input-group input.e-input[readonly] {
	color: var(--app-muted-color) !important;
	caret-color: transparent !important;
	cursor: text;
	-webkit-user-select: text !important;
	user-select: text !important;
	pointer-events: auto !important;
}

.note-dialog #note-file-name::selection,
.note-dialog .e-input-group input.e-input::selection {
	background: var(--hs-focus-ring) !important;
	color: var(--app-text-color) !important;
}

.note-dialog #note-file-name[readonly]::selection,
.note-dialog .e-input-group input.e-input[readonly]::selection {
	background: color-mix(in srgb, var(--app-muted-color) 35%, transparent) !important;
	color: var(--app-text-color) !important;
}

.note-sf-dialog .e-input-group:has(input[readonly]),
.note-dialog .e-input-group:has(input[readonly]) {
	-webkit-user-select: text;
	user-select: text;
}

.note-sf-dialog .e-input-group.e-disabled,
.note-dialog .e-input-group.e-disabled,
.note-sf-dialog input.e-input[readonly],
.note-dialog input.e-input[readonly] {
	opacity: 1;
}

.note-dialog-editor.e-richtexteditor,
.note-dialog .e-richtexteditor {
	border: none !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--app-text-color) !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.note-dialog-editor .e-rte-container,
.note-dialog .e-rte-container {
	border: 1px solid var(--app-panel-border) !important;
	border-radius: 8px !important;
	background: var(--app-card-bg) !important;
	overflow: hidden !important;
	box-shadow: none !important;
}

.note-dialog-editor .e-rte-toolbar,
.note-dialog .e-rte-toolbar,
.note-dialog-editor .e-toolbar,
.note-dialog .e-toolbar,
.note-dialog-editor .e-rte-toolbar-wrapper,
.note-dialog [id$="_toolbar_container"],
.note-dialog [id$="_toolbar"] {
	background: var(--app-panel-bg) !important;
	border: none !important;
	border-bottom: 1px solid var(--app-panel-border) !important;
	border-radius: 8px 8px 0 0 !important;
	color: var(--app-text-color) !important;
	min-height: 40px;
}

.note-dialog-editor .e-toolbar-items,
.note-dialog .e-toolbar-items {
	background: transparent !important;
	min-height: 40px;
	padding: 4px 6px !important;
	gap: 2px;
}

.note-dialog-editor .e-toolbar .e-toolbar-item,
.note-dialog .e-toolbar .e-toolbar-item {
	background: transparent !important;
	border: none !important;
	margin: 0 1px !important;
	border-radius: 8px !important;
}

.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn,
.note-dialog-editor .e-toolbar .e-toolbar-item .e-rte-dropdown-btn,
.note-dialog .e-toolbar .e-toolbar-item .e-rte-dropdown-btn,
.note-dialog-editor .e-toolbar .e-dropdown-btn,
.note-dialog .e-toolbar .e-dropdown-btn {
	background: var(--hs-btn-secondary-bg) !important;
	color: var(--app-text-color) !important;
	border: 1px solid var(--hs-line) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	min-height: 32px !important;
	padding: 4px 10px !important;
	font-family: var(--app-font-family) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
}

.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn .e-icons,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn .e-icons,
.note-dialog-editor .e-toolbar .e-tbar-btn-text,
.note-dialog .e-toolbar .e-tbar-btn-text,
.note-dialog-editor .e-toolbar .e-caret,
.note-dialog .e-toolbar .e-caret {
	color: var(--app-muted-color) !important;
}

.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn:hover,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn:hover,
.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn.e-active,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn.e-active,
.note-dialog-editor .e-toolbar .e-dropdown-btn:hover,
.note-dialog .e-toolbar .e-dropdown-btn:hover,
.note-dialog-editor .e-toolbar .e-dropdown-btn.e-active,
.note-dialog .e-toolbar .e-dropdown-btn.e-active {
	background: var(--hs-btn-secondary-hover) !important;
	border-color: color-mix(in srgb, var(--hs-line) 55%, var(--hs-accent)) !important;
	color: var(--app-text-color) !important;
}

.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn:hover .e-icons,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn:hover .e-icons,
.note-dialog-editor .e-toolbar .e-toolbar-item .e-tbar-btn.e-active .e-icons,
.note-dialog .e-toolbar .e-toolbar-item .e-tbar-btn.e-active .e-icons,
.note-dialog-editor .e-toolbar .e-dropdown-btn:hover .e-tbar-btn-text,
.note-dialog .e-toolbar .e-dropdown-btn:hover .e-tbar-btn-text,
.note-dialog-editor .e-toolbar .e-dropdown-btn:hover .e-caret,
.note-dialog .e-toolbar .e-dropdown-btn:hover .e-caret {
	color: var(--app-text-color) !important;
}

.note-dialog-editor .e-toolbar .e-toolbar-item.e-separator,
.note-dialog .e-toolbar .e-toolbar-item.e-separator,
.note-dialog-editor .e-toolbar .e-separator,
.note-dialog .e-toolbar .e-separator {
	background: var(--app-panel-border) !important;
	width: 1px !important;
	margin: 6px 6px !important;
	opacity: 0.9;
}

/* Formats / alignment dropdown popups from the RTE toolbar */
.e-rte-dropdown-popup.e-popup,
.e-rte-elements.e-popup,
.e-dropdown-popup.e-popup {
	background: var(--app-panel-bg) !important;
	border: 1px solid var(--app-panel-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35) !important;
	color: var(--app-text-color) !important;
	overflow: hidden;
}

.e-rte-dropdown-popup .e-item,
.e-rte-elements .e-item,
.e-dropdown-popup .e-item {
	color: var(--app-text-color) !important;
	font-family: var(--app-font-family) !important;
	border-radius: 8px !important;
	margin: 2px 4px !important;
}

.e-rte-dropdown-popup .e-item:hover,
.e-rte-dropdown-popup .e-item.e-focused,
.e-rte-elements .e-item:hover,
.e-rte-elements .e-item.e-focused,
.e-dropdown-popup .e-item:hover,
.e-dropdown-popup .e-item.e-focused {
	background: var(--hs-btn-secondary-hover) !important;
	color: var(--app-text-color) !important;
}

.note-dialog-editor .e-rte-content,
.note-dialog .e-rte-content,
.note-dialog-editor .e-content,
.note-dialog .e-content,
.note-dialog-editor [id$="_rte-editable"],
.note-dialog [id$="_rte-editable"] {
	background: var(--app-card-bg) !important;
	color: var(--app-text-color) !important;
	font-family: var(--app-font-family) !important;
	border-radius: 0 0 8px 8px !important;
}

.notes-panel,
.notes-card {
	border-color: var(--app-panel-border);
}

.notes-summary {
	background: var(--app-card-bg);
	color: var(--app-text-color);
	border-color: var(--app-panel-border);
}

.maps-page {
	display: flex;
	flex-direction: column;
	height: 100%;
	flex: 1 1 auto;
	min-height: 0;
	gap: 0;
	color: var(--app-text-color);
}

.maps-page-header {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.maps-page-header h5 {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--app-text-color);
}

.maps-page-header .fa {
	font-size: 0.75rem;
	line-height: 1;
}

.maps-leaflet-host {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	/* Leaflet panes use absolute positioning and need a local stacking context. */
	z-index: 0;
}

.maps-leaflet-toolbar {
	margin: 10px 10px 0 0;
	border: none !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	border-radius: 4px;
}

.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:hover,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:focus,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:focus-visible,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:active,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:visited {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	line-height: 1;
	background: var(--app-card-bg, #fff) !important;
	color: var(--app-text-color, #333) !important;
	border-bottom: 1px solid var(--app-panel-border, rgba(0, 0, 0, 0.12));
	text-decoration: none !important;
	outline: none;
}

.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:last-child {
	border-bottom: none;
}

.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:hover,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:focus,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn:focus-visible {
	background: color-mix(in srgb, var(--app-card-bg, #fff) 86%, var(--app-text-color, #111)) !important;
	color: var(--app-text-color, #333) !important;
}

.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn.is-active,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn.is-active:hover,
.maps-leaflet-toolbar.leaflet-bar a.maps-leaflet-toolbar-btn.is-active:focus {
	color: #1a73e8 !important;
	background: color-mix(in srgb, #1a73e8 14%, var(--app-card-bg, #fff)) !important;
}

.maps-leaflet-toolbar .maps-leaflet-toolbar-btn i,
.maps-leaflet-toolbar .maps-leaflet-toolbar-btn .maps-leaflet-center-frame {
	font-size: 0.95rem;
	pointer-events: none;
	display: block;
	color: inherit;
}

.maps-leaflet-toolbar .maps-leaflet-center-frame {
	width: 14px;
	height: 14px;
	overflow: visible;
	flex: 0 0 auto;
}

.maps-leaflet-toolbar .maps-leaflet-center-frame path {
	stroke: currentColor;
}

.hyper-ky-bus-marker {
	background: transparent;
	border: none;
}

.hyper-ky-bus-marker-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	pointer-events: none;
}

.hyper-ky-bus-marker-label {
	display: inline-block;
	max-width: 4.5rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: var(--app-card-bg, #fff);
	color: var(--app-text-color, #111);
	border: 1px solid var(--app-panel-border, rgba(0, 0, 0, 0.15));
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hyper-ky-bus-marker-icon {
	width: 32px;
	height: 32px;
	display: block;
}