* {
  box-sizing: border-box;
}
.mic-env-warning {
  padding: 10px 16px;
  background: #3d2115;
  border-bottom: 1px solid #a3712c;
  color: #ffddb3;
  font-size: 0.88rem;
  line-height: 1.45;
}
.mic-env-warning[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f1419;
  color: #e6edf3;
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.bar h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}
.room-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0d1117;
  border-bottom: 1px solid #30363d;
}
.room-label {
  font-size: 0.85rem;
  color: #8b949e;
}
#room-select {
  min-width: 220px;
  flex: 1;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #e6edf3;
}
#room-manual {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #e6edf3;
}
.room-or {
  font-size: 0.8rem;
  color: #6e7681;
}
.status {
  font-size: 0.85rem;
  color: #8b949e;
}
button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #e6edf3;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: #238636;
  border-color: #238636;
}
.stage {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .stage {
    grid-template-columns: 1fr;
  }
}
.video-wrap {
  position: relative;
  background: #010409;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #30363d;
  aspect-ratio: 16 / 9;
}
#remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  vertical-align: top;
}
#overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: crosshair;
}
.panel {
  font-size: 0.9rem;
  color: #8b949e;
}
.panel .hint {
  line-height: 1.45;
  margin: 0 0 12px;
}
.panel .hint-small {
  font-size: 0.8rem;
  color: #6e7681;
  margin-bottom: 14px;
}
.panel .hint code {
  color: #79c0ff;
  font-size: 0.85em;
}
.field-label {
  display: block;
  font-size: 0.8rem;
  color: #8b949e;
  margin-bottom: 6px;
}
#target-classes {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 72px;
  margin-bottom: 8px;
}
button.secondary {
  background: #21262d;
  width: 100%;
  margin-bottom: 8px;
}
.meta {
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
