:root {
	--control-area-width: 320px;
	--bg-color: #fff;
	--gym-primary: #000;
	--gym-bg: #fff;
	--gym-bg-hover: #eee;
	--gym-border: #ccc;
	--gym-text: #000;
	--gym-text-muted: #555;
}

section hr {
	border-color: #aaaaaa;
}

.gym-tab.active {
	background: var(--gym-primary);
	color: var(--gym-bg);
}

.gym-sub-tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
	padding: 0 0.5rem;
}
.gym-sub-tab {
	background: var(--gym-bg-hover);
	border: 1px solid var(--gym-border);
	color: var(--gym-text-muted);
	cursor: pointer;
	padding: 0.15rem 0.25rem;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.75rem;
}
.gym-sub-tab:hover {
	color: var(--gym-text);
}
.gym-sub-tab.active {
	background: var(--gym-primary);
	color: var(--gym-bg);
	border-color: var(--gym-primary);
}

.gym-badge-defined {
	background: #e0f2fe;
	color: #0284c7;
	border-color: #7dd3fc;
}

.test-controls .link-button {
	background: none;
	border: none;
	padding: 0;
	color: #000;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.test-controls .link-button:hover {
	text-decoration: none;
}

.test-grid {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -900;
}

.test-area {
}

.test-area.controls {
	display: block;
	height: 100%;
	width: 100%;
}

.test-area.controls .test-holder {
	padding-right: var(--control-area-width);
}

.test-holder {
	display: flex;
	justify-content: var(--holder-justify, center);
	align-items: var(--holder-align, center);
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
}

.test-holder.scroll-mode {
	align-items: flex-start;
	padding-bottom: 50vh; /* Allow scrolling past simple content */
}

.hide-controls .test-holder {
	width: 100%;
	left: 0;
}

section {
	min-height: 100vh;
	width: 100vw;
}

.test-component {
	position: relative;
	display: flex;
	align-items: var(--component-align, center);
	justify-content: var(--component-justify, center);
	height: var(--h);
	width: var(--w);
	font-size: var(--fs);
	margin: var(--component-margin, auto);
}

.highlight {
	background: yellow;
}

.test-controls {
	position: fixed;
	right: 0;
	top: 0;
	width: var(--control-area-width);
	display: flex;
	flex-direction: column;
	background: rgba(240, 240, 240, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	height: 100vh;
	font-family: monospace;
	color: #000;
	overflow: scroll;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	z-index: 1001;
}

.test-controls.logs-fullscreen {
	width: 100vw;
	background: rgba(250, 250, 250, 0.95);
}

.test-controls.logs-fullscreen .tabs,
.test-controls.logs-fullscreen .logs-header {
	width: var(--control-area-width);
	align-self: flex-end;
}

.hide-controls .test-controls {
	display: none;
}

.test-controls span {
	padding: 0.25em 0 ;
	display: block;
}

.tabs {
	display: flex;
	border-bottom: 1px solid #ccc;
	background: rgba(250, 250, 250, 0.9);
}

.tabs button {
	flex: 1;
	padding: 0.75em 0.5em;
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
	font-weight: normal;
	border-bottom: 2px solid transparent;
	color: #555;
	position: relative;
}

.tabs button:hover {
	background: rgba(0, 0, 0, 0.05);
}

.tabs button.active {
	border-bottom: 2px solid #000;
	font-weight: bold;
	color: #000;
}

.log-count {
	position: absolute;
	top: 4px;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e65100;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	border-radius: 10px;
	height: 16px;
	min-width: 16px;
	padding: 0 4px;
	box-sizing: border-box;
	line-height: 1;
}

.logs-tab {
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.light-mode {
	--bg-color: #fff;
	--fg-color: rgba(0, 0, 0, var(--grid-opaqueness));
}

.dark-mode {
	--bg-color: #000;
	--fg-color: rgba(255, 255, 255, var(--grid-opaqueness));
}

.bg-0 {
	--grid-opaqueness: 0;
}

.bg-10 {
	--grid-opaqueness: 0.1;
}

.bg-20 {
	--grid-opaqueness: 0.2;
}

.bg-50 {
	--grid-opaqueness: 0.5;
}

.bg-100 {
	--grid-opaqueness: 1;
}

.grid {
	background:
		linear-gradient(var(--fg-color) 1px, transparent 0) repeat-y,
		linear-gradient(90deg, var(--fg-color) 1px, transparent 0) repeat-x,
		var(--bg-color);

	background-size: 20px 20px;
	background-position:
		0 0,
		10px 10px;
	background-repeat: repeat, repeat;
}

.light-mode.text.bg-10 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(0,0,0,.1)" font-family="Arial">Lorem ipsum</text></svg>');
}
.light-mode.text.bg-20 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(0,0,0,.2)" font-family="Arial">Lorem ipsum</text></svg>');
}
.light-mode.text.bg-50 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(0,0,0,.5)" font-family="Arial">Lorem ipsum</text></svg>');
}
.light-mode.text.bg-100 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(0,0,0,1)" font-family="Arial">Lorem ipsum</text></svg>');
}

