* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  background: #000;
  color-scheme: dark;
  overscroll-behavior-y: none
}

button,
select,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent
}

button {
  -webkit-user-select: none;
  user-select: none
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
  color: #eee;
  height: 100%;
  overflow: hidden;
  letter-spacing: .02em;
  overscroll-behavior-y: none
}

/* Przewija sie tylko .page, a dokument stoi w miejscu. Tlo jest poza tym
   kontenerem, wiec przy szybkim przewijaniu na telefonie nie ma jak sie ruszyc. */
.page {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.page::-webkit-scrollbar {
  display: none
}

/* Przypiete do dolu, ze stala wysokoscia: Chrome na Androidzie przy chowaniu
   paska adresu przesuwa to, co przypiete do gory, i zmienia wysokosc ekranu. */
.bg {
  position: fixed;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  contain: strict
}

header,
main {
  position: relative;
  z-index: 1
}

.bg-stripes,
.bg-hatch,
.bg-glow,
.bg-grain,
.bg-fade {
  position: absolute;
  pointer-events: none
}

.bg-stripes {
  top: -6vh;
  left: -6%;
  width: 112%;
  height: 112vh;
  top: -6lvh;
  height: 112lvh;
  opacity: 1;
  animation: drift 14s ease-in-out infinite alternate;
  background:
    linear-gradient(125deg, transparent 0 80%,
      rgba(198, 255, 0, .16) 80% 84%, transparent 84% 85.5%,
      rgba(42, 74, 154, .28) 85.5% 87%, transparent 87% 88.5%,
      rgba(255, 255, 255, .13) 88.5% 90%, transparent 90% 91.5%,
      rgba(255, 42, 42, .18) 91.5% 93%, transparent 93%),
    linear-gradient(125deg,
      rgba(255, 42, 42, .11) 0 3%, transparent 3% 4.5%,
      rgba(255, 255, 255, .08) 4.5% 6%, transparent 6% 7.5%,
      rgba(42, 74, 154, .18) 7.5% 9%, transparent 9% 10.5%,
      rgba(198, 255, 0, .11) 10.5% 14%, transparent 14%);
}

.bg-hatch {
  top: 0;
  right: -40px;
  bottom: 0;
  left: -40px;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 14px);
  animation: hatch 8s linear infinite
}

.bg-glow {
  inset: 0;
  background:
    radial-gradient(ellipse 46% 34% at 6% 94%, rgba(198, 255, 0, .045), transparent 64%),
    radial-gradient(ellipse 38% 28% at 97% 4%, rgba(198, 255, 0, .03), transparent 66%)
}

.bg-grain {
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px
}

.bg-fade {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .45) 0%, transparent 72%)
}

@keyframes hatch {
  to {
    transform: translate3d(-17.09px, 0, 0)
  }
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1.4%, 0)
  }

  to {
    transform: translate3d(2%, 1.4%, 0)
  }
}

@media (prefers-reduced-motion: reduce) {

  .bg-hatch,
  .bg-stripes {
    animation: none
  }
}

html.still .bg-hatch,
html.still .bg-stripes {
  animation: none
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
  border-top: 1px solid #111;
}

.foot span {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #777
}

.motion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ddd;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.motion b {
  color: #c6ff00
}

.motion:active {
  background: #1a1a1a
}

.motion[aria-pressed="false"] b {
  color: #8a8a8a
}

.made {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 22px auto 0;
  padding: 8px 12px;
  text-decoration: none
}

.made span {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #777
}

.made img {
  display: block;
  height: 36px;
  width: auto
}

.copy {
  margin-top: 10px;
  font-size: .62rem;
  line-height: 1.5;
  text-align: center;
  color: #777
}

header {
  max-width: 480px;
  margin: 0 auto
}

.header-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #111;
}

.header-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px
}

header p,
header h1 {
  min-width: 0;
  line-height: 1
}

header p {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #777;
}

