:root {
	color-scheme: dark;
	--vscode-font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif;
	--vscode-font-weight: normal;
	--vscode-font-size: 13px;
	--vscode-editor-font-family: Menlo, Monaco, "Courier New", monospace;
	--vscode-editor-font-size: 12px;
	--vscode-editor-font-weight: normal;
	--vscode-widget-shadow: rgba(0, 0, 0, 0.36);

	--vscode-foreground: #cccccc;
	--vscode-descriptionForeground: #9d9d9d;
	--vscode-disabledForeground: rgba(204, 204, 204, 0.5);
	--vscode-errorForeground: #f85149;
	--vscode-focusBorder: #0078d4;

	--vscode-editor-background: #1e1e1e;
	--vscode-editor-foreground: #cccccc;
	--vscode-panel-background: #181818;
	--vscode-panel-border: #2b2b2b;
	--vscode-panelTitle-activeForeground: #e7e7e7;
	--vscode-panelTitle-inactiveForeground: #9d9d9d;
	--vscode-panelTitle-activeBorder: #0078d4;
	--vscode-sideBar-background: #181818;
	--vscode-sideBarSectionHeader-background: #1f1f1f;
	--vscode-editorWidget-background: #202020;
	--vscode-editorWidget-border: #454545;

	--vscode-button-background: #0e639c;
	--vscode-button-foreground: #ffffff;
	--vscode-button-hoverBackground: #1177bb;
	--vscode-button-border: transparent;
	--vscode-button-secondaryBackground: #3a3d41;
	--vscode-button-secondaryForeground: #ffffff;
	--vscode-button-secondaryHoverBackground: #45494e;

	--vscode-input-background: #313131;
	--vscode-input-foreground: #cccccc;
	--vscode-input-border: #3c3c3c;
	--vscode-input-placeholderForeground: #989898;

	--vscode-checkbox-background: #313131;
	--vscode-checkbox-foreground: #cccccc;
	--vscode-checkbox-border: #3c3c3c;

	--vscode-dropdown-background: #313131;
	--vscode-dropdown-foreground: #cccccc;
	--vscode-dropdown-border: #3c3c3c;
	--vscode-settings-dropdownListBorder: #454545;

	--vscode-list-hoverBackground: #2a2d2e;
	--vscode-list-activeSelectionBackground: #04395e;
	--vscode-list-activeSelectionForeground: #ffffff;
	--vscode-list-focusOutline: #0078d4;
	--vscode-tree-tableOddRowsBackground: rgba(255, 255, 255, 0.04);

	--vscode-menu-background: #1f1f1f;
	--vscode-menu-foreground: #cccccc;
	--vscode-menu-border: #454545;
	--vscode-menu-selectionBackground: #04395e;
	--vscode-menu-selectionForeground: #ffffff;
	--vscode-menu-selectionBorder: transparent;
	--vscode-menu-separatorBackground: #454545;

	--vscode-textLink-foreground: #3794ff;
	--vscode-textLink-activeForeground: #4daafc;
	--vscode-textSeparator-foreground: rgba(255, 255, 255, 0.18);

	--vscode-progressBar-background: #0e70c0;
	--vscode-scrollbarSlider-background: rgba(121, 121, 121, 0.4);
	--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
	--vscode-scrollbarSlider-activeBackground: rgba(191, 191, 191, 0.4);

	--vscode-contrastBorder: transparent;
	--vscode-contrastActiveBorder: transparent;

	--vscode-ports-iconRunningProcessForeground: #369432;
	--vscode-editorWarning-foreground: #cca700;
	--vscode-charts-green: #89d185;
	--vscode-badge-background: #616161;
	--vscode-badge-foreground: #f8f8f8;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	padding: 10px;
	background: var(--vscode-editor-background);
	color: var(--vscode-foreground);
	font-family: var(--vscode-font-family);
	font-size: var(--vscode-font-size);
	font-weight: var(--vscode-font-weight);
}

#preview-badge {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: min(360px, calc(100vw - 32px));
	padding: 10px 12px;
	border: 1px solid var(--vscode-editorWidget-border);
	border-radius: 6px;
	background: var(--vscode-editorWidget-background);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
	font-size: 12px;
	line-height: 1.4;
}

#preview-badge strong {
	font-size: 12px;
}

#preview-badge span {
	color: var(--vscode-descriptionForeground);
}

#preview-badge code {
	overflow: hidden;
	color: var(--vscode-charts-green);
	text-overflow: ellipsis;
	white-space: nowrap;
}
