.header .nav { display: flex; gap: clamp(12px, 3vw, 34px); min-height: 72px; height: auto; padding-block: 12px; }
.header .brand, .footer .brand { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.header .brand { flex: none; }
.header .brand img, .footer .brand img { display: block; flex: none; object-fit: contain; }
.header .nav .site-primary-nav { order: 0; width: auto; display: flex; gap: 4px; align-items: center; }
.header .site-primary-nav a, .header .locale-menu summary, .header .home-account-menu summary {
	display: flex; align-items: center; gap: 7px; border-radius: 8px; font-size: 14px; font-weight: 650;
	transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.header .site-primary-nav a { position: relative; min-height: 38px; padding: 0 12px; color: var(--muted); }
.header .site-primary-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: 5px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease-out;
}
.header .site-primary-nav a:hover, .header .site-primary-nav a:focus-visible { background: #d2e3c5; color: #192f2a; }
.header .site-primary-nav a:hover::after, .header .site-primary-nav a:focus-visible::after { transform: scaleX(1); }
.header .home-account-menu summary:hover, .header .locale-menu summary:hover { background: #d2e3c5; color: var(--deep); }
.header .site-primary-nav a:is([aria-current="page"], [aria-current="location"]) { background: #234039; color: #fff; }
.header .site-primary-nav a:is([aria-current="page"], [aria-current="location"]):is(:hover, :focus-visible) { background: #192f2a; color: #fff; }
.header .site-primary-nav a:active, .header summary:active { transform: translateY(1px); }
.header :is(a, button, summary):focus-visible { outline: 2px solid #55765e; outline-offset: 3px; }
.header .nav .locale-nav { display: flex; margin-inline-start: auto; width: auto; min-width: 0; max-width: 100%; justify-content: flex-end; align-items: center; gap: 12px; }
.header .locale-menu, .header .home-account-menu { position: relative; }
.header .locale-menu { flex: none; }
.header .locale-menu summary { padding: 8px 10px; border: 1px solid var(--line); background: white; }
.header .home-account-menu summary { padding: 3px 6px 3px 3px; cursor: pointer; }
.header summary { list-style: none; }
.header summary::-webkit-details-marker { display: none; }
.header :is(.locale-menu, .home-account-menu) summary::after { content: ""; flex: none; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.header :is(.locale-menu, .home-account-menu)[open] summary::after { transform: rotate(225deg); }
.header .home-account-menu[open] summary { background: #edf2e7; }
.header .locale-menu > div, .header .home-account-menu > div {
	position: absolute; z-index: 12; inset-inline-end: 0; top: calc(100% + 6px); min-width: 155px; width: max-content;
	margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 24px #202b2920;
}
.header .locale-menu > div { max-height: min(65vh, 24rem); overflow-y: auto; }
.header .locale-menu :is(a, button), .header .home-account-menu > div :is(a, button) {
	display: block; width: 100%; border: 0; padding: 7px 9px; text-align: start; border-radius: 5px; background: transparent; color: var(--deep);
}
.header .locale-menu :is(a, button):hover, .header .locale-menu [aria-current], .header .home-account-menu > div :is(a, button):hover { background: #e7f0db; }
.header .home-login-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #dfeccd; color: var(--deep); }
.header .home-account-email { overflow-wrap: anywhere; }
@media (max-width: 650px) {
	.header .nav { flex-wrap: wrap; gap: 8px 12px; }
	.header .nav .locale-nav { flex: 1 0 100%; order: 3; }
	.header .nav .site-primary-nav { margin-inline-start: auto; }
	.header .nav .locale-nav { position: relative; }
	.header .nav .home-account-menu { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
	.header .site-primary-nav a:is([aria-current="page"], [aria-current="location"]) { animation: voxel-nav-selected .2s ease-out; }
	@keyframes voxel-nav-selected { from { transform: translateY(2px); } }
}
@media (prefers-reduced-motion: reduce) {
	.header :is(a, summary), .header .site-primary-nav a::after, .header summary::after { transition: none; }
}

.header .home-account-menu > div {
	width: min(18rem, calc(100vw - 32px));
	padding: 12px;
	border-radius: 16px;
	box-shadow: 0 14px 32px #202b292b;
}
.header .account-profile {
	display: grid;
	gap: 12px;
	padding-bottom: 10px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--line);
}
.header .account-profile-identity { display: flex; align-items: center; gap: 10px; padding: 3px 2px; }
.header .account-profile-identity > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.header .account-profile-identity > div > span { font-size: 13px; color: var(--muted); }
.header .account-profile-identity > div > span:empty { display: none; }
.header .account-credit-balance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #234039;
	color: #fff;
	font-size: 13px;
}
.header .account-credit-balance[hidden] { display: none; }
.header .account-credit-balance strong { color: #d7efa9; font-size: 24px; font-variant-numeric: tabular-nums; }
.header .home-account-menu > div > button { cursor: pointer; font-size: 14px; font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
	.header .home-account-menu[open] > div { animation: voxel-profile-in .15s ease-out; }
	@keyframes voxel-profile-in { from { opacity: 0; transform: translateY(-4px); } }
}

.header .home-login-avatar {
	background: #fff url("/voxel-google-g.svg") center / 19px 19px no-repeat;
	border: 1px solid var(--line);
}
.header .account-credit-balance > span { display: flex; align-items: center; gap: 8px; }
.header .account-credit-balance > span::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: #d7efa9;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 2.8 8 4.6v9.2l-8 4.6-8-4.6V7.4l8-4.6Z'/%3E%3Cpath d='m4 7.4 8 4.6 8-4.6M12 12v9.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header .nav.wrap {
	width: auto;
	margin-inline: max(28px, calc((100% - 1200px) / 2)) 14px;
}
@media (max-width: 800px) {
	.header .nav.wrap { margin-inline: 18px 14px; }
}

.site-footer { margin-top: 44px; padding: clamp(28px, 5vw, 54px) 0 20px; background: #203a34; color: #f2f6ef; }
.site-footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 24px; }
.site-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer h2 { margin: 5px 0 3px; font-size: 15px; }
.site-footer a { color: #dce8d8; }
.site-footer a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; }
.site-footer .brand { display: flex; align-items: center; gap: 6px; color: white; }
.site-footer small { display: block; margin-top: 25px; padding-top: 15px; border-top: 1px solid #ffffff35; color: #dce8d8; }
@media (max-width: 560px) {
	.site-footer-grid { grid-template-columns: 1fr 1fr; }
	.site-footer-brand { grid-column: 1 / -1; }
}

.header .nav .site-primary-nav { flex-wrap: wrap; }
.header .site-primary-nav a { white-space: nowrap; }

:is(#home-model-generator, #featured, #converter, #formats, #faq, #pricing) {
	scroll-margin-block-start: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.site-primary-nav) { scroll-behavior: smooth; }
}

.header .account-credit-balance > .account-buy-credits {
	flex: none;
	padding: 6px 8px;
	border-radius: 6px;
	background: #d7efa9;
	color: #234039;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}
.header .account-credit-balance > .account-buy-credits:is(:hover, :focus-visible) { background: #eef9d7; }