header h1 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #eee;
}

header p {
  line-height: 1.35
}

header .badge {
  white-space: nowrap;
  color: #c6ff00;
}

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #777;
}

button.conn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  background: #000;
  border: 1px solid currentColor;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: color .16s ease
}

.conn i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c5c5c;
  flex-shrink: 0
}

.conn.on {
  color: #c6ff00
}

.conn.on i {
  background: #c6ff00;
  box-shadow: 0 0 6px rgba(198, 255, 0, .6)
}

.conn.off {
  color: #ff5a5a
}

.conn.off i {
  background: #ff2a2a;
  box-shadow: 0 0 6px rgba(255, 42, 42, .5)
}

.stripe {
  display: flex;
  gap: 5px;
  height: 3px;
  padding: 8px 16px 0;
  background: transparent
}

.stripe i {
  transform: skewX(-35deg);
  transform-origin: left center
}

.stripe .s1 {
  width: 46%;
  background: #c6ff00;
  box-shadow: 0 0 6px rgba(198, 255, 0, .4)
}

.stripe .s2 {
  width: 7%;
  background: #2a4a9a
}

.stripe .s3 {
  width: 7%;
  background: #fff
}

.stripe .s4 {
  width: 7%;
  background: #ff2a2a
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px max(14px, env(safe-area-inset-left)) calc(36px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
}

section {
  background: #050505;
  border: 1px solid #1a1a1a;
  border-left: 3px solid #c6ff00;
  padding: 14px 16px 16px;
  margin-bottom: 12px
}

section h2 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9a9a9a;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #222;
}

.group {
  margin-bottom: 12px
}

.sub {
  margin-bottom: 8px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a
}

.theme-btns {
  display: flex;
  gap: 8px
}

.theme-btns button {
  flex: 1;
  min-height: 44px;
  padding: 10px 6px;
  background: #000;
  border: 1px solid #2a2a2a;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ddd;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.theme-btns button:active {
  background: #c6ff00;
  border-color: #c6ff00;
  color: #000
}

.theme-btns button:disabled {
  opacity: .35;
  cursor: default;
  color: #777
}

.theme-btns button:disabled .arrow.l {
  border-right-color: #5c5c5c
}

.theme-btns button:disabled .arrow.r {
  border-left-color: #5c5c5c
}

.gauge-note {
  font-size: .66rem;
  letter-spacing: .03em;
  line-height: 1.45;
  color: #ff5a5a;
  border: 1px solid #2a2a2a;
  border-left: 2px solid #ff2a2a;
  padding: 8px 10px;
  margin-bottom: 12px
}

.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: middle;
  margin: 0 4px 1px;
  border-style: solid;
  border-color: transparent;
}

.arrow.l {
  border-width: 5px 7px 5px 0;
  border-right-color: #c6ff00
}

.arrow.r {
  border-width: 5px 0 5px 7px;
  border-left-color: #c6ff00
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ddd;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.nav-btn .arrow {
  margin: 0
}

.nav-btn:active {
  background: #1a1a1a
}

.theme-btns button:active .arrow.l {
  border-right-color: #000
}

.theme-btns button:active .arrow.r {
  border-left-color: #000
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px
}

.group:last-child {
  margin-bottom: 0
}

.color-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: inherit;
}

.color-btn i {
  display: block;
  height: 34px;
  border: 1px solid #2a2a2a
}

.color-btn span {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  color: #9a9a9a
}

.color-btn.sel i {
  border-color: #c6ff00;
  box-shadow: 0 0 8px rgba(198, 255, 0, .35)
}

.color-btn.sel span {
  color: #c6ff00
}

.color-btn.busy,
.color-btn:disabled {
  opacity: .35;
  pointer-events: none
}

label.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a9a9a;
}

select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  max-width: 210px;
  min-height: 44px;
  border-radius: 0;
  background: #000 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c6ff00'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #eee;
  border: 1px solid #2a2a2a;
  padding: 8px 28px 8px 10px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #c6ff00
}

