:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #111821;
  --text: #e7eef6;
  --muted: #8ea0b3;
  --line: #243241;
  --accent: #69b7ff;
  --accent-2: #4dd0a8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 20px;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.1;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  margin-bottom: 8px;
}

.row {
  display: flex;
  align-items: center;
}

.gap {
  gap: 12px;
  flex-wrap: wrap;
}

.link-row {
  align-items: stretch;
}

.link-row code {
  flex: 1 1 320px;
  min-width: 0;
}

.btn {
  border: 1px solid var(--line);
  background: #18222e;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #03131f;
  border-color: transparent;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

code {
  display: block;
  white-space: break-all;
  word-break: break-word;
  background: #0d131a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.links a {
  color: var(--accent-2);
  text-decoration: none;
}

.hint {
  color: var(--muted);
  margin-top: 16px;
}

video {
  width: 100%;
  margin-top: 16px;
  background: #000;
  border-radius: 8px;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
