:root {
	--pi-progress-orange: #ff9800;
	--pi-progress-bg: #101516;
	--pi-progress-panel: #151b1d;
	--pi-progress-card: #0f1314;
	--pi-progress-border: #354044;
	--pi-progress-muted: #aeb8bc;
}

/* De navigatieblokken blijven op desktop één rustige, gelijke rij. */
.pi-tool-nav {
	width: 100% !important;
	max-width: 100% !important;
	margin: 30px 0 !important;
	padding: 24px !important;
	border: 1px solid var(--pi-progress-border) !important;
	border-radius: 3px !important;
	background: linear-gradient(135deg, #171c1e, #111516) !important;
	box-shadow: 0 18px 42px rgb(0 0 0 / 22%) !important;
}

.pi-tool-nav h2 {
	margin: 0 0 8px !important;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
	font-size: clamp(24px, 2.4vw, 32px) !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	letter-spacing: .25px !important;
	text-transform: uppercase;
}

.pi-tool-nav > p {
	max-width: 860px;
	margin: 0 0 20px !important;
	color: var(--pi-progress-muted) !important;
	line-height: 1.65 !important;
}

.pi-tool-nav-grid,
.pi-tool-nav-grid.pi-tool-nav-grid-3 {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	grid-auto-flow: row !important;
	align-items: stretch !important;
	gap: 14px !important;
	width: 100% !important;
}

.pi-tool-nav-grid > br,
.pi-tool-nav-grid > p:empty {
	display: none !important;
}

.pi-tool-nav-button {
	box-sizing: border-box !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 108px !important;
	height: 100% !important;
	justify-content: center !important;
	padding: 19px !important;
	border: 1px solid #30383b !important;
	border-radius: 2px !important;
	background: #0f1314 !important;
	box-shadow: none !important;
}

.pi-tool-nav-button::before {
	height: 3px !important;
}

.pi-tool-nav-button strong {
	margin-bottom: 7px !important;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
	font-size: 17px !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
	text-transform: uppercase;
}

.pi-tool-nav-button span {
	color: var(--pi-progress-muted) !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
}

.pi-tool-nav-button:hover,
.pi-tool-nav-button:focus-visible {
	transform: translateY(-2px) !important;
	border-color: var(--pi-progress-orange) !important;
	background: #171c1e !important;
	box-shadow: 0 12px 25px rgb(0 0 0 / 28%) !important;
}

.pi-tool-nav-button.pi-tool-nav-current {
	border-color: #7c898e !important;
	background: radial-gradient(circle at top right, rgb(255 255 255 / 14%), transparent 42%), #202628 !important;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%) !important;
}

/* Acties direct onder ieder berekend resultaat. */
.pi-progress-actions {
	box-sizing: border-box;
	width: 100%;
	margin: 18px 0 30px;
	padding: 22px;
	border: 1px solid var(--pi-progress-border);
	border-left: 4px solid var(--pi-progress-orange);
	border-radius: 2px;
	background: linear-gradient(135deg, var(--pi-progress-panel), var(--pi-progress-bg));
	color: #fff;
}

.pi-progress-actions,
.pi-progress-actions * {
	box-sizing: border-box;
}

.pi-progress-actions__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.pi-progress-actions__head > div:first-child {
	max-width: 610px;
}

.pi-progress-actions__head span,
.pi-progress-account-eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--pi-progress-orange);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pi-progress-actions h4 {
	margin: 0 0 7px !important;
	color: #fff !important;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
	font-size: 23px !important;
	font-weight: 900 !important;
	line-height: 1.05 !important;
	text-transform: uppercase;
}

.pi-progress-actions__head p,
.pi-progress-mail-form > p {
	margin: 0 !important;
	color: var(--pi-progress-muted) !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
}

.pi-progress-actions__buttons {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px;
}

.pi-progress-actions__mail-target {
	flex-basis: 100%;
	margin: 1px 0 0 !important;
	color: var(--pi-progress-muted) !important;
	font-size: 11px !important;
	line-height: 1.35 !important;
	text-align: right;
}

.pi-progress-actions__mail-target strong {
	color: #fff;
}

.pi-progress-action-button,
.pi-progress-account-primary,
.pi-progress-account-card footer button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 16px;
	border: 1px solid #596367 !important;
	border-radius: 2px;
	background: #111516 !important;
	color: #fff !important;
	font: 800 12px/1.2 Arial, sans-serif !important;
	letter-spacing: .3px;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
}

.pi-progress-action-button.is-primary,
.pi-progress-account-primary,
.pi-progress-mail-form .pi-progress-action-button.is-primary {
	border-color: var(--pi-progress-orange) !important;
	background: var(--pi-progress-orange) !important;
	color: #101314 !important;
}

.pi-progress-action-button:hover,
.pi-progress-action-button:focus-visible,
.pi-progress-account-primary:hover,
.pi-progress-account-primary:focus-visible,
.pi-progress-account-card footer button:hover,
.pi-progress-account-card footer button:focus-visible {
	border-color: #ffb33f;
	background: #ffb33f !important;
	color: #101314 !important;
}

