*{border:0;margin:0;padding:0;box-sizing:border-box}
@font-face {
	font-family: 'icons';
	src: url('/fonts/icons/icomoon.eot');
	src: url('/fonts/icons/icomoon.eot#iefix') format('embedded-opentype'),
		url('/fonts/icons/icomoon.ttf') format('truetype'),
		url('/fonts/icons/icomoon.woff') format('woff'),
		url('/fonts/icons/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OUuhp.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVZ0b.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@keyframes flash {
	0% { background-color: #eee; }
	100% { background-color: transparent; }
}
@keyframes blink{
	50% { opacity:0; }
}
[data-icon]:before {
	display: inline-block;
	font-family: icons;
	content: attr(data-icon);
}
body {
	background: #f9f9f9;
}
body, input, select, textarea {
	font-family: Open Sans, sans-serif;
	font-size: 16px;
	line-height: 145%;
}
a {
	text-decoration: none;
	color: #654a6e;
	cursor: pointer;
}
h1, h2, h3, h4 {
	font-weight: 300;
	margin-bottom: 0.6em;
	line-height: 1.3;
}
h4 {
	margin-bottom: 0.4em;
}
p {
	margin-bottom: 15px;
}
ol, ul {
	padding-left: 30px;
	margin-bottom: 15px;
}
sub {
	line-height: 0;
}
[data-auth="guest"] [data-auth="auth"] {
	display: none;
}
[data-auth="auth"] [data-auth="guest"] {
	display: none;
}
.wrap {
	max-width: 1600px;
	padding: 0 32px;
	margin: 0 auto;
}
.left {
	float: left !important;
}
.right {
	float: right !important;
}
.space {
	margin-top: 5px;
}
.clear {
	clear: both;
}
.show {
	display: block !important;
}
.main {
	position: absolute;
	top: 48px;
	width: 100%;
	left: 0;
	bottom: 0;
}
[data-module="comm"] {
	float: left;
	width: 50%;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 68px);
	padding: 20px 0;
}
[data-module="controls"] {
	float: right;
	width: 25%;
	padding: 20px;
}

[data-module="filesystem"] {
	float: left;
	width: 25%;
	padding: 20px;
}

.editor-buttons {
	float: right;
	font-size: 27px;
}

.editor-buttons a {
	margin-left: 7px;
	color: #fff;
}
.editor-buttons [data-action] {
	transition: color 0.3s ease;
}

.editor-buttons [data-action].state-white {
	color: white;
}

.editor-buttons [data-action].state-light-red {
	color: #ffcdd2;
}

.editor-buttons [data-action].state-orange {
	color: #ffb74d;
}

.editor-buttons [data-action].state-red {
	color: #ef5350;
}

.editor-buttons [data-action].state-green {
	color: #66bb6a;
}
.event-handler {
	background: #d8ebe9;
	padding: 8px 12px;
	font-size: 15px;
	margin-bottom: 15px;
	border-radius: 5px;
}
.event-handler label {
	width: 100%;
	margin-bottom: 3px;
}
.event-handler select {
	width: 100%;
	padding: 1px 5px;
	background: #fff;
	font-size: 15px;
}
.event-handler p {
	margin: 5px 0;
}
.tabbed-content [data-tab-content] {
	display: none;
	position: relative;
}
.tabbed-content [data-tab-content].selected {
	display: block;
}
.tabbed-content [data-tab-content].selected textarea {
	animation: flash 0.7s ease-out;
}
.tabbed-content [data-tab-content]:empty:before {
	display: block;
	content: 'No data to show';
	text-align: center;
	padding: 7px 10px;
}
.panels.tabbed-content [data-tab-content] {
	display: block;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}
.panels.tabbed-content [data-tab-content]:nth-child(2) {
	position: relative;
}
.panels.tabbed-content [data-tab-content].selected {
	z-index: 10;
	visibility: visible;
}
header {
	background: #111;
	padding: 8px 20px;
	height: 48px;
	line-height: 32px;
}
header nav {
	position: relative;
}
/* auth buttons */
header nav>a, header nav [data-auth] a {
	position: relative;
	color: #fff;
	margin-left: 15px;
	font-size: 16px;
	float: left;
}
header nav>a:before, header nav [data-auth] a:before {
	float: left;
	font-size: 20px;
	margin-right: 5px;
}
a.logo {
	font-family: monospace;
	font-size: 19px;
	color: #fff;
	text-decoration: none;
	float: left;
}
.logo:before {
	float: left;
	font-size: 27px;
	margin-right: 8px;
}
.menu {
	display: none;
	position: absolute;
	z-index: 200;
	font-size: 14px;
	line-height: 24px;
	background: #fff;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
	width: 275px;
	right: 0;
	top: 36px;
	padding: 0;
}
.menu .tabs {
	background: #eee;
}
.menu .tabs>[data-tab].selected {
	background: #ddd;
}
.user-menu .item {
	display: block;
	padding: 7px 10px 5px;
}
.user-menu .disabled {
	background: #eee;
}
.user-menu .name:before {
	font-family: 'icons';
	font-size: 18px;
	float: left;
	margin-right: 4px;
}
.user-menu .frameworks {
	margin: 4px 0px;
}
.user-menu [data-empty]:empty::before {
	padding: 30px 0;
	font-size: 16px;
}
.user-menu .jobs .details {
	float: left;
	width: 30%;
	color: #333;
	line-height: 22px;
}
.user-menu .resources .details {
	float: left;
	width: 80%;
	color: #333;
	line-height: 22px;
}
.user-menu .resources .cost[data-cost="0"] {
	display: none;
}
.user-menu .resources .threads {
	float: right;
	width: 20%;
	text-align: center;
	background: #eee;
	font-size: 15px;
	padding: 4px;
}
.user-menu .state-change {
	padding: 3px 10px;
	background: #eee;
	font-size: 15px;
}
.user-menu .state-change a:before {
	margin-right: 6px;
	font-size: 18px;
	float: left;
}
.user-menu .state-change a {
	color: #333;
}
.user-menu .state-change a:hover {
	color: #666;
}
.user-menu .state-change[data-status="connected"] a {
	color: #497930;
}
.channel-header {
	padding: 0 50px;
}
  .channel-list-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
}

