:root {
  --top-list-changed: 124px;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text) !important;
}
.btn {
  background-color: var(--color-button) !important;
  color: white !important;
  border: none;
  border-radius: 5px !important;
  margin: 8px;
}
.btn:hover {
  color: white !important;
  background-color: var(--color-button-selected) !important;
}
#scanLights-btn,
#scanLights-btn-phone {
  color: white !important;
  border-radius: 5px !important;
  background-color: var(--color-button-top);
  cursor: pointer;
}
#scanLights-btn:focus {
  color: white !important;
  border-radius: 5px !important;
  background-color: var(--color-button-top);
}
#scanLights-btn:hover,
#scanLights-btn-phone:hover {
  background-color: var(--color-button-top-highlight) !important;
}
a:hover,
a:focus {
  text-decoration: none !important;
}
.main-head h1 {
  color: var(--color-text) !important;
}
.main-head svg {
  --ic-line: var(--color-text-alt) !important;
  --ic-frame: var(--color-text-alt) !important;
}
.item-nav {
  background-color: var(--color-navbar-bg);
}
.topic-col {
  color: white;
}
.btn-danger {
  background-color: #b71f0e !important;
  color: var(--color-text-danger);
}
#headLightSearch span {
  color: var(--color-text) !important;
}
#ofGroupName {
  color: white;
}
.nav-head-svg svg {
  --ic-line: white !important;
  --ic-frame: white !important;
  --li-state-line: white !important;
}
#icon-bulb .li-line,
#icon-bulb .li-state-line {
  stroke: var(--ic-fill);
}
#icon-bulb .li-state {
  fill: none;
}
.modal-content {
  background-color: var(--color-bg);
  color: var(--color-text);
}
.modal-content .close {
  color: var(--color-text);
}
.modal-content .modal-header {
  color: var(--color-text-alt);
  border-bottom: 1px solid var(--color-element) !important;
}
.modal-content .modal-body input {
  color: var(--color-text);
  background-color: var(--color-element);
}
.modal-content .modal-footer {
  border-top: 1px solid var(--color-element);
  background-color: var(--color-bg);
}
#add-icon {
  --ic-fill: transparent;
}
#add-icon circle {
  display: none;
}
#add-icon path {
  --ic-fill: #8abd8a33;
}
#remove-icon {
  --ic-fill: transparent;
}
#remove-icon circle {
  display: none;
}
#remove-icon path {
  --ic-fill: #f7696982;
}
.main-head h1 + span {
  padding-left: 120px;
  margin-top: -28px;
}
@media (min-width: 600px) {
  .main-head h1 {
    padding-left: 54px;
  }
  .main-head h1 + span {
    padding-left: 54px;
    margin-top: 0px;
  }
}
@media (min-width: 900px) {
  .main-head h1 + span {
    padding-left: 120px;
    margin-top: -32px;
  }
}
h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.left-content {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  overflow-y: auto;
}
.left-content ul#devicesLeft {
  transition: top 60ms ease-out;
}
.left-content ul#devicesLeft li.devices {
  margin: 8px 4px;
}
/* change box to save or dismiss changed scene settings */
#changedBox {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: min-content min-content;
      grid-template-rows: min-content min-content;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  opacity: 0;
  display: none;
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 8px 8px;
  border-radius: 5px;
  padding: 16px 8px;
  transition: opacity 0.4s ease-out 100ms;
}
#changedBox p {
  text-align: center;
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
body.changed #changedBox {
  display: -ms-grid;
  display: grid;
  opacity: 1;
}
body.changed #lightsLeft {
  top: var(--top-list-changed);
}
.dropzone {
  -ms-touch-action: pan-y;
      touch-action: pan-y;
}
.lights-orphan {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  overflow-y: auto;
}
#outer-dropzone {
  height: 140px;
}
#inner-dropzone {
  height: 80px;
}
.dropzone {
  transition: background-color 0.3s;
}
.drag-orig {
  z-index: -2;
  position: relative;
  opacity: 0.5;
}
.dropzone .device {
  padding: 0;
}
@keyframes add-group-animation {
  0% {
    height: 0px;
    min-height: 0;
  }
  100% {
    height: 64px;
    min-height: 64px;
  }
}
@keyframes remove-group-animation {
  0% {
    height: 64px;
    min-height: 64px;
  }
  100% {
    height: 0px;
    min-height: 0px;
  }
}
#lightsLeft .device {
  transition: opacity 200ms ease-out;
}
.lights-orphan .device {
  transition: opacity 200ms ease-out;
}
@media (max-width: 430px) {
  .lights-orphan .device {
    width: 100%;
  }
}
#lightsLeft .device {
  background-color: var(--color-bg) !important;
  border-radius: 5px !important;
  margin: 8px !important;
}
#lightsLeft .device .item-push:hover {
  background-color: var(--color-button);
}
#lights-cont .device {
  background-color: var(--color-element) !important;
}
#lights-cont .device .item-push:hover {
  background-color: var(--color-bg);
}
.device {
  color: var(--color-text) !important;
  /*touch-action: none;*/
  /*touch-action: pan-y;*/
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 2px solid transparent;
  border-radius: 5px !important;
}
.device svg {
  --ic-line: var(--color-text);
  --ic-frame: var(--color-text);
  --ic-fill: var(--color-text);
  --li-state-line: var(--color-text);
}
.device.dying {
  opacity: 0.5;
}
.device.add-group {
  animation: add-group-animation 120ms ease-in forwards;
}
.device.remove-group {
  animation: remove-group-animation 120ms ease-in forwards;
}
.device .item-icon {
  max-width: 32px;
}
.device .item-icon svg {
  -ms-transform: scale(0.8);
      transform: scale(0.8);
}
.device .li-name,
.device .item-icon {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.device .li-name {
  -ms-flex: 1;
      flex: 1;
  display: unset;
  margin: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device .item-push {
  min-width: 48px;
  max-width: 48px;
  width: 48px;
  height: 48px;
  -ms-flex: 1;
      flex: 1;
  margin: 4px 0px;
  cursor: pointer;
}
.device .item-push:hover {
  background-color: var(--color-button);
  border-radius: 5px;
}
.device .item-push svg {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
}
@media (min-width: 1200px) {
  .device .item-push {
    width: 24px;
  }
}
.device.drag-active {
  z-index: 4;
  position: relative;
  background-color: var(--color-element) !important;
  border: 2px solid var(--color-text-alt) !important;
}
body.include .item-nav {
  background-color: var(--color-navbar-bg-highlight);
}
body.exclude .main {
  background-color: var(--color-element);
}
.drop-active {
  border-color: #aaa;
}
.drop-target {
  background-color: #29e;
}
.drag-drop {
  display: inline-block;
  min-width: 40px;
  padding: 2em 0.5em;
  color: #fff;
  background-color: #29e;
  border: solid 2px #fff;
  -ms-transform: translate(0px, 0px);
      transform: translate(0px, 0px);
  transition: background-color 0.3s;
}
.drag-drop.can-drop {
  color: #000;
  background-color: #4e4;
}
#progress {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  background-color: var(--color-element);
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
}
#progressBar {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 0%;
  background-color: var(--color-text-alt);
  transition: width 1s ease-in-out;
  box-sizing: border-box;
}
#time {
  margin-left: auto;
  padding-right: 41px;
  transition: opacity 500ms ease-out;
}
@media (max-width: 430px) {
  #time {
    padding-right: 0px;
  }
}
#lights-cont {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex: 1;
      flex: 1;
  padding-top: 34px;
  position: relative;
  transition: transform 100ms ease-out 300ms;
  z-index: 1;
  height: 100%;
  padding-bottom: 140px;
}
#lights-cont ul {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: left;
      justify-content: left;
  -ms-flex-align: center;
      align-items: center;
  padding: 0 40px;
}
@media (max-width: 430px) {
  #lights-cont ul {
    padding: 0 10px;
    -ms-flex-pack: center;
        justify-content: center;
  }
}
.main {
  position: relative;
  width: 85%;
}
@media (max-width: 430px) {
  .main {
    width: 100%;
  }
}
#lights-cont ul {
  transition: transform 150ms ease-out;
}
#lights-cont.search-active ul {
  -ms-transform: translateY(120px);
      transform: translateY(120px);
  transition: transform 240ms cubic-bezier(0, 0, 0, 1.63) 0ms;
  margin-bottom: 30vh;
}
#searchDiv {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 56px;
  right: 40px;
  height: 74px;
  opacity: 0;
  transition: opacity 100ms ease-out, transform 400ms ease-out;
  -ms-transform: translateY(120px);
      transform: translateY(120px);
}
#searchDiv svg {
  --ic-line: var(--color-danger);
}
@media (max-width: 430px) {
  #searchDiv {
    left: 16px;
    right: 16px;
  }
  #searchDiv p {
    font-size: 13px;
  }
}
.search-active + #searchDiv {
  z-index: 2;
  opacity: 1;
  transition: opacity 300ms ease-out 150ms;
  -ms-transform: translateY(150px);
      transform: translateY(150px);
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.new-device {
  animation: fadein 2s;
}
#lightsLeft {
  -ms-flex: 1;
      flex: 1;
  z-index: 1;
}
/* empty info on the left */
#leftEmptyInfo {
  z-index: -2;
  opacity: 0;
  position: absolute;
  top: 32%;
  left: 48px;
  max-width: 200px;
  transition: opacity 600ms ease-out;
}
#lightsLeft:empty + #leftEmptyInfo.init {
  opacity: 1;
  /*display: flex;
	flex-direction: column;*/
}
body.include #lightsLeft:empty + #leftEmptyInfo,
body.exclude #lightsLeft:empty + #leftEmptyInfo {
  opacity: 0;
}
#lightsLeft:empty + #leftEmptyInfo > svg {
  margin-top: 16px;
  max-width: 215px;
}
#lightsLeft.drop-active + div {
  opacity: 0;
}
#dragcage {
  position: fixed;
  width: 100%;
  z-index: 3;
}
