:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f0ea;
  background: #11110f;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(173, 255, 116, 0.11), transparent 28rem),
    radial-gradient(circle at 85% 80%, rgba(255, 159, 92, 0.10), transparent 30rem),
    #11110f;
}

button, input, select { font: inherit; }

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #adff74;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 35rem;
  margin: 30px 0 0;
  color: #aaa79e;
  line-height: 1.65;
}

.panel {
  padding: 30px;
  border: 1px solid #34332e;
  border-radius: 24px;
  background: rgba(31, 31, 28, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.session-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
}

.session-row label { color: #aaa79e; font-size: 0.82rem; }

select, input {
  min-width: 0;
  color: #f2f0ea;
  border: 1px solid #45433d;
  border-radius: 12px;
  background: #181816;
  outline: none;
}

select { padding: 10px 12px; }
input { width: 100%; padding: 13px 15px; }
select:focus, input:focus { border-color: #adff74; }

button {
  color: #f2f0ea;
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  background: #3a3934;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.primary {
  grid-column: 1 / -1;
  padding: 15px;
  color: #151811;
  background: #adff74;
  font-weight: 750;
}

.primary.danger { color: #2b1510; background: #ff9f73; }

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  color: #aaa79e;
  font-size: 0.87rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6c6960;
}

.status-dot[data-state="connecting"] { background: #f7ca62; box-shadow: 0 0 12px #f7ca62; }
.status-dot[data-state="live"] { background: #adff74; box-shadow: 0 0 12px #adff74; }
.status-dot[data-state="error"] { background: #ff806d; box-shadow: 0 0 12px #ff806d; }

.preview-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 15px;
  background: #080807;
  aspect-ratio: 16 / 9;
}

.preview-wrap video { width: 100%; height: 100%; object-fit: cover; }
.preview-wrap span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #ddd9d0;
  background: rgba(0, 0, 0, 0.66);
  font-size: 0.7rem;
}

.message-form { display: flex; gap: 9px; }

.transcript {
  min-height: 150px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #34332e;
  border-radius: 15px;
  background: #181816;
}

.transcript-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #858279;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiet { padding: 5px 8px; color: #858279; background: transparent; font-size: 0.72rem; }
#transcript-text { margin: 18px 0 0; color: #c4c0b7; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 45px; padding: 48px 0; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1080px); }
  .panel { padding: 20px; border-radius: 18px; }
  .session-row { grid-template-columns: 1fr; }
  .primary { grid-column: auto; }
  .message-form { flex-direction: column; }
}
