.jts-vm {
	box-sizing: border-box;
	max-width: 720px;
	margin: 28px auto;
	padding: 22px 18px 26px;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	font: inherit;
}

.jts-vm *,
.jts-vm *::before,
.jts-vm *::after {
	box-sizing: border-box;
}

.jts-vm [hidden] {
	display: none !important;
}

.jts-vm h2 {
	margin: 0 0 12px;
	font-size: 1.6rem;
	line-height: 1.2;
}

.jts-vm-copy p,
.jts-vm-done p,
.jts-vm-note,
.jts-vm-fine,
.jts-vm-status {
	margin: 0 0 12px;
	font-size: 1.05rem;
	line-height: 1.45;
	white-space: pre-line;
}

.jts-vm-fine {
	margin-top: -4px;
	color: #5c5c5c;
	font-size: 0.92rem;
}

.jts-vm-status:empty {
	display: none;
}

.jts-vm-stage {
	position: relative;
	background: #141414;
	border-radius: 12px;
	overflow: hidden;
	min-height: 200px;
}

.jts-vm-stage video {
	display: block;
	width: 100%;
	max-height: 70vh;
	height: auto;
	background: #141414;
}

.jts-vm-timer {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 10px 6px 26px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.jts-vm-timer::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -5px;
	border-radius: 50%;
	background: #e11d2e;
}

.jts-vm-stage.is-recording .jts-vm-timer::before {
	animation: jts-vm-blink 1s steps(2, start) infinite;
}

.jts-vm-timer.is-low {
	background: #e11d2e;
}

@keyframes jts-vm-blink {
	to {
		visibility: hidden;
	}
}

.jts-vm-controls,
.jts-vm-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.jts-vm-form {
	flex-direction: column;
	align-items: stretch;
}

.jts-vm button {
	font: inherit;
	cursor: pointer;
	min-height: 48px;
	padding: 10px 16px;
	border-radius: 8px;
	touch-action: manipulation;
}

.jts-vm button:focus-visible,
.jts-vm input:focus-visible,
.jts-vm textarea:focus-visible {
	outline: 2px solid #e11d2e;
	outline-offset: 2px;
}

.jts-vm-primary {
	background: #e11d2e;
	color: #fff;
	border: 0;
	font-weight: 700;
}

.jts-vm-stop {
	background: #1d2327;
	color: #fff;
	border: 0;
	font-weight: 700;
}

.jts-vm-ghost {
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #c3c4c7;
}

.jts-vm-primary:disabled {
	opacity: 0.65;
	cursor: wait;
}

.jts-vm-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
}

.jts-vm-opt {
	font-weight: 500;
	color: #5c5c5c;
}

.jts-vm input,
.jts-vm textarea {
	width: 100%;
	font: inherit;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
}

.jts-vm-check {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin: 8px 0 14px;
	font-weight: 600;
	line-height: 1.4;
}

.jts-vm-check input {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	flex: 0 0 auto;
}

.jts-vm-consent {
	padding: 12px;
	border: 1px solid #e11d2e;
	border-radius: 8px;
	background: #fff7f7;
}

.jts-vm-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.jts-vm-done h2 {
	margin-bottom: 8px;
}

@media (max-width: 600px) {
	.jts-vm {
		margin: 12px auto;
		padding: 16px 14px 20px;
		border-radius: 10px;
	}

	.jts-vm-controls .jts-vm-primary,
	.jts-vm-controls .jts-vm-stop,
	.jts-vm-controls [data-review],
	.jts-vm-controls [data-accept],
	.jts-vm-controls [data-retake] {
		flex: 1 1 100%;
	}
}
