.launchpad-remote-control {
	display: grid;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--panel-border);
}

.launchpad-remote-control .sidebar-link-button {
	width: 100%;
	font: inherit;
	cursor: pointer;
}

.launcher-remote-modal {
	width: min(680px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.launcher-remote-pairing-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--panel-border);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.16);
}

.launcher-remote-pairing-details {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}

.launcher-remote-code-copy {
	display: grid;
	gap: 6px;
}

.launcher-remote-qr-code {
	display: grid;
	place-items: center;
	width: 164px;
	height: 164px;
	padding: 8px;
	border: 1px solid var(--panel-border);
	border-radius: 8px;
	background: #ffffff;
}

.launcher-remote-qr-code[hidden] {
	display: none;
}

.launcher-remote-qr-code img {
	display: block;
	width: 100%;
	height: 100%;
}

.launcher-remote-label {
	color: var(--panel-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.launcher-remote-code {
	font-family: Consolas, Monaco, monospace;
	font-size: 28px;
	letter-spacing: 0;
}

.launcher-remote-expiry,
.launcher-remote-status {
	color: var(--panel-muted);
	font-size: 12px;
}

.launcher-remote-pairing-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(110px, 1fr));
	gap: 8px;
}

.launcher-remote-pairing-actions .action-button,
.launcher-remote-pairing-actions .ghost-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
}

.launcher-remote-pairing-actions .action-button {
	grid-column: 1 / -1;
}

.launcher-remote-status {
	margin: 0;
}

.launcher-remote-device-list {
	display: grid;
	gap: 10px;
}

.launcher-remote-device-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--panel-border);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.12);
}

.launcher-remote-device-copy {
	display: grid;
	gap: 4px;
}

.launcher-remote-device-copy span {
	color: var(--panel-muted);
	font-size: 12px;
}

@media (max-width: 640px) {
	.launcher-remote-pairing-panel,
	.launcher-remote-device-row {
		grid-template-columns: 1fr;
	}

	.launcher-remote-pairing-details {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.launcher-remote-pairing-actions {
		grid-template-columns: 1fr;
	}

	.launcher-remote-pairing-actions .action-button {
		grid-column: auto;
	}
}

@media (max-width: 460px) {
	.launcher-remote-pairing-details {
		grid-template-columns: 1fr;
	}

	.launcher-remote-qr-code {
		justify-self: center;
	}
}
