:root {
  color: #17202b;
  background: #eef1f4;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #d9dfe7;
}

h1,
p {
  margin: 0;
}

h1 {
  margin-top: 3px;
  font-size: 20px;
}

.eyebrow {
  color: #667085;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.status.idle,
.status.connecting {
  color: #344054;
  background: #f2f4f7;
}

.status.ready {
  color: #067647;
  background: #ecfdf3;
}

.status.failed {
  color: #b42318;
  background: #fef3f2;
}

main {
  padding: 18px 24px 24px;
}

form {
  display: grid;
  grid-template-columns: 150px 230px minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid #d9dfe7;
  border-radius: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
button {
  height: 38px;
  border: 1px solid #b8c1cc;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 10px;
  color: #17202b;
  background: #fff;
}

button {
  padding: 0 18px;
  color: #fff;
  background: #1769e0;
  border-color: #1769e0;
  cursor: pointer;
  font-weight: 650;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

small {
  color: #667085;
  font-weight: 400;
}

.result {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 12px 0;
  padding: 11px 14px;
  color: #475467;
  background: #fff;
  border: 1px solid #d9dfe7;
  border-radius: 8px;
  font-size: 14px;
}

.result strong {
  color: #17202b;
  white-space: nowrap;
}

#embed-container {
  height: calc(100vh - 210px);
  min-height: 560px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dfe7;
  border-radius: 10px;
}

#embed-container iframe {
  display: block;
  border: 0;
}

@media (max-width: 1050px) {
  form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  button {
    width: max-content;
  }
}