.pi-progress-action-button:disabled {
	cursor: wait;
	opacity: .62;
}

/* Houd de actielaag buiten de generieke knop- en labelstijl van calculators. */
.pi-1rm-calculator .pi-progress-actions .pi-progress-action-button,
.pi-calorie-calculator .pi-progress-actions .pi-progress-action-button,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-action-button {
	min-height: 44px !important;
	margin: 0 !important;
	padding: 11px 16px !important;
	border: 1px solid #596367 !important;
	border-radius: 2px !important;
	background: #111516 !important;
	box-shadow: none !important;
	color: #fff !important;
	font: 800 12px/1.2 Arial, sans-serif !important;
	letter-spacing: .3px !important;
	transform: none !important;
}

.pi-1rm-calculator .pi-progress-actions .pi-progress-action-button.is-primary,
.pi-calorie-calculator .pi-progress-actions .pi-progress-action-button.is-primary,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-action-button.is-primary {
	border-color: var(--pi-progress-orange) !important;
	background: var(--pi-progress-orange) !important;
	color: #101314 !important;
}

.pi-1rm-calculator .pi-progress-actions .pi-progress-action-button:hover,
.pi-1rm-calculator .pi-progress-actions .pi-progress-action-button:focus-visible,
.pi-calorie-calculator .pi-progress-actions .pi-progress-action-button:hover,
.pi-calorie-calculator .pi-progress-actions .pi-progress-action-button:focus-visible,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-action-button:hover,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-action-button:focus-visible {
	border-color: #ffb33f !important;
	background: #ffb33f !important;
	color: #101314 !important;
}

.pi-progress-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #30383b;
	color: #dbe1e3;
	font-size: 13px;
	line-height: 1.55;
}

.pi-1rm-calculator .pi-progress-actions .pi-progress-consent,
.pi-calorie-calculator .pi-progress-actions .pi-progress-consent,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-consent {
	display: flex !important;
	margin: 18px 0 0 !important;
	padding-top: 16px !important;
	font-size: 13px !important;
	font-weight: 400 !important;
}

.pi-progress-consent input {
	width: 19px !important;
	height: 19px !important;
	min-width: 19px;
	margin: 1px 0 0 !important;
	accent-color: var(--pi-progress-orange);
}

.pi-progress-consent input:focus-visible,
.pi-progress-account-details summary:focus-visible,
.pi-progress-account-inputs summary:focus-visible,
.pi-progress-account-report summary:focus-visible {
	outline: 2px solid var(--pi-progress-orange) !important;
	outline-offset: 3px !important;
}

.pi-progress-consent a {
	color: var(--pi-progress-orange) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.pi-progress-mail-form {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	align-items: end;
	gap: 10px;
	margin-top: 16px;
	padding: 16px;
	border: 1px solid #30383b;
	background: #0d1112;
}

.pi-progress-mail-form[hidden] {
	display: none !important;
}

.pi-progress-mail-field label {
	display: grid;
	gap: 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.pi-1rm-calculator .pi-progress-actions .pi-progress-mail-field label,
.pi-calorie-calculator .pi-progress-actions .pi-progress-mail-field label,
.pi-bodycomp-calculator .pi-progress-actions .pi-progress-mail-field label {
	display: grid !important;
	margin: 0 !important;
	font-size: 12px !important;
}

.pi-progress-mail-field input {
	width: 100% !important;
	min-height: 44px !important;
	padding: 10px 12px !important;
	border: 1px solid #596367 !important;
	border-radius: 2px !important;
	background: #151a1c !important;
	color: #fff !important;
}

.pi-progress-mail-field p {
	margin: 0;
	color: #dbe1e3;
	font-size: 13px;
}

.pi-progress-mail-form > p {
	grid-column: 1 / -1;
}

.pi-progress-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.pi-progress-action-status {
	min-height: 20px;
	margin: 13px 0 0 !important;
	color: #6ee7a6 !important;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.5 !important;
}

.pi-progress-action-status:empty {
	display: none;
}

.pi-progress-action-status.is-error {
	color: #ff8e8e !important;
}

.pi-progress-account-link {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* Afgeschermde weergave in Mijn account. */
.pi-progress-account {
	color: #fff;
}

.pi-progress-account-intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
	padding: 22px;
	border: 1px solid var(--pi-progress-border);
	border-left: 4px solid var(--pi-progress-orange);
	background: var(--pi-progress-panel);
}

.pi-progress-account-intro h2 {
	margin: 0 0 8px !important;
	color: #fff !important;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
	font-size: 25px !important;
	text-transform: uppercase;
}

.pi-progress-account-intro p {
	max-width: 690px;
	margin: 0 !important;
	color: var(--pi-progress-muted) !important;
	line-height: 1.6 !important;
}

.pi-progress-account-notice {
	margin: 0 0 16px;
	padding: 13px 15px;
	border-left: 4px solid #58d68d;
	background: #13231a;
	color: #b8f4cf;
}

.pi-progress-account-notice.is-error {
	border-color: #ff6b6b;
	background: #291617;
	color: #ffc0c0;
}

.pi-progress-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: stretch;
	gap: 14px;
}

.pi-progress-account-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--pi-progress-border);
	border-top: 3px solid var(--pi-progress-orange);
	background: var(--pi-progress-card);
}

