body {
  font-family: monospace;
  background: #111;
  color: #ddd;
}

.view {
  height: 70vh;
  overflow-y: auto;
  font-family: monospace;
  white-space: pre;
  padding: 4px;
  border: 1px solid #333;
  background: #0b0b0b;
}

/* Hex view container */
#hex-view {
  position: relative;
  font-family: monospace;
  background: #111;
  color: #ddd;
  padding: 5px;
  overflow: auto;
}

/* Virtual inner */
#hex-view .inner {
  position: relative;
}

/* Hex row */
.hex-row {
  display: flex;
  white-space: pre;
  height: 20px;
}

.hex-row .offset {
  width: 80px;
  color: #888;
  flex: none;
}

/* Hex + ASCII columns (widths depend on mode) */
#hex-view.bytes-16 .hex {
  flex: none;
  width: 450px;
  margin-left: 10px;
}
#hex-view.bytes-32 .hex {
  flex: none;
  width: 910px;
  margin-left: 10px;
}
#hex-view.bytes-16 .ascii {
  flex: none;
  width: 200px;
  margin-left: 20px;
}
#hex-view.bytes-32 .ascii {
  flex: none;
  width: 320px;
  margin-left: 20px;
}

/* Cells */
.cell {
  display: inline-block;
  text-align: center;
  width: 2ch;
  position: relative;
}
.hex .cell { width: 2ch; }
.ascii .cell { width: 1ch; }

.cell.cursor {
  background: #0d6efd;
  color: #fff;
}

.cell.selected {
  background: #444;
  color: #fff;
}

/* Floating editor overlay */
#hex-editor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#hex-editor-overlay input.floating-editor {
  position: absolute;
  font-size: 1.6em;     /* a bit girthier */
  font-family: monospace;
  text-align: center;
  color: #fff;
  background: #000;
  border: 2px solid #0d6efd;
  outline: none;
  padding: 0 4px;       /* extra room inside */
  margin: 0;
  z-index: 1000;
  pointer-events: auto;
  box-sizing: content-box; /* allow padding without shrinking text space */
}

/* Status bar */
#statusBar {
  font-size: 0.8rem;
  padding: 4px 8px;
  background: #111;
  border-top: 1px solid #444;
}

.col-3 .card .card-body {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#objectsList canvas, #objectsList img, #objectsList video {
  border: 1px solid #333; border-radius: 4px;
}
