.ed-zk {
	--zk-ink: #171717;
	--zk-accent: #ffdb00;
	--zk-line: #d7d7ce;
	--zk-surface: #f5f5f0;
	color: var(--zk-ink);
	overflow-wrap: anywhere;
}
.ed-zk [hidden] { display: none !important; }
.ed-zk :is(input,select,button) { font: inherit; }
.ed-zk fieldset {
	min-inline-size: 0;
	margin: 0 0 1rem;
	padding: .9rem;
	border: 1px solid var(--zk-line);
	background: var(--zk-surface);
}
.ed-zk legend { padding: 0 .35rem; font-weight: 750; }
.ed-zk fieldset p { margin: 0 0 .65rem; font-size: .925rem; }
.ed-zk :is(.ed-zk-settings,.ed-zk-lap-plans) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem),1fr));
	gap: .7rem;
}
.ed-zk label { display: grid; gap: .3rem; font-size: .875rem; font-weight: 650; }
.ed-zk :is(input:not([type=file]),select) {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	box-sizing: border-box;
	padding: .42rem .55rem;
	border: 1px solid #74746a;
	border-radius: .2rem;
	background: #fff;
	color: var(--zk-ink);
	font-size: 1rem;
}
.ed-zk :is(.ed-zk-stage,.ed-zk-stage-head) {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: .45rem;
	align-items: center;
	margin-bottom: .4rem;
}
.ed-zk-stage-head { font-size: .825rem; font-weight: 750; }
.ed-zk-stage span { font-size: .875rem; }
.ed-zk-stage:last-child { margin-bottom: 0; }
.ed-zk-toolbar { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.ed-zk button {
	min-height: 44px;
	padding: .5rem .75rem;
	background: #fff;
	color: var(--zk-ink);
	border: 1px solid #77776d;
	border-radius: .2rem;
	cursor: pointer;
	font-size: .875rem;
	font-weight: 700;
}
.ed-zk .ed-zk-primary { background: var(--zk-accent); border-color: #927b00; }
.ed-zk button:hover { box-shadow: inset 0 0 0 1px var(--zk-ink); }
.ed-zk :is(button,input,select,summary):focus-visible { outline: 2px solid #005fa8; outline-offset: 2px; }
.ed-zk-files { margin: .8rem 0; }
.ed-zk-files summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
.ed-zk-files .ed-zk-toolbar { margin-top: .5rem; }
.ed-zk-upload input { max-width: 100%; font-size: .875rem; }
.ed-zk-message { padding: .45rem .65rem; border-left: 3px solid #ae360a; background: #fff2e9; }
.ed-zk-result { margin-top: 1.25rem; border-top: 4px solid var(--zk-accent); padding-top: .8rem; }
.ed-zk-result-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ed-zk-result-head h2 { margin: 0; }
.ed-zk-result > p { margin: .6rem 0; }
.ed-zk-note { font-size: .9rem; }
.ed-zk-table-wrap { overflow-x: auto; }
.ed-zk table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .925rem; }
.ed-zk :is(td,th) { padding: .45rem; border-bottom: 1px solid var(--zk-line); text-align: left; }
.ed-zk thead { background: var(--zk-ink); color: #fff; }
.ed-zk td:nth-child(3) { font-weight: 750; font-variant-numeric: tabular-nums; }
.ed-zk td:nth-child(4) { max-width: 9rem; }
.ed-zk-invalid { background: #fff2e9; color: #762509; }
.ed-zk-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(100%); }
@media (max-width: 540px) {
	.ed-zk fieldset { padding: .55rem; }
	.ed-zk td, .ed-zk th { padding: .35rem; }
	.ed-zk-stage input { padding-inline: .3rem !important; }
}
@media print {
	body:has(.ed-zk-result:not([hidden])) .ed-zk-form,
	body:has(.ed-zk-result:not([hidden])) .ed-header,
	body:has(.ed-zk-result:not([hidden])) .ed-footer,
	body:has(.ed-zk-result:not([hidden])) .ed-zk-result button { display: none !important; }
	.ed-zk-table-wrap { overflow: visible; }
	.ed-zk table { min-width: 0; font-size: .8rem; color: #000; }
	.ed-zk thead { color: #000; }
	.ed-zk tr { break-inside: avoid; }
	.ed-zk :is(td,th) { padding: .22rem; }
	.ed-zk input { min-height: 0 !important; padding: 0 !important; border: 0 !important; font-size: .8rem !important; }
}

.ed-zk-image-output { margin-top: 1rem; padding: .75rem; border: 1px solid var(--zk-line); }
.ed-zk-image-output h3 { margin: 0 0 .55rem; font-size: 1.1rem; }
.ed-zk-image-output img { display: block; max-width: min(100%, 25rem); height: auto; margin-top: .65rem; border: 1px solid var(--zk-line); }
.ed-zk-download {
	display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px;
	padding: .5rem .75rem; border: 1px solid #927b00; border-radius: .2rem;
	background: var(--zk-accent); color: var(--zk-ink); text-decoration: none; font-weight: 750;
}
.ed-zk-image-output [data-zk="image-picker"] { min-width: 8rem; }
.ed-zk-cut-frame, .ed-zk .ed-zk-print-credit { display: none; }

@media print {
	.ed-zk-image-output { display: none !important; }
	.ed-zk .ed-zk-print-credit { display: block; font-size: 8pt; color: #444; }
	.ed-zk thead { background: #fff; }
	html.ed-zk-cut-mode body { margin: 0 !important; padding: 0 !important; color: #000; background: #fff; }
	html.ed-zk-cut-mode body > :not(.ed-zk-cut-frame) { display: none !important; }
	html.ed-zk-cut-mode .ed-zk-cut-frame { display: block; font: 9pt/1.25 Arial, sans-serif; }
	.ed-zk-cut-strip {
		box-sizing: border-box; display: inline-block; width: 44mm;
		padding: 2mm; margin: 0 2mm 3mm 0; vertical-align: top;
		border: 1px dashed #000; break-inside: avoid; page-break-inside: avoid;
	}
	.ed-zk-cut-strip h2 { font: bold 10pt/1.2 Arial, sans-serif; margin: 0 0 1mm; }
	.ed-zk-cut-strip p { margin: 0 0 1mm; font-size: 8pt; }
	.ed-zk-cut-strip table { width: 100%; border-collapse: collapse; }
	.ed-zk-cut-strip :is(th,td) { padding: .7mm 0; border-bottom: 1px solid #ccc; text-align: left; white-space: nowrap; }
	.ed-zk-cut-strip :is(th,td):last-child { text-align: right; font-weight: bold; }
	.ed-zk-cut-strip table + p { margin: 1mm 0 0; }
	.ed-zk-cut-strip .ed-zk-cut-credit { font-size: 7pt; color: #444; }
}


.ed-zk .ed-zk-mobile-rows { display: none; }
@media screen and (max-width: 740px) {
	.ed-zk .ed-zk-table-wrap { display: none; }
	.ed-zk .ed-zk-mobile-rows { display: block; list-style: none; margin: .75rem 0 0; padding: 0; }
	.ed-zk .ed-zk-checkpoint {
		box-sizing: border-box; margin: 0 0 .6rem; padding: .6rem .65rem;
		border: 1px solid var(--zk-line); border-inline-start: 3px solid #a88d00;
	}
	.ed-zk .ed-zk-checkpoint-head,
	.ed-zk .ed-zk-checkpoint-fields {
		display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem;
	}
	.ed-zk .ed-zk-checkpoint-head > *,
	.ed-zk .ed-zk-checkpoint-fields > * { flex: 1 1 0; min-width: 0; }
	.ed-zk .ed-zk-checkpoint-head strong,
	.ed-zk .ed-zk-checkpoint-fields strong,
	.ed-zk .ed-zk-checkpoint small { display: block; }
	.ed-zk .ed-zk-checkpoint small { color: #4d4d46; font-size: .78rem; line-height: 1.25; }
	.ed-zk .ed-zk-checkpoint-target { text-align: right; }
	.ed-zk .ed-zk-checkpoint-target strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
	.ed-zk .ed-zk-checkpoint-fields { margin-top: .5rem; }
	.ed-zk .ed-zk-checkpoint-fields label { font-size: .78rem; line-height: 1.25; }
	.ed-zk .ed-zk-checkpoint-fields input[type="time"] { max-width: 100%; }
	.ed-zk .ed-zk-checkpoint-fields strong { margin-top: .3rem; font-size: .9rem; }
}
