* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #0f1115;
  color: #f5f7fb;
}

.app {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

h1 {
  margin-bottom: 20px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2c3342;
  background: #1a1f2a;
  color: inherit;
}

button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #2f6fed;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #285fd0;
}

.hint {
  color: #c7cfdd;
}

video {
  width: 100%;
  margin-top: 16px;
  border-radius: 8px;
  background: #101521;
  min-height: 200px;
}

.video-stack {
  margin-top: 16px;
}

.video-stack video {
  margin-top: 0;
}

.status {
  margin-top: 12px;
  font-size: 14px;
  color: #a7b0c0;
}

.status::before {
  content: "● ";
  font-size: 12px;
}

.status[data-state="ok"] {
  color: #59d185;
}

.status[data-state="ok"]::before {
  color: #59d185;
}

.status[data-state="error"] {
  color: #ff6b6b;
}

.status[data-state="error"]::before {
  color: #ff6b6b;
}

.status[data-state="idle"] {
  color: #f2c94c;
}

.status[data-state="idle"]::before {
  color: #f2c94c;
}

video.hidden {
  display: none;
}

.info {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #151a24;
  border: 1px solid #2c3342;
}

.info h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.info-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.info-label {
  min-width: 70px;
  color: #c7cfdd;
}

.info code {
  background: #0f141f;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #2c3342;
  display: inline-block;
  word-break: break-all;
}