button.save,
button.danger {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

button.save {
  background: #c6ff00;
  border: 1px solid #c6ff00;
  color: #000
}

button.save:active {
  background: #a8d900;
  border-color: #a8d900
}

button.save:disabled {
  opacity: .35;
  cursor: default
}

#saveLoc:not(.dirty) {
  background: transparent;
  color: #8a8a8a;
  border-color: #2a2a2a
}

#saveLoc.dirty {
  box-shadow: 0 0 12px rgba(198, 255, 0, .35)
}

button.danger {
  background: transparent;
  border: 1px solid #ff2a2a;
  color: #ff5a5a
}

button.danger:active {
  background: #ff2a2a;
  color: #000
}

.trip-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.trip-btns button.danger {
  flex: 1;
  width: auto;
  min-height: 52px;
  margin-top: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .72rem;
  letter-spacing: .1em;
}

.trip-btns small {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: #8a8a8a
}

.trip-btns button.danger:active small {
  color: #000
}

.odo-val {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin: 2px 0 4px;
  padding: 10px 0 8px;
  letter-spacing: .12em;
  color: #c6ff00;
  background: #000;
  border: 1px solid #242424;
  text-shadow: 0 0 10px rgba(198, 255, 0, .28);
  font-variant-numeric: tabular-nums;
}

.odo-val small {
  font-size: 1rem;
  color: #8aa600;
  letter-spacing: .06em
}

.odo-sub {
  text-align: center;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
  padding: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.bright-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.sport-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin: 12px 0;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ddd;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.sport-btn .state {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.sport-btn .state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c5c5c
}

.sport-btn b {
  font-size: .68rem;
  letter-spacing: .12em;
  color: #8a8a8a
}

.sport-btn[aria-pressed="true"] {
  border-color: #c6ff00
}

.sport-btn[aria-pressed="true"] b {
  color: #c6ff00
}

.sport-btn[aria-pressed="true"] .state i {
  background: #c6ff00;
  box-shadow: 0 0 6px rgba(198, 255, 0, .6)
}

.sport-btn:active {
  background: #1a1a1a
}

.sport-btn:disabled {
  opacity: .35;
  cursor: default;
  color: #777
}

.bright-row .lbl {
  width: 84px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a;
  flex-shrink: 0
}

.bright-row input[type=range] {
  --bright: 100%;
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer
}

.bright-row input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  border: none;
  background: linear-gradient(#c6ff00, #c6ff00) 0 50% / var(--bright) 3px no-repeat, #2a2a2a
}

.bright-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border: none;
  background: #c6ff00;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  box-shadow: 0 0 8px rgba(198, 255, 0, .4);
  transition: box-shadow .14s ease
}

.bright-row input[type=range].drag::-webkit-slider-thumb {
  box-shadow: 0 0 14px rgba(198, 255, 0, .85)
}

.bright-row input[type=range]::-moz-range-track {
  height: 3px;
  border: none;
  background: linear-gradient(#c6ff00, #c6ff00) 0 50% / var(--bright) 3px no-repeat, #2a2a2a
}

.bright-row input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 0;
  background: #c6ff00;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  box-shadow: 0 0 8px rgba(198, 255, 0, .4);
  transition: box-shadow .14s ease
}

.bright-row input[type=range].drag::-moz-range-thumb {
  box-shadow: 0 0 14px rgba(198, 255, 0, .85)
}

.bright-val {
  min-width: 2ch;
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: #c6ff00;
  font-variant-numeric: tabular-nums
}

.bright-val.go {
  animation: brighttick .22s cubic-bezier(.22, .7, .2, 1)
}

@keyframes brighttick {
  from {
    color: #fff;
    transform: translateY(3px)
  }

  to {
    color: #c6ff00;
    transform: none
  }
}

.fw-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.fw-row input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none
}

.fw-pick,
.fw-upd {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}