.dark-mode.text.bg-10 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(255,255,255,.1)" font-family="Arial">Lorem ipsum</text></svg>');
}
.dark-mode.text.bg-20 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(255,255,255,.2)" font-family="Arial">Lorem ipsum</text></svg>');
}
.dark-mode.text.bg-50 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(255,255,255,.5)" font-family="Arial">Lorem ipsum</text></svg>');
}
.dark-mode.text.bg-100 {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="20" viewBox="0 0 45 10"><text x="0" y="8" font-size="8" fill="rgba(255,255,255,1)" font-family="Arial">Lorem ipsum</text></svg>');
}

.text {
	background-repeat: repeat;
	background-size: 140px 30px;
	background-color: var(--bg-color);
}

.gym-control {
	padding: 0.4em 0.75em;
}

.gym-label {
	display: block;
	text-transform: capitalize;
	font-weight: 600;
	color: #000;
	text-align: left;
	margin-bottom: 0.25em;
}

.anchor-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	width: 108px;
	height: 108px;
	margin-top: 0.4em;
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	padding: 6px;
}

.anchor-btn {
	background: rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	padding: 0;
}

.anchor-btn:hover {
	background: rgba(0, 0, 0, 0.12);
	transform: scale(1.05);
}

.anchor-btn.active {
	background: #333;
	border-color: #3e3e3e;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gym-css-var-row {
	position: relative;
	margin-bottom: 0.5em;
}

.gym-css-var-badges {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 4px;
	z-index: 2;
}

.gym-badge {
	font-size: 10px;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: monospace;
	font-size: 0.65rem;
	text-transform: uppercase;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: rgba(255, 255, 255, 0.45);
	color: #999;
}

.gym-badge-unset {
	color: #c62828;
	background: rgba(255, 205, 210, 0.5);
	border-color: #ef9a9a;
}

.gym-badge-unused {
	color: #f57f17;
	background: rgba(255, 249, 196, 0.5);
	border-color: #fff59d;
}

.gym-section-header,
.test-controls article > header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(0, 0, 0, 0.05);
	padding: 0.5em 0.75em;
	border-top: 1px solid var(--gym-border);
	border-bottom: 1px solid var(--gym-border);
	margin-top: 1em;
	margin-bottom: 0.75em;
}

.test-controls article > header > h1,
.test-controls article > header > h2,
.test-controls article > header > h3,
.test-controls article > header > h4,
.test-controls article > header > h5,
.test-controls article > header > h6 {
	display: block;
	text-transform: capitalize;
	font-weight: 600;
	color: #000;
	text-align: left;
	margin-bottom: 0;
	font-size: 1em;
}

/* ================================================================
   Inlined CSS Reset (ress v5.0.2)
   Applied globally when TestHarness is rendered
   ================================================================ */

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
	word-break: normal;
	-moz-tab-size: 4;
	tab-size: 4;
}

*,
::before,
::after {
	background-repeat: no-repeat;
	box-sizing: inherit;
}

::before,
::after {
	text-decoration: inherit;
	vertical-align: inherit;
}

* {
	padding: 0;
	margin: 0;
}

hr {
	overflow: visible;
	height: 0;
	color: inherit;
}

details,
main {
	display: block;
}

summary {
	display: list-item;
}

small {
	font-size: 80%;
}

[hidden] {
	display: none;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

a {
	background-color: transparent;
}

a:active,
a:hover {
	outline-width: 0;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
}

pre {
	font-size: 1em;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

table {
	border-color: inherit;
	text-indent: 0;
}

iframe {
	border-style: none;
}

input {
	border-radius: 0;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
	height: auto;
}

[type='search'] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type='search']::-webkit-search-decoration {
	-webkit-appearance: none;
}

textarea {
	overflow: auto;
	resize: vertical;
}

button,
input,
optgroup,
select,
textarea {
	font: inherit;
}

optgroup {
	font-weight: bold;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'],
[role='button'] {
	cursor: pointer;
}

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
	outline: 1px dotted ButtonText;
}

button,
html [type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

button,
input,
select,
textarea {
	background-color: transparent;
	border-style: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline-width: 0;
}

select {
	-moz-appearance: none;
	-webkit-appearance: none;
}

select::-ms-expand {
	display: none;
}

select::-ms-value {
	color: currentColor;
}

legend {
	border: 0;
	color: inherit;
	display: table;
	max-width: 100%;
	white-space: normal;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	color: inherit;
	font: inherit;
}

[disabled] {
	cursor: default;
}

img {
	border-style: none;
}

progress {
	vertical-align: baseline;
}

[aria-busy='true'] {
	cursor: progress;
}

[aria-controls] {
	cursor: pointer;
}

[aria-disabled='true'] {
	cursor: default;
}