.channel-list-header {
	display: flex;
	justify-content: space-between;
	align-items: start;
	margin-bottom: 20px;
}

.channel-list-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
}

.channel-list {
	flex: 1;
}

.channel-item {
	margin-bottom: 10px;
}

.channel-item.empty {
	padding: 40px 20px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

.channel-link {
    display: block;
    padding: 10px 15px;
    background: #654a6e;
    border: 3px solid #ae8fb9;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.channel-label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #fff;
}

.channel-meta {
    display: flex;
    font-size: 15px;
    color: #fff;
}

.channel-id {
	color: #6c9bcf;
	font-weight: 500;
}

.channel-date {
	margin-left: auto;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 15px 0;
}

.pagination-button {
	padding: 8px 12px;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}

.pagination-button:hover:not([disabled]) {
	background: #252525;
	border-color: #444;
}

.pagination-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.pagination-info {
	padding: 0 15px;
	color: #888;
	font-size: 14px;
}

.message {
	position: relative;
	margin: 0 0 10px;
}
.message[data-role="assistant"]:before {
	font-family: 'icons';
	content: 'G';
	color: #777;
	position: absolute;
	top: 3px;
	left: -33px;
	font-size: 24px;
	line-height: 36px;
}
.message[data-role="user"]:before {
	font-family: 'icons';
	content: '5';
	color: #777;
	position: absolute;
	bottom: 32px;
	right: -32px;
	font-size: 24px;
	line-height: 36px;
}
.message[data-role="review"]:before {
	font-family: 'icons';
	content: '6';
	color: #777;
	position: absolute;
	top: 3px;
	left: -33px;
	font-size: 24px;
	line-height: 36px;
}
.message .content {
	position: relative;
	font-family: math;
	padding: 12px 15px;
	border: 1px solid #aaa;
	background: #fff;
}
.message .metadata {
	font-family: 'Open Sans';
	font-size: 13px;
	color: #777;
	padding: 3px 15px;
	font-weight: 300;
}
.message hr {
	margin: 15px 0;
	border-top: 1px solid #ddd;
}
.message li {
	margin: 0 0 10px;
}
.message li p {
	margin: 0;
}
.message p:last-child {
	margin-bottom: 0;
}
.message li ul {
	margin-top: 10px;
	list-style-type: disc;
}
.message ul, .message ol {
	margin: 0;
}
.message li li {
	margin: 0 0 10px;
}
.message code {
	font-size: 13px;
	background: #e9e9e9;
	margin: 0 2px;
}
.message img {
	max-width: 100%;
}
.message .content {
	border-radius: 12px;
	box-shadow: 1px 1px 5px #00000019;
}
.message[data-role="user"] .content {
	border-radius: 12px 12px 0 12px;
	border-color: #d7d7d7;
}
.message[data-role="assistant"] .content {
	border-radius: 0 12px 12px 12px;
	border-color: #b5b5b5;
}
.message[data-role="summary"] .content {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}
.message[data-role="summary"] .content::first-letter {
	font-size: 2.9em;
	font-weight: 300;
	float: left;
	line-height: 1;
	margin-right: 0.1em;
}
.message[data-role="user"] .metadata {
	text-align: right;
}
.message[data-role="assistant"] .content:before {
	content: '';
	position: absolute;
	left: -12px;
	top: -1px;
	border: 6px solid transparent;
	border-top: 6px solid #b5b5b5;
	border-right: 6px solid #b5b5b5;
}

.message[data-role="assistant"] .content:after {
	content: '';
	position: absolute;
	left: -10px;
	top: 0;
	border: 5px solid transparent;
	border-top: 5px solid #fff;
	border-right: 5px solid #fff;
}
.message[data-role="user"] .content:before {
	content: '';
	position: absolute;
	right: -12px;
	bottom: -1px;
	border: 6px solid transparent;
	border-bottom: 6px solid #d7d7d7;
	border-left: 6px solid #d7d7d7;
}

.message[data-role="user"] .content:after {
	content: '';
	position: absolute;
	right: -10px;
	bottom: 0;
	border: 5px solid transparent;
	border-bottom: 5px solid #fff;
	border-left: 5px solid #fff;
}

[data-module="comm"].selecting .composition-box {
	border-color: #4a90d9;
	background-color: #f0f7ff;
}

[data-module="comm"].selecting .composition-box textarea {
	background-color: #f0f7ff;
}

[data-module="comm"] .message.selected .content {
	background-color: #e3f2fd;
}
.message.ignored {
	opacity: 0.5;
}

.hr {
    border-top: 2px solid #999;
    padding-bottom: 37px;
    margin-top: 30px;
    position: relative;
    width: 47%;
    left: 25%;
}
.hr:before {
    content: '8';
    font-family: 'icons';
    font-size: 34px;
    left: 50%;
    position: absolute;
    top: -12px;
    color: #999;
    z-index: 1000;
    background: #f9f9f9;
}
.hr-after {
    text-align: center;
    padding: 5px 0 20px;
    font-size: 30px;
    color: #777;
}
.group {
	position: relative;
	font-family: math;
	margin-bottom: 15px;
}
.group.closed .description {
	padding: 12px 15px;
	position: relative;
	top: 4px;
	left: 5px;
	border: 1px solid #aaa;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	color: #333;
	cursor: pointer;
}
.group.closed .message {
	display: none;
}
.group .description {
	padding: 15px 0;
	text-align: center;
	color: #555;
	cursor: pointer;
}
.group.closed {
	border: 1px solid #aaa;
	background: #fff;
	border-radius: 12px;
}
.loading-text {
	font-family: monospace;
	white-space: pre-wrap;
}
.caret {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	background: #000;
	margin-left: 0.05ch;
	animation: blink 1s step-end infinite;
	vertical-align: middle;
}
.editing [data-module="controls"], .editing [data-module="filesystem"] {
	display: none;
}

.editing [data-module="comm"] {
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
    width: 30%;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
}
.resize {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #eee;
    width: 5px;
    cursor: ew-resize;
}
.editing [data-module="comm"] .messages {
	padding: 0;
  	flex: 1 1 auto;
  	max-height: none;
	overflow-y: auto;
}
.editing .composition-box {
	margin: 0;
	flex: 0 0 auto;
}
.editing [data-module="comm"] .channel-list {
	flex: 1;
	overflow-y: auto;
	scrollbar-width: none;
}

.editing [data-module="comm"] .channel-item {
	padding: 6px 12px;
}

.editing [data-module="comm"] .channel-item a {
	color: #554;
	text-decoration: underline;
}
[data-module="comm"] .messages {
	overflow-y: scroll;
	padding: 0 50px;
	flex: 1;
  	min-height: 0;
}
[data-module="editor"] {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 70%;
}
.editing [data-module="editor"] {
	display: block;
}
[data-module="editor"] .CodeMirror {
	height: 100%;
}
.editing .channel-header {
	display: none;
}
.editing .message .metadata::before {
	content: 'G';
	font-family: icons;
	font-size: 18px;
	margin-right: 3px;
	vertical-align: text-bottom;
	line-height: 20px;
}
.editing .message[data-role="user"] .metadata::before {
	content: '5';
}
.editing .message:before {
	display: none;
}
.editing .message .content:before, .editing .message .content:after {
	display: none;
}
.editing .message .content {padding: 8px 14px;font-size: 16px;}
.channel-actions a {
	display: inline-block;
	padding: 4px 9px;
	font-size: 13px;
	background: #eee;
	border-radius: 7px;
	vertical-align: middle;
  	margin-left: 7px;
}
[data-action="save-channel"][data-status="unsaved"] {
	background: #ba000033;
	color: #ba0000;
}
.save-animation-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	font-family: icons;
	font-size: 120px;
	pointer-events: none;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.composition-box {
	border: 1px solid #aaa;
	border-radius: 5px;
	position: relative;
	z-index: 10;
	margin: 0 50px;
	box-shadow: 0 -6px 20px rgba(204, 204, 204, 0.8);
  	flex-shrink: 0;
}
.composition-box select {
	font-size: 14px;
	padding: 4px 5px;
}
.composition-box textarea {
	font-family: math;
	display: block;
	font-size: 15px;
	border-radius: 5px 5px 0 0;
	padding: 8px 13px;
	width: 100%;
	outline: none;
}
.composition-box .commands {
	display: inline-block;
	width: 100%;
	background: #ddd;
	padding: 3px 5px;
	border-radius: 0 0 5px 5px;
}
.send-button {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
}
.send-arrow {
	font-size: 17px;
	cursor: pointer;
	padding: 0 2px 0 0;
}
.send-options {
	position: absolute;
    bottom: 30px;
    right: 4px;
    background: #f25341;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 4px;
    min-width: 100px;
    z-index: 100;
}
.send-options.hidden {
	display: none;
}
.send-options a {
	display: block;
	padding: 8px 12px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.send-options a:hover {
	background: #fff;
	color: #555;
}
canvas.grid {
	position: absolute;
	z-index: 1;
}
canvas.dynamic {
	position: absolute;
	z-index: 2;
	background transparent;
}
[data-empty]:empty:before {
	content: attr(data-empty);
	display: block;
	padding: 100px 0;
	text-align: center;
	font-size: 20px;
	color: #888;
}
.form {
	position: relative;
}
.center {
	width: 550px;
	margin: 0 auto;
	line-height: 30px;
}
.switch {
	font-size: 14px;
	font-weight: 400;
	margin: 0 15px;
}
.switch a.disabled {
	color: #666;
}
[data-module="filesystem"]>div {
	margin: 2px 0;
}
[data-module="filesystem"] select {
	margin-bottom: 5px;
	padding: 5px;
	width: 100%;
}
[data-module="filesystem"] [data-filepath] {
	padding-left: 28px;
	font-size: 14px;
	position: relative;
}

[data-module="filesystem"] [data-filepath][data-filetype="dir"]::before {
	content: '+';
	width: 16px;
	height: 16px;
	font-family: 'icons';
	position: absolute;
	left: 0;
}

[data-module="filesystem"] [data-filepath][data-filetype="file"]::before {
	content: '';
	width: 16px;
	height: 16px;
	background: #fff;
	position: absolute;
	border: 1px solid #ccc;
	border-radius: 5px;
	top: 2px;
	left: 0;
}
[data-module="filesystem"] [data-filepath][data-filetype="file"]::after {
	display: none;
	content: '';
	position: absolute;
	left: 3px;
	top: 5px;
	width: 12px;
	height: 12px;
	background: #b0cecc;
	border-radius: 3px;
}
[data-module="filesystem"] [data-filepath][data-filetype="file"].selected::after {
	display: block;
}
[data-module="filesystem"] .repo-selector {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}
[data-module="filesystem"] select {
	width: calc(100% - 80px);
	padding: 6px 8px;
	font-size: 14px;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 3px;
}
[data-module="filesystem"] .folder {
	display: block;
	cursor: pointer;
	user-select: none;
	padding: 2px 0;
	font-size: 14px;
	color: #333;
	font-family: monospace;
}
[data-module="filesystem"] .folder:hover {
	background: #f0f0f0;
}
[data-module="filesystem"] h3 {
	font-size: 16px;
	margin: 15px 0 8px 0;
	font-weight: 400;
	color: #555;
}
[data-module="filesystem"] .metadata {
	font-size: 12px;
	color: #888;
	margin: 5px 0 10px 0;
}
.wide-form p {
	display: inline-block;
	width: 100%;
	position: relative;
}
.wide-form input, .wide-form select, .wide-form textarea {
	border: 1px solid #ddd;
	background: #fafafa;
	padding: 2px 7px;
	width: 50%;
	font-size: 15px;
	float: left;
}
.wide-form .editor.hide {
	display: none;
}
.wide-form label {
	clear: left;
	float: left;
	line-height: 29px;
	font-size: 15px;
	width: 25%;
}
.wide-form .info {
	float: left;
	width: 25%;
	padding-left: 5%;
}
.wide-form .tabs select {
	width: 200px;
	margin-left: 5px;
}
.login-form p {
	display: inline-block;
	width: 100%;
}
.login-form input, .login-form select, .login-form textarea {
	border: 1px solid #ddd;
	padding: 2px 7px;
	width: 40%;
	float: left;
}
.login-form label {
	clear: left;
	float: left;
	width: 25%;
}
.login-form .info {
	float: left;
	width: 35%;
	padding-left: 5%;
}
.center .login-form input, .center .login-form label, .center .login-form select, .center .login-form textarea {
	width: 50%;
}
.model-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.model-table thead {
	background-color: #f5f5f5;
}

.model-table th,
.model-table td {
	padding: 0.5em 1em;
	text-align: left;
	border-bottom: 1px solid #ddd;
  	font-size: 14px;
}

.model-table th {
	font-weight: bold;
}

.model-table tbody tr:hover {
	background-color: #f9f9f9;
}

.model-table h4 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}


.button {
	display: inline-block;
	cursor: pointer;
	background: #f25341;
	padding: 3px 8px;
	color: #fff;
	font-size: 14px;
	border-radius: 3px;
}
.button[data-icon]:empty {
    padding: 3px 7px;
    border: 0;
    font-size: 16px;
    margin-left: 2px;
}
.button.disabled {
	color: #999;
	cursor: not-allowed;
}
.center h2 {
	margin-bottom: 20px;
}
h2 a.tag {
	background: #eee;
	color: #555;
	border-radius: 5px;
	padding: 2px 5px;
	font-size: 16px;
}
[data-category] {
	background: #eee;
	color: #555;
	border-radius: 5px;
	padding: 2px 5px;
	font-size: 14px;
	margin-left: 15px;
	color: #fff;
}
[data-category="education"] {
	background: #0a3;
}
[data-category="preprint"], [data-category="unpublished"] {
	background: #f90;
}
[data-category="published"] {
	background: #6885db;
}
.popup {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 10%;
	width: 60%;
	max-height: 70vh;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
	background: #f5f5f5;
	border-radius: 3px;
	font-size: 14px;
	z-index: 1000;
	left: 20%;
}
.popup [data-action="close"] {
	float: right;
}
.popup.message {
	width: 40%;
	left: 30%;
}
.popup.message .header {
	line-height: 24px;
	background: #eee;
	padding: 7px 10px;
	font-size: 16px;
}
.popup.message .text {
	font-size: 16px;
	padding: 10px;
	margin: 0;
	background: #fff;
}
.popup.message .text p {
	margin: 0 0 7px;
}
.popup .cols {
	flex: 1;
	display: flex;
	min-height: 0;
}
.popup .tabs {
	flex: 1;
}
.popup [data-tab-content] {
	flex: 4;
	background: #fff;
	padding: 10px 15px;
	overflow-y: auto;
}
.popup [data-tab] {
	padding: 10px 15px;
	display: block;
}
.form .button, .form [data-action="submit"], .form [data-action="login"], .form [data-action="search"] {
	float: right;
	padding: 5px 8px;
	background: #6a879d;
	font-size: 14px;
	text-shadow: 1px 1px #0007;
	color: #fff;
	border: 1px solid #fff;
	margin-left: 3px;
}
.button.loading {
	cursor: wait;
	position: relative;
	animation: colorFade 3s linear infinite;
	background-color: #007BFF;
}
.form .button:before {
	margin-right: 5px;
	font-size: 17px;
	float: left;
}
.form [data-action="submit"].disabled, .form [data-action="login"].disabled, .form [data-action="search"].disabled {
	cursor: not-allowed;
	background: #ccc;
}
.popup [data-tab].selected {
	background: #fff;
}
.popup h3 {
	padding: 10px 15px;
	margin: 0;
	line-height: 20px;
}
.popup:not(.message) [data-action="close"] {
	line-height: 20px;
	margin: 10px;
}
a.checkbox:before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    position: absolute;
    left: 6px;
    top: 9px;
    border-radius: 3px;
}