.fw-pick {
  background: #000;
  border: 1px solid #2a2a2a;
  color: #ddd
}

.fw-pick:active {
  background: #1a1a1a
}

.fw-upd {
  background: #c6ff00;
  border: 1px solid #c6ff00;
  color: #000
}

.fw-upd:disabled,
.fw-pick:disabled {
  opacity: .35;
  cursor: default
}

.fw-name.ok {
  color: #c6ff00
}

.fw-name.err {
  color: #ff5a5a
}

.fw-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8a8a;
}



.fw-help {
  margin: 0 0 8px;
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: #c2c2c2
}



.fw-help b {
  color: #eee;
  font-weight: 700
}

.fw-warn {
  display: grid;
  gap: 4px;
  font-size: .66rem;
  letter-spacing: .03em;
  line-height: 1.45;
  color: #c2c2c2;
  border: 1px solid #2a2a2a;
  border-left: 2px solid #c6ff00;
  padding: 8px 10px;
}

.fw-warn p:first-child {
  color: #c6ff00
}

.fw-row+.fw-row {
  margin-top: 10px
}


main[hidden],
.foot[hidden],
.upd-banner[hidden],
button.conn[hidden],
.head-back[hidden],
.docs[hidden] {
  display: none
}

/* Powrot do listy urzadzen, w naglowku obok tytulu. */
.head-back {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #000;
  border: 1px solid #2a2a2a;
  transition: border-color .16s ease
}

.head-back i {
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 7px 5px 0;
  border-right-color: #c6ff00
}

/* Strona glowna: wybor urzadzenia. */
.intro {
  margin: 2px 2px 12px;
  font-size: .78rem;
  line-height: 1.5;
  color: #b5b5b5
}

.dev-head {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.dev-tag {
  color: #c6ff00;
  letter-spacing: .14em;
  white-space: nowrap
}

.dev-go {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease
}

.dev-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #2a2a2a;
  color: #c6ff00;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%)
}

.dev-ico svg {
  width: 28px;
  height: 28px
}

.dev-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px
}

.dev-name {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #eee
}

.dev-sub,
.docs-btn {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em
}

.dev-sub {
  color: #9a9a9a
}

.docs-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  color: #ddd;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease
}

.docs-lbl {
  flex: 1;
  min-width: 0
}

.docs-n {
  color: #9a9a9a;
  font-variant-numeric: tabular-nums
}

.docs-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 0 5px 7px;
  border-left-color: #c6ff00;
  transition: transform .16s ease
}

.docs-btn[aria-expanded="true"] .docs-arrow {
  transform: rotate(90deg)
}

.docs {
  display: grid;
  gap: 8px;
  margin-top: 8px
}

.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  color: #eee;
  text-decoration: none;
  transition: border-color .16s ease
}

.doc svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #c6ff00
}

.doc-name {
  flex: 1;
  min-width: 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em
}

.doc-type {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a9a9a
}

.help {
  font-size: .68rem;
  line-height: 1.5;
  color: #b5b5b5
}

.help b {
  color: #eee
}

@media (hover: hover) and (pointer: fine) {

  .dev-go:hover,
  .doc:hover,
  .head-back:hover {
    border-color: #c6ff00
  }

  .docs-btn:hover {
    border-color: #c6ff00;
    color: #fff
  }
}

.upd-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 8px 10px 14px;
  background: #050505;
  border: 1px solid #c6ff00;
  border-left-width: 3px;
  animation: rise .32s cubic-bezier(.22, .7, .2, 1) both
}

.upd-banner-txt {
  flex: 1;
  min-width: 0
}

.upd-banner-head {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #c6ff00
}

.upd-banner-ver {
  margin-top: 3px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #eee;
  overflow-wrap: anywhere
}

.upd-banner .fw-upd {
  display: inline-flex;
  align-items: center;
  text-decoration: none
}

