:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111;
  --panel2: #181818;
  --gold: #e7bb54;
  --gold2: #ffd77a;
  --text: #f5f5f5;
  --muted: #aaa;
  --green: #68e6a3;
  --red: #ff6565;
  --border: rgba(231,187,84,.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(231,187,84,.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

body {
  padding: 14px;
}

button,
input {
  font: inherit;
}

.support-shell {
  max-width: 1400px;
  margin: auto;
}

.support-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: .75rem;
}

h1 {
  margin: 8px 0;
}

h2 {
  margin-top: 0;
}

.subtitle {
  color: var(--muted);
}

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

.consent-panel {
  max-width: 720px;
}

.consent-row {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.primary-button,
.end-button {
  width: 100%;
  border-radius: 13px;
  padding: 15px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #111;
}

.end-button {
  background: rgba(255,80,80,.12);
  color: #ff9b9b;
  border: 1px solid rgba(255,80,80,.4);
}

.error-message {
  color: #ff9b9b;
}

.status-badge,
.mini-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .75rem;
  font-weight: 800;
}

.status-online {
  color: var(--green);
}

.status-connecting {
  color: var(--gold2);
}

.status-offline {
  color: var(--muted);
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px;
}

.camera-column,
.assistant-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.camera-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.camera-card video {
  width: 100%;
  min-height: 390px;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.camera-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  display: flex;
  justify-content: space-between;
}

.camera-overlay > div {
  background: rgba(0,0,0,.7);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .75rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: red;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.control-button {
  min-height: 90px;
  border: 1px solid #333;
  border-radius: 14px;
  background: var(--panel2);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.control-button.active {
  border-color: var(--gold);
}

.control-button.active strong {
  color: var(--gold2);
}

.control-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.eltron-message {
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(231,187,84,.08);
  line-height: 1.5;
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.session-grid div {
  background: rgba(255,255,255,.04);
  padding: 10px;
  border-radius: 10px;
}

.session-grid dt {
  color: var(--muted);
  font-size: .75rem;
}

.session-grid dd {
  margin: 4px 0 0;
  color: var(--gold2);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

@media (max-width: 850px) {
  .support-header {
    flex-direction: column;
  }

  .live-layout {
    grid-template-columns: 1fr;
  }

  .control-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .camera-card,
  .camera-card video {
    min-height: 52vh;
  }
}

@media (max-width: 470px) {
  body {
    padding: 8px;
  }

  .control-button {
    min-height: 82px;
  }

  .camera-card,
  .camera-card video {
    min-height: 48vh;
  }
}
.voice-question-box {
  margin-top: 14px;
}

.heard-text {
  margin-bottom: 10px;
  min-height: 42px;
  color: #bdbdbd;
  font-size: .9rem;
  line-height: 1.4;
}

.question-row {
  display: flex;
  gap: 8px;
}

.question-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(231,187,84,.3);
  border-radius: 12px;
  padding: 13px;
  background: #080808;
  color: #fff;
  outline: none;
}

.question-row input:focus {
  border-color: #e7bb54;
}

.question-row button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #e7bb54;
  color: #111;
  font-weight: 800;
}

#talkButton.listening {
  border-color: #ff6565;
  box-shadow: 0 0 18px rgba(255,80,80,.25);
}

#talkButton.listening strong {
  color: #ff8d8d;
}

.technician-button {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(231,187,84,.55);
  border-radius: 13px;
  padding: 15px;
  background: rgba(231,187,84,.12);
  color: #ffd77a;
  font-weight: 800;
  cursor: pointer;
}

.technician-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.technician-status {
  min-height: 24px;
  margin-bottom: 10px;
  color: #ffd77a;
  font-size: .9rem;
}

.portal-back-button {
  border: 1px solid rgba(231,187,84,.45);
  border-radius: 12px;
  padding: 11px 15px;
  background: rgba(231,187,84,.08);
  color: #ffd77a;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.portal-back-button:hover {
  background: rgba(231,187,84,.17);
}

@media (max-width: 850px) {
  .portal-back-button {
    width: 100%;
    text-align: left;
  }
}
