@font-face {
  font-family: "FA5";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  /*@[if_target:host]*/
  /*@![add_file_to:inc/style/fonts/fa-solid-900.woff2, @fonts/fa-solid-900.woff2]*/
  src: url(fonts/fa-solid-900.woff2) format("woff2");
  /*@/[if_target:host]*/
  /*@[if_target:esp]*/
  src: url(data:font/woff2;charset=utf-8;base64,/*@![include:inc/style/fonts/fa-solid-900.min.woff2,base64]*/) format("woff2");
  /*@/[if_target:esp]*/
  /*@[if_not_target:host,esp]*/
  src: url(data:font/woff2;charset=utf-8;base64,/*@![include:inc/style/fonts/fa-solid-900.woff2,base64]*/) format("woff2");
  /*@/[if_not_target:host,esp]*/

  /*@[if_target:none]*/
  src: url(fonts/fa-solid-900.woff2) format("woff2");
  /*@/[if_target:none]*/
}

:root {
  --prim: #37a93c;
  --error: #8e1414;
  --font3: #919191;
  --scheme: light;
  --font_f: monospace;
  --menu_h: 120px;
  --ui_width: 500px;
}

body {
  color-scheme: light;
  --back: #eeeeee;
  --tab: #ffffff;
  --font: #111111;
  --font2: #333333;
  --dark: #ddd;
  --thumb: #999999;
  --black: #bdbdbd;
  --font_inv: #ffffff;
  --shad: #000000a3;
}

@media (prefers-color-scheme: dark) {
  body.theme-auto {
    color-scheme: dark;
    --back: #1b1c20;
    --tab: #26272c;
    --font: #eeeeee;
    --font2: #cccccc;
    --dark: #141516;
    --thumb: #444444;
    --black: #0e0e0e;
    --font_inv: #222222;
    --shad: #000;
  }
}

body.theme-dark {
  color-scheme: dark;
  --back: #1b1c20;
  --tab: #26272c;
  --font: #eeeeee;
  --font2: #cccccc;
  --dark: #141516;
  --thumb: #444444;
  --black: #0e0e0e;
  --font_inv: #222222;
  --shad: #000;
}

body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  -webkit-tap-highlight-color: transparent;
  background: var(--back);
  font-family: var(--font_f);
  font-size: 17px;
  cursor: default;
}

body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body::-webkit-scrollbar-track {
  background: #0000;
}

body::-webkit-scrollbar-thumb {
  background: var(--thumb);
  border-radius: 4px;
}

.version {
  font-size: 14px;
  font-weight: 400;
}

hr {
  border: none;
  border-top: 2px solid var(--back) !important;
}

textarea {
  padding: 5px 5px !important;
}

/* HEADER */

.header-row {
  width: 100%;
  height: 50px;
  background: var(--prim);
  position: fixed;
  z-index: 4;
  box-shadow: 0px 0px 7px 0px var(--shad);
  padding: 0 7px;
  box-sizing: border-box;
}

body.connection-error .header-row {
  background: var(--error);
}

.header {
  max-width: var(--ui_width);

  width: 100%;
  height: 100%;
  margin: 0 auto;

  user-select: none;
  color: white;
  font-size: 21px;
  font-weight: bold;

  display: flex;
  align-items: center;
  gap: 8px;
}

.header-back {
  cursor: pointer;
  font-size: 22px !important;
  width: 12px;
  display: block;
}

.header-back:hover {
  filter: brightness(0.9);
}

.header-back:active {
  filter: brightness(0.8);
}

body[data-screen=projects] .header-back,
body[data-screen=plugins] .header-back,
body[data-screen=test] .header-back,
body[data-screen=main] .header-back {
  display: none;
}

.header-title {
  cursor: pointer;
}

body[data-screen=projects] .header-title,
body[data-screen=plugins] .header-title,
body[data-screen=test] .header-title,
body[data-screen=main] .header-title {
  cursor: unset;
}

.header-connection {
  align-self: stretch;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 400;
  display: none;
  margin-left: -5px;
}

body[data-screen=ota] .header-connection,
body[data-screen=dev_config] .header-connection,
body[data-screen=fsbr_edit] .header-connection,
body[data-screen=files] .header-connection,
body[data-screen=info] .header-connection,
body[data-screen=ui] .header-connection {
  display: block;
}

.header-connection-icon {
  align-self: stretch;
  padding-top: 8px;
  font-size: 12px !important;
  display: none;
  margin-left: -4px;
}

body[data-screen=ota] .header-connection-icon,
body[data-screen=dev_config] .header-connection-icon,
body[data-screen=fsbr_edit] .header-connection-icon,
body[data-screen=files] .header-connection-icon,
body[data-screen=info] .header-connection-icon,
body[data-screen=ui] .header-connection-icon {
  display: none !important;
}

