.helyx-app-main {
	max-width: 40rem;
	margin: 0 auto;
}

.helyx-app-main:has(.helyx-site) {
	max-width: 72rem;
}

.helyx-draft {
	border: 1px solid var(--ink);
	padding: 0.85rem 1rem;
	margin: 1rem 0;
}

#helyx-consent-body {
	white-space: pre-wrap;
}

.helyx-money {
	margin: 1.15rem 0 1.35rem;
	max-width: 24rem;
}

.helyx-app-main h1 {
	font-size: clamp(2rem, 6vw, 3.2rem);
	line-height: 1.05;
	margin: 0 0 0.75rem;
}

.helyx-form {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

.helyx-form label,
.helyx-form fieldset {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--muted);
	border: 0;
	padding: 0;
	margin: 0;
}

.helyx-form input,
.helyx-form textarea,
.helyx-form select {
	font: inherit;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--ink);
	padding: 0.7rem 0.8rem;
	width: 100%;
	box-sizing: border-box;
}

.helyx-form button,
.helyx-actions .wp-block-button__link {
	justify-self: start;
}

.helyx-inline {
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
}

.helyx-inline input {
	width: auto;
}

.helyx-muted,
.helyx-note {
	color: var(--muted);
	font-size: 0.95rem;
}

.helyx-flash {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rule);
}

.helyx-stage {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}

.helyx-swatches {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
}

.helyx-swatch {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--ink);
}

.helyx-specimen {
	font-size: 2rem;
	line-height: 1.1;
	margin: 0.5rem 0;
}

.helyx-block {
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--rule);
}

.helyx-progress {
	height: 2px;
	background: var(--rule);
	margin: 1.5rem 0 0.5rem;
}

.helyx-progress span {
	display: block;
	height: 2px;
	width: 0;
	background: var(--rust);
}

.helyx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 2rem;
}

.helyx-instruction {
	white-space: pre-wrap;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9rem;
	background: var(--cream);
	border: 1px solid var(--rule);
	padding: 1rem;
}