.upd-x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: -4px;
  background: none;
  border: 1px solid transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer
}

@media (hover: hover) and (pointer: fine) {
  .upd-x:hover {
    border-color: #c6ff00;
    color: #fff
  }
}

.fw-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease
}

.fw-entry.new {
  border-color: #c6ff00
}

.fw-entry-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px
}

.fw-entry-ver {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #eee
}

.fw-entry-sub {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a
}

.fw-entry-sub.ok {
  color: #c6ff00
}

.fw-entry-sub.err {
  color: #ff5a5a
}

.fw-entry-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 0 5px 7px;
  border-left-color: #c6ff00
}

/* Stan klastra: dwa kafelki obok siebie, adres urzadzenia pod nimi. */
.fw-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.fw-info div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #242424
}

.fw-info dt,
.fw-dev {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a
}

.fw-info dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #eee
}

.fw-info dd.ok {
  color: #c6ff00
}

.fw-info dd.err {
  color: #ff5a5a
}

.fw-dev {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px
}

#fwMac {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums
}

/* Kroki aktualizacji: numer w kwadracie i pionowa linia do nastepnego kroku. */
.fw-steps {
  list-style: none
}

.fw-steps li {
  display: flex;
  gap: 12px
}

.fw-rail {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.fw-rail b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #c6ff00;
  color: #c6ff00;
  font-size: .6rem;
  letter-spacing: 0
}

.fw-rail i {
  flex: 1;
  width: 1px;
  background: #2a2a2a
}

.fw-body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px
}

.fw-steps li:last-child .fw-body {
  padding-bottom: 0
}

#upd .fw-pick,
#upd .fw-upd {
  min-height: 44px
}

.fw-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #000;
  border: 1px solid #2a2a2a
}

.fw-card-top {
  display: flex;
  align-items: center;
  gap: 12px
}

.fw-card.new {
  border-color: #c6ff00
}

.fw-card[hidden],
.fw-card-notes[hidden],
.fw-card .fw-upd[hidden] {
  display: none
}

.fw-card-txt {
  flex: 1;
  min-width: 0
}

.fw-card-head {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a
}

.fw-card.new .fw-card-head {
  color: #c6ff00
}

.fw-card-ver {
  margin-top: 3px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #eee
}

.fw-card-notes {
  padding-top: 8px;
  border-top: 1px solid #1a1a1a;
  font-size: .68rem;
  line-height: 1.45;
  color: #c2c2c2
}

.fw-step {
  display: flex;
  align-items: center;
  min-height: 20px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9a9a9a
}

.fw-send {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.fw-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 84px;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #2a2a2a;
  font: inherit;
  text-align: left;
  color: #ddd;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.fw-way b {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em
}

.fw-way span {
  font-size: .64rem;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #a8a8a8
}

.fw-way em {
  font-style: normal;
  font-weight: 700;
  color: #eee
}

.fw-way:active {
  background: #1a1a1a
}

.fw-way:disabled {
  opacity: .35;
  cursor: default
}

#licUpd {
  margin-top: 10px
}

.toast {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border: 1px solid #2a2a2a;
  border-left: 2px solid #c6ff00;
  color: #c6ff00;
  padding: 8px 16px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: 0;
  transition: .25s;
  pointer-events: none;
  z-index: 30;
}

.toast.show {
  opacity: 1
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .94);
}

.overlay.show {
  display: flex
}

.ota-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-left: 3px solid #c6ff00;
  padding: 18px 16px 16px
}

.ota-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      #c6ff00 0 58%,
      transparent 58% 60.5%,
      #2a4a9a 60.5% 70%,
      transparent 70% 72.5%,
      #fff 72.5% 82%,
      transparent 82% 84.5%,
      #ff2a2a 84.5% 94%,
      transparent 94%);
}

.ota-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9a9a9a;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #222;
}

.ota-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px
}

