:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07110f;
  color: #e5f4f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #07110f;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 2px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #1d3d37;
  border-radius: 8px;
  background: #0d1d1a;
  color: #d8fff7;
  font-size: 13px;
  font-weight: 800;
}

.band,
.workspace {
  min-height: calc(100vh - 104px);
}

.band {
  display: grid;
  place-items: center;
}

.panel,
.controlPane {
  border: 1px solid #1d3d37;
  border-radius: 8px;
  background: #0b1715;
}

.panel {
  width: min(460px, 100%);
  padding: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.cameraPane {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid #1d3d37;
  border-radius: 8px;
  background: #050807;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050807;
}

.cameraOverlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controlPane {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.identity p,
.status p {
  color: #9fbeb7;
  margin-top: 6px;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #b6d7d0;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #2a5149;
  border-radius: 8px;
  background: #07110f;
  color: #f8fafc;
  padding: 10px 12px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 900;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: #14b8a6;
  color: #03201c;
}

.secondary {
  background: #17302b;
  color: #d8fff7;
  border: 1px solid #2a5149;
}

.large {
  width: 100%;
  min-height: 72px;
  font-size: 20px;
}

.actions,
.form,
.actionGrid {
  display: grid;
  gap: 10px;
}

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

.status {
  margin-top: auto;
  border-top: 1px solid #1d3d37;
  padding-top: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .signals {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .cameraPane {
    min-height: 300px;
  }

  .controlPane {
    min-height: 0;
  }
}
