/**
 * Desktop Mode — Bug Report native window styles.
 *
 * Compact form: type radio strip + title input + two textareas + a
 * collapsible environment block + a primary submit. Designed to fit
 * the default 560×620 window without scrolling on most viewports.
 *
 * @since 0.6.2
 */

.desktop-mode-bug-report {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var( --desktop-mode-window-bg, #fff );
	color: var( --desktop-mode-fg, #1d2327 );
}

.desktop-mode-bug-report__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px 20px;
	overflow-y: auto;
}

.desktop-mode-bug-report__intro {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var( --desktop-mode-muted-fg, #50575e );
}

.desktop-mode-bug-report__error {
	padding: 8px 10px;
	border: 1px solid #d63638;
	border-radius: 4px;
	background: #fcf0f1;
	color: #b32d2e;
	font-size: 12px;
}

.desktop-mode-bug-report__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.desktop-mode-bug-report__label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var( --desktop-mode-fg, #1d2327 );
}

.desktop-mode-bug-report__radio-group {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.desktop-mode-bug-report__radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 400;
	color: var( --desktop-mode-fg, #1d2327 );
	cursor: pointer;
}

.desktop-mode-bug-report__radio input[ type = "radio" ] {
	margin: 0;
}

.desktop-mode-bug-report__input,
.desktop-mode-bug-report__textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var( --desktop-mode-border, #c3c4c7 );
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	line-height: 1.45;
	color: inherit;
	box-sizing: border-box;
	transition:
		border-color 120ms ease-out,
		box-shadow 120ms ease-out;
}

.desktop-mode-bug-report__textarea {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
}

.desktop-mode-bug-report__input:focus,
.desktop-mode-bug-report__textarea:focus {
	outline: none;
	border-color: var( --wp-admin-theme-color, #2271b1 );
	box-shadow: 0 0 0 1px var( --wp-admin-theme-color, #2271b1 );
}

.desktop-mode-bug-report__metadata {
	margin-top: 4px;
	border: 1px solid var( --desktop-mode-border, #c3c4c7 );
	border-radius: 4px;
	background: #f6f7f7;
	font-size: 12px;
}

.desktop-mode-bug-report__metadata > summary {
	padding: 8px 10px;
	cursor: pointer;
	font-weight: 500;
	color: var( --desktop-mode-fg, #1d2327 );
	user-select: none;
}

.desktop-mode-bug-report__metadata-body {
	margin: 0;
	padding: 0 10px 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
	font-size: 11px;
	line-height: 1.5;
	color: var( --desktop-mode-muted-fg, #50575e );
	white-space: pre-wrap;
	word-break: break-all;
}

.desktop-mode-bug-report__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.desktop-mode-bug-report__submit {
	padding: 8px 16px;
	border: 1px solid var( --wp-admin-theme-color, #2271b1 );
	border-radius: 4px;
	background: var( --wp-admin-theme-color, #2271b1 );
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition:
		filter 120ms ease-out,
		box-shadow 120ms ease-out;
}

.desktop-mode-bug-report__submit:hover {
	filter: brightness( 1.05 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.15 );
}

.desktop-mode-bug-report__submit:focus-visible {
	outline: 2px solid var( --wp-admin-theme-color, #2271b1 );
	outline-offset: 2px;
}

.desktop-mode-bug-report__hint {
	font-size: 12px;
	color: var( --desktop-mode-muted-fg, #50575e );
}