.ota-steps li {
  padding-top: 6px;
  border-top: 2px solid #2a2a2a;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #777;
  transition: border-color .16s ease, color .16s ease
}

.ota-steps li.done {
  border-top-color: #c6ff00;
  color: #9a9a9a
}

.ota-steps li.on {
  border-top-color: #c6ff00;
  color: #c6ff00
}

.prog {
  height: 6px;
  background: #111;
  border: 1px solid #1a1a1a;
  overflow: hidden
}

.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: #c6ff00;
  box-shadow: 0 0 8px rgba(198, 255, 0, .5);
  transition: width .15s;
}

.prog.wait i {
  width: 30%;
  animation: slide 1.2s ease-in-out infinite
}

.prog.err i {
  background: #ff2a2a;
  box-shadow: none
}

.ota-msg {
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c6ff00;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.ota-msg.err {
  color: #ff5a5a
}

.ota-warn {
  margin-top: 10px;
  font-size: .66rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: #999
}

.ota-close {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ddd;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}

.ota-close.show {
  display: block
}

.ota-close:active {
  background: #1a1a1a
}

@keyframes slide {
  from {
    margin-left: -30%
  }

  to {
    margin-left: 100%
  }
}

#ota.show {
  z-index: 28;
}

#link {
  z-index: 25;
  background: rgba(0, 0, 0, .88)
}

#link.show .ota-box,
#ask.show .ota-box {
  animation: pop .22s ease-out
}

#ask {
  z-index: 40;
  background: rgba(0, 0, 0, .88)
}

#ask.danger .ota-box {
  border-left-color: #ff2a2a
}

.ask-msg {
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .03em;
  color: #ccc;
  white-space: pre-line
}

.ask-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px
}

.ask-btns button {
  flex: 1;
  width: auto;
  margin-top: 0
}

.ask-btns .ota-close {
  display: block
}

/* Okno polaczenia: ikona po lewej, tytul i stan w jednym wierszu z nia. */
.link-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 2px
}

.link-top-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px
}

.link-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #ff5a5a
}

.link-stat i {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 6px rgba(255, 42, 42, .5)
}

.link-stat.busy {
  color: #9a9a9a
}

.link-stat.busy i {
  background: #5c5c5c;
  box-shadow: none
}

.link-stat.ok {
  color: #c6ff00
}

.link-stat.ok i {
  background: #c6ff00;
  box-shadow: 0 0 6px rgba(198, 255, 0, .6)
}

.link-icon {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6ff00
}

.link-icon svg {
  width: 28px;
  height: 28px
}

.link-icon .ck {
  display: none
}

.link-icon.busy {
  border-color: #c6ff00
}

.link-icon.busy::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #c6ff00;
  border-radius: 50%;
  animation: pulse 1.4s ease-out infinite
}

.link-icon.ok {
  background: #c6ff00;
  border-color: #c6ff00;
  color: #000;
  box-shadow: 0 0 14px rgba(198, 255, 0, .5)
}

.link-icon.ok .bt {
  display: none
}

.link-icon.ok .ck {
  display: block
}

.link-icon.err,
.link-icon.nobt {
  border-color: #ff2a2a;
  color: #ff5a5a
}

.link-head {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #eee
}

.link-steps {
  list-style: none;
  counter-reset: s;
  margin: 14px 0 4px;
  border-top: 1px solid #111
}

.link-steps li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #111;
  font-size: .74rem;
  line-height: 1.4;
  letter-spacing: .03em;
  color: #c2c2c2
}

.link-steps li::before {
  content: counter(s);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6ff00;
  color: #c6ff00;
  font-size: .66rem;
  font-weight: 700
}

.link-steps b {
  color: #eee
}

#link .prog {
  margin-top: 14px
}

.link-msg {
  margin-top: 10px;
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: #999
}

.link-msg:empty {
  display: none
}