.pi-progress-account-card--1rm { border-top-color: #5ab7ff; }
.pi-progress-account-card--calorie { border-top-color: #47d18c; }
.pi-progress-account-card--bodycomp { border-top-color: #ff7ab6; }

.pi-progress-account-card header > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pi-progress-account-card header h3 {
	margin: 0 !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.pi-progress-account-card time {
	color: var(--pi-progress-muted);
	font-size: 11px;
}

.pi-progress-account-card header > strong {
	display: block;
	margin: 14px 0 16px;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 29px;
	line-height: 1;
	overflow-wrap: anywhere;
}

.pi-progress-account-card dl {
	margin: 0;
}

.pi-progress-account-card dl > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid #2c3437;
}

.pi-progress-account-card dt {
	color: var(--pi-progress-muted);
}

.pi-progress-account-card dd {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-align: right;
	overflow-wrap: anywhere;
}

.pi-progress-account-details,
.pi-progress-account-metrics,
.pi-progress-account-inputs,
.pi-progress-account-report {
	margin-top: 14px;
	border-top: 1px solid #2c3437;
}

.pi-progress-account-details summary,
.pi-progress-account-inputs summary,
.pi-progress-account-report summary {
	padding: 13px 2px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.45;
	cursor: pointer;
	user-select: none;
}

.pi-progress-account-details summary::marker {
	color: var(--pi-progress-orange);
}

.pi-progress-account-details[open] summary,
.pi-progress-account-inputs[open] summary,
.pi-progress-account-report[open] summary {
	color: var(--pi-progress-orange);
}

.pi-progress-account-details > dl {
	margin-bottom: 2px;
	padding: 0 10px 4px;
	border: 1px solid #2c3437;
	background: #0b0f10;
}

.pi-progress-account-report > div {
	max-height: 360px;
	overflow: auto;
	padding: 14px;
	border: 1px solid #2c3437;
	background: #0b0f10;
	color: #d7dee0;
	font-size: 12px;
	line-height: 1.65;
}

.pi-progress-account-report > div:focus-visible {
	outline: 2px solid var(--pi-progress-orange);
	outline-offset: 2px;
}

.pi-progress-account-card footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 18px;
}

.pi-progress-account-card footer form {
	margin: 0;
}

.pi-progress-account-card footer button.is-delete,
.pi-progress-account-delete-all button {
	border-color: #714043;
	color: #ffb4b4 !important;
}

.pi-progress-account-empty {
	padding: 30px;
	border: 1px solid var(--pi-progress-border);
	background: var(--pi-progress-panel);
	text-align: center;
}

.pi-progress-account-empty strong {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
}

.pi-progress-account-empty p {
	color: var(--pi-progress-muted);
}

.pi-progress-account-empty a {
	color: var(--pi-progress-orange) !important;
	font-weight: 800;
}

.pi-progress-account-delete-all {
	margin-top: 18px;
	text-align: right;
}

.pi-progress-account-delete-all button {
	padding: 10px 13px;
	border: 1px solid #714043;
	background: transparent;
	font-weight: 800;
	cursor: pointer;
}

@media (max-width: 860px) {
	.pi-tool-nav-grid,
	.pi-tool-nav-grid.pi-tool-nav-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.pi-progress-actions__head,
	.pi-progress-account-intro {
		align-items: stretch;
		flex-direction: column;
	}

	.pi-progress-actions__buttons {
		justify-content: flex-start;
	}

	.pi-progress-actions__mail-target {
		text-align: left;
	}
}

@media (max-width: 620px) {
	.pi-tool-nav {
		padding: 18px !important;
	}

	.pi-tool-nav-grid,
	.pi-tool-nav-grid.pi-tool-nav-grid-3 {
		grid-template-columns: 1fr !important;
	}

	.pi-tool-nav-button {
		min-height: 92px !important;
	}

	.pi-progress-actions {
		padding: 18px;
	}

	.pi-progress-actions__buttons,
	.pi-progress-action-button,
	.pi-progress-account-primary {
		width: 100%;
	}

	.pi-progress-mail-form {
		grid-template-columns: 1fr;
	}

	.pi-progress-account-card header > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.pi-progress-account-card dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.pi-progress-account-card dd {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pi-tool-nav-button {
		transition: none !important;
	}

	.pi-tool-nav-button:hover {
		transform: none !important;
	}
}
