/* Raw global CSS for the standalone-only chrome (drop zone + topbar).
 * NOT imported from JS — copied to dist and linked from index.html so it
 * bypasses the CSS-modules bundler that hashes class names. */

/* ============================================================
 * File drop zone (empty state)
 * ============================================================ */
.fdz-stage {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 24px;
}
.fdz-zone {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	width: min(520px, 92vw);
	aspect-ratio: 1.05 / 1;
	max-height: calc(100vh - 48px);
	padding: 40px 44px;
	background: var(--vscode-editorWidget-background);
	border: 1.5px dashed var(--vscode-editorWidget-border);
	border-radius: 18px;
	color: var(--vscode-editor-foreground);
	cursor: pointer;
	overflow: hidden;
	transition:
		border-color 180ms ease,
		background 180ms ease,
		transform 180ms ease;
}
.fdz-zone::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, currentColor 1px, transparent 1px),
		linear-gradient(to bottom, currentColor 1px, transparent 1px);
	background-size: 16px 16px;
	opacity: 0.05;
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	pointer-events: none;
}
.fdz-zone:hover {
	border-color: var(--vscode-focusBorder);
}
.fdz-zone.fdz-dragging {
	border-color: var(--vscode-focusBorder);
	background: var(--vscode-editor-hoverHighlightBackground);
	transform: scale(1.01);
}
.fdz-content {
	grid-row: 2;
	text-align: center;
	position: relative;
}
.fdz-mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 22px;
	background: var(--vscode-editor-background);
	border: 1px solid var(--vscode-editorWidget-border);
	border-radius: 14px;
	font-family: var(--vscode-editor-font-family);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--vscode-descriptionForeground, var(--vscode-editor-foreground));
}
.fdz-mark .fdz-mark-uf {
	color: var(--vscode-editor-foreground);
	font-weight: 700;
}
.fdz-title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--vscode-editor-foreground);
}
.fdz-sub {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--vscode-descriptionForeground, var(--vscode-editorLineNumber-foreground));
}
.fdz-sub code {
	padding: 1px 5px;
	background: var(--vscode-editor-background);
	border: 1px solid var(--vscode-editorWidget-border);
	border-radius: 4px;
	font-family: var(--vscode-editor-font-family);
	font-size: 0.92em;
	color: var(--vscode-editor-foreground);
}
.fdz-explainer {
	max-width: 380px;
	margin: 0 auto 24px;
	padding-top: 12px;
	border-top: 1px solid var(--vscode-editorWidget-border);
	font-size: 12px;
	line-height: 1.5;
	color: var(--vscode-descriptionForeground, var(--vscode-editorLineNumber-foreground));
}
.fdz-explainer strong {
	font-weight: 600;
	color: var(--vscode-editor-foreground);
	letter-spacing: 0.01em;
}
.fdz-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
}
.fdz-btn {
	box-sizing: border-box;
	padding: 8px 14px;
	background: var(--vscode-button-secondaryBackground);
	border: 1px solid var(--vscode-editorWidget-border);
	border-radius: 8px;
	color: var(--vscode-button-secondaryForeground);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 140ms ease,
		border-color 140ms ease,
		color 140ms ease;
}
.fdz-btn:hover {
	border-color: var(--vscode-focusBorder);
}
.fdz-btn.fdz-btn-primary {
	background: var(--vscode-button-background);
	border-color: var(--vscode-button-background);
	color: var(--vscode-button-foreground);
}
.fdz-btn.fdz-btn-primary:hover {
	background: var(--vscode-button-hoverBackground);
	border-color: var(--vscode-button-hoverBackground);
}
.fdz-btn:focus-visible {
	outline: 2px solid var(--vscode-focusBorder);
	outline-offset: 2px;
}
.fdz-hint {
	grid-row: 3;
	align-self: end;
	text-align: center;
	font-family: var(--vscode-editor-font-family);
	font-size: 11px;
	letter-spacing: 0.02em;
	color: var(--vscode-disabledForeground, var(--vscode-editorLineNumber-foreground));
}
.fdz-hint kbd {
	display: inline-block;
	margin: 0 2px;
	padding: 1px 6px;
	background: var(--vscode-editor-background);
	border: 1px solid var(--vscode-editorWidget-border);
	border-bottom-width: 2px;
	border-radius: 4px;
	font-family: var(--vscode-editor-font-family);
	font-size: 10.5px;
	color: var(--vscode-editor-foreground);
}

/* ============================================================
 * Standalone topbar (loaded state)
 * ============================================================ */
.sa-topbar {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 16px;
	background: var(--vscode-editorWidget-background);
	border-bottom: 1px solid var(--vscode-editorWidget-border);
}
.sa-pill {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 4px 10px 4px 8px;
	background: var(--vscode-editor-background);
	border: 1px solid var(--vscode-editorWidget-border);
	border-radius: 7px;
}
.sa-pill-dot {
	align-self: center;
	width: 7px;
	height: 7px;
	background: var(--vscode-charts-green, var(--vscode-terminal-ansiGreen, #0dbc79));
	border-radius: 50%;
	box-shadow: 0 0 0 3px
		color-mix(
			in srgb,
			var(--vscode-charts-green, var(--vscode-terminal-ansiGreen, #0dbc79)) 18%,
			transparent
		);
}
.sa-pill-name {
	font-family: var(--vscode-editor-font-family);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vscode-editor-foreground);
}
.sa-pill-meta {
	font-family: var(--vscode-editor-font-family);
	font-size: 11.5px;
	color: var(--vscode-descriptionForeground, var(--vscode-editorLineNumber-foreground));
}
.sa-spacer {
	flex: 1;
}
.sa-topbar .fdz-btn {
	padding: 6px 12px;
	font-size: 12px;
}
