:root {
	--color-bg-header: #f6f8fa;
	--color-text: #1f2328;
	--color-border: #d1d9e0;
	--color-primary: #0050ef;
	--color-primary-dark: #0031b7;
	--color-bg-editor: #24292e;
	--color-active: #00c300;
}

/* svg icons */
.icon {
	width: 24px;
	height: auto;
	vertical-align: text-bottom;
}

/* layout */
body.tools_page_sje {
	background-color: #fff;
	color: var(--color-text);
	font-size: 15px;
}

.json-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: -20px;
}

/* header */
.json-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: solid 1px var(--color-border);
	background-color: var(--color-bg-header);
}

/* branding */
.json-brand {
	display: flex;
	align-items: center;
}

.json-brand .logo {
	display: flex;
	height: 63px;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background-color: var(--color-active);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
}

.json-brand .logo span {
	transform: translateY(-2px);
}

.json-brand .titre {
	padding: 0 16px;
	margin: 0;
	font-size: 18px;
	font-weight: 500;
}

.json-header .actions {
	display: flex;
	align-items: center;
	padding: 12px 24px;
	gap: 32px;
}

.json-header .button-primary {
	padding: 4px 12px;
	border-color: var(--color-primary);
	border-radius: 6px;
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.json-header .button-primary:hover {
	border-color: var(--color-primary-dark);
	background: var(--color-primary-dark);
}

/* body grid */
.json-grid {
	display: grid;
	height: calc(100vh - 135px);
	align-items: stretch;
	border-bottom: solid 1px var(--color-border);
	grid-template-columns: 20% 5px 1fr;
}

.json-editor-infos {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	text-align: center;
}

/* split.js */
.gutter-col {
	background-color: var(--color-border);
	cursor: col-resize;
}

.gutter-col-1 {
	grid-column: 2;
}

/* files list */
.json-list-files {
	padding: 0;
	border-right: solid 1px var(--color-border);
	background-color: var(--color-bg-header);
}

.json-list-files ul {
	margin: 0;
}

.json-file-item {
	margin: 0;
}

.json-file-item a {
	display: flex;
	align-items: center;
	padding: 12px;
	border-bottom: solid 1px var(--color-border);
	background-color: var(--color-bg-header);
	color: #55585c;
	gap: 4px;
	text-decoration: none;
}

.json-file-item a:focus,
.json-file-item a:active {
	box-shadow: none;
}

.json-file-item a.is-active {
	border-bottom: solid 2px var(--color-active);
	background-color: #fff;
	box-shadow: none;
	color: #000;
}

/* code editor */
.code-editor {
	width: 100%;
	height: 100%;
}