.hpcd {
	--ink: #0f1b27;
	--muted: #5b6b7a;
	--line: #d5dbe1;
	--bench: #e9edf0;
	--cyan: #0a8fbf;
	--cyan-tint: #e5f4fa;
	--magenta: #d62f78;
	--yellow: #f4c20d;
	--bad: #b3261e;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	color: var(--ink);
	font-family: Bahnschrift, "Segoe UI", system-ui, -apple-system, sans-serif;
	line-height: 1.45;
}
.hpcd *, .hpcd *::before, .hpcd *::after { box-sizing: border-box; }

.hpcd-head { margin-bottom: 28px; }
.hpcd-kicker { margin: 0 0 4px; color: var(--cyan); font-weight: 600; }
.hpcd-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; }

.hpcd-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) {
	.hpcd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
	.hpcd-side { position: sticky; top: 24px; }
}

/* Steps */
.hpcd-step { padding: 22px 0; border-top: 1px solid var(--line); }
.hpcd-step:first-child { border-top: 2px solid var(--ink); }
.hpcd-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.15rem; }
.hpcd-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }

.hpcd-choices { display: grid; gap: 10px; }
.hpcd-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpcd-gap { margin-top: 10px; }
@media (max-width: 480px) { .hpcd-choices--2 { grid-template-columns: minmax(0, 1fr); } }

.hpcd-opt, .hpcd-design {
	appearance: none; cursor: pointer; text-align: left; font: inherit; color: inherit;
	background: #fff; border: 1.5px solid var(--line); border-radius: 6px; padding: 12px 14px;
	display: flex; flex-direction: column; gap: 2px;
	transition: border-color .15s, background-color .15s;
}
.hpcd-opt small { color: var(--muted); }
.hpcd-opt:hover, .hpcd-design:hover { border-color: var(--ink); }
.hpcd-opt[aria-checked="true"], .hpcd-design[aria-checked="true"] { border-color: var(--cyan); background: var(--cyan-tint); box-shadow: inset 0 0 0 1px var(--cyan); }
.hpcd-opt:focus-visible, .hpcd-design:focus-visible, .hpcd-nav:focus-visible, .hpcd-qbtn:focus-visible, .hpcd-cta:focus-visible, .hpcd-input:focus-visible {
	outline: 3px solid var(--ink); outline-offset: 2px;
}

.hpcd-designs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .hpcd-designs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hpcd-design { padding: 8px; gap: 8px; }
.hpcd-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 3px; background-size: cover; background-position: center; }
.hpcd-thumb--up { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f4f6f8, #f4f6f8 8px, #eaeef1 8px, #eaeef1 16px); border: 1.5px dashed #9aa7b3; }
.hpcd-plus { font-size: 1.8rem; line-height: 1; color: var(--muted); }
.hpcd-dname { font-weight: 600; font-size: .95rem; }

.hpcd-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.hpcd-note.is-bad { color: var(--bad); }

.hpcd-input { width: 100%; padding: 13px 14px; font: inherit; color: inherit; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }
.hpcd-input:hover { border-color: var(--ink); }

.hpcd-qty { display: flex; align-items: center; gap: 8px; }
.hpcd-qty input { width: 76px; padding: 10px; text-align: center; font: inherit; border: 1.5px solid var(--line); border-radius: 6px; }
.hpcd-qbtn { width: 40px; height: 40px; font-size: 1.2rem; line-height: 1; cursor: pointer; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; color: var(--ink); }
.hpcd-qbtn:hover { border-color: var(--ink); }

/* Proof sheet */
.hpcd-bench { background: var(--bench); border-radius: 8px; padding: 18px 18px 14px; }
.hpcd-livelabel { margin: 0 0 14px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.hpcd-proof { position: relative; width: min(100%, calc(62vh * var(--ratio, .707))); max-width: 100%; margin: 0 auto; padding: 22px; container-type: inline-size; }
.hpcd-mark { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.hpcd-mark--tl { top: 0; left: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hpcd-mark--tr { top: 0; right: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hpcd-mark--bl { bottom: 0; left: 0; border-right-width: 1px; border-top-width: 1px; }
.hpcd-mark--br { bottom: 0; right: 0; border-left-width: 1px; border-top-width: 1px; }

.hpcd-sheet { display: flex; flex-direction: column; width: 100%; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 39, .25), 0 10px 24px -12px rgba(15, 27, 39, .35); overflow: hidden; }
.hpcd-art { position: relative; flex: 0 0 56%; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: space-between; padding: 7cqw 8cqw; }
.hpcd-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%); }
.hpcd-year, .hpcd-caption { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hpcd-year { font-size: 11cqw; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.hpcd-caption { font-size: 5.2cqw; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.hpcd-caption.is-placeholder { opacity: .7; font-weight: 400; }

.hpcd-cal { flex: 1; padding: 4cqw 6cqw 5cqw; display: flex; flex-direction: column; min-height: 0; }
.hpcd-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5cqw; }
.hpcd-month { font-size: 5.6cqw; font-weight: 700; text-transform: capitalize; }
.hpcd-nav { width: 8cqw; height: 8cqw; min-width: 28px; min-height: 28px; display: grid; place-items: center; font-size: 5cqw; line-height: 1; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.hpcd-nav:hover { border-color: var(--ink); }
.hpcd-grid { display: grid; grid-template-columns: repeat(7, 1fr); flex: 1; align-content: start; gap: 1.2cqw 0; text-align: center; font-size: 3.6cqw; font-variant-numeric: tabular-nums; }
.hpcd-dow { color: var(--muted); font-weight: 600; font-size: 3.2cqw; }
.hpcd-day.is-sun { color: var(--magenta); }

.hpcd-strip { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.hpcd-strip i { width: 22px; height: 6px; background: var(--cyan); }
.hpcd-strip i:nth-child(2) { background: var(--magenta); }
.hpcd-strip i:nth-child(3) { background: var(--yellow); }
.hpcd-strip i:nth-child(4) { background: var(--ink); }

/* Summary */
.hpcd-summary { margin-top: 18px; }
.hpcd-summary ul { list-style: none; margin: 0 0 12px; padding: 0; color: var(--muted); }
.hpcd-summary li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.hpcd-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
.hpcd-total span { font-weight: 600; }
.hpcd-total strong { font-size: 1.7rem; letter-spacing: -0.01em; }
.hpcd-cta { width: 100%; padding: 16px; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; color: #fff; background: var(--ink); border: 0; border-radius: 6px; transition: background-color .15s; }
.hpcd-cta:hover:not(:disabled) { background: var(--cyan); }
.hpcd-cta:disabled { background: #98a4af; cursor: not-allowed; }

.hpcd-error { padding: 16px; border: 1.5px solid var(--bad); border-radius: 6px; color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
	.hpcd * { transition: none !important; }
}
