#remote-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #16213e;
}

#toolbar-buttons { display: flex; gap: 8px; }

#connection-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
  font-size: 14px;
  min-width: 0;
}

#connection-device-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

#connection-token-hint {
  color: #888;
  font-size: 12px;
}

.rename-current-btn {
  background: none !important;
  border: none !important;
  padding: 0 4px !important;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.rename-current-btn:hover { opacity: 1; }

#toolbar button {
  padding: 6px 16px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

#video-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#remote-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#touch-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  cursor: crosshair;
}

#pip-video {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 200px;
  border-radius: 8px;
  border: 2px solid #e94560;
  z-index: 10;
}

#commands-panel {
  width: 200px;
  background: #16213e;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid #333;
}

#commands-panel h3 {
  color: #e94560;
  margin-bottom: 12px;
  font-size: 16px;
}

.cmd-group { margin-bottom: 16px; }

.cmd-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cmd-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 4px;
  background: #0f3460;
  color: #eee;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.cmd-btn:hover {
  background: #e94560;
  border-color: #e94560;
}

#block-message, #app-package, #text-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 4px;
  background: #0f3460;
  color: #eee;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 13px;
}

#text-input { resize: vertical; }

.info-box {
  padding: 8px;
  margin-top: 4px;
  background: #0a0a1a;
  border-radius: 4px;
  font-size: 12px;
  color: #aaa;
}

.info-box a {
  color: #e94560;
  display: block;
  margin-top: 4px;
}
