main.container {
  max-width: 480px
}

dialog {
  border: 0;
  border-radius: var(--bs-border-radius-lg);
  padding: 0;
  width: min(92vw, 420px);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: var(--bs-box-shadow-lg)
}

dialog::backdrop {
  background: rgba(0, 0, 0, .45)
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: var(--bs-emphasis-color);
  color: var(--bs-body-bg);
  padding: .5rem 1rem;
  border-radius: var(--bs-border-radius);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 2000
}

#toast.show {
  opacity: 1
}

#holdButton {
  padding: 3.5rem 0;
  font-size: 1.3rem;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none
}

.centerScreen {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center
}

.statusIcon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.statusIcon.tick {
  color: var(--bs-success)
}

.statusIcon.netOff {
  color: var(--bs-secondary-color)
}

.statusIcon.lock {
  color: var(--bs-danger)
}

.pinField {
  position: relative;
  display: flex;
  gap: .5rem;
  margin-top: .75rem
}

.pinField span {
  width: 2.75rem;
  height: 3.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem
}

.pinField:focus-within span.active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2)
}

.pinField input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 16px;
  border: 0
}

.shake {
  animation: shake .35s
}

@keyframes shake {
  25% {
    transform: translateX(-6px)
  }

  75% {
    transform: translateX(6px)
  }
}

.iconButton {
  padding: .25rem;
  border: 0;
  line-height: 0
}

.iconButton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--bs-secondary-color);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.roundButton {
  --bs-btn-bg: var(--bs-tertiary-bg);
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--bs-secondary-bg);
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--bs-secondary-bg);
  --bs-btn-active-color: var(--bs-body-color);
  --bs-btn-active-border-color: transparent;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: .85rem
}

.roundButton svg,
.dPad svg,
.rockerPill svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round
}

.unavailable {
  opacity: .3
}

.caption {
  font-size: .75rem;
  color: var(--bs-secondary-color);
  text-align: center;
  margin-top: .3rem
}

.acPanel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6vh
}

.acPanel .bigButton {
  width: 5.5rem;
  height: 5.5rem
}

.acPanel .bigButton svg {
  width: 34px;
  height: 34px
}

.tempRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3vh 0
}

.modeRow {
  display: flex;
  justify-content: space-around;
  width: 100%
}

.modeRow>div {
  text-align: center
}

.tvTopRow {
  display: flex;
  justify-content: space-between;
  margin: 1rem .25rem
}

.dPad {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 1.2rem auto;
  border-radius: 50%;
  background: var(--bs-tertiary-bg)
}

.dPad .btn,
.rockerPill .btn {
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--bs-secondary-bg);
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-active-bg: var(--bs-secondary-bg);
  --bs-btn-active-color: var(--bs-body-color)
}

.dPad .btn {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%
}

.dPad .padUp {
  top: 4px;
  left: 78px
}

.dPad .padDown {
  bottom: 4px;
  left: 78px
}

.dPad .padLeft {
  left: 4px;
  top: 78px
}

.dPad .padRight {
  right: 4px;
  top: 78px
}

.dPad .padOk {
  top: 62px;
  left: 62px;
  width: 96px;
  height: 96px;
  background: var(--bs-body-bg);
  font-weight: 600
}

.tvBottomRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .5rem .25rem 0
}

.rockerPill {
  width: 3.9rem;
  border-radius: 2rem;
  background: var(--bs-tertiary-bg);
  display: flex;
  flex-direction: column;
  align-items: center
}

.rockerPill .btn {
  width: 3.9rem;
  height: 3.6rem;
  border-radius: 2rem
}

.rockerPill span {
  font-size: .75rem
}

.navColumn {
  display: flex;
  flex-direction: column;
  gap: .9rem
}

.sentFlash {
  animation: sentFlash .35s ease-out
}

@keyframes sentFlash {
  0% {
    background: var(--bs-secondary-bg)
  }

  100% {}
}