.vhf-container {
	padding-top: 40px;
	padding-bottom: 60px;
}
.vhf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 35px;
}
.vhf-layout h2 {
	margin-top: 20px;
}
.vhf-layout label {
	display: block;
	margin-top: 14px;
}
.vhf-layout label span {
	font-weight: normal;
}
.vhf-scenario {
	margin: 16px 0;
	padding: 15px;
	border-left: 4px solid #337ab7;
	background: #eef6fa;
}
.vhf-ptt {
	margin-top: 20px;
	white-space: normal;
}
.vhf-device {
	position: relative;
	padding-top: 85px;
	color: #fff;
}
.vhf-handset {
	position: absolute;
	top: 0;
	right: 15%;
	width: 155px;
	height: 90px;
	padding: 12px 14px;
	border: 3px solid #454c54;
	border-radius: 36px 36px 28px 28px;
	background: linear-gradient(130deg, #555e68 0%, #23292e 30%, #0c0f12 100%);
	box-shadow: 3px 6px 6px rgba(0, 0, 0, .4);
	transform: rotate(-8deg);
}
.vhf-handset::before {
	position: absolute;
	z-index: -1;
	top: 59px;
	left: -80px;
	width: 95px;
	height: 52px;
	border: 6px solid #202326;
	border-right: 0;
	border-bottom: 0;
	border-radius: 35px 0 0 0;
	content: "";
}
.vhf-handset-grille {
	float: right;
	width: 45px;
	height: 48px;
	border-radius: 15px;
	background: repeating-linear-gradient(90deg, #111 0, #111 3px, #525c65 4px, #252b30 8px);
}
.vhf-handset > span {
	display: block;
	font-size: 9px;
	font-weight: bold;
}
.vhf-handset-ptt {
	min-width: 46px;
	min-height: 35px;
	margin-top: 3px;
	border: 2px solid #080a0c;
	border-radius: 8px;
	background: linear-gradient(#535b63, #1a1f23);
	color: #fff;
	font-size: 12px;
	font-weight: bold;
}
.vhf-radio {
	position: relative;
	z-index: 1;
	padding: 10px;
	border: 2px solid #15191e;
	border-radius: 24px;
	background: linear-gradient(#626b75 0%, #303840 9%, #171c21 75%, #505860 96%, #1c2226 100%);
	box-shadow: 0 7px 8px rgba(0, 0, 0, .35), inset 0 2px 2px #89939d;
}
.vhf-radio-face {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(65px, 1fr);
	gap: 5px;
	padding: 10px 6px 9px;
	border: 2px solid #080b0d;
	border-radius: 18px;
	background: linear-gradient(130deg, #242a30, #080a0b 70%, #24282c);
}
.vhf-speaker-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}
.vhf-speaker {
	width: 90%;
	height: 72px;
	margin-top: 5px;
	border-radius: 12px;
	background: repeating-linear-gradient(to bottom, #080a0c 0, #080a0c 5px, #424a50 6px, #20262b 10px);
}
.vhf-distress-guard {
	position: relative;
	width: 100%;
}
.vhf-distress-button {
	width: 100%;
	min-height: 47px;
	padding: 3px 0;
	border: 2px solid #79252a;
	border-radius: 5px;
	background: linear-gradient(#a12025, #d22c30 48%, #741419);
	box-shadow: inset 0 2px 3px #f28a82, 0 2px 3px #000;
	color: #fff;
	font-size: clamp(8px, 1.5vw, 11px);
	font-weight: bold;
}
.vhf-distress-button:disabled {
	opacity: 1;
}
.vhf-distress-cover {
	position: absolute;
	z-index: 2;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 2px solid rgba(255, 170, 160, .8);
	border-radius: 5px;
	background: linear-gradient(135deg, rgba(255, 210, 205, .42), rgba(191, 40, 35, .18) 45%, rgba(255, 194, 187, .3));
	box-shadow: inset 0 1px 5px rgba(255, 255, 255, .6), 0 2px 3px #000;
	color: #fff;
	text-align: right;
	font-size: 8px;
	font-weight: bold;
	transform-origin: top center;
	transition: transform .25s ease;
}
.vhf-distress-cover span {
	display: block;
	position: absolute;
	right: 2px;
	bottom: 0;
	padding: 0 2px;
	border-radius: 2px;
	background: rgba(45, 10, 10, .8);
}
.vhf-distress-guard.is-open .vhf-distress-cover {
	transform: translateY(-85%) perspective(140px) rotateX(35deg);
}
@media (prefers-reduced-motion: reduce) {
	.vhf-distress-cover { transition: none; }
}
.vhf-center {
	min-width: 0;
}
.vhf-brand {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 3px;
	min-height: 18px;
	font-size: clamp(7px, 1.2vw, 10px);
	white-space: nowrap;
}
.vhf-brand span {
	font-size: clamp(6px, 1vw, 8px);
}
.vhf-brand strong {
	color: #fff;
}
.vhf-screen {
	min-height: 128px;
	padding: 6px 8px;
	border: 4px solid #080808;
	border-radius: 5px;
	background: linear-gradient(#f7c266, #e6a543);
	box-shadow: inset 0 0 5px #8f5b1d;
	color: #23190c;
	font-family: monospace;
	font-size: clamp(9px, 1.6vw, 12px);
	line-height: 1.2;
}
.vhf-screen.is-off {
	background: #353a37;
	box-shadow: inset 0 0 5px #151815;
}
.vhf-screen.is-off > * {
	visibility: hidden;
}
.vhf-screen-top {
	display: flex;
	justify-content: space-between;
	font-weight: bold;
}
.vhf-screen-main {
	text-align: center;
}
.vhf-screen-main span {
	vertical-align: top;
	font-size: 10px;
}
.vhf-screen strong {
	margin-left: 4px;
	color: #23190c;
	font-size: clamp(39px, 8vw, 64px);
	line-height: 1;
}
#radio-status {
	margin-top: 3px;
	font-size: clamp(8px, 1.3vw, 10px);
	font-weight: bold;
}
.vhf-softkeys {
	display: flex;
	justify-content: space-around;
	gap: 5px;
	margin-top: 5px;
}
.vhf-softkeys i {
	width: 24%;
	height: 10px;
	border: 2px solid #d4b989;
	border-radius: 4px;
	background: #15191b;
}
.vhf-keypad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	gap: 4px;
}
.vhf-key {
	width: 42px;
	min-height: 33px;
	border: 2px solid #e0cba3;
	border-radius: 8px;
	background: linear-gradient(#505a62, #111518 80%);
	box-shadow: 0 2px 3px #000;
	color: #fff;
	font-weight: bold;
	line-height: 1;
}
.vhf-key small {
	display: block;
	font-size: 8px;
}
.vhf-key-16 {
	width: 40px;
	min-height: 40px;
	border-radius: 50%;
	background: linear-gradient(#42a4df, #07558c);
}
.vhf-knob {
	width: 35px;
	height: 35px;
	border: 3px solid #090b0c;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #687078, #242a2e 50%, #08090a);
	cursor: pointer;
}
.vhf-radio button:focus-visible, .vhf-handset button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.vhf-stand {
	width: 76%;
	height: 12px;
	margin: -1px auto 0;
	border: 3px solid #1d2226;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: #535b60;
}
.vhf-device-help {
	margin-top: 15px;
	font-size: 13px;
}
.vhf-settings {
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #f7f7f7;
}
.vhf-controls {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px 12px;
	align-items: center;
}
.vhf-controls label {
	margin: 0;
}
.vhf-controls select {
	color: #333;
}
.vhf-distress {
	margin-top: 18px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}
.vhf-distress .btn {
	margin-top: 12px;
	white-space: normal;
}
.vhf-distress p {
	margin-top: 12px;
}
.vhf-feedback {
	margin: 20px 0;
	padding: 15px;
	background: #eef6fa;
	border-left: 4px solid #337ab7;
}
.vhf-feedback.is-error {
	background: #fff1ee;
	border-color: #b93e30;
}
.vhf-feedback.is-success {
	background: #edf8ed;
	border-color: #398439;
}
#transcript {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
#speech-status:not(:empty) {
	margin-top: 10px;
}
[hidden] {
	display: none !important;
}
@media (max-width: 767px) {
	.vhf-layout {
		grid-template-columns: 1fr;
	}
	.vhf-layout {
		gap: 10px;
	}
}