.link-msg.err {
  color: #ff5a5a
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: .8
  }

  to {
    transform: scale(1.6);
    opacity: 0
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:360px) {
  .theme-btns {
    gap: 6px
  }

  .color-grid {
    gap: 5px
  }

  .color-btn span {
    font-size: .52rem
  }

  select {
    max-width: 170px
  }

  .bright-row .lbl {
    display: none
  }
}

.color-btn i {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.color-btn i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .04) 45%, transparent 46%);
  pointer-events: none;
}

.color-btn.sel i {
  transform: translateY(-1px);
}

button:focus,
select:focus,
a:focus {
  outline: none
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
.bright-row input:focus-visible {
  outline: 2px solid #c6ff00;
  outline-offset: 2px
}

@media (hover: hover) and (pointer: fine) {
  .motion:hover {
    border-color: #c6ff00;
    background: #101010;
    color: #fff
  }

  .nav-btn:hover:not(:active),
  .fw-way:hover:not(:disabled):not(:active) {
    border-color: #c6ff00;
    color: #fff
  }

  button.conn:hover {
    color: #c6ff00
  }

  .sport-btn:hover:not(:disabled):not(:active) {
    border-color: #c6ff00;
    color: #fff
  }

  .theme-btns button:hover:not(:disabled):not(:active) {
    border-color: #c6ff00;
    color: #fff
  }

  button.save:hover:not(:active) {
    background: #d4ff4a;
    border-color: #d4ff4a
  }

  #saveLoc:not(.dirty):hover {
    background: #101010;
    border-color: #c6ff00;
    color: #c6ff00;
    box-shadow: none
  }

  button.danger:hover:not(:active) {
    background: rgba(255, 42, 42, .12)
  }

  .color-btn:hover span {
    color: #eee
  }

  .fw-entry:hover {
    border-color: #c6ff00;
    color: #fff
  }

  .fw-pick:hover:not(:disabled) {
    border-color: #c6ff00;
    color: #fff
  }

  .fw-upd:hover:not(:disabled):not(:active) {
    background: #d4ff4a;
    border-color: #d4ff4a
  }

  .ota-close:hover {
    border-color: #c6ff00;
    color: #fff
  }

  select:hover {
    border-color: #c6ff00
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes led {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .28
  }
}

@keyframes ledglow {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(198, 255, 0, .35)
  }

  50% {
    box-shadow: 0 0 9px rgba(198, 255, 0, .85)
  }
}

@keyframes readout {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(198, 255, 0, .2)
  }

  50% {
    text-shadow: 0 0 14px rgba(198, 255, 0, .42)
  }
}

@keyframes dirty {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(198, 255, 0, .22)
  }

  50% {
    box-shadow: 0 0 16px rgba(198, 255, 0, .55)
  }
}

header {
  animation: rise .32s cubic-bezier(.22, .7, .2, 1) both
}

main section {
  animation: rise .34s cubic-bezier(.22, .7, .2, 1) both
}

main section:nth-of-type(1) {
  animation-delay: .04s
}

main section:nth-of-type(2) {
  animation-delay: .09s
}

main section:nth-of-type(3) {
  animation-delay: .14s
}

main section:nth-of-type(4) {
  animation-delay: .19s
}

main section:nth-of-type(5) {
  animation-delay: .24s
}

.conn:not(.on) i {
  animation: led 1.8s ease-in-out infinite
}

.conn.on i {
  animation: ledglow 2.4s ease-in-out infinite
}

.odo-val {
  animation: readout 3.4s ease-in-out infinite
}

#saveLoc.dirty {
  animation: dirty 1.6s ease-in-out infinite
}

@media (prefers-reduced-motion: reduce) {

  header,
  main section,
  .upd-banner,
  .conn i,
  .odo-val,
  .bright-val,
  #saveLoc.dirty {
    animation: none
  }
}

html.still header,
html.still main section,
html.still .upd-banner,
html.still .conn i,
html.still .odo-val,
html.still .bright-val,
html.still #saveLoc.dirty {
  animation: none
}

