.tpcf-designer-step {
	width: calc(100% - var(--tpcf-gutters));
	max-width: var(--tpcf-content-width);
	margin-inline: auto;
	padding-bottom: 3rem;
	color: var(--tpcf-ink);
	font: .9375rem/1.55 'Open Sans', Arial, sans-serif;
}

.tpcf-proof-previews, .tpcf-proof-review {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tpcf-proof-previews { margin-bottom: 1rem; }
.tpcf-proof-previews--multi { grid-template-columns: minmax(9rem, .64fr) repeat(2, minmax(0, 1fr)); }

.tpcf-proof-preview, .tpcf-step-panel, .tpcf-proof-records {
	min-width: 0;
	border: 1px solid var(--tpcf-border);
	border-radius: .75rem;
	background: var(--tpcf-surface);
}

.tpcf-proof-preview { margin: 0; overflow: hidden; }

.tpcf-proof-preview figcaption, .tpcf-proof-records h2 {
	margin: 0;
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--tpcf-border);
	color: var(--tpcf-ink);
	font: 700 .875rem/1.4 'Open Sans', Arial, sans-serif;
}

.tpcf-proof-stage {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	height: clamp(16rem, 42vw, 28rem);
	padding: 1rem;
	background: var(--tpcf-wash);
}

.tpcf-proof-previews--multi .tpcf-proof-stage { height: clamp(15rem, 38vw, 23rem); }

