& {
	--titlebar-border-radius: 4px;
	@media (-moz-platform: macos) {
		--titlebar-border-radius: 9px; //Artificial minimum radii set by macOS's window manager
	}
}

// Change offsets for Incognito/pfp when window's maximised
&[sizemode="maximized"],
&[sizemode="fullscreen"] {
	#gkavatar-container > #gk-firefox-account-button,
	#private-browsing-indicator-with-label,
	.private-browsing-indicator-with-label /* Fix for Firefox 133+ */ {
		height: calc(var(--tab-height) - 9px);

		.toolbarbutton-badge-stack,
		.private-browsing-indicator-icon {
			margin-block-end: -4px; //offset for maximised window
		}
	}
}

&[gktitnative="false"] {
	@import "../base";
	--titlebar-box-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.25);
	
	// Visuals
	&[windowtype="navigator:browser"] > body {
		border-top: 1px solid rgb(89, 89, 89);
		border-left: 1px solid rgb(89, 89, 89);
		border-bottom: 1px solid rgb(68, 68, 68);
		border-right: 1px solid rgb(68, 68, 68);
	}

	// Visuals: Maximised / Fullscreen
	&[sizemode="maximized"],
	&[sizemode="fullscreen"] {
		--titlebar-box-shadow: none;
	
		&[windowtype="navigator:browser"] > body,
		&[windowtype="navigator:browser"] > body::before {
			border-radius: 0 !important;
		}
		&[windowtype="navigator:browser"] > body {
			border: 0;
		}
	}
}
&[gktitnative="true"][gktitbuttons="win"],
&[gktitnative="true"][gktitbuttons="win8"] {
	// Add 5px to tab gap to match AERO'd Chromium
	--tab-distance-from-top: 20px;
	&[sizemode="maximized"],
	&[sizemode="fullscreen"] {
		--tab-distance-from-top: 0px;
	}
}