.translator {
	display: grid;
	gap: 16px;
	margin: 1.1rem 0 0
}

.model-bar,.panel-header,.panel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap
}

.model-bar {
	grid-column: 1 / -1;
	border: 1px solid #e0d4bd;
	background: #f7f0df;
	border-radius: 6px;
	padding: 10px 12px
}

.model-label,.panel-label {
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: .75rem;
	color: #6b5a45
}

.model-actions,.panel-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px
}

.model-actions {
	justify-content: flex-end
}

.checkbox-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	white-space: nowrap
}

.checkbox-control input {
	appearance: none;
	margin: 0;
	padding: 0;
	width: 1rem;
	height: 1rem;
	border: 1px solid #c1b095;
	border-radius: 3px;
	background: #f9f3e6;
	display: inline-block;
	position: relative;
	flex: none
}

.checkbox-control input::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: .6rem;
	height: .6rem;
	border-radius: 2px;
	background: #6b5a45;
	transform: translate(-50%, -50%) scale(0);
}

.checkbox-control input:checked::before {
	transform: translate(-50%, -50%) scale(1)
}

.checkbox-control input:focus-visible {
	outline: 2px solid #c1b095;
	outline-offset: 2px
}

.panel {
	border: 1px solid #e0d4bd;
	background: #f7f0df;
	border-radius: 6px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px
}

.panel-header,.panel-footer {
	gap: 10px
}

textarea {
	width: 100%;
	min-height: 190px;
	border: 1px solid #e0d4bd;
	background: #f9f3e6;
	color: #2b2418;
	padding: 8px 10px;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	resize: vertical
}

textarea[readonly] {
	background: #f3ead5
}

select,input[type=text],button,.checkbox-control {
	height: 2rem;
	font-family: inherit;
	font-size: .9rem;
	line-height: 1.2;
	color: #2b2418;
	background: #efe4cc;
	border: 1px solid #d8cab1;
	padding: 0 8px;
	border-radius: 4px
}

input[type=text]::placeholder {
	color: #8a7a63
}

button {
	cursor: pointer
}

button:hover,.checkbox-control:hover {
	border-color: #c1b095
}

button:disabled {
	opacity: .6;
	cursor: not-allowed
}

#status[data-kind=error] {
	color: #7a352f
}

#status[data-kind=ok] {
	color: #5a3f1f
}

#status[data-kind=busy] {
	color: #6b5a45
}

@media (min-width:720px) {
	.translator {
		grid-template-columns: repeat(2,minmax(0,1fr))
	}
}