* { box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { margin: 0; background: #0f1115; color: #eaeaea; min-height: 100vh; }
header {
  padding: 16px 24px;
  background: #1b1e24;
  border-bottom: 2px solid #e10600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
h1 { margin: 0; font-size: 18px; }
h2 { font-size: 15px; color: #cfcfcf; margin: 0 0 16px; }
.hidden { display: none !important; }
nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  background: transparent;
  color: #999;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.nav-btn.active { background: #e10600; color: #fff; }
#whoami { font-size: 12px; color: #999; margin-left: 12px; }
section { padding: 24px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"], input[type="password"], select {
  background: #1b1e24;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
}
button {
  background: #e10600;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #ff2a1f; }
button.secondary { background: #2a2d34; }
button.secondary:hover { background: #3a3e47; }
button.danger { background: #444; }
button.danger:hover { background: #5a1c1c; }
.status { font-size: 13px; color: #bbb; margin-top: 12px; }
.status.active { color: #4ade80; font-weight: 600; }
.status.error { color: #f87171; }
.hint { font-size: 12px; color: #777; }
.toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.switch-row { display: flex; align-items: center; gap: 6px; font-size: 14px; }
#video-wrapper { background: #000; border-radius: 8px; overflow: auto; max-width: 100%; max-height: 75vh; }
#remote-video { width: 100%; height: auto; display: block; cursor: crosshair; transition: width 0.1s; }
#zoom-range { width: 100px; vertical-align: middle; }
#screens-list { margin-bottom: 12px; }
#screens-list li { cursor: pointer; }
#screens-list li:hover { background: #2a2d34; }
#screens-list img { width: 120px; border-radius: 4px; margin-right: 10px; vertical-align: middle; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b1e24;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.list li span.meta { color: #888; font-size: 12px; margin-left: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #2a2d34; }
th { color: #999; font-weight: 600; }
.file-transfer-row { margin-top: 16px; }
#file-drop-zone {
  border: 2px dashed #3a3e47;
  border-radius: 8px;
  padding: 18px;
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s;
}
#file-drop-zone.drag-over { background: #1b1e24; border-color: #e10600; color: #fff; }
#file-list li .progress { color: #999; margin-left: 6px; }