.tpcf-proof-stage .proof {
	position: relative;
	z-index: 1;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tpcf-proof-stage .proof:not([src="/images/sp.gif"]) {
	border-radius: .4rem;
	background: var(--tpcf-surface);
	box-shadow: 0 5px 18px #102d3f24;
}

.tpcf-proof-stage .tpcf-proof-spinner { position: absolute; color: var(--tpcf-teal); font-size: 1.6rem; }
.tpcf-proof-stage:is([data-state="ready"], [data-state="error"]) .tpcf-proof-spinner { display: none; }

.tpcf-step-panel { padding: clamp(1rem, 2.7vw, 1.5rem); }

.tpcf-proof-review .tpcf-proof-heading {
	display: block;
	margin: 0 0 .6rem;
	padding: 0;
	color: var(--tpcf-ink);
	font: 600 1.25rem/1.25 museo_slab500, Georgia, serif;
}

.tpcf-proof-review .card_name {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	margin: 0 0 1.3rem;
	padding: .55rem .7rem;
	border: 1px solid #9db1b5;
	border-radius: .4rem;
	background: var(--tpcf-surface);
	color: var(--tpcf-ink);
	font: inherit;
}

.tpcf-proof-checks { min-width: 0; margin: 0; padding: 0; border: 0; }

.tpcf-proof-checks label {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .35rem 0;
	cursor: pointer;
}

.tpcf-proof-checks input[type="checkbox"] { flex: none; width: 1rem; height: 1rem; margin: .25em 0 0; accent-color: var(--tpcf-teal); }
.tpcf-proof-review .tpcf-proof-print-note, .tpcf-proof-review .tpcf-proof-note { margin: .8rem 0 0; color: var(--tpcf-muted); font-size: .875rem; }
.tpcf-proof-print-note .fa { margin-right: .2rem; color: var(--tpcf-teal); }

.tpcf-proof-actions { display: grid; gap: .55rem; margin-bottom: 1rem; }

.tpcf-designer-step .tpcf-step-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	box-sizing: border-box;
	min-height: 2.75rem;
	margin: 0;
	padding: .6rem .85rem;
	border: 1px solid #9fbab8;
	border-radius: .5rem;
	background: var(--tpcf-surface);
	color: var(--tpcf-teal-dark);
	font: 700 .875rem/1.3 'Open Sans', Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.tpcf-designer-step .tpcf-step-button:hover { background: var(--tpcf-wash); }
.tpcf-designer-step .tpcf-step-button--primary { border-color: var(--tpcf-teal); background: var(--tpcf-teal); color: #fff; }
.tpcf-designer-step .tpcf-step-button--primary:hover { border-color: var(--tpcf-teal-dark); background: var(--tpcf-teal-dark); }
.tpcf-designer-step .tpcf-step-button--danger { border-color: #d8a4a9; color: var(--tpcf-danger); }
.tpcf-designer-step .tpcf-step-button--danger:hover { background: #fff3f4; }

.tpcf-designer-step :is(.tpcf-step-button, .card_name, .tpcf-proof-checks input, .tpcf-proof-record, .multi_input, .tpcf-multi-table-scroll, .tpcf-proof-record-list, a):focus-visible,
.tpcf-designer-step .tpcf-step-upload:focus-within {
	outline: 2px solid #087f94;
	outline-offset: 2px;
}

.tpcf-step-notice {
	display: flex;
	align-items: baseline;
	gap: .65rem;
	padding: .8rem 1rem;
	border: 1px solid var(--tpcf-border);
	border-radius: .5rem;
	background: var(--tpcf-wash);
	color: var(--tpcf-ink);
	font-size: .875rem;
}

.tpcf-step-notice > .fa { flex: none; color: var(--tpcf-teal); }
.tpcf-step-notice--warning { border-color: #e5b7bc; background: #fff3f4; }
.tpcf-step-notice--warning > .fa, .tpcf-step-notice--warning div > strong { color: var(--tpcf-danger); }
.tpcf-step-notice p { margin: .45rem 0 0; }
.tpcf-designer-step > .tpcf-step-notice { margin: 0 0 1rem; }

.tpcf-proof-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0 0 .85rem; }
.tpcf-proof-progress { min-width: 6.75rem; text-align: center; }
.tpcf-proof-progress span { display: block; color: var(--tpcf-muted); font-size: .8125rem; }
.tpcf-proof-navigation .tpcf-step-button--mark { margin-left: auto; }
.tpcf-proof-navigation .tpcf-step-button:is(:disabled, [aria-disabled="true"]) { opacity: .55; cursor: default; }
.tpcf-proof-error { align-items: center; justify-content: space-between; }
.tpcf-proof-error[hidden] { display: none; }
.tpcf-proof-error p { margin: 0; }

.tpcf-proof-records { overflow: hidden; }
.tpcf-proof-record-list { display: grid; align-content: start; gap: .35rem; max-height: 22rem; overflow-y: auto; padding: .55rem; }

.tpcf-proof-records .tpcf-proof-record {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	width: 100%;
	min-height: 2.75rem;
	padding: .55rem .6rem;
	border: 1px solid var(--tpcf-border);
	border-radius: .4rem;
	background: var(--tpcf-surface);
	color: var(--tpcf-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.tpcf-proof-records .tpcf-proof-record:hover, .tpcf-proof-records .tpcf-proof-record:focus { border-color: #8eb4af; background: var(--tpcf-wash); }
.tpcf-proof-records .tpcf-proof-record[aria-current="true"] { border-color: var(--tpcf-teal); background: var(--tpcf-wash); }
.tpcf-proof-record .fa { flex: none; color: var(--tpcf-teal); }
.tpcf-proof-record > span { min-width: 0; }
.tpcf-proof-record strong { display: block; font-size: .85rem; }
.tpcf-proof-record-detail { display: block; overflow: hidden; color: var(--tpcf-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.tpcf-proof-review-status { display: inline-block; margin-top: .2rem; padding: .1rem .4rem; border-radius: 1rem; background: #fff3d9; color: #764b0b; font-size: .72rem; font-weight: 700; }
.tpcf-proof-record.is-reviewed .tpcf-proof-review-status { background: #e1f2ed; color: #1d614f; }

.tpcf-data-toolbar, .tpcf-data-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.tpcf-data-toolbar { margin: 0 0 .8rem; }
.tpcf-data-actions { justify-content: space-between; margin-top: 1.25rem; }

.tpcf-designer-step .tpcf-step-upload input {
	inset: 0;
	width: 100%;
	height: 100%;
	font-size: 1rem;
}

.tpcf-designer-step .tpcf-step-upload.disabled { opacity: .55; cursor: default; }

.tpcf-multi-table-title, .tpcf-multi-table-scroll {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--tpcf-border);
}

.tpcf-multi-table-title { overflow: hidden; border-radius: .65rem .65rem 0 0; border-color: var(--tpcf-navy); background: var(--tpcf-navy); }
.tpcf-multi-table-scroll { min-height: 6.25rem; overflow-x: auto; border-top: 0; border-radius: 0 0 .65rem .65rem; background: var(--tpcf-surface); }

.tpcf-multi-table-title .multi_title_table td {
	min-width: 140px;
	padding: .5rem .55rem;
	border-right: 1px solid #ffffff30;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.tpcf-multi-table-title .multi_title_table td:first-child { min-width: 40px; text-align: center; }
.tpcf-multi-table-title .multi_title_table td:nth-last-child(2) { min-width: 80px; }
.tpcf-multi-table-title .multi_title_table td:last-child { min-width: 20px; border: 0; }
.tpcf-multi-field-name { display: block; max-width: calc(140px - 1.1rem - 1px); overflow: hidden; text-overflow: ellipsis; }

.tpcf-multi-table-scroll .multi_inner_table td { border-color: var(--tpcf-border); }
.tpcf-multi-table-scroll .multi_inner_first_td { background: var(--tpcf-wash); color: var(--tpcf-teal-dark); font-weight: 700; }
.tpcf-multi-table-scroll .multi_input { min-height: 2.75rem; padding-inline: .5rem; color: var(--tpcf-ink); font-size: .875rem; }
.tpcf-multi-table-scroll .multi_input:focus-visible { outline-offset: -2px; }

.tpcf-designer-step .tpcf-multi-remove {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: .35rem;
	background: transparent;
	color: var(--tpcf-danger);
	cursor: pointer;
}

.tpcf-designer-step .tpcf-multi-remove:hover,
.tpcf-designer-step .tpcf-multi-remove:focus-visible { border-color: #e5b7bc; background: #fff3f4; }

.tpcf-designer-step #multi_upload_status { max-width: 100%; }

@media (max-width: 760px) {
	.tpcf-proof-previews--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpcf-proof-records { grid-column: 1 / -1; }
	.tpcf-proof-record-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); max-height: 11rem; }
}

@media (max-width: 540px) {
	.tpcf-proof-previews, .tpcf-proof-review { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.tpcf-proof-stage .tpcf-proof-spinner { animation: none; }
}