a.checkbox {
    position: relative;
    padding-left: 23px !important;
}

a.checkbox.checked:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    background: #fff;
    width: 8px;
    height: 8px;
    border-radius: 1px;
}

.form .errors div {
	padding: 10px 15px;
	background: #fcc;
	border: 1px solid #ba0000;
	margin-bottom: 10px;
}
.form label {
	display: inline-block;
	font-size: 16px;
	width: 50%;
	vertical-align: top;
}
.form input:not([type="checkbox"]), .form select, .form textarea {
	width: 50%;
}
.form.narrow input:not([type="checkbox"]), .form.narrow select, .form.narrow textarea {
	width: 100%;
}
.form input[type="text"], .form input[type="password"], .form select {
	background: #f3f3f3;
	padding: 4px 8px;
	font-size: 16px;
}
.form input[type="text"].error {
	background: #ba000044;
}
.form input[type="text"].valid {
	background: #00ba0044;
}
.form .field {
	position: relative;
	margin-bottom: 15px;
}
.form h4 {
	font-size: 18px;
}
.form p {
	font-size: 16px;
}
.form.loading:before {
	content: '';
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff9;
}
.form.loading {
	cursor: progress;
}
.form div.error {
	padding: 10px 15px;
	margin-bottom: 15px;
	border: 1px solid #ba0000;
	background: #ba000033;
}
.form div.error.success {
	border: 1px solid #00ba00;
	background: #00ba0033;
}
.form div.error:empty {
	display: none;
}
.plot-box {
	margin: 0 0 40px;
	font-size: 14px;
}
.editor {
	position: relative;
	border: 1px solid #ddd;
	border-width: 5px 1px;
	border-radius: 7px;
	background: #f5f5f5;
	margin: 7px 0;
}
.editor>.CodeMirror {
	height: auto;
	border-radius: 5px;
}
.editing .editor:not(.show-code)>.CodeMirror {
	display: none;
}
.editor textarea:focus + .editor::after, .editor:focus-within::after {
	border-color: #5cb7db;
}
.editor.loading::after {
	border-color: #f90;
}
.editor.error::after {
	border-color: #b00;
}
.editor .header {
	background: #eee;
	padding: 3px 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-bottom: 0;
}
.editor .comment.error {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 10px 15px;
	background: #ffcccc;
}
.editor .comment.green {
	background: #bbd7bb;
}
.editor .comment:empty, .editor .result:empty {
	display: none !important;
}
.editor .buttons {
	font-family: monospace;
	font-size: 14px;
	text-align: right;
	padding: 1px 7px;
}
.editor .buttons .button {
	font-size: 13px;
	padding: 1px 9px;
	background: #555;
	font-family: monospace;
}
.show-code-placeholder {
	display: none;
	background: #272822;
	color: #fff;
	text-align: center;
	border-radius: 5px;
	font-family: monospace;
	padding: 5px 0;
	cursor: pointer;
}
.editing .show-code-placeholder {
	display: block;
}
.editing .editor.show-code .show-code-placeholder {
	display: none;
}
.editor textarea[name="code_display"] {
	line-height: 1.6;
	height: 700px;
}
.editor .comment {
	background: #f5f5f5;
	padding: 7px 15px;
	margin: 0;
	border-top: 1px solid #ccc;
	font-size: 12px;
	line-height: 1.4;
}
.editor .result {
	background: #fff;
	padding: 15px;
	margin: 0;
	border-top: 1px solid #ccc;
	font-size: 14px;
	line-height: 1.5;
}
.editor .watermark {
	position: absolute;
	top: 5px;
	opacity: 0.5;
	right: 10px;
	font-size: 14px;
}
.passphrase-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(1px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.passphrase-modal {
	background: #f5f5f5;
	padding: 15px 20px;
	border-radius: 8px;
	min-width: 450px;
	max-width: 500px;
	border: 1px solid #ddd;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.passphrase-modal h3 {
	margin: 0 0 0.5em 0;
	color: #333;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.passphrase-modal input[type="password"] {
	width: 100%;
	padding: 5px 10px;
	margin-bottom: 1em;
	border: 2px solid #ddd;
	border-radius: 4px;
	background: #fafafa;
	color: #333;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s;
}

.passphrase-modal input[type="password"]:focus {
	outline: none;
	border-color: #f25341;
	background: #fff;
}

.passphrase-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.passphrase-modal-buttons .button {
	margin: 0;
	padding: 6px 16px;
	font-size: 16px;
}



footer {
	clear: both;
	padding: 20px;
}
footer p {
	font-size: 12px;
}
footer .col>a {
	display: block;
}

@media (max-width: 1600px) {
	[data-module="comm"] { width: 60%; }
	[data-module="controls"] { width: 20%; }
	[data-module="filesystem"] { width: 20%; }
}

@media (max-width: 1200px) {
	[data-module="comm"] { width: 70%; }
	[data-module="controls"] { width: 30%; }
	[data-module="filesystem"] { display: none; }
}