.device-view {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: rgba(11, 14, 18, 0.92);
  color: var(--gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.device-view svg {
  width: 20px;
  height: 20px;
}

.device-view:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.device-view.is-sending svg,
.device-view.is-sent svg {
  display: none;
}

.device-view.is-sending::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(217, 183, 121, 0.35);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: device-spin 0.8s linear infinite;
}

.device-view.is-sent::after {
  content: "";
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

@keyframes device-spin {
  to { transform: rotate(360deg); }
}

.device-status {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.device-status.is-sent::before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
}

.device-status.is-error {
  color: #f0c2c2;
}
