* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0b0f14;
  color: #e6edf3;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #1f2a37;
  background: #0f151c;
}
h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .5px; }
h1 span { color: #4ade80; }
.status { font-size: 13px; color: #8b98a5; font-family: ui-monospace, monospace; }
main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; gap: 14px; padding: 14px; }
.panel { background: #111820; border: 1px solid #1f2a37; border-radius: 10px; display: flex; flex-direction: column; min-height: 0; }
.panel-title { padding: 10px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #7d8b99; border-bottom: 1px solid #1f2a37; }
.log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: #1c3a2a; }
.msg.assistant { align-self: flex-start; background: #1b2430; }
.msg.system { align-self: center; background: #3a2416; color: #ffc98a; font-size: 13px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #1f2a37; }
input, select, button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid #2b3846;
  background: #0e141b;
  color: #e6edf3;
  padding: 9px 11px;
}
input { flex: 1; min-width: 0; }
button { cursor: pointer; }
button:hover { border-color: #4ade80; }
button.primary { background: #1a7f4b; border-color: #1a7f4b; font-weight: 600; }
.side-panel { padding-bottom: 12px; }
video { width: 100%; aspect-ratio: 4/3; background: #000; border-radius: 8px; margin: 12px 0; object-fit: cover; }
.buttons { display: grid; gap: 8px; padding: 0 12px 12px; }
details { padding: 0 12px; color: #9aa8b5; font-size: 13px; }
label { display: block; margin: 10px 0; }
label input, label select { display: block; width: 100%; margin-top: 5px; }
@media (max-width: 800px) { main { grid-template-columns: 1fr; } }