.helyx-queue {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.helyx-queue th,
.helyx-queue td {
	text-align: left;
	padding: 0.65rem 0.4rem;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.helyx-inline-form {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.35rem 0.75rem 0.35rem 0;
}

.helyx-inline-form button {
	font: inherit;
	background: var(--ink);
	color: var(--cream);
	border: 0;
	padding: 0.35rem 0.7rem;
}

.helyx-checkout-copy {
	max-width: 40rem;
	margin: 0 auto 1.5rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--rule);
}

.helyx-app .woocommerce,
.helyx-app .woocommerce-page {
	max-width: 40rem;
}

.helyx-site-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.helyx-site-head h1 {
	margin: 0;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.helyx-site-head .helyx-lead {
	margin: 0.35rem 0 0;
}

.helyx-site-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.helyx-site-layout {
	display: grid;
	gap: 1.25rem;
}

.helyx-card {
	background: var(--cream, #faf7f1);
	border: 1px solid var(--rule, #d4cbbb);
	padding: 1.25rem 1.35rem 1.4rem;
	min-width: 0;
}

.helyx-card h2 {
	margin: 0 0 1rem;
	font-size: 1.55rem;
}

.helyx-card h3 {
	margin: 1.25rem 0 0.55rem;
	font-size: 1.15rem;
}

.helyx-site .helyx-facts {
	margin: 0;
}

.helyx-facts--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1.5rem;
}

.helyx-site .helyx-facts div {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.helyx-site dt {
	color: var(--muted, #5e574c);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.helyx-site dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.helyx-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.helyx-tile {
	background: var(--paper, #f3eee6);
	border: 1px solid var(--rule, #d4cbbb);
	padding: 0.85rem 0.9rem 0.95rem;
}

.helyx-tile h3 {
	margin: 0.45rem 0 0.25rem;
}

.helyx-tile p {
	margin: 0;
	font-size: 0.92rem;
}

.helyx-chip {
	display: inline-block;
	margin: 0;
	padding: 0.2rem 0.55rem;
	border: 1px solid #8a8175;
	border-radius: 999px;
	background: #e8e1d4;
	color: #3f382f;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.helyx-chip[data-state="ok"] {
	background: #e4efe8;
	border-color: #1d6b45;
	color: #143d28;
}

.helyx-chip[data-state="attention"] {
	background: #f8efd8;
	border-color: #8a5a12;
	color: #5c3b08;
}

.helyx-chip[data-state="unknown"] {
	background: #e8e1d4;
	border-color: #8a8175;
	color: #3f382f;
}

.helyx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--rust, #a33b24);
	border-radius: 2px;
	background: var(--rust, #a33b24);
	color: var(--cream, #faf7f1);
	font: 600 0.875rem/1.2 'IBM Plex Sans', 'Segoe UI', sans-serif;
	text-decoration: none;
	cursor: pointer;
}

.helyx-btn:hover {
	background: var(--rust-ink, #7c2d1c);
	border-color: var(--rust-ink, #7c2d1c);
	color: var(--cream, #faf7f1);
}

.helyx-btn--ghost {
	background: transparent;
	color: var(--ink, #1a1714);
	border-color: var(--ink, #1a1714);
}

.helyx-btn--ghost:hover {
	background: var(--ink, #1a1714);
	color: var(--cream, #faf7f1);
}

.helyx-btn--danger,
.helyx-btn--danger:hover {
	background: var(--rust, #a33b24);
	border-color: var(--rust, #a33b24);
	color: var(--cream, #faf7f1);
}

.helyx-swatch-grid,
.helyx-pages,
.helyx-periods,
.helyx-recording-list,
.helyx-report-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.helyx-swatch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: 0.85rem;
}

.helyx-swatch-grid li {
	display: grid;
	gap: 0.35rem;
}

.helyx-swatch-block {
	display: block;
	height: 4.5rem;
	border: 1px solid var(--ink, #1a1714);
}

.helyx-swatch-name {
	font-weight: 600;
	text-transform: capitalize;
}

.helyx-swatch-hex,
.helyx-draft-note {
	color: var(--muted, #5e574c);
	font-size: 0.85rem;
}

.helyx-draft-note {
	margin: -0.35rem 0 1rem;
}

.helyx-font-samples {
	display: grid;
	gap: 0.35rem;
}

.helyx-font-display {
	margin: 0.2rem 0 0;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.1;
}

.helyx-font-body {
	margin: 0.8rem 0 0;
	font-size: 1.05rem;
}

.helyx-pages li,
.helyx-periods li,
.helyx-recording {
	display: grid;
	gap: 0.2rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--rule, #d4cbbb);
}

.helyx-summary {
	font-size: 1.15rem;
	max-width: 42rem;
}

.helyx-recording-list {
	display: grid;
	gap: 0.85rem;
}

.helyx-recording {
	border: 1px solid var(--rule, #d4cbbb);
	background: var(--paper, #f3eee6);
	padding: 0.95rem 1rem 1.05rem;
}

.helyx-recording h3,
.helyx-report h3 {
	margin: 0;
}

.helyx-recording header p,
.helyx-report p {
	margin: 0.35rem 0 0;
}

.helyx-recording-tools,
.helyx-report-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: flex-start;
	margin-top: 0.85rem;
}

.helyx-reveal {
	min-width: min(100%, 22rem);
}

.helyx-reveal > summary {
	list-style: none;
	width: fit-content;
}

.helyx-reveal > summary::-webkit-details-marker {
	display: none;
}

.helyx-reveal > summary:focus-visible,
.helyx-site a:focus-visible,
.helyx-site button:focus-visible,
.helyx-site input:focus-visible {
	outline: 3px solid var(--rust, #a33b24);
	outline-offset: 2px;
}

.helyx-reveal .helyx-form {
	margin-top: 0.85rem;
}

.helyx-form label.helyx-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--ink, #1a1714);
}

.helyx-form label.helyx-check input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.helyx-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.2rem;
	border-left: 2px solid var(--rule, #d4cbbb);
}

.helyx-timeline li {
	position: relative;
	padding: 0 0 1.15rem 1.15rem;
}

.helyx-timeline li::before {
	content: "";
	position: absolute;
	left: -0.42rem;
	top: 0.35rem;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--rust, #a33b24);
}

.helyx-timeline time {
	display: block;
	color: var(--muted, #5e574c);
	font-size: 0.82rem;
}

.helyx-timeline p {
	margin: 0.15rem 0 0;
}

.helyx-report-list {
	display: grid;
	gap: 0.85rem;
}

.helyx-report {
	border: 1px solid var(--rule, #d4cbbb);
	background: var(--paper, #f3eee6);
	padding: 0.95rem 1rem 1.05rem;
}

.helyx-periods li {
	grid-template-columns: 11rem 1fr;
	align-items: baseline;
	gap: 0.75rem;
}

.helyx-danger-inline {
	margin: 0;
}

.helyx-danger {
	margin-top: 1.25rem;
	border: 1px solid var(--rust, #a33b24);
	background: #faf7f1;
	padding: 1rem 1.05rem 1.1rem;
}

.helyx-danger h3 {
	margin-top: 0;
	color: var(--rust-ink, #7c2d1c);
}

.helyx-back {
	margin-top: 1.5rem;
}

@media (min-width: 800px) {
	.helyx-site-layout {
		grid-template-columns: 1.15fr 0.85fr;
	}

	.helyx-span {
		grid-column: 1 / -1;
	}

	.helyx-tiles {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 799px) {
	.helyx-site-head,
	.helyx-periods li,
	.helyx-facts--two {
		display: grid;
		grid-template-columns: 1fr;
	}

	.helyx-site-actions,
	.helyx-recording-tools,
	.helyx-report-actions {
		justify-content: stretch;
	}

	.helyx-site-actions .helyx-btn,
	.helyx-recording-tools .helyx-btn,
	.helyx-report-actions .helyx-btn,
	.helyx-reveal {
		width: 100%;
	}

	.helyx-reveal > summary {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.helyx-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.helyx-form button,
	.helyx-actions .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}