.header-connections {
  flex: 1;
}

.header-icon {
  cursor: pointer;
  font-size: 28px;
  width: 27px;
  display: none;
}

.header-icon:hover {
  filter: brightness(0.9);
}

.header-icon:active {
  filter: brightness(0.8);
}

body[data-screen=ui] .icon-menu,
body[data-screen=ota] .icon-menu,
body[data-screen=dev_config] .icon-menu,
body[data-screen=fsbr_edit] .icon-menu,
body[data-screen=files] .icon-menu,
body[data-screen=info] .icon-menu,

body[data-screen=main] .icon-refresh,
body[data-screen=ui] .icon-refresh,
body[data-screen=info] .icon-refresh,
body[data-screen=files] .icon-refresh,
body[data-screen=fsbr_edit] .icon-refresh,

body[data-screen=config] .icon-cfg,
body[data-screen=main] .icon-cfg {
  display: block;
}


/* MAIN */
.main {
  margin: auto;
  min-height: 100%;
  background: var(--back);
}

.main-inner {
  padding-top: 65px;
  padding-bottom: 50px;
  margin: 0px 5px;
}

body.show-cli .main-inner {
  padding-bottom: 170px;
}

.cli {
  display: none;
}

body.show-cli .cli {
  display: block;
}

.main-col {
  width: 100%;
  color: var(--font);
  display: none;
  max-width: var(--ui_width);
  margin: auto;
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 35px;
  background: var(--tab);
  box-shadow: 0px 1px var(--tab);
  gap: 20px;
}

body[data-screen=main] .footer {
  /*@[if_not_target:esp]*/
  display: flex;
  /*@/[if_not_target:esp]*/
}

.footer a {
  color: var(--font2);
  text-decoration: none;
  font-size: 15px !important;
}

.footer a:hover {
  color: var(--font);
}

.i-footer {
  font-size: 22px !important;
  padding-right: 0 !important;
}

/* MOZ */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/*@[if_not_target:esp]*/
/* ====================================================================== */
/* ================================ PROJ ================================ */
/* ====================================================================== */

body[data-screen=projects] .screen-projects {
  display: block;
}

body[data-screen=projects] .footer {
  /*@[if_not_target:esp]*/
  display: flex;
  /*@/[if_not_target:esp]*/
}

.proj {
  background: var(--tab);
  border-radius: 5px;
  box-shadow: 0 0 10px 0px #00000020;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 7px;
  margin: 5px auto 10px;
  max-width: 740px;
}

.proj-name {
  display: flex;
}

.proj-name a {
  font-size: 16px;
  font-weight: bold;
  color: var(--prim);
  text-decoration: none;
}

.proj-name a:hover {
  text-decoration: underline;
}

.proj-about {
  color: var(--font2);
  font-size: 15px;
}

/* ====================================================================== */
/* ================================ TEST ================================ */
/* ====================================================================== */

body[data-screen=test] .screen-test {
  display: block;
  max-width: 900px;
}

body[data-screen=test] .footer {
  /*@[if_not_target:esp]*/
  display: flex;
  /*@/[if_not_target:esp]*/
}

body[data-screen=test] .header {
  max-width: 900px;
}

.test-tabs {
  padding: 0 10px !important;
  min-height: 0 !important;
}

/* ====================================================================== */
/* =============================== PLUGINS ============================== */
/* ====================================================================== */
body[data-screen=plugins] .screen-plugins {
  display: block;
  max-width: var(--ui_width);
  /* display: grid; */
  /* max-width: 900px; */
  /* grid-gap: 0px; */
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
}

body[data-screen=plugins] .footer {
  /*@[if_not_target:esp]*/
  display: flex;
  /*@/[if_not_target:esp]*/
}

.plugin-inner {
  height: 40px !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding-left: 10px;
  box-sizing: border-box;
}

.plugin-inner a {
  font-size: 16px;
  font-weight: bold;
  color: var(--prim);
  text-decoration: none;
}

.plugin-row {
  display: flex;
}

.plugin-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding-left: 5px;
}

.i-plugin {
  font-size: 21px;
  cursor: pointer;
  color: var(--prim);
}

.i-plugin:hover {
  filter: brightness(1.15);
}

.tags {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 5px;
  margin: 2px 2px;
  background: var(--prim);
  color: var(--font_inv);
  height: 24px;
}

.i-tags {
  color: var(--font_inv);
  font-size: 20px;
  padding-left: 7px;
  cursor: pointer;
}

.tags-wtype {
  cursor: pointer;
}

.tags-wtype:hover {
  text-decoration: underline;
}

/*@/[if_not_target:esp]*